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 |
|---|---|---|---|---|---|---|
Returns the used offset on the xaxis for drawing the axis or legend labels. This offset is applied before and after the label. | public float getXOffset() {
return mXOffset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float XOffset() {\n\t\tfloat xoffset = 0;\n\t\tif (MouseX() + 12 + (tipw * 7 + 4) > MainSim.WinX) {\t\t\t \t// If the tooltip will be outside the window (based on mousex):\n\t\t\txoffset = (MouseX() + 12 + (tipw * 7 + 4)) - MainSim.WinX; \t\t// Find how much the tip will be drawn outside\n\t\t} else {\n\t\t... | [
"0.68360704",
"0.6609154",
"0.65448475",
"0.65288955",
"0.6393334",
"0.6362122",
"0.62823194",
"0.6238801",
"0.615642",
"0.6083701",
"0.6070562",
"0.60640264",
"0.6054665",
"0.6053897",
"0.60357356",
"0.60244024",
"0.5992673",
"0.5964132",
"0.5954872",
"0.59425956",
"0.592474... | 0.6445024 | 4 |
Sets the used xaxis offset for the labels on this axis. | public void setXOffset(float xOffset) {
mXOffset = Utils.convertDpToPixel(xOffset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setXAxis() {\n XAxis xAxis = mChart.getXAxis();\n xAxis.setGranularity(1f);\n xAxis.setGranularityEnabled(true);\n xAxis.setCenterAxisLabels(false);\n xAxis.setDrawGridLines(false);\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setValueFormat... | [
"0.65550333",
"0.60991216",
"0.59701264",
"0.59679496",
"0.5955584",
"0.5890204",
"0.58712023",
"0.58219385",
"0.58204806",
"0.57325935",
"0.5679061",
"0.562702",
"0.5592848",
"0.5590845",
"0.55383784",
"0.5531867",
"0.5445034",
"0.5437972",
"0.5353706",
"0.53465",
"0.5341280... | 0.5845788 | 7 |
Returns the used offset on the xaxis for drawing the axis labels. This offset is applied before and after the label. | public float getYOffset() {
return mYOffset;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float XOffset() {\n\t\tfloat xoffset = 0;\n\t\tif (MouseX() + 12 + (tipw * 7 + 4) > MainSim.WinX) {\t\t\t \t// If the tooltip will be outside the window (based on mousex):\n\t\t\txoffset = (MouseX() + 12 + (tipw * 7 + 4)) - MainSim.WinX; \t\t// Find how much the tip will be drawn outside\n\t\t} else {\n\t\t... | [
"0.6779847",
"0.66161627",
"0.6577605",
"0.6460685",
"0.6439981",
"0.64252824",
"0.639919",
"0.6288452",
"0.6230484",
"0.620227",
"0.6188255",
"0.61278915",
"0.6126247",
"0.61007303",
"0.6073628",
"0.6039649",
"0.6028306",
"0.60038155",
"0.59787536",
"0.59759486",
"0.59153485... | 0.0 | -1 |
Sets the used yaxis offset for the labels on this axis. For the legend, higher offset means the legend as a whole will be placed further away from the top. | public void setYOffset(float yOffset) {
mYOffset = Utils.convertDpToPixel(yOffset);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setYOffset(final int yOffset) {\n this.yOffset = yOffset;\n }",
"public void setYOffset(float yOffset) {\n pos.y = yOffset;\n invalidate();\n }",
"public void setYLabel(String _label);",
"public void setyLabel(String yLabel) {\n this.yLabel = yLabel;\n }... | [
"0.6393745",
"0.6285883",
"0.6189024",
"0.60754067",
"0.60602444",
"0.5943055",
"0.5930942",
"0.584375",
"0.57623833",
"0.5719922",
"0.5623065",
"0.558099",
"0.557629",
"0.55631036",
"0.55423784",
"0.5528609",
"0.5513817",
"0.5503691",
"0.54984605",
"0.5496416",
"0.54908407",... | 0.62109745 | 2 |
returns the Typeface used for the labels, returns null if none is set | public Typeface getTypeface() {
return mTypeface;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Typeface getTypeface() {\n return mTextContainer.getTypeface();\n }",
"private Typeface getTypeface(TypefaceName tfn){\n\n switch (tfn) {\n case FURMANITE:\n return moodPromptFont;\n case DATACONTROL:\n return conversationFont;\n ... | [
"0.72312015",
"0.7197148",
"0.7099719",
"0.6318552",
"0.6314318",
"0.6262546",
"0.61892205",
"0.6171519",
"0.6139799",
"0.6139302",
"0.6130942",
"0.5949411",
"0.590804",
"0.5879576",
"0.58244264",
"0.5788775",
"0.5786743",
"0.57858783",
"0.57771003",
"0.57752514",
"0.5707477"... | 0.6894156 | 3 |
sets a specific Typeface for the labels | public void setTypeface(Typeface tf) {
mTypeface = tf;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void settypeface() {\n }",
"@Override\n public void setTypeface() {\n mAppNameTxt.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\n CUSTOM_FONTS_ROOT + CUSTOM_FONT_NAME));\n }",
"public void setLabelFont(Font f);",
"public void setFontToSpinner(Typeface m... | [
"0.77965647",
"0.70971096",
"0.6989721",
"0.68470967",
"0.67144614",
"0.66753364",
"0.66367203",
"0.662718",
"0.650125",
"0.6499778",
"0.6419449",
"0.6395931",
"0.6368902",
"0.6365655",
"0.63592136",
"0.6220899",
"0.6200417",
"0.61811113",
"0.6148758",
"0.6116937",
"0.6094486... | 0.7038403 | 2 |
sets the size of the label text in pixels min = 6f, max = 24f, default 10f | public void setTextSize(float size) {
if (size > 24f)
size = 24f;
if (size < 6f)
size = 6f;
mTextSize = Utils.convertDpToPixel(size);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n... | [
"0.7710473",
"0.7697147",
"0.7487635",
"0.7274495",
"0.7236503",
"0.7119027",
"0.70893127",
"0.70416677",
"0.6958442",
"0.6952654",
"0.6932835",
"0.69057477",
"0.68945694",
"0.6868081",
"0.6864044",
"0.6822184",
"0.677116",
"0.6769819",
"0.6726045",
"0.67142624",
"0.6694155",... | 0.7582682 | 2 |
returns the text size that is currently set for the labels | public float getTextSize() {
return mTextSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}",
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"public int getLabelSize()\n {\n return myLabelSize;\n }",
"public f... | [
"0.8669799",
"0.8241704",
"0.79001707",
"0.7855833",
"0.7778052",
"0.7468923",
"0.7416844",
"0.7355084",
"0.7342771",
"0.72909963",
"0.72057635",
"0.7138351",
"0.7085825",
"0.7034752",
"0.7027225",
"0.7023566",
"0.7011687",
"0.6980219",
"0.69232506",
"0.6922819",
"0.6917436",... | 0.78143793 | 4 |
Sets the text color to use for the labels. Make sure to use getResources().getColor(...) when using a color from the resources. | public void setTextColor(int color) {
mTextColor = color;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabelColor(String labelColor)\n {\n myLabelColor = labelColor;\n }",
"public void setTextColor(String textColor);",
"public void setLblTextColor(Color color) {\n lblSysteemMelding.setForeground(color);\n }",
"public void setTextColor( Color txtColor ) {\r\n textCo... | [
"0.76049346",
"0.7570156",
"0.7352612",
"0.73169416",
"0.7244276",
"0.7196836",
"0.7132628",
"0.7102484",
"0.69746774",
"0.68542355",
"0.6769915",
"0.67166424",
"0.6598988",
"0.6547871",
"0.65391195",
"0.6513128",
"0.6489325",
"0.63895357",
"0.637639",
"0.6372185",
"0.6370382... | 0.7182516 | 6 |
Returns the text color that is set for the labels. | public int getTextColor() {
return mTextColor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTextLabelForegroundColor() {\n\t\treturn mTextLabelForegroundColor;\n\t}",
"public String getLabelColor()\n {\n return myLabelColor;\n }",
"public int textColor() {\n\t\treturn textColor;\n\t}",
"public Color getLblColor() {\n return lblColor;\n }",
"public String getTe... | [
"0.81851536",
"0.7856164",
"0.7822254",
"0.7717078",
"0.7678097",
"0.7673591",
"0.7621408",
"0.7484709",
"0.74138385",
"0.7413593",
"0.73945045",
"0.7319531",
"0.73071384",
"0.7100822",
"0.7052918",
"0.6971385",
"0.6944887",
"0.6890626",
"0.68838626",
"0.6789361",
"0.6754658"... | 0.7334392 | 11 |
returns the Typeface that is currently set for the highlighted labels | public Typeface getHightlightedTypeface() {
if (mHightlightedTypeface != null)
return mHightlightedTypeface;
return getTypeface();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Typeface getTypeface() {\n return mTextContainer.getTypeface();\n }",
"public Typeface getTypeface() {\n return mTypeface;\n }",
"private Typeface getTypeface(TypefaceName tfn){\n\n switch (tfn) {\n case FURMANITE:\n return moodPromptFont;\n ... | [
"0.7365308",
"0.65702456",
"0.63992155",
"0.62732357",
"0.6110346",
"0.6103726",
"0.6086539",
"0.59169775",
"0.5838783",
"0.5788255",
"0.577033",
"0.57393706",
"0.57112753",
"0.57112676",
"0.5687029",
"0.56651855",
"0.5665128",
"0.5618164",
"0.5617663",
"0.5614445",
"0.560183... | 0.6219688 | 4 |
returns the Text size that is currently set for the highlighted labels | public Float getHightlightedTextSize() {
if (mHightlightedTextSize != null)
return mHightlightedTextSize;
return getTextSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}",
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"public float getTextSize() {\n return mTextContainer.getTextSize();\n }"... | [
"0.7845061",
"0.7531779",
"0.7491415",
"0.7257747",
"0.71617025",
"0.7073258",
"0.683011",
"0.68141836",
"0.6809236",
"0.6753997",
"0.667246",
"0.66420656",
"0.6584868",
"0.65584713",
"0.6523109",
"0.6491633",
"0.64866316",
"0.6425233",
"0.64211464",
"0.64124674",
"0.64055645... | 0.7014955 | 6 |
returns the color that is currently set for the highlighted labels | public Integer getHightlightedTextColor() {
if (mHightlightedTextColor != null)
return mHightlightedTextColor;
return getTextColor();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Color getHighlight();",
"public static Color getColor() { return lblColor.getBackground(); }",
"public Color getLblColor() {\n return lblColor;\n }",
"public String getLabelColor()\n {\n return myLabelColor;\n }",
"public Color getHighlightColor() {\n return highlightCo... | [
"0.77675945",
"0.7636948",
"0.74136186",
"0.7397153",
"0.7228443",
"0.7217578",
"0.7071577",
"0.70682615",
"0.7062303",
"0.70059574",
"0.6992849",
"0.69569933",
"0.69380057",
"0.6874557",
"0.68672",
"0.68348736",
"0.68266904",
"0.6781496",
"0.6763982",
"0.67516696",
"0.663203... | 0.64634925 | 52 |
sets a specific Typeface for the highlighted labels | public void setHightlightedTypeface(Typeface mHightlightedTypeface) {
this.mHightlightedTypeface = mHightlightedTypeface;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void settypeface() {\n }",
"void setFontFamily(ReaderFontSelection f);",
"public void setLabelFont(Font f);",
"@Override\n public void setTypeface() {\n mAppNameTxt.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\n CUSTOM_FONTS_ROOT + CUSTOM_FONT_NAME));\n ... | [
"0.69593006",
"0.6750735",
"0.66786695",
"0.64485914",
"0.6423971",
"0.6303586",
"0.6282265",
"0.6215314",
"0.611855",
"0.6027806",
"0.5958874",
"0.59410423",
"0.59369314",
"0.59183204",
"0.59166735",
"0.5902342",
"0.5860416",
"0.585258",
"0.5845979",
"0.5827726",
"0.57550514... | 0.6016859 | 10 |
sets a specific Text size for the highlighted labels | public void setHightlightedTextSize(Float size) {
if (size > 24f)
size = 24f;
if (size < 6f)
size = 6f;
mHightlightedTextSize = Utils.convertDpToPixel(size);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);... | [
"0.7278376",
"0.71030915",
"0.67471683",
"0.6655295",
"0.66518897",
"0.66180015",
"0.65941834",
"0.6518925",
"0.64981353",
"0.64671254",
"0.63692474",
"0.6349316",
"0.6342784",
"0.63018864",
"0.6284575",
"0.62643874",
"0.6255731",
"0.61947554",
"0.61921245",
"0.61621386",
"0.... | 0.6614148 | 6 |
sets a specific Textcolor for the highlighted labels | public void setHightlightedTextColor(Integer mHightlightedTextColor) {
this.mHightlightedTextColor = mHightlightedTextColor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLblColor(Color value) {\n lblColor = value;\n }",
"public void setTextColor(String textColor);",
"public void setLabelColor(String labelColor)\n {\n myLabelColor = labelColor;\n }",
"private void highlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHA... | [
"0.7317356",
"0.73055327",
"0.72508854",
"0.7223785",
"0.7218535",
"0.7125835",
"0.7018614",
"0.6995518",
"0.6903347",
"0.6880418",
"0.67649305",
"0.6741231",
"0.6667291",
"0.66546357",
"0.66259503",
"0.6607525",
"0.65860397",
"0.6550319",
"0.6514121",
"0.6504669",
"0.6493263... | 0.5971468 | 64 |
Set this to true if this component should be enabled (should be drawn), false if not. If disabled, nothing of this component will be drawn. Default: true | public void setEnabled(boolean enabled) {
mEnabled = enabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEnabled(boolean enabled);",
"public void setEnabled(boolean enabled);",
"public boolean setEnabled(boolean enable);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"void setEnabled(boolean enabled);",
"public void setEnab... | [
"0.6975595",
"0.6975595",
"0.6878795",
"0.6871352",
"0.6871352",
"0.6871352",
"0.6871352",
"0.68414086",
"0.67811626",
"0.6777818",
"0.6774532",
"0.67450655",
"0.67313415",
"0.6726948",
"0.6724071",
"0.6721009",
"0.6719111",
"0.67163175",
"0.6706948",
"0.6668862",
"0.6668751"... | 0.662589 | 27 |
Returns true if this comonent is enabled (should be drawn), false if not. | public boolean isEnabled() {
return mEnabled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasEnabled();",
"final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }",
"public boolean isEnable() {\n return _enabled;\n }",
"boolean getEnabled();",
"boolean getEnabled();",
"boolean getEnabled();",
"public boolean isEnabled()\r\n\t{\r\n\t\treturn enabl... | [
"0.7362617",
"0.7110487",
"0.7002288",
"0.69676936",
"0.69676936",
"0.69676936",
"0.6965348",
"0.6949266",
"0.6933635",
"0.68684757",
"0.68684757",
"0.685921",
"0.68454546",
"0.68454546",
"0.68454546",
"0.68454546",
"0.68454546",
"0.68454546",
"0.68454546",
"0.68454546",
"0.6... | 0.68887115 | 9 |
Creates new form MercadoFrame | public MercadoFrame() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Frame createFrame();",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"FRAME createFRAME();",
"public NewFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n... | [
"0.75738835",
"0.725607",
"0.7211069",
"0.71650136",
"0.6967818",
"0.6961746",
"0.6951091",
"0.6920807",
"0.6909911",
"0.6865972",
"0.6865972",
"0.6865972",
"0.6865972",
"0.6865972",
"0.6865972",
"0.6865972",
"0.68208647",
"0.6798444",
"0.6779165",
"0.6726798",
"0.6720727",
... | 0.7415078 | 1 |
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() {
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
produtos... | {
"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.73201853",
"0.7291607",
"0.7291607",
"0.7291607",
"0.7285772",
"0.7248832",
"0.721371",
"0.72083634",
"0.71965843",
"0.7190274",
"0.71847606",
"0.71592176",
"0.71481156",
"0.70935035",
"0.70799935",
"0.70570904",
"0.6987588",
"0.6977819",
"0.69557554",
"0.6953564",
"0.6945... | 0.0 | -1 |
this Constructor will creat new music | public Musics(String address, String name, int date){
this.address = address;
this.singerName = name;
this.date = date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Music()\n {\n this(0, \"\", \"\", \"\", \"\", \"\");\n }",
"public Music createMusic(String file);",
"private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing)... | [
"0.7981132",
"0.7907937",
"0.7527351",
"0.7163389",
"0.7156959",
"0.7131693",
"0.71050614",
"0.70386666",
"0.70236325",
"0.7005141",
"0.69359165",
"0.6924347",
"0.68884444",
"0.68805534",
"0.6802945",
"0.67642915",
"0.675438",
"0.6751099",
"0.6748066",
"0.6706221",
"0.6698672... | 0.0 | -1 |
this will get the address | public String getAddress() {
return address;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"String getAddress();",
"String getAddress();",
"public String getExternalAddress();",
"public... | [
"0.8769152",
"0.8769152",
"0.8769152",
"0.8769152",
"0.8769152",
"0.8769152",
"0.8555958",
"0.8555958",
"0.83188367",
"0.82317066",
"0.818177",
"0.81262875",
"0.81262875",
"0.80763054",
"0.8029247",
"0.79704845",
"0.7963765",
"0.79613876",
"0.79515296",
"0.79339385",
"0.79197... | 0.77230096 | 96 |
this will set the address of the file | public void setAddress(String adrs) {
address = adrs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setFile() {\n\t}",
"public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n... | [
"0.71397835",
"0.67744386",
"0.67235374",
"0.6570027",
"0.656879",
"0.65279454",
"0.6396593",
"0.63669455",
"0.63637245",
"0.63405615",
"0.62965816",
"0.6218502",
"0.6203534",
"0.6202416",
"0.61749065",
"0.60634553",
"0.60444844",
"0.6004238",
"0.59921867",
"0.5991474",
"0.59... | 0.0 | -1 |
this will get the singer's name | public String getSingerName() {
return singerName ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSingerName(String nm) {\n singerName = nm;\n }",
"private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"String getPassengerName();",
"private String getPlayerName() {\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.get(USER_NAME... | [
"0.7265185",
"0.71687526",
"0.707258",
"0.68167514",
"0.6765341",
"0.6764329",
"0.6753542",
"0.66836274",
"0.66763246",
"0.66580254",
"0.66134375",
"0.66090804",
"0.6594376",
"0.6594376",
"0.6583982",
"0.65369993",
"0.65068156",
"0.6475957",
"0.6470954",
"0.6469522",
"0.64595... | 0.8366008 | 0 |
this will set the address of the file | public void setSingerName(String nm) {
singerName = nm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setFile() {\n\t}",
"public void setFilebase(final Address address) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setFileBase(new CAddress(address.toLong()));\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n... | [
"0.71404475",
"0.6776047",
"0.67222136",
"0.65701485",
"0.6569472",
"0.65275437",
"0.6396597",
"0.63683695",
"0.6365667",
"0.63415784",
"0.62983215",
"0.62185526",
"0.62041295",
"0.6203403",
"0.6173993",
"0.6063506",
"0.60445994",
"0.6005389",
"0.59928304",
"0.59925485",
"0.5... | 0.0 | -1 |
this will get the date | public int getDate() {
return date ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String Get_date() \n {\n \n return date;\n }",
"java.lang.String getDate();",
"String getDate();",
"String getDate();",
"Date getDate();",
"Date getDate();",
"Date getDate();",
"java.lang.String getFoundingDate();",
"public Date getdate() {\n\t\treturn new Date(date.getTime());... | [
"0.8167924",
"0.81365424",
"0.7963085",
"0.7963085",
"0.78035885",
"0.78035885",
"0.78035885",
"0.77890825",
"0.75549245",
"0.75529444",
"0.75529444",
"0.75315547",
"0.7524179",
"0.7475728",
"0.7439882",
"0.7420588",
"0.74075687",
"0.7380364",
"0.7378948",
"0.7356838",
"0.734... | 0.7376977 | 19 |
this will set the date | public void setDate(int dt) {
date = dt;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDate(Date data);",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void SetDate(Date date);",
"private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}",
"public void setDate() {\n this.date = new Date();\n }",
... | [
"0.83526653",
"0.82755387",
"0.8173607",
"0.80066466",
"0.79656464",
"0.79548556",
"0.7867333",
"0.78163654",
"0.7795974",
"0.7791099",
"0.7791099",
"0.7791099",
"0.778912",
"0.7779633",
"0.7779633",
"0.7779633",
"0.7779633",
"0.7779633",
"0.7779633",
"0.7779633",
"0.7779633"... | 0.7821886 | 7 |
/textView = new TextView(mContext); textView.setGravity(Gravity.CENTER); textView.setTextSize(25); textView.setTextColor(Color.RED); return textView; | @Override
public View initView() {
View view = View.inflate(mContext, R.layout.tab_detail_pager, null);
listview = (RefreshListView ) view.findViewById(R.id.listview);
View topnewsView = View.inflate(mContext, R.layout.topnews, null);
// 使用ButterKnife绑定XML文件
//ButterKnife.bind... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TextView getTextView(String text,int textsize){\n TextView textView=new TextView(context);\n textView.setTextColor(Color.parseColor(\"#000000\"));\n textView.setTextSize(textsize);\n textView.setGravity(Gravity.CENTER);\n textView.setText(text);\n textView.setLayout... | [
"0.7728121",
"0.766729",
"0.7634738",
"0.7132029",
"0.71205336",
"0.7059028",
"0.66064495",
"0.651493",
"0.6475312",
"0.64510804",
"0.63341004",
"0.62635934",
"0.6236564",
"0.62268543",
"0.6178362",
"0.61680526",
"0.6149734",
"0.61120665",
"0.6092567",
"0.6090992",
"0.6072088... | 0.0 | -1 |
alpha is output parameter | public static void methodOfMoments(double[][] data, double[] alpha) {
Preconditions.checkNotNull(data);
Preconditions.checkNotNull(alpha);
if (data.length == 1) {
System.arraycopy(data[0], 0, alpha, 0, alpha.length);
DoubleArrays.expToSelf(alpha);
return;
}
double[][] moments = moments(data, alpha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void alpha(int alpha);",
"public double getAlpha();",
"public double getAlpha();",
"float getAlpha();",
"abstract public boolean alphaConversion();",
"public double getAlpha()\n {\n return alpha;\n }",
"public void setAlpha(double aAlpha);",
"public double getAlpha() {\n retu... | [
"0.80969405",
"0.7874834",
"0.7874834",
"0.76253366",
"0.74561226",
"0.74138975",
"0.7386651",
"0.73499006",
"0.7341734",
"0.7316962",
"0.72755116",
"0.7266017",
"0.72323215",
"0.72323215",
"0.71920246",
"0.7124265",
"0.7091546",
"0.70845073",
"0.698788",
"0.69331235",
"0.693... | 0.0 | -1 |
Index 0 of returned value is E[x]; Index 1 is E[x^2] (noncentral) | private static double[][] moments(double[][] data, int K) {
double[] expectedX = new double[K];
double[] expectedXSquared = new double[K];
for (double[] theta : data) {
if (theta.length != K) {
throw new IllegalArgumentException("Dimensions of data and alpha do not match!");
}
for (int k = 0; k < ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector getImagEigenvalues() {\n return e;\n }",
"public double getEquinox();",
"public Float getE1() {\r\n return e1;\r\n }",
"public double energy(int x, int y) {\r\n validate(x, y);\r\n return energy[x][y];\r\n }",
"public int[] eigenValueIndices(){\n if(!this... | [
"0.63564605",
"0.61577547",
"0.60493976",
"0.60214764",
"0.5958768",
"0.59105253",
"0.58860564",
"0.58832365",
"0.58597904",
"0.5852878",
"0.5832397",
"0.5816536",
"0.574763",
"0.5710946",
"0.5705847",
"0.57019436",
"0.5687183",
"0.5678125",
"0.56774163",
"0.56774163",
"0.566... | 0.0 | -1 |
Computes alpha based on the average variance across data[.][k] | public static double methodOfMomentsSymmetric(double[][] data) {
Preconditions.checkNotNull(data);
Preconditions.checkArgument(data.length > 1);
final int K = data[0].length;
double[][] moments = moments(data, K);
double[] expectedX = moments[0];
double[] expectedXSquared = moments[1];
double[] var = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void computeAlpha() {\n\t\t//Allocate memory for the alphas array\n\t\talpha = new double[training[0].length-1];\n\t\t\n\t\t//Checks every feature\n\t\tfor(int i = 0; i < training[0].length-1; i++) {\n\t\t\t//Sets the position of the array corresponding to itself to NaN and continues the loop\n... | [
"0.6476125",
"0.62517875",
"0.56647503",
"0.5656607",
"0.56339854",
"0.55692345",
"0.5566785",
"0.5522302",
"0.5488126",
"0.5488126",
"0.54590595",
"0.5439276",
"0.5399344",
"0.5388012",
"0.5344017",
"0.5337565",
"0.5329398",
"0.53078693",
"0.5305275",
"0.5301943",
"0.5300768... | 0.0 | -1 |
Returns the log of a sample from the specified Dirichlet distribution. Similar to calling: double[] theta = sample(alpha, rnd); DoubleArrays.logToSelf(theta); EXCEPT that precision is better preserved. | public static double[] logSample(double[] alpha, RandomGenerator rnd) {
double[] theta = GammaDistribution.sample(alpha, rnd);
DoubleArrays.logToSelf(theta);
DoubleArrays.logNormalizeToSelf(theta);
return theta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double[] logSample(RealVector alpha, RandomGenerator rnd) {\n\t\tdouble[] theta = GammaDistribution.sample(alpha, rnd);\n\t\tDoubleArrays.logToSelf(theta);\n\t\tDoubleArrays.logNormalizeToSelf(theta);\n\t\treturn theta;\n\t}",
"public static void logSampleToSelf(double[] alpha, RandomGenerator rnd)... | [
"0.7716785",
"0.72635597",
"0.62194103",
"0.580584",
"0.5767902",
"0.55954665",
"0.5579063",
"0.5561518",
"0.55075336",
"0.5489816",
"0.54033834",
"0.53509027",
"0.52968776",
"0.5250574",
"0.52071416",
"0.5181166",
"0.5158198",
"0.51544476",
"0.5147738",
"0.51183",
"0.5097458... | 0.7753212 | 0 |
Computes the log of a sample from the specified Dirichlet distribution and stores the result in alpha. Precision is preserved through a call to logNormalizeToSelf(). | public static void logSampleToSelf(double[] alpha, RandomGenerator rnd) {
GammaDistribution.sampleToSelf(alpha, rnd);
DoubleArrays.logToSelf(alpha);
DoubleArrays.logNormalizeToSelf(alpha);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double[] logSample(double[] alpha, RandomGenerator rnd) {\n\t\tdouble[] theta = GammaDistribution.sample(alpha, rnd);\n\t\tDoubleArrays.logToSelf(theta);\n\t\tDoubleArrays.logNormalizeToSelf(theta);\n\t\treturn theta;\n\t}",
"public static double[] logSample(RealVector alpha, RandomGenerator rnd) {... | [
"0.7215023",
"0.7123237",
"0.6114579",
"0.5733724",
"0.5729519",
"0.56144184",
"0.55492824",
"0.54684275",
"0.52830416",
"0.5250575",
"0.5247213",
"0.5239923",
"0.51845485",
"0.5151012",
"0.5126187",
"0.49895918",
"0.49676585",
"0.49342743",
"0.49322835",
"0.49181247",
"0.486... | 0.7240117 | 0 |
Returns the log of a sample from the specified Dirichlet distribution. Similar to calling: double[] theta = sample(alpha, rnd); DoubleArrays.logToSelf(theta); EXCEPT that precision is better preserved. | public static double[] logSample(RealVector alpha, RandomGenerator rnd) {
double[] theta = GammaDistribution.sample(alpha, rnd);
DoubleArrays.logToSelf(theta);
DoubleArrays.logNormalizeToSelf(theta);
return theta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double[] logSample(double[] alpha, RandomGenerator rnd) {\n\t\tdouble[] theta = GammaDistribution.sample(alpha, rnd);\n\t\tDoubleArrays.logToSelf(theta);\n\t\tDoubleArrays.logNormalizeToSelf(theta);\n\t\treturn theta;\n\t}",
"public static void logSampleToSelf(double[] alpha, RandomGenerator rnd) {... | [
"0.77521574",
"0.7263348",
"0.62198627",
"0.5805752",
"0.57689786",
"0.55943674",
"0.5578457",
"0.5561069",
"0.5507845",
"0.54904234",
"0.540424",
"0.5350082",
"0.52970517",
"0.52497727",
"0.5207216",
"0.51814073",
"0.5157055",
"0.5153915",
"0.5146563",
"0.5118949",
"0.509804... | 0.77159065 | 1 |
ServoConRemote/LongProcessOperations.java . Generated by the IDLtoJava compiler (portable), version "3.2" from ServoConRemote_v2.idl Wednesday, April 19, 2017 6:32:20 PM MSK waiting for long process pull model | public interface LongProcessOperations
{
ServoConRemote.LongProcessPackage.Status Completed ();
//message is empty on success
String Message ();
double Progress ();
void Detach ();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long processLongCommand(Map mapCommands, Object oArg, long lDefault)\n throws UnsupportedOperationException\n {\n Object value = mapCommands.get(oArg);\n return (value == null ? lDefault : Long.parseLong((String) value));\n }",
"public native long __longMethod... | [
"0.5725628",
"0.52331704",
"0.5120162",
"0.50716114",
"0.5071396",
"0.49969774",
"0.498825",
"0.49715143",
"0.49469903",
"0.49469903",
"0.4943543",
"0.49354485",
"0.49289048",
"0.49289048",
"0.49263224",
"0.49263224",
"0.49229065",
"0.4880391",
"0.48759672",
"0.48697156",
"0.... | 0.6225539 | 0 |
message is empty on success | String Message (); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }",
"@Override\n public void onSuccess(String message) {\n }",
"protected abstract String persistSucceededMessage();",
"@Override\n\tpublic String getMessage(String id) {\n\t\treturn \"success\";\n\t}... | [
"0.7158388",
"0.7112216",
"0.70258856",
"0.683835",
"0.6793637",
"0.6781314",
"0.6752705",
"0.66717285",
"0.66503376",
"0.6634969",
"0.6562713",
"0.6473984",
"0.6473065",
"0.64531416",
"0.6435303",
"0.64278245",
"0.64031386",
"0.63702106",
"0.63684183",
"0.63552916",
"0.63473... | 0.6029031 | 82 |
User repository for get data from database. | @Repository("userRepository")
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
/**
* Find user by the Email.
*
* @param email user email
* @return user
*/
User findByEmail(String email);
/**
* List all the active users.
*
* @para... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Repository(\"UserDAO\")\npublic interface UserDAO {\n public User selectUserFromId(int id);\n\n public List<User> selectUserFromName(String user);\n\n public List<User> selectUserFromCall(String callphone);\n\n public List<User> selectUserAll();\n\n public int insertUser(User user);\n\n public i... | [
"0.7164705",
"0.70080876",
"0.69717026",
"0.69469017",
"0.6923203",
"0.68982756",
"0.6825814",
"0.681714",
"0.67863375",
"0.6755358",
"0.6746067",
"0.67273045",
"0.6675273",
"0.6672579",
"0.66725063",
"0.66724175",
"0.66712296",
"0.6663961",
"0.6660739",
"0.6659059",
"0.66415... | 0.0 | -1 |
Find user by the Email. | User findByEmail(String email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User findUserByEmail(final String email);",
"User find(String email);",
"User findUserByEmail(String email) throws Exception;",
"User getUserByEmail(final String email);",
"@Override\n public OpenScienceFrameworkUser findOneUserByEmail(final String email) {\n final OpenScienceFrameworkUser... | [
"0.8123842",
"0.80801123",
"0.79997003",
"0.79689944",
"0.78727007",
"0.7864649",
"0.77997464",
"0.7799676",
"0.7780498",
"0.77661586",
"0.7756865",
"0.7715695",
"0.7682533",
"0.76747537",
"0.76722443",
"0.76649296",
"0.76649296",
"0.7649431",
"0.7647964",
"0.7623956",
"0.759... | 0.76307964 | 22 |
List all the active users. | List<User> findUserByActive(Integer active); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List getAllUsers();",
"public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }",
"@GetMapping(\"/userslist\")\n\tpublic List<User> usersList() {\n\t\treturn userService.usersList();\n\t}",
"public List<User> list() {\n\t\treturn userDao.list();\n\t}",
"public List<User> ... | [
"0.7973515",
"0.7747387",
"0.77402157",
"0.77362317",
"0.77112496",
"0.76743865",
"0.7655241",
"0.76331156",
"0.76325893",
"0.76269555",
"0.7594024",
"0.7585613",
"0.75813574",
"0.7574618",
"0.75448596",
"0.7543356",
"0.7542731",
"0.75410235",
"0.7539785",
"0.7539785",
"0.752... | 0.0 | -1 |
List active users with pagination. | @Query(value = "SELECT user FROM User user WHERE user.active = :active")
Page<User> findByUserIsActive(Pageable pageable, @Param("active") Integer active); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<User> getActiveUsers(boolean active);",
"List<User> loadActiveUsers(User user);",
"public List getAllUsers();",
"@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n @PreAuthorize(\"hasPermission(0, 'user', 'READ')\")\n public ResponseEntity<?> listAll(Pageable pagination, User... | [
"0.7603548",
"0.7303337",
"0.720867",
"0.7021568",
"0.6976836",
"0.6941414",
"0.69060415",
"0.6876912",
"0.6876912",
"0.68738174",
"0.68732464",
"0.6867019",
"0.68403304",
"0.6821501",
"0.68176293",
"0.68064165",
"0.68054205",
"0.6804966",
"0.67798245",
"0.6766985",
"0.676674... | 0.0 | -1 |
Find user by the username. | @Query(value = "SELECT user FROM User user WHERE user.active = 1 AND user.userName = :userName")
User findByUsername(@Param("userName") String userName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AgtUser findUserByName(String username);",
"User findUserByUsername(String username);",
"@Override\n\tpublic void findUserByUsername(String username) {\n\n\t}",
"@Override\n\tpublic User findByName(String username) {\n\t\treturn userDao.findByName(username);\n\t}",
"public SecurityUser findByName(St... | [
"0.77886677",
"0.76551455",
"0.76326674",
"0.75714517",
"0.75345165",
"0.75206465",
"0.7503331",
"0.74603796",
"0.7428996",
"0.7425884",
"0.74028987",
"0.73956674",
"0.73956674",
"0.73956674",
"0.7363978",
"0.7363978",
"0.7332524",
"0.7324188",
"0.731532",
"0.73042727",
"0.72... | 0.0 | -1 |
Find user by the emailId. | @Query(value = "SELECT user FROM User user WHERE user.active = 1 AND user.email = :email")
User findByEmailId(@Param("email") String email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Users findBYEmailId(String email) {\r\n Query query = em.createNamedQuery(\"findUserByEmailId\");\r\n query.setParameter(\"uemail\", email);\r\n if (!query.getResultList().isEmpty()) {\r\n Users registeredUser = (Users) query.getSingleResult();\r\n return registere... | [
"0.79466116",
"0.79121524",
"0.7886391",
"0.7797487",
"0.7738028",
"0.77213025",
"0.7670821",
"0.76413697",
"0.76332486",
"0.76265013",
"0.7623888",
"0.7622601",
"0.76199275",
"0.7616629",
"0.7570469",
"0.7533438",
"0.7486762",
"0.7453777",
"0.74150276",
"0.7412493",
"0.74124... | 0.7103549 | 55 |
This method determines the maximum string in an array of strings. The maximum in this case is considered to be the last in alphabetical order. | public static void function4(Set<String> stringSet) {
System.out.println("4 - The maximum (the last in alphabetical order) string in the list is:");
System.out.println(stringSet.stream().max(Comparator.comparing(String::toString)).get());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String maxString(ArrayList<String> array){\n \n String max = \"\";\n for(String s:array){\n \n if(s.length() > max.length()){\n max = s;\n }\n }\n return max;\n }",
"public static String maxValue(String[] strArr) ... | [
"0.81680214",
"0.75980765",
"0.7340498",
"0.7138097",
"0.6988664",
"0.6955119",
"0.6932085",
"0.6868971",
"0.68043023",
"0.6677132",
"0.66427076",
"0.6577729",
"0.65773684",
"0.6486665",
"0.64827645",
"0.64711434",
"0.6449417",
"0.64324206",
"0.6428106",
"0.6413157",
"0.63740... | 0.64783454 | 15 |
Returns the runtime name of the class. This method is only necessary due to the use of dollar signs "$" within inner classes rather than dot ".". | public String getRuntimeName() {
final StringBuffer runtimeName = new StringBuffer();
final String name = this.getName();
final Package packagee = this.getPackage();
final String packageName = null == packagee ? null : packagee.getName();
String nameLessPackageName = name;
if (false == Tester.isNull... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}",
"public final String toStringClassName() {\r\n \t\tString str = this.ge... | [
"0.7330833",
"0.7201671",
"0.7168222",
"0.70909625",
"0.7056617",
"0.7042784",
"0.7015111",
"0.6965556",
"0.69529915",
"0.68628",
"0.68628",
"0.6854158",
"0.68442994",
"0.6831626",
"0.6830847",
"0.68255764",
"0.68150353",
"0.6765512",
"0.67447346",
"0.67214096",
"0.6721175",
... | 0.70300376 | 6 |
Finds a matching constructor given its parameter types. | public Constructor findConstructor(final List<Type> parameterTypes) {
Checker.notNull("parameter:parameterTypes", parameterTypes);
Constructor found = null;
final Iterator<Constructor> constructors = this.getConstructors().iterator();
while (constructors.hasNext()) {
final Constructor constructor ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Constructor<?> findConstructor(Class<?> archiveImplClazz, Class<?>... argumentTypes) throws Exception \n {\n return archiveImplClazz.getConstructor(argumentTypes);\n }",
"public static <T> ConstructorInvoker<T> findMatchingConstructor(Class<T> type, Object... values) throws NoSuchMetho... | [
"0.71156377",
"0.7087612",
"0.6900496",
"0.68348837",
"0.67137927",
"0.6591604",
"0.65434915",
"0.63446206",
"0.6339664",
"0.6256648",
"0.6226286",
"0.621681",
"0.62007946",
"0.6122251",
"0.60159004",
"0.5934295",
"0.5931134",
"0.5908368",
"0.5850977",
"0.58443266",
"0.583571... | 0.76732624 | 0 |
Finds a field by name. | public Field findField(final String name) {
GeneratorHelper.checkJavaFieldName("parameter:name", name);
Field found = null;
final Iterator<Field> iterator = this.getFields().iterator();
while (iterator.hasNext()) {
final Field field = iterator.next();
if (field.getName().equals(name)) {
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static _Fields findByName(java.lang.String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fi... | [
"0.771015",
"0.76624644",
"0.76624644",
"0.7659194",
"0.7659194",
"0.7659194",
"0.7659194",
"0.7659194",
"0.7659194",
"0.7659194",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
"0.7606083",
... | 0.7869447 | 0 |
Factory method which creates a set of methods lazily. | abstract protected Set<Method> createMethods(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PropertySetFactory() {}",
"private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}",
"protected Method fetchMethod() {\n ... | [
"0.5227361",
"0.5181283",
"0.5108522",
"0.5106503",
"0.50842595",
"0.5040658",
"0.5033778",
"0.5017915",
"0.49739617",
"0.49508837",
"0.49208677",
"0.485173",
"0.48284587",
"0.47809055",
"0.47778514",
"0.47777936",
"0.47745803",
"0.4764113",
"0.47434568",
"0.47341225",
"0.470... | 0.6467855 | 0 |
Finds a method using its name and parameter types. | public Method findMethod(final String methodName, final List<Type> parameterTypes) {
GeneratorHelper.checkJavaMethodName("parameter:methodName", methodName);
Checker.notNull("parameter:parameterTypes", parameterTypes);
Method found = null;
final Iterator<Method> methods = this.getMethods().iterator();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Method findMethod(Class<?> clazz, String name, Class<?>... paramTypes) {\n Class<?> searchType = clazz;\n while (searchType != null) {\n Method[] methods = (searchType.isInterface() ? searchType.getMethods() : searchType.getDeclaredMethods());\n for (Method method ... | [
"0.7488955",
"0.733287",
"0.6920314",
"0.67965156",
"0.67204344",
"0.66847336",
"0.66022503",
"0.65139395",
"0.6445681",
"0.63884",
"0.6358073",
"0.6353512",
"0.62683505",
"0.6224519",
"0.6174587",
"0.61424065",
"0.61012655",
"0.60931146",
"0.6022082",
"0.6006627",
"0.5999213... | 0.7765673 | 0 |
Searches this type for the most derived method with a signature that matches the given parameters | public Method findMostDerivedMethod(final String methodName, final List<Type> parameterTypes) {
Checker.notNull("parameter:methodName", methodName);
Checker.notNull("parameter:parameterTypes", parameterTypes);
final MostDerivedMethodFinder finder = new MostDerivedMethodFinder();
finder.setMethodName(metho... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Method findMethod(Class<?> clazz, String name, Class<?>... paramTypes) {\n Class<?> searchType = clazz;\n while (searchType != null) {\n Method[] methods = (searchType.isInterface() ? searchType.getMethods() : searchType.getDeclaredMethods());\n for (Method method ... | [
"0.64986837",
"0.64505357",
"0.6257776",
"0.62178284",
"0.6198412",
"0.61101854",
"0.6109003",
"0.60999644",
"0.58613163",
"0.58578825",
"0.5836778",
"0.5763973",
"0.5711914",
"0.56987494",
"0.5661191",
"0.5653198",
"0.56385285",
"0.5609221",
"0.5531966",
"0.5457526",
"0.5422... | 0.7109705 | 0 |
Each type belonging to the given super type is presented to this type. | @Override
protected boolean visit(final Type type) {
Checker.notNull("parameter:type", type);
final Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());
final boolean skipRemaining = method != null;
if (skipRemaining) {
this.setFound(method);
}
return skipRe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void registerSuperTypes();",
"public void addSuperType(TypeReference superType) {\n\t\tif (superList == null) superList = new ArrayList<TypeReference>();\n\t\tsuperList.add(superType);\n\t}",
"private void resolveSuperTypes(AnnotatedType annotatedType, ModelConverterContext context) {\n\n ... | [
"0.70434594",
"0.66576296",
"0.62356114",
"0.6109012",
"0.60242045",
"0.6009928",
"0.59627825",
"0.59574467",
"0.59379345",
"0.57971156",
"0.5789018",
"0.57528555",
"0.56724375",
"0.5641994",
"0.56111014",
"0.560748",
"0.55669427",
"0.55293083",
"0.5525687",
"0.55133283",
"0.... | 0.0 | -1 |
Dont skip the most derived test when searching for the most derived method. | @Override
protected boolean skipInitialType() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void populateFoundMethods()\n \t{\n \t\t// For each non test method, find if it's invoked in each test method one by one.\n \t\t for (IMethod nonTestMethod : this.nonTestMethods)\n \t\t {\n \t\t\t FoundMethod tempFoundMethod = new FoundMethod(nonTestMethod);\n \t\t\t for (IMethod testMethod : this.test... | [
"0.6196212",
"0.58390176",
"0.58102703",
"0.5799574",
"0.5705096",
"0.5677853",
"0.5676713",
"0.5676713",
"0.5670328",
"0.56540984",
"0.5641318",
"0.56375575",
"0.5622855",
"0.5611498",
"0.5609146",
"0.5606799",
"0.5550771",
"0.55200243",
"0.5508096",
"0.54867834",
"0.5485081... | 0.0 | -1 |
Searches this type for the most derived method. | public Method getMostDerivedMethod(final String methodName, final List<Type> parameterTypes) {
final Method method = this.findMostDerivedMethod(methodName, parameterTypes);
if (null == method) {
this.throwMethodNotFoundException(methodName, parameterTypes);
}
return method;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Method findMostDerivedMethod(final String methodName, final List<Type> parameterTypes) {\r\n\t\tChecker.notNull(\"parameter:methodName\", methodName);\r\n\t\tChecker.notNull(\"parameter:parameterTypes\", parameterTypes);\r\n\r\n\t\tfinal MostDerivedMethodFinder finder = new MostDerivedMethodFinder();\r\n\t\... | [
"0.6609176",
"0.5859866",
"0.57753223",
"0.56977636",
"0.5628511",
"0.5562355",
"0.5554918",
"0.54977214",
"0.5370333",
"0.52800655",
"0.52603143",
"0.5190773",
"0.5184028",
"0.5175798",
"0.5165662",
"0.5162898",
"0.5158507",
"0.514156",
"0.51214284",
"0.5102667",
"0.5081157"... | 0.63405144 | 1 |
Retrieves a Set containing all the SubTypes of this type. | public Set<Type> getSubTypes() {
final Set<Type> subTypes = this.createSubTypes();
final Set<Type> merged = new HashSet<Type>();
merged.addAll(subTypes);
merged.addAll(this.getNewSubTypes());
return Collections.unmodifiableSet(merged);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType> listSubTypes()\r\n {\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.model.ResourceSubType>(getSemanticObject().listObjectProperties(swb_hasPTSubType));\r\n }",
"protected Set<NewType> getNewSubTypes... | [
"0.6938",
"0.6409062",
"0.63758713",
"0.63587266",
"0.63177735",
"0.62806183",
"0.6158806",
"0.6128004",
"0.6042865",
"0.59932035",
"0.5911043",
"0.5888018",
"0.5878145",
"0.58773625",
"0.5816781",
"0.5811705",
"0.57742673",
"0.57328576",
"0.57261115",
"0.567443",
"0.5673938"... | 0.81620663 | 0 |
Searches all NewTypes super type chain to determine if any of them are sub types of this type. | protected Set<NewType> getNewSubTypes() {
final Set<NewType> subTypes = new HashSet<NewType>();
final GeneratorContext context = this.getGeneratorContext();
final Iterator<NewType> newTypesIterator = context.getNewTypes().iterator();
while (newTypesIterator.hasNext()) {
final NewType newType = newTy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasAncestorOfType( Set<Type> types ) {\n PlanNode node = this.parent;\n while (node != null) {\n if (types.contains(node.getType())) return true;\n node = node.getParent();\n }\n return false;\n }",
"public boolean hasAncestorOfType( Type firstT... | [
"0.63780135",
"0.6274133",
"0.62661177",
"0.6161891",
"0.6104589",
"0.6056648",
"0.5941477",
"0.58896047",
"0.5867506",
"0.5836647",
"0.5770449",
"0.5726141",
"0.5715418",
"0.5711999",
"0.5672277",
"0.5669382",
"0.56660855",
"0.5660072",
"0.5650034",
"0.5627797",
"0.5626214",... | 0.71272343 | 0 |
if no input size, set the length to default capacity 10 | public MyHashTable() {
this(DefaultCapacity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLength( int length ) { setCapacity( length ); this.length = length; }",
"public void setCapacity(int capacity) \n {\n this.capacity = capacity;\n }",
"public void setCapacity(int capacity) {\r\n this.capacity = capacity;\r\n }",
"public void setCapacity(int capacity) {\r... | [
"0.7783638",
"0.7156674",
"0.70315456",
"0.7007444",
"0.69652975",
"0.68848306",
"0.67911243",
"0.67442596",
"0.6727801",
"0.6713393",
"0.66759795",
"0.66422695",
"0.66250473",
"0.6619041",
"0.6573649",
"0.6571781",
"0.6523965",
"0.6496779",
"0.6438271",
"0.6423865",
"0.64238... | 0.0 | -1 |
Inserts a new String value (word). Frequency of each word be stored too. | @Override
public void insert(String value) {
if (value == null)
return;
int hashVal = hashFunc(value);
boolean collisionFlag = false;
while (hashArray[hashVal] != null
&& !hashArray[hashVal].value.equals(deleted.value)) {
if (hashArray[hashVal].value.equals(value)) {
hashArray[hashVal].addFrequen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insert(String word) {\n if (word == null) {\n return;\n }\n if (value == null) {\n value = new ArrayList<>();\n }\n value.add(word);\n }",
"public void addWord(Word word);",
"public void add(String word) {\n if (hashTable.contains(w... | [
"0.7688912",
"0.72144145",
"0.7213174",
"0.71788293",
"0.71378654",
"0.71186084",
"0.7049097",
"0.70484006",
"0.69618887",
"0.69166887",
"0.6888228",
"0.6870703",
"0.6862145",
"0.6854306",
"0.6833996",
"0.680608",
"0.6796755",
"0.6783966",
"0.6778201",
"0.67690116",
"0.674640... | 0.0 | -1 |
Returns the size, number of items, of the hashTable | @Override
public int size() {
return this.numOfItems;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size(){\n\t\treturn hashTableSize;\n\t}",
"@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }",
"int table... | [
"0.8458409",
"0.75869054",
"0.7510713",
"0.74012244",
"0.7393358",
"0.73833656",
"0.7330012",
"0.7315013",
"0.72943395",
"0.7270337",
"0.72067696",
"0.7196728",
"0.7176687",
"0.71701276",
"0.71154714",
"0.7110193",
"0.71029884",
"0.7079042",
"0.70040846",
"0.69942474",
"0.698... | 0.66637766 | 53 |
Displays the values of the table If an index is empty, it shows If previously existed dataitem is deleted, then it should show DEL | @Override
public void display() {
StringBuilder string = new StringBuilder();
for (int i = 0; i < size; i++) {
if (hashArray[i] == null)
string.append("** ");
else if (hashArray[i] == deleted)
string.append(hashArray[i].value + " ");
else
string.append("[" + hashArray[i].value + ", "
+ h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void toDelete() {\n if(toCount()==0)\n {\n JOptionPane.showMessageDialog(rootPane,\"No paint detail has been currently added\");\n }\n else\n {\n String[] choices={\"Delete First Row\",\"Delete Last Row\",\"Delete With Index\"};\n int opti... | [
"0.6395166",
"0.629821",
"0.62369657",
"0.6192119",
"0.59820026",
"0.5963842",
"0.5960918",
"0.58999467",
"0.5896831",
"0.5889451",
"0.58803856",
"0.58759356",
"0.5814692",
"0.5758989",
"0.573828",
"0.5733981",
"0.5725912",
"0.5705807",
"0.56834036",
"0.5678027",
"0.567419",
... | 0.0 | -1 |
Returns true if value is contained in the table | @Override
public boolean contains(String key) {
int hashVal = hashFunc(key);
while (hashArray[hashVal] != null) {
if (hashArray[hashVal].value.equals(key))
return true;
else {
hashVal++;
hashVal = hashVal % size;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean containsValue(Object value) {\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry.getValue().equals(value)) {\n return true;\n }\n }\n }\n return false;\... | [
"0.7848039",
"0.77740353",
"0.7701036",
"0.7279734",
"0.71404374",
"0.70771724",
"0.69757134",
"0.6898187",
"0.6815053",
"0.67623276",
"0.6734054",
"0.67322856",
"0.6730478",
"0.67093617",
"0.6709278",
"0.66956353",
"0.6668521",
"0.6662629",
"0.6656008",
"0.66476804",
"0.6644... | 0.602037 | 89 |
Returns the number of collisions in relation to insert and rehash. When rehashing process happens, the number of collisions should be properly updated. The definition of collision is "two different keys map to the same hash value." Be careful with the situation where you could over count. Try to think as if you are usi... | @Override
public int numOfCollisions() {
return this.collision;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double collisionLength(){\n //count to keep track of how many words there are the chain\n int count = 0;\n for (int i = 0;i< tableSize;i++){\n if (hashTable[i] != null){\n LLNodeHash ptr = hashTable[i];\n //increments if there is an element\n if (ptr != null){\n c... | [
"0.65878165",
"0.6561125",
"0.6440728",
"0.6383598",
"0.6343925",
"0.6280659",
"0.6275627",
"0.62302357",
"0.6189843",
"0.6146221",
"0.61083806",
"0.6093392",
"0.60242504",
"0.60086286",
"0.599118",
"0.597796",
"0.59694445",
"0.59420735",
"0.5933409",
"0.5919773",
"0.59159386... | 0.6541205 | 2 |
Returns the hash value of a String | @Override
public int hashValue(String value) {
return hashFunc(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int stringHash(String str) {\r\n return str.hashCode();\r\n }",
"public static final String hash(final String string) {\n\t\treturn Hex.fromByteArray(digest(string));\n\t}",
"public static long stringHashCode(String string){\r\n\t\t// return number value if number, otherwise use string ... | [
"0.76360583",
"0.76004016",
"0.74794495",
"0.74531597",
"0.74361724",
"0.74361724",
"0.74139684",
"0.74117726",
"0.73611206",
"0.73438865",
"0.72990483",
"0.72954667",
"0.7292722",
"0.72729105",
"0.72580236",
"0.7248244",
"0.7177267",
"0.7147718",
"0.7114761",
"0.7073197",
"0... | 0.6968384 | 26 |
Returns the frequency of a key String | @Override
public int showFrequency(String key) {
int hashVal = hashFunc(key);
while (hashArray[hashVal] != null) {
if (hashArray[hashVal].value.equals(key))
return hashArray[hashVal].frequency;
else {
hashVal++;
hashVal = hashVal % size;
}
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Integer getFrequency(String key) {\n\t\t\n\t\ttry{\n\t\t\tif(key != null && key.trim().length() > 0)\n\t\t\t\tfrequencyMap.put(key.toString().toLowerCase(), WordplayUtil.getCount(key.toString().toLowerCase(), frequencyMap) + 1);\n\t\t\t\n\t\t\treturn WordplayUtil.getCount(key.toString().toLowerCase(), freq... | [
"0.74213576",
"0.703",
"0.6896769",
"0.6744005",
"0.6651121",
"0.6645274",
"0.6437453",
"0.64259523",
"0.6352298",
"0.634539",
"0.6329301",
"0.6310867",
"0.6205188",
"0.6139937",
"0.6114965",
"0.609556",
"0.60829365",
"0.605461",
"0.6022397",
"0.5965699",
"0.59615844",
"0.5... | 0.73028636 | 1 |
Removes and returns removed value | @Override
public String remove(String key) {
int hashVal = hashFunc(key);
while (hashArray[hashVal] != null) {
if (hashArray[hashVal].value.equals(key)) {
hashArray[hashVal] = deleted;
this.numOfItems--;
return key;
}
hashVal++;
hashVal = hashVal % size;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T remove(T value){\n\t return value;\n\t}",
"@Override\n public T remove() {\n //make sure there is something in the set\n if (first == null)\n return null;\n //make a reference to the data in the first node, then\n //update the reference to the second node\n ... | [
"0.77692723",
"0.7353849",
"0.71502644",
"0.7046955",
"0.7035093",
"0.69936997",
"0.6978813",
"0.6918981",
"0.6876625",
"0.68688947",
"0.6837228",
"0.6817185",
"0.6792499",
"0.67194396",
"0.6718056",
"0.66975605",
"0.6697173",
"0.6697173",
"0.6695336",
"0.6690667",
"0.6687678... | 0.6617716 | 31 |
/ Instead of using String's hashCode, you are to implement your own here, taking the table length into your account. In other words, you are to combine the following two steps into one step here. 1. converting Object into integer value 2. compress into the table using modular hashing Helper method to hash a string for ... | private int hashFunc(String input) {
BigInteger value = BigInteger.valueOf(0);
BigInteger k2 = new BigInteger("27");
char c = input.charAt(0);
long i1 = (int) c - 96;
BigInteger k1 = new BigInteger("0");
k1 = k1.add(BigInteger.valueOf(i1));
value = k1;
for (int i = 1; i < input.length(); i++) {
cha... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }",
"public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the v... | [
"0.73335344",
"0.7329048",
"0.71630824",
"0.7145805",
"0.70812964",
"0.69945747",
"0.6977955",
"0.69482696",
"0.6945036",
"0.6892466",
"0.68552214",
"0.68276584",
"0.679012",
"0.67862296",
"0.67858016",
"0.67837435",
"0.6754502",
"0.67117417",
"0.66700006",
"0.6659458",
"0.66... | 0.71327114 | 4 |
doubles array length and rehash items whenever the load factor is reached | private void rehash() {
int oldSize = this.size;
int newSize = size * 2;
while (!isPrime(newSize))
newSize++;
this.size = newSize;
DataItem[] newHashArray = new DataItem[newSize];
String temp;
this.collision = 0;
Boolean repeatValue;
for (int i = 0; i < oldSize; i++) {
if (hashArray[i] != null &... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void rehash( )\n {\n HashEntry<AnyType> [ ] oldArray = array;\n\n // Create a new double-sized, empty table\n allocateArray( 2 * oldArray.length );\n occupied = 0;\n theSize = 0;\n\n // Copy table over\n for( HashEntry<AnyType> entry : oldArray )\... | [
"0.7486491",
"0.74441755",
"0.72908145",
"0.71931267",
"0.71269023",
"0.7040784",
"0.701818",
"0.69817734",
"0.6957143",
"0.6917363",
"0.6879119",
"0.66765857",
"0.6637685",
"0.66324204",
"0.6629219",
"0.6484063",
"0.64828366",
"0.64341253",
"0.6427248",
"0.63999903",
"0.6379... | 0.7416668 | 2 |
To judge if the input argument is a prime | private boolean isPrime(int n) {
if (n == 1 || n == 2)
return true;
for (int i = 2; i < n; i++) {
if (n % i == 0)
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber... | [
"0.7565909",
"0.7488154",
"0.7477011",
"0.74352485",
"0.7373716",
"0.7308728",
"0.7296629",
"0.71905655",
"0.71792185",
"0.71726376",
"0.7159884",
"0.7152485",
"0.7121019",
"0.7095414",
"0.70857906",
"0.7076528",
"0.70572746",
"0.70475596",
"0.70386267",
"0.70323217",
"0.7024... | 0.676152 | 82 |
Create a new index. | public static Index create(String name, Path path) {
try {
Files.createDirectory(path.resolve(INDEX));
return new Index(name, path);
} catch (IOException e) {
throw new IOFailureException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IndexCreated createIndex(String name, Index index) throws ElasticException;",
"public void createIndex(Index index) {\n Span span = this.tracer.buildSpan(\"Client.CreateIndex\").start();\n try {\n String path = String.format(\"/index/%s\", index.getName());\n String body = ind... | [
"0.82238764",
"0.8012089",
"0.76708674",
"0.7598021",
"0.7363838",
"0.71683645",
"0.71494126",
"0.71345735",
"0.70810026",
"0.70685464",
"0.703629",
"0.7026257",
"0.70053536",
"0.6987003",
"0.696246",
"0.69228977",
"0.6847379",
"0.67802125",
"0.67750895",
"0.675042",
"0.67347... | 0.6806283 | 17 |
Open an existing index. | public static Index open(String name, Path path) {
if (!Files.isDirectory(path.resolve(INDEX))) {
throw new InvalidRepositoryPathException();
}
try {
return new Index(name, path);
} catch (IOException ex) {
throw new IOFailureException(ex);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void openIndex(String indexPath) throws IOException {\n\n }",
"public BlackLabIndex open(File indexDir) throws ErrorOpeningIndex {\n IndexType indexType = determineIndexType(indexDir, false, null);\n return indexType == IndexType.INTEGRATED ?\n new BlackLabIndexIntegrated(index... | [
"0.7906452",
"0.7350712",
"0.6301282",
"0.62375313",
"0.61825526",
"0.609073",
"0.6071517",
"0.6052747",
"0.6028769",
"0.59834015",
"0.59511495",
"0.5945217",
"0.5925528",
"0.5880764",
"0.58805424",
"0.58685803",
"0.5861093",
"0.58418584",
"0.5819303",
"0.5802937",
"0.5798076... | 0.66857326 | 2 |
Delete all index entry about content which hash is supplied. | public void delete(Hash hash) {
LOG.info("[{}] Deleting {}", name, hash);
try (IndexWriter writer = newIndexWriter()) {
writer.deleteDocuments(new Term(CONTENT, hash.asHexadecimalString()));
} catch (AlreadyClosedException e) {
throw new RepositoryClosedException(e);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delete(DNA key){\n if(this.debug)\n System.out.println(\"ExtHash::delete >> eliminando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n Node actual_node = this.getReference(key);\n if(this.debug)\n System.out.println(\"ExtHash::delete >> a... | [
"0.6642085",
"0.6384021",
"0.6206181",
"0.61955273",
"0.61683327",
"0.6039999",
"0.59916955",
"0.5891641",
"0.5863851",
"0.5831862",
"0.58251333",
"0.58248395",
"0.57847506",
"0.57477474",
"0.56468713",
"0.56368566",
"0.5626031",
"0.561454",
"0.55462027",
"0.5539186",
"0.5518... | 0.75364566 | 0 |
Find index entries matching supplied query. | public List<IndexEntry> find(String query, int first, int number) {
try {
if (first < 0) {
number += first;
first = 0;
}
if (directory.listAll().length == 0 || number <= 0) {
return emptyList();
}
try (Di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes ... | [
"0.6569648",
"0.59964436",
"0.5959943",
"0.5903702",
"0.5901785",
"0.5828981",
"0.5763122",
"0.5752616",
"0.5733745",
"0.56517303",
"0.56197613",
"0.55438644",
"0.5538378",
"0.55149883",
"0.551374",
"0.5497282",
"0.5490477",
"0.5429858",
"0.5392643",
"0.5384031",
"0.5375636",... | 0.63946354 | 1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
ip = ((JComboBox) e.getSource()).getSelectedItem().toString();
ok.setEnabled(true);
System.out.println(ip);
} | {
"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 actionPerformed(ActionEvent e) {
JButton button = (JButton) e.getSource();
if (button.getText().toString().equals("OK")) {
this.dispose();
}
else {
ip = null;
this.dispose();
}
} | {
"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 |
The decrease factor of the cost if the treshold is not being surprassed, the cost won't go lower than the BASE value of 1.0 | public static void increaseCostCorrection() {
COST_CORRECTION_CPU_CURRENT *= COST_CORRECTION_FACTOR_INCREASE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getCostReduction();",
"private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }",
"protected static void adaptivaeThresholdCalc() {\n\t\tif (triggerCount > 3) {\n\t\t\tthreshold /= 0.9;\n\t\t\t// Log.d(\"visualizer\", \"threshold up to \" + threshold)... | [
"0.6572081",
"0.648289",
"0.6253565",
"0.6124979",
"0.6124558",
"0.6043593",
"0.59904265",
"0.5966345",
"0.59575784",
"0.5939617",
"0.59300625",
"0.59186953",
"0.58572453",
"0.585062",
"0.58438224",
"0.5827541",
"0.5791536",
"0.57899445",
"0.5784326",
"0.5760443",
"0.5748584"... | 0.5792595 | 16 |
Used to instruct the autoscaler to not try to synchronize this instance as an EC2 web server instance | public static String initLbInstanceId() {
try {
String url = "http://169.254.169.254/latest/meta-data/instance-id";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void requestStopInstance() {\n\t\tif (!isStarted.get() && !enableRequested.get()) {\n\t\t\tLOGGER.error(\"requestStopInstance: Instance not started - ignoring request\");\n\t\t\treturn;\n\t\t}\n\t\tenableRequested.set(false);\n\t\tstopRequested.set(true);\n\t\tsynchronized (lockPeerChange) {\n\... | [
"0.5544189",
"0.5521636",
"0.542355",
"0.53777915",
"0.5319651",
"0.5283286",
"0.5221594",
"0.5172044",
"0.51257414",
"0.5119762",
"0.5111111",
"0.5095569",
"0.50902575",
"0.5088011",
"0.50874984",
"0.5076552",
"0.5068531",
"0.50536954",
"0.50531816",
"0.5039922",
"0.5027964"... | 0.49757573 | 33 |
List a = Collections.singletonList("a"); List statusList = new ArrayList(); statusList.add(1); statusList.add(2); statusList.add(4); statusList.add(5); statusList.stream().filter(integer > integer != 4); System.out.println(statusList); | public static void main(String[] args) {
List<Integer> a = range(3, 19).mapToObj(Integer::valueOf).collect(toList());
a.sort((x, y) -> (x - y));
// System.out.println(a);
List<List<String>> QUICK_THREE_OPTIONS = new ArrayList<>();
//空 0
QUICK_THREE_OPTIONS.add(new Array... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String []args) {\n\t\tList<String> numbers = Arrays.asList(\"1\", \"2\", \"3\", \"4\", \"5\", \"6\",\"7\",\"8\",\"9\");\r\n\t\t//Generate numbers from 1 to 9\r\n\t\tSystem.out.println(IntStream.range(1,10).mapToObj(String::valueOf).collect(Collectors.toList()));\r\n//\t\tSystem.out.println(... | [
"0.66353834",
"0.64699864",
"0.6418068",
"0.6383631",
"0.629091",
"0.62564176",
"0.62350416",
"0.61828434",
"0.6158557",
"0.6001871",
"0.5928358",
"0.58988875",
"0.583552",
"0.5761569",
"0.5733371",
"0.57117015",
"0.56964755",
"0.5654736",
"0.56342965",
"0.56159645",
"0.55982... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
int totalePrijs;
System.out.println("Hoeveel wilt u kopen?");
int aantal = keyboard.nextInt();
System.out.println("Hoeveel kost het per stuk?");
int prijsPerEenheid = keyboard.nextInt();
totalePrijs = aantal * prijsPer... | {
"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 |
/ renamed from: aSy | final void a() {
if (this.jGU.getActionBar() != null) {
Bundle bundle = new Bundle();
bundle.putBoolean("close_window_confirm_dialog_switch", true);
bundle.putString("close_window_confirm_dialog_title_cn", this.fcq.getString(R.l.webview_jssdk_video_uploading_tips));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo1639a(ayl ayl);",
"public String mangle(String sName);",
"public void nameAnalysis(SymTable symTab) { }",
"abstract public SemSym nameAnalysis(SymTable symTab);",
"public SymTable\ngetSymTable();",
"java.lang.String getS2();",
"public interface C0237a {\n /* renamed from: a */\n vo... | [
"0.60094106",
"0.6002409",
"0.59559953",
"0.5943237",
"0.566128",
"0.5647113",
"0.55899745",
"0.5557934",
"0.5512828",
"0.55033755",
"0.54872984",
"0.54740596",
"0.54740596",
"0.54497975",
"0.5445669",
"0.5425387",
"0.54093146",
"0.5403988",
"0.5387015",
"0.5385978",
"0.53704... | 0.0 | -1 |
do something on back. | public void onBackPressed() {
Toast.makeText(getActivity().getApplicationContext(), "Back pressed", Toast.LENGTH_SHORT).show();
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void back() {\n callFunction(\"back\");\n }",
"public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"public void back() {\n\t\tstate.back();\n\t}",
"@Override\n public void goBack() {\n\n ... | [
"0.81376904",
"0.7967265",
"0.788446",
"0.77117735",
"0.76822543",
"0.76543164",
"0.7544517",
"0.7465819",
"0.74631053",
"0.74084765",
"0.73610175",
"0.7322638",
"0.7194461",
"0.7170107",
"0.7130054",
"0.710408",
"0.7073428",
"0.7048278",
"0.7035141",
"0.7031213",
"0.6990377"... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246451",
"0.7201833",
"0.7195169",
"0.7176824",
"0.71071094",
"0.7039687",
"0.70379424",
"0.7011622",
"0.70095545",
"0.69799995",
"0.6945173",
"0.69389343",
"0.6933555",
"0.69172555",
"0.69172555",
"0.68906796",
"0.688355",
"0.687496",
"0.6874772",
"0.68613136",
"0.686131... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79046476",
"0.7805623",
"0.7766615",
"0.77274555",
"0.7632045",
"0.76220745",
"0.75848633",
"0.7531134",
"0.74884325",
"0.74575055",
"0.74575055",
"0.74388313",
"0.74218154",
"0.7403308",
"0.7391667",
"0.7386889",
"0.73792624",
"0.73705244",
"0.7362704",
"0.7355958",
"0.73... | 0.0 | -1 |
Instantiates a new visualization style datatype change event. | public VisualizationStyleDatatypeChangeEvent(String dtiKey, Class<? extends VisualizationSupport> mgsClass,
VisualizationStyle oldStyle, VisualizationStyle newStyle, boolean newIsDefault, Object source)
{
myDTIKey = dtiKey;
myMGSClass = mgsClass;
myOldStyle = oldStyle;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"VisualizationAttribute createVisualizationAttribute();",
"@Override\n public String getType() {\n return \"Color change\";\n }",
"public abstract TC createStyle();",
"public VisualizationStyle getNewStyle()\r\n {\r\n return myNewStyle;\r\n }",
"public VisualizationStyleParameterChangeEven... | [
"0.5399355",
"0.53940237",
"0.51531756",
"0.51486385",
"0.50781626",
"0.50185513",
"0.49961916",
"0.4988988",
"0.49605373",
"0.4941747",
"0.48811182",
"0.48421803",
"0.48131946",
"0.47960234",
"0.4793008",
"0.47505045",
"0.47257826",
"0.47139195",
"0.471344",
"0.47101974",
"0... | 0.68439716 | 0 |
Gets the dTI key. | public String getDTIKey()
{
return myDTIKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getKey(){\n\t\treturn key;\n\t}",
"public String getTdKey() {\r\n return tdKey;\r\n }",
"public static String getKey() {\t\t\n\t\treturn key;\n\t}",
"public String getKey() {\r\n return getAttribute(\"id\");\r\n }",
"public String getKey() {\n\t\treturn id + \"\";\... | [
"0.7295781",
"0.7282687",
"0.7269462",
"0.71298474",
"0.711567",
"0.709184",
"0.70750225",
"0.70750225",
"0.70750225",
"0.7067739",
"0.70514905",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
"0.7048292",
... | 0.84866697 | 1 |
Gets the mgs class. | public Class<? extends VisualizationSupport> getMGSClass()
{
return myMGSClass;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getGodClass()\r\n {\r\n return mGodClass;\r\n }",
"public java.lang.String getMDCLASS() {\n return MDCLASS;\n }",
"Class getGmMacroClass();",
"public Class<? extends Geometry> getTargetClass() {\n\n\t\tint index = comboGeometryList.getSelectionIndex();\n\t\tString geomNam... | [
"0.70668346",
"0.68255824",
"0.67910945",
"0.66122025",
"0.6570823",
"0.65655375",
"0.65630525",
"0.65580404",
"0.6537107",
"0.65347046",
"0.65347046",
"0.6516674",
"0.6516674",
"0.65133184",
"0.6509493",
"0.6494341",
"0.64922744",
"0.64556134",
"0.64546144",
"0.6447395",
"0.... | 0.81206435 | 0 |
Gets the new style. | public VisualizationStyle getNewStyle()
{
return myNewStyle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Style getStyle();",
"public String getStyleNew() {\n return (String) getAttributeInternal(STYLENEW);\n }",
"public VisualizationStyle getOldStyle()\r\n {\r\n return myOldStyle;\r\n }",
"public String getStyle() {\r\n return style;\r\n }",
"public String getStyle() {\n ... | [
"0.80037445",
"0.7916811",
"0.78532344",
"0.7837553",
"0.778576",
"0.778576",
"0.778576",
"0.778576",
"0.77640754",
"0.77362293",
"0.7704955",
"0.7626065",
"0.7540812",
"0.7477853",
"0.7436393",
"0.7294325",
"0.7213739",
"0.7148834",
"0.69813746",
"0.6934046",
"0.69283116",
... | 0.85217655 | 0 |
Gets the old style. | public VisualizationStyle getOldStyle()
{
return myOldStyle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStyleNew() {\n return (String) getAttributeInternal(STYLENEW);\n }",
"public VisualizationStyle getNewStyle()\r\n {\r\n return myNewStyle;\r\n }",
"public String getCurrentStyle() {\n modifyStyleIfRequested();\n return currentStyle;\n }",
"public int g... | [
"0.756048",
"0.7420421",
"0.7403218",
"0.7142423",
"0.71419495",
"0.71257395",
"0.70921385",
"0.70921385",
"0.70921385",
"0.70921385",
"0.70684415",
"0.69626796",
"0.69529265",
"0.6928127",
"0.6869211",
"0.67265046",
"0.6688211",
"0.6589814",
"0.65577173",
"0.6442102",
"0.640... | 0.86112773 | 0 |
Checks if is new is default style. | public boolean isNewIsDefaultStyle()
{
return myNewIsDefaultStyle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDefault() {\r\n\treturn bgclip == border;\r\n }",
"private void setStyleToDefault() {\n // enable syntax highlighting\n commandTextField.enableSyntaxHighlighting();\n }",
"public static Style getDefault() { return Style.SHAPE; }",
"public final boolean h... | [
"0.6465549",
"0.607145",
"0.6057712",
"0.5945236",
"0.5934167",
"0.5890563",
"0.5862565",
"0.58523047",
"0.58523047",
"0.58413583",
"0.58318514",
"0.57680535",
"0.574812",
"0.5659577",
"0.5655217",
"0.5616532",
"0.5610897",
"0.558511",
"0.55355924",
"0.54839015",
"0.54640174"... | 0.83251965 | 0 |
Checks if is type specific change. | public boolean isTypeSpecificChange()
{
return myDTIKey != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isChangeType()\n {\n return hasChanges;\n }",
"public boolean isTypeModified() {\n return type_is_modified; \n }",
"public abstract boolean isTypeCorrect();",
"public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }",
"public boolean hasStatusChanged()... | [
"0.7118445",
"0.6371258",
"0.62059873",
"0.6185016",
"0.6139601",
"0.605831",
"0.60529065",
"0.60505635",
"0.5960412",
"0.5891118",
"0.58900136",
"0.58054656",
"0.57938004",
"0.5757483",
"0.5732489",
"0.57241315",
"0.57076335",
"0.5703018",
"0.5688795",
"0.56740135",
"0.56304... | 0.7736298 | 0 |
Retrieve balances of the account | @POST
@Path("transfer")
BiboxSingleResponse<BiboxAssetsResult> assets(
@FormParam(FORM_CMDS) String cmds,
@FormParam(FORM_APIKEY) String apiKey,
@FormParam(FORM_SIGNATURE) ParamsDigest signature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBalances() {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getbalances\");\n\t}",
"@RequestMapping(value = \"/balance\", method = RequestMethod.GET)\r\n public List<BigDecimal> getBalances(Principal principal) {\r\n try {\r\n return accountDAO.getCurrentBalance(principal.get... | [
"0.7662915",
"0.7469268",
"0.74636555",
"0.7243607",
"0.70757926",
"0.707035",
"0.6997539",
"0.69716257",
"0.69716257",
"0.6968583",
"0.69478154",
"0.69378805",
"0.69378805",
"0.6925359",
"0.6891448",
"0.6881734",
"0.6879161",
"0.6857811",
"0.6857811",
"0.68410015",
"0.684085... | 0.0 | -1 |
Get deposit address for coin | @POST
@Path("transfer")
BiboxSingleResponse<String> depositAddress(
@FormParam(FORM_CMDS) String cmds,
@FormParam(FORM_APIKEY) String apiKey,
@FormParam(FORM_SIGNATURE) ParamsDigest signature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDepositAddres(String currency) {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getdepositaddress\", returnCorrectMap(\"currency\", currency));\n\t}",
"public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}",
"java... | [
"0.6254272",
"0.6222106",
"0.61645716",
"0.61645716",
"0.61645716",
"0.61645716",
"0.61645716",
"0.61645716",
"0.6144745",
"0.6116888",
"0.6116888",
"0.6073217",
"0.6033031",
"0.6033031",
"0.6021582",
"0.59930253",
"0.59589624",
"0.59498006",
"0.5945679",
"0.59370947",
"0.592... | 0.58413744 | 31 |
Create an order (market/limit) | @POST
@Path("orderpending")
BiboxSingleResponse<String> trade(
@FormParam(FORM_CMDS) String cmds,
@FormParam(FORM_APIKEY) String apiKey,
@FormParam(FORM_SIGNATURE) ParamsDigest signature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new ... | [
"0.7367551",
"0.73161364",
"0.67303",
"0.65390426",
"0.6517796",
"0.648031",
"0.64096564",
"0.63668734",
"0.63661027",
"0.62914497",
"0.6270211",
"0.62699986",
"0.6249967",
"0.6238079",
"0.62216085",
"0.6192217",
"0.6179698",
"0.6159904",
"0.6111856",
"0.6110566",
"0.6063676"... | 0.0 | -1 |
Obtain open order list / order history | @POST
@Path("orderpending")
BiboxSingleResponse<BiboxOrders> orderPendingList(
@FormParam(FORM_CMDS) String cmds,
@FormParam(FORM_APIKEY) String apiKey,
@FormParam(FORM_SIGNATURE) ParamsDigest signature); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Order> getOrderHistory();",
"List<Order> getOpenOrders(OpenOrderRequest orderRequest);",
"List<Order> getHistoryOrders(HistoryOrderRequest orderRequest);",
"public String getOpenOrders() {\n\n\t\treturn getOpenOrders(\"\");\n\t}",
"public String getOrderHistory() {\n\n\t\treturn getOrderHistory... | [
"0.7891546",
"0.7296336",
"0.72822",
"0.67100304",
"0.6627718",
"0.62490386",
"0.62301135",
"0.6155328",
"0.6124729",
"0.6078372",
"0.60302734",
"0.60114586",
"0.6004378",
"0.59568626",
"0.5948878",
"0.59288836",
"0.59239626",
"0.59094363",
"0.5867166",
"0.5818587",
"0.581232... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
String filePath="configs\\Task.properties";
FileInputStream fis=new FileInputStream(filePath);
Properties prop=new Properties();
prop.load(fis);
String browser=prop.getProperty("browser");
String url=prop.getProperty("url");
Syst... | {
"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 |
test Polynom() default constructor ; | @Test
void testPolynomConstructor() {
Iterator<Monom>it=polynomEx.iteretor();
assertFalse("Checks that the polynom's arrayList is null:",it.hasNext());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PerezosoTest()\n {\n }",
"public RtpPacketTest() {\n\n\t}",
"public Produto() {}",
"public Promo(){\n}",
"public DefaultSimplePolicyValueTestAbstract() {\n }",
"public Potencial() {\r\n }",
"public HawthornWandBehaviorTest() {\n \n }",
"public Orbiter() {\n }",
"publ... | [
"0.66022253",
"0.6532459",
"0.6489505",
"0.64665014",
"0.6357961",
"0.6325732",
"0.62877905",
"0.618593",
"0.6182368",
"0.61819565",
"0.6181536",
"0.6155789",
"0.6144796",
"0.6144302",
"0.61280215",
"0.61278826",
"0.61271423",
"0.6124504",
"0.61050075",
"0.6102595",
"0.607907... | 0.651608 | 2 |
The only entrance for update routing rules step 1) delete all rule nodes from zk step 2) create all rule nodes on zk | public static void main(String args[]) {
try {
ConfigurationContext.loadYamlClientConfig();
new ZookeeperMonicaClient().start();
ConfigurationContext.loadYamlClientConfig();
UpdateRulesMain main = new UpdateRulesMain();
main.deleteRules();
main.storeRules();
} catch (Exception e) {
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"sync/rules\")\n public Response syncRules() {\n\n KubevirtNodeAdminService service = get(KubevirtNodeAdminService.class);\n\n service.completeNodes(WORKER).forEach(this::syncRulesBase);\n return ok(mapper().createObjectNode()).bui... | [
"0.5860765",
"0.58574283",
"0.5672602",
"0.5643731",
"0.5525514",
"0.5471143",
"0.5406749",
"0.53783536",
"0.53752136",
"0.53247905",
"0.53112876",
"0.5268452",
"0.5262559",
"0.5254215",
"0.52379096",
"0.52082896",
"0.51954526",
"0.5178041",
"0.5158061",
"0.51570505",
"0.5156... | 0.0 | -1 |
To read and return username | public String user_id(int a) throws IOException {
FileInputStream fil = new FileInputStream(new File(""));
XSSFWorkbook workbook = new XSSFWorkbook(fil);
XSSFSheet sheet=workbook.getSheet("Sheet1");
int count=sheet.getLastRowNum();
System.out.println(count);
XSSFRow... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String getUsername();",
"java.lang.String ge... | [
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.86455095",
"0.8367106",
"0.8367106",
"0.8367106",
"0.8237511",
"0.8195579",
"0.8195579",
"0.8195579",
"0.8195579",
"0.8195579",
"0.8195579",
"0.8079429",
"0.8079... | 0.0 | -1 |
To read and return password | public String password(int a) throws IOException {
FileInputStream fil = new FileInputStream(new File("C:\\Users\\BLTuser.BLT147\\Desktop\\Demo\\TestFramework\\src\\test\\resources\\Testdata\\testdata.xlsx"));
XSSFWorkbook workbook = new XSSFWorkbook(fil);
XSSFSheet sheet=workbook.getSheet("Sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"java.lang.String getPassword();",
"String getPassword();",
"String getPassword();",
"St... | [
"0.8500434",
"0.8500434",
"0.8500434",
"0.8500434",
"0.8500434",
"0.8500434",
"0.8500434",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.8264952",
"0.82554126",
"0.8127172",
"0.80266345",
"0.80266345",
"0.78799635",... | 0.0 | -1 |
To read and return lastname | public String lastname(int a) throws IOException {
FileInputStream fil = new FileInputStream(new File("C:\\Users\\BLTuser.BLT147\\Desktop\\Demo\\TestFramework\\src\\test\\resources\\Testdata\\testdata.xlsx"));
XSSFWorkbook workbook = new XSSFWorkbook(fil);
XSSFSheet sheet=workbook.getSheet("Sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getLastName();",
"java.lang.String getLastName();",
"String getLastName();",
"String getLastName();",
"public java.lang.String getLastName();",
"public String getLastName();",
"public String getLastname() {\n return (String) get(\"lastname\");\n }",
"public String getLast_n... | [
"0.8397752",
"0.8397752",
"0.8271591",
"0.8271591",
"0.8202924",
"0.81339973",
"0.80001986",
"0.7823721",
"0.7807865",
"0.78006226",
"0.77971977",
"0.7775687",
"0.77705914",
"0.7766956",
"0.7757805",
"0.7724346",
"0.7724346",
"0.77231205",
"0.7708508",
"0.7699964",
"0.7682529... | 0.0 | -1 |
To read and return email | public String email(int a) throws IOException {
FileInputStream fil = new FileInputStream(new File("C:\\Users\\BLTuser.BLT147\\Desktop\\Demo\\TestFramework\\src\\test\\resources\\Testdata\\testdata.xlsx"));
XSSFWorkbook workbook = new XSSFWorkbook(fil);
XSSFSheet sheet=workbook.getSheet("Sheet... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String storedEmail(Context context) throws IOException {\n FileInputStream fis = context.openFileInput(\"email\");\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(fis));\n return in.readLine();\n } finally {\n ... | [
"0.7339799",
"0.7292601",
"0.7292601",
"0.7292601",
"0.7292601",
"0.7292601",
"0.7292601",
"0.7248349",
"0.687675",
"0.6867777",
"0.6845681",
"0.6845681",
"0.6845681",
"0.6845681",
"0.6845681",
"0.67426205",
"0.668665",
"0.6657711",
"0.66377145",
"0.66060585",
"0.65910274",
... | 0.0 | -1 |
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() {
jPanel1 = new javax.swing.JPanel();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel2 = new javax.swing.JPanel();
jLabel1 ... | {
"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.7319396",
"0.7290941",
"0.7290941",
"0.7290941",
"0.7285927",
"0.7248002",
"0.72139066",
"0.72086275",
"0.71958303",
"0.718997",
"0.7184516",
"0.7159095",
"0.71481097",
"0.709288",
"0.70806605",
"0.70578784",
"0.6986726",
"0.6977067",
"0.6955257",
"0.6954392",
"0.6945326",... | 0.0 | -1 |
1. get all entries when Near Cache is full, so some values will come from Near Cache | private void assertNoStaleDataExistInNearCache(IMap<Integer, Integer> map) {
Map<Integer, Integer> fromNearCache = getAllEntries(map);
// 2. clear Near Cache
((NearCachedMapProxyImpl) map).getNearCache().clear();
// 3. get all values when Near Cache is empty, these requests
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testCoh3710_getAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n assertEquals(NullImplementation.getMap(),\n getNamedCache(getCacheName0()).getAll(\n Collections.... | [
"0.65810615",
"0.6528426",
"0.6399268",
"0.62748677",
"0.6138358",
"0.6067242",
"0.6035883",
"0.60034835",
"0.59748125",
"0.59641874",
"0.593153",
"0.5887047",
"0.5862805",
"0.58544034",
"0.5851814",
"0.5816557",
"0.5794551",
"0.57733196",
"0.5722419",
"0.57187647",
"0.570062... | 0.58270836 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.