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 |
|---|---|---|---|---|---|---|
Queries whether should render the specified pass or not. | protected int shouldRenderPass(EntityLivingBase par1EntityLivingBase, int par2, float par3)
{
return this.func_82447_a((EntitySpiritWolf)par1EntityLivingBase, par2, par3);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic final boolean canRenderInPass( int pass )\n\t{\n\t\tRenderers.currentRenderPass = pass;\n\n\t\t// We render during both passes\n\t\treturn true;\n\t}",
"public boolean isPass() \n{\n\tif (this.pass) \n\t{\n\t\treturn true;\n\t}\n\telse \n\t{\n\t\treturn false;\n\t}\n}",
"boolean hasPass();"... | [
"0.72504854",
"0.66439074",
"0.63826567",
"0.63826567",
"0.6055308",
"0.5752741",
"0.5658031",
"0.56251323",
"0.560661",
"0.5604034",
"0.55590755",
"0.5543458",
"0.5442489",
"0.5426689",
"0.5413997",
"0.53641886",
"0.53613824",
"0.5193841",
"0.5161355",
"0.5161355",
"0.512203... | 0.6332103 | 4 |
Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: entityLiving, partialTickTime | protected void preRenderCallback(EntityLivingBase par1EntityLivingBase, float par2){
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void preRenderCallback(EntitySentientSpecter entitylivingbaseIn, float partialTickTime)\n {\n float f = 0.9375F;\n GlStateManager.scale(0.9375F, 0.9375F, 0.9375F);\n }",
"public void afterRender(T entity, float partialTicks)\n {\n // No default behaviour\n }",
"public... | [
"0.68392295",
"0.6717313",
"0.64298844",
"0.6402979",
"0.63936275",
"0.62400645",
"0.6172357",
"0.61009157",
"0.6097884",
"0.6052275",
"0.59932417",
"0.58739215",
"0.5766924",
"0.5721262",
"0.57109845",
"0.5701763",
"0.569012",
"0.56899184",
"0.5632428",
"0.5594924",
"0.55596... | 0.50870687 | 59 |
This is overridden to allow transparent stuff to happen. | @Override
public void doRender(EntityLivingBase par1EntityLivingBase, double par2, double par4, double par6, float par8, float par9)
{
if (MinecraftForge.EVENT_BUS.post(new RenderLivingEvent.Pre(par1EntityLivingBase, this, par2, par4, par6))) return;
GL11.glPushMatrix();
GL11.glDisable(G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean isOpaque() {\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096... | [
"0.6782364",
"0.66514176",
"0.6509575",
"0.6252738",
"0.6206375",
"0.61939687",
"0.6188789",
"0.6188789",
"0.6141817",
"0.6122305",
"0.6108997",
"0.610759",
"0.60477567",
"0.601463",
"0.5984016",
"0.5975789",
"0.5946111",
"0.59255177",
"0.5918011",
"0.5910088",
"0.5901404",
... | 0.0 | -1 |
Returns a rotation angle that is inbetween two other rotation angles. par1 and par2 are the angles between which to interpolate, par3 is probably a float between 0.0 and 1.0 that tells us where "between" the two angles we are. Example: par1 = 30, par2 = 50, par3 = 0.5, then return = 40 | private float interpolateRotation(float par1, float par2, float par3)
{
float f3;
for (f3 = par2 - par1; f3 < -180.0F; f3 += 360.0F)
{
;
}
while (f3 >= 180.0F)
{
f3 -= 360.0F;
}
return par1 + par3 * f3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double betweenAngle(Coordinates a, Coordinates b, Coordinates origin);",
"public double betweenAngle(Coordinates vectorA, Coordinates vectorB);",
"public float calculateCelestialAngle(long par1, float par3)\n {\n return 0.5F;\n }",
"public static float getAngleBetween(PVector p1, PVector ... | [
"0.6707381",
"0.6194593",
"0.61437815",
"0.59563506",
"0.5941784",
"0.59084404",
"0.58957344",
"0.5836285",
"0.5757889",
"0.5725171",
"0.55862796",
"0.55531025",
"0.54816103",
"0.54223406",
"0.5384145",
"0.538298",
"0.53667974",
"0.5356822",
"0.53238183",
"0.53238183",
"0.531... | 0.7950173 | 0 |
Defines what float the third param in setRotationAngles of ModelBase is | protected float handleRotationFloat(EntityLivingBase par1EntityLivingBase, float par2)
{
return this.getTailRotation((EntitySpiritWolf)par1EntityLivingBase, par2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z)\n {\n modelRenderer.rotateAngleX = x;\n modelRenderer.rotateAngleY = y;\n modelRenderer.rotateAngleZ = z;\n }",
"public void setRotateAngle(Cuboid modelRenderer, float x, float y, float z) {\n mo... | [
"0.6821111",
"0.6665894",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6592024",
"0.6545773",
"0.6517089",
"0.6517089",
"0.6517089",
"0.6517089",
"0.6517089",
"0.64916384",
"0.63971424",
... | 0.0 | -1 |
Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. | protected ResourceLocation getEntityTexture(Entity par1Entity)
{
return this.func_110914_a((EntitySpiritWolf)par1Entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ResourceLocation getEntityTexture(T entity) {\n return MINECART_TEXTURES;\n }",
"@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}",
"@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\... | [
"0.79711044",
"0.79647213",
"0.77431685",
"0.76755387",
"0.7663328",
"0.7662696",
"0.76282084",
"0.7539709",
"0.7494344",
"0.74855477",
"0.74532026",
"0.7426665",
"0.7415517",
"0.7409871",
"0.7359664",
"0.73163766",
"0.7268569",
"0.7265952",
"0.72362345",
"0.6902283",
"0.6721... | 0.73242056 | 15 |
METHOD 1: From home page, navigate to OpenHouses > Schedule page | public void goToOpenHousesSchedulePage() throws InterruptedException {
log.info("***** START TC: GO TO OPEN HOUSE > SCHEDULE PAGE *****");
WebElement openHouses = driver.findElement(parser.getObjectLocator("openHouses"));
openHouses.click();
log.info("LEFT NAVBAR: CLICKED ON OPENHOUSES");
Web... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showSchedule(View view) {\n Intent intent = new Intent(this, DisplaySchedule.class);\n startActivity(intent);\n }",
"public void launchMySchedule(View view) {\n\t\tIntent intent = new Intent(this, SessionDBActivity.class);\n\t\tintent.putExtra(android.content.Intent.EXTRA_TEXT, Sessi... | [
"0.6739115",
"0.6204467",
"0.6092732",
"0.6047274",
"0.6035716",
"0.5985838",
"0.59834594",
"0.59656286",
"0.5914174",
"0.5895082",
"0.58644456",
"0.57920873",
"0.5784169",
"0.57774484",
"0.57504106",
"0.5741535",
"0.57389957",
"0.57214856",
"0.5715761",
"0.5696286",
"0.56909... | 0.7596525 | 0 |
/ Create a class : RandomNameGenerator Step1: Ask user to enter his/her name //john walker Step2: Delete the spaces in the username//johnwalker Step3: Check if the username is already taken//list("sam","johnmary","johnwalker","johnwalker523463146") Step4: If there the username is not taken, then print: This username is... | public static void main(String[] args) {
//Create a list
List<String> userList = new ArrayList<>();
userList.add("John Walker");
userList.add("John Marry");
userList.add("samawalton");
userList.add("Juliebrown");
String myName="John Walker";
for(String name:userList) {
if(name.equalsI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String createUsername() {\r\n\t\tboolean complete = false;\r\n\t\tString username = \"\";\r\n\t\t\r\n\t\twhile(complete == false) {\r\n\t\t\tSystem.out.println(\"Please type a username (no spaces):\");\r\n\t\t\tusername = scan.nextLine();\r\n\t\t\t//us.checkExit(username);\r\n\t\t\t\r\n\t\t\tif(us.ch... | [
"0.73062795",
"0.72010267",
"0.7194189",
"0.67247105",
"0.66462874",
"0.66101557",
"0.66025066",
"0.6588563",
"0.6566017",
"0.64423674",
"0.64384234",
"0.6380018",
"0.6340342",
"0.62377673",
"0.6227234",
"0.6219644",
"0.62101597",
"0.6199687",
"0.618638",
"0.6182067",
"0.6174... | 0.64546293 | 9 |
sets the fill and state of the unit | public Burnt(Unit u) {
super(u);
setFill(COLOR);
state = BURNT_STATE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFill(boolean fill);",
"public void setFillArea(boolean b)\r\n/* 34: */ {\r\n/* 35: 26 */ this.fillArea = b;repaint();\r\n/* 36: */ }",
"@Override\n public void toggleFill() {\n // empty bc mock\n }",
"public void setFill(RMFill aFill)\n{\n if(RMUtils.equals(getFil... | [
"0.69530964",
"0.6848056",
"0.6765736",
"0.6657122",
"0.66411346",
"0.6625414",
"0.6530441",
"0.6418008",
"0.6284109",
"0.6262226",
"0.6197001",
"0.61736906",
"0.6102765",
"0.60717875",
"0.6012154",
"0.59263855",
"0.59223163",
"0.59010136",
"0.5872638",
"0.5850993",
"0.584704... | 0.5486712 | 55 |
Does the actual sending of the message. | private void doSend(Message message, boolean toAdmin)
throws IllegalArgumentException, IOException {
// Could perform basic checks to save on RPCs in case of missing args etc.
// I'm not doing this on purpose, to make sure the semantics of the two
// implementations stay the same.
// The benefit o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void send() {\n\t}",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public void send(Message msg);",
"@Override\n\tpublic void send(String msg... | [
"0.79142195",
"0.7679207",
"0.76249784",
"0.7539628",
"0.7459911",
"0.7430748",
"0.74270386",
"0.72873944",
"0.72773296",
"0.7267377",
"0.7178729",
"0.71455944",
"0.71442395",
"0.7105907",
"0.704085",
"0.70269537",
"0.6992767",
"0.6974188",
"0.6966563",
"0.69509625",
"0.69412... | 0.0 | -1 |
Default constructor for objects of the Component Class | public CityscapeComponent(int x)
{
numOfBuildings = x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Component() {\n }",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"public ComponentsFactory() {\n\t\tsuper();\n\t}",
"public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashM... | [
"0.8323128",
"0.74630386",
"0.73409",
"0.7277135",
"0.7228105",
"0.71976095",
"0.7184612",
"0.70406204",
"0.682758",
"0.68124384",
"0.6805517",
"0.68043864",
"0.6774173",
"0.67443705",
"0.67318714",
"0.67290974",
"0.67290974",
"0.6720151",
"0.66934747",
"0.66435814",
"0.66403... | 0.0 | -1 |
An observer interface to be implemented by observers who want to be notified when this task completes. | public interface Observer {
void logoutSuccessful(Response response);
void logoutUnsuccessful(Response response);
void handleException(Exception ex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TaskListener {\n void onFinished(boolean result);\n }",
"void onTaskCompleted(TaskResult taskResult);",
"public interface TaskCompleted {\n\tvoid onTaskComplete(String response, String type);\n}",
"void onTaskComplete(T result);",
"public interface OnTaskCompleted {\n ... | [
"0.73517203",
"0.71210665",
"0.7101161",
"0.7003658",
"0.6944547",
"0.6858034",
"0.68041617",
"0.6781953",
"0.67576313",
"0.67480516",
"0.67369723",
"0.6730978",
"0.6687175",
"0.6677769",
"0.6677769",
"0.66394776",
"0.6603913",
"0.65847194",
"0.65804166",
"0.6570854",
"0.6566... | 0.0 | -1 |
Create this object from an input text line. | private Line(String inLine) {
// Save the input line.
this.lineText = inLine;
// Get the number of fields in the line.
int nFields = labels.length;
// Normally, this will work.
this.fields = TabbedLineReader.this.splitLine(inLine);
// I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T parseLine(String inputLine);",
"public Record(String line)\t// create a record from a line\n\t{\n\t\tint i;\n\t\trecordMap = new HashMap<>(); \n\t\tStringTokenizer st = new StringTokenizer(line, DELIMITER);\n\n\t\tfor (i=0; i < NUMBER_OF_FIELDS; i++)\n\t\t{\n\t\t\trecordMap.put(i, new Field(FIE... | [
"0.72347903",
"0.65409195",
"0.6513213",
"0.6483493",
"0.63738245",
"0.6293196",
"0.6235588",
"0.6223051",
"0.621782",
"0.6216289",
"0.6184636",
"0.61698806",
"0.61626947",
"0.6151395",
"0.61206675",
"0.61093473",
"0.6051739",
"0.60344225",
"0.6027103",
"0.59344083",
"0.59249... | 0.6968682 | 1 |
Open a tabbedline reader for a file. | public TabbedLineReader(File inFile) throws IOException {
this.openFile(inFile, '\t');
this.readHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader openInput(File inFile) throws IOException {\n TabbedLineReader retVal;\n if (inFile == null) {\n log.info(\"Input will be taken from the standard input.\");\n retVal = new TabbedLineReader(System.in);\n } else if (! inFile.canRead())\n t... | [
"0.70902634",
"0.6382468",
"0.6190194",
"0.581856",
"0.57619363",
"0.5743366",
"0.5737598",
"0.5730091",
"0.56345665",
"0.5619399",
"0.54855907",
"0.54702324",
"0.54468584",
"0.5400529",
"0.5340299",
"0.53287095",
"0.5281722",
"0.52763504",
"0.5243414",
"0.522529",
"0.5193637... | 0.70027286 | 1 |
Open a tabbedline reader for a file with a nonstandard delimiter. | public TabbedLineReader(File inFile, char delimiter) throws IOException {
this.openFile(inFile, delimiter);
this.readHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(File inFile, int fields, char delimiter) throws IOException {\n this.openFile(inFile, delimiter);\n this.clearLabels(fields);\n this.readAhead();\n }",
"public TabbedLineReader(File inFile) throws IOException {\n this.openFile(inFile, '\\t');\n this.r... | [
"0.65788555",
"0.6575059",
"0.63933074",
"0.6383264",
"0.6275157",
"0.6151454",
"0.6042806",
"0.58825815",
"0.58140767",
"0.57127666",
"0.570155",
"0.55510163",
"0.54593956",
"0.5451066",
"0.54155546",
"0.5319303",
"0.5272515",
"0.524926",
"0.5226897",
"0.5199907",
"0.5126639... | 0.6613241 | 0 |
Open a file for tabbed line reading. | private void openFile(File inFile, char delimiter) throws IOException {
this.delim = delimiter;
this.stream = new FileInputStream(inFile);
this.reader = new LineReader(this.stream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader openInput(File inFile) throws IOException {\n TabbedLineReader retVal;\n if (inFile == null) {\n log.info(\"Input will be taken from the standard input.\");\n retVal = new TabbedLineReader(System.in);\n } else if (! inFile.canRead())\n t... | [
"0.68638515",
"0.68627876",
"0.5973487",
"0.5906908",
"0.5841699",
"0.5796502",
"0.5712542",
"0.57008994",
"0.5631041",
"0.5625296",
"0.55292755",
"0.55236757",
"0.54276586",
"0.53376335",
"0.53110254",
"0.5304894",
"0.52761793",
"0.52653074",
"0.5252482",
"0.523683",
"0.5214... | 0.5180637 | 22 |
Open a tabbedline reader for a headerless file. | public TabbedLineReader(File inFile, int fields) throws IOException {
this.openFile(inFile, '\t');
this.clearLabels(fields);
this.readAhead();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(File inFile) throws IOException {\n this.openFile(inFile, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader openIn... | [
"0.6500458",
"0.6332155",
"0.6306409",
"0.57528794",
"0.56268567",
"0.54846656",
"0.542011",
"0.5415252",
"0.5410696",
"0.5373447",
"0.5370039",
"0.5362915",
"0.5325438",
"0.5324873",
"0.5294071",
"0.5074397",
"0.50470537",
"0.49387053",
"0.49299073",
"0.49289027",
"0.4912312... | 0.5837086 | 3 |
Open a tabbedline reader for a headerless stream. | public TabbedLineReader(InputStream inStream, int fields) throws IOException {
this.openFile(inStream, '\t');
this.clearLabels(fields);
this.readAhead();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader(File inFile) throws IOException {\n this.openFile(inFile, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader openIn... | [
"0.6794105",
"0.6107841",
"0.5970063",
"0.59552723",
"0.59551865",
"0.5892039",
"0.5445992",
"0.53770024",
"0.52747273",
"0.5213705",
"0.51697546",
"0.50838363",
"0.5080996",
"0.5068599",
"0.50617313",
"0.5061576",
"0.49950635",
"0.49809197",
"0.49781868",
"0.49770927",
"0.49... | 0.62638676 | 1 |
Open a tabbedline reader for a headerless stream with a nonstandard delimiter | public TabbedLineReader(InputStream inStream, int fields, char delimiter) throws IOException {
this.openFile(inStream, delimiter);
this.clearLabels(fields);
this.readAhead();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(InputStream inStream, char delimiter) throws IOException {\n this.openFile(inStream, delimiter);\n this.readHeader();\n }",
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }",
... | [
"0.6802586",
"0.6602905",
"0.61679095",
"0.6083005",
"0.60384166",
"0.603162",
"0.5998351",
"0.58798957",
"0.5861993",
"0.58296484",
"0.569045",
"0.55914736",
"0.55319756",
"0.55263036",
"0.54953134",
"0.549203",
"0.5486767",
"0.5469775",
"0.5466762",
"0.5378749",
"0.52985066... | 0.66363126 | 1 |
Open an input stream for tabbed line reading. | private void openFile(InputStream inStream, char delimiter) throws IOException {
this.delim = delimiter;
this.stream = inStream;
this.reader = new LineReader(inStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader openInput(File inFile) throws IOException {\n TabbedLineReader retVal;\n if (inFile == null) {\n log.info(\"Input will... | [
"0.71735567",
"0.71133435",
"0.6552595",
"0.63703483",
"0.6249787",
"0.61698854",
"0.5575974",
"0.5565577",
"0.5463304",
"0.5437308",
"0.53318036",
"0.52893734",
"0.52378756",
"0.5228855",
"0.5220531",
"0.5218287",
"0.51517564",
"0.51118815",
"0.5089516",
"0.506657",
"0.50367... | 0.5418587 | 10 |
Open a tabbedline reader for an input stream with a nonstandard delimiter. | public TabbedLineReader(InputStream inStream, char delimiter) throws IOException {
this.openFile(inStream, delimiter);
this.readHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(InputStream inStream, int fields, char delimiter) throws IOException {\n this.openFile(inStream, delimiter);\n this.clearLabels(fields);\n this.readAhead();\n }",
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '... | [
"0.6934418",
"0.67698306",
"0.6514672",
"0.63905627",
"0.6211919",
"0.61656415",
"0.61177444",
"0.60939336",
"0.6030892",
"0.582675",
"0.58249277",
"0.56337625",
"0.54397047",
"0.52356553",
"0.5229972",
"0.52008694",
"0.51589155",
"0.51546186",
"0.51428956",
"0.5076612",
"0.5... | 0.7038387 | 0 |
Open a tabbedline reader for an input stream. | public TabbedLineReader(InputStream inStream) throws IOException {
this.openFile(inStream, '\t');
this.readHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader openInput(File inFile) throws IOException {\n TabbedLineReader retVal;\n if (inFile == null) {\n log.info(\"Input will be taken from the standard input.\");\n retVal = new TabbedLineReader(System.in);\n } else if (! inFile.canRead())\n t... | [
"0.73127407",
"0.6738341",
"0.64136404",
"0.6386158",
"0.6380669",
"0.60854405",
"0.59524286",
"0.59191084",
"0.56639457",
"0.5626891",
"0.5544767",
"0.5362268",
"0.5328285",
"0.5317863",
"0.53082925",
"0.52806175",
"0.5266762",
"0.52484244",
"0.5217593",
"0.5185191",
"0.5167... | 0.7312518 | 1 |
Open a tabbed line reader to read a file, or optionally the standard input. | public TabbedLineReader openInput(File inFile) throws IOException {
TabbedLineReader retVal;
if (inFile == null) {
log.info("Input will be taken from the standard input.");
retVal = new TabbedLineReader(System.in);
} else if (! inFile.canRead())
throw new File... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(File inFile) throws IOException {\n this.openFile(inFile, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader(InputStream inStream) throws IOException {\n this.openFile(inStream, '\\t');\n this.readHeader();\n }",
"public TabbedLineReader(File i... | [
"0.65447116",
"0.6325499",
"0.57132506",
"0.5706704",
"0.5684978",
"0.56542766",
"0.56542766",
"0.5619859",
"0.5602057",
"0.5523603",
"0.54900545",
"0.54859424",
"0.5483005",
"0.54302925",
"0.5352948",
"0.53031904",
"0.5250596",
"0.5177034",
"0.5173052",
"0.51238394",
"0.5075... | 0.7746607 | 0 |
Open a tabbed line reader to read a list of strings. | public TabbedLineReader(List<String> strings) {
this.stream = null;
this.reader = strings.iterator();
this.delim = '\t';
this.readHeader();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader openInput(File inFile) throws IOException {\n TabbedLineReader retVal;\n if (inFile == null) {\n log.info(\"Input will be taken from the standard input.\");\n retVal = new TabbedLineReader(System.in);\n } else if (! inFile.canRead())\n t... | [
"0.55146515",
"0.539271",
"0.5336371",
"0.53304684",
"0.5284387",
"0.5213921",
"0.5208221",
"0.51530474",
"0.51492125",
"0.5147524",
"0.5112839",
"0.50474674",
"0.5046461",
"0.4976058",
"0.49724358",
"0.4959578",
"0.4946258",
"0.49429014",
"0.49297255",
"0.49214575",
"0.49157... | 0.7116868 | 0 |
Open a tabbedline reader for a headerless file with an alternate delimiter | public TabbedLineReader(File inFile, int fields, char delimiter) throws IOException {
this.openFile(inFile, delimiter);
this.clearLabels(fields);
this.readAhead();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TabbedLineReader(InputStream inStream, char delimiter) throws IOException {\n this.openFile(inStream, delimiter);\n this.readHeader();\n }",
"public TabbedLineReader(File inFile) throws IOException {\n this.openFile(inFile, '\\t');\n this.readHeader();\n }",
"public Tab... | [
"0.6523944",
"0.65223503",
"0.64153224",
"0.6388016",
"0.6300437",
"0.58676386",
"0.58676296",
"0.58630764",
"0.5847065",
"0.5829178",
"0.57215583",
"0.5668676",
"0.5657486",
"0.5538823",
"0.54350436",
"0.54074925",
"0.5404112",
"0.5402318",
"0.538704",
"0.5381536",
"0.527936... | 0.6285665 | 5 |
Read in the header record and create the array of field labels. | protected void readHeader() {
// Denote no lines have been read.
this.lineCount = 0;
// Read the header.
if (! this.reader.hasNext()) {
// Here the entire file is empty. Insure we get EOF on the first read.
this.nextLine = null;
} else {
this.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArra... | [
"0.69144565",
"0.64766306",
"0.6113598",
"0.605162",
"0.5962181",
"0.5896178",
"0.58882433",
"0.58728474",
"0.5832155",
"0.5800123",
"0.557133",
"0.5472336",
"0.5432642",
"0.532015",
"0.530479",
"0.526187",
"0.5256802",
"0.52560204",
"0.525092",
"0.5246309",
"0.5245477",
"0... | 0.64780587 | 1 |
Clear the label array. This is used to create a tabbed input file without headers. | protected void clearLabels(int fields) {
this.labels = new String[fields];
Arrays.fill(this.labels, "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearLabels() {\n\t\talLabels.clear();\n\t\talLeftContainers.clear();\n\t\talRightContainers.clear();\n\t\tiMaxSegmentDepth = 0;\n\t}",
"public void clearLabelRecs()\n {\n multiLabel = null;\n }",
"void unsetLabel();",
"private void resetArraysAndHeader()\r\n\t{\r\n\t\tmainHeader = \... | [
"0.6966624",
"0.69241375",
"0.6667397",
"0.6404122",
"0.6334983",
"0.6117784",
"0.61140126",
"0.60389376",
"0.60360557",
"0.60024256",
"0.5995905",
"0.59907484",
"0.5986179",
"0.5975633",
"0.59709245",
"0.59706825",
"0.5955389",
"0.5937645",
"0.59329283",
"0.59273237",
"0.590... | 0.72870296 | 0 |
Prepare the line buffer with the next line of data. Note we skip blank lines. | protected void readAhead() {
if (! reader.hasNext()) {
this.nextLine = null;
} else {
this.nextLine = reader.next();
while (this.nextLine != null && this.nextLine.isEmpty() && reader.hasNext())
this.nextLine = reader.next();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void getNextLine()\n\t\t\tthrows IOException, FileNotFoundException {\n String nextLine = \"\";\n if (reader == null) {\n nextLine = textLineReader.readLine();\n } else {\n nextLine = reader.readLine();\n }\n if (nextLine == null) {\n atEnd = true;\n line = new StringBuffer();\n ... | [
"0.63753706",
"0.6350893",
"0.60043544",
"0.5635884",
"0.56274456",
"0.5597832",
"0.55946577",
"0.54584885",
"0.5399467",
"0.53981036",
"0.5396999",
"0.53664285",
"0.53186595",
"0.5280275",
"0.5259226",
"0.5239976",
"0.5228924",
"0.51862985",
"0.5156059",
"0.5147882",
"0.5144... | 0.5513034 | 7 |
Read a map from a tabdelimited file with headers. The first column specified is the key, the second is the data. | public static Map<String, String> readMap(File inFile, String kColumn, String vColumn) throws IOException {
Map<String, String> retVal = new HashMap<String, String>();
try (TabbedLineReader inStream = new TabbedLineReader(inFile)) {
int kCol = inStream.findField(kColumn);
int vCo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap<String,String> readMapFile(String filename) throws IOException {\n\t\tHashMap<String,String> valueMap = new HashMap<String,String>();\t\t\n List<String> cols = new ArrayList<String>(); \n\t\t\n try{\n \t buf = new BufferedReader(new FileReader(filename)); \n\t S... | [
"0.69518566",
"0.6177252",
"0.6031397",
"0.5846899",
"0.57023716",
"0.56148374",
"0.55720246",
"0.5570892",
"0.55207837",
"0.55141234",
"0.5478345",
"0.54592294",
"0.54460496",
"0.5432972",
"0.5423086",
"0.540132",
"0.53681934",
"0.5359234",
"0.53506154",
"0.5344526",
"0.5336... | 0.68415666 | 1 |
Read a string set from a tabdelimited file with headers. The strings to be put in the set are taken from the specified column. | public static Set<String> readSet(File inFile, String column) throws IOException {
Set<String> retVal = new HashSet<String>();
try (TabbedLineReader reader = new TabbedLineReader(inFile)) {
reader.readIntoSet(column, retVal);
}
return retVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Set<String> readSet(InputStream inStream, String column) throws IOException {\n Set<String> retVal = new HashSet<String>();\n try (TabbedLineReader reader = new TabbedLineReader(inStream)) {\n reader.readIntoSet(column, retVal);\n }\n return retVal;\n }",
"... | [
"0.6809743",
"0.65522647",
"0.5931733",
"0.55443084",
"0.55310214",
"0.5481635",
"0.5355165",
"0.5142071",
"0.5056909",
"0.50446683",
"0.5019533",
"0.49929285",
"0.49104396",
"0.48836297",
"0.48726866",
"0.4838374",
"0.48129243",
"0.4783868",
"0.47657093",
"0.4764258",
"0.475... | 0.7087181 | 0 |
Read a string set from a tabdelimited stream with headers. The strings to be put in the set are taken from the specified column. | public static Set<String> readSet(InputStream inStream, String column) throws IOException {
Set<String> retVal = new HashSet<String>();
try (TabbedLineReader reader = new TabbedLineReader(inStream)) {
reader.readIntoSet(column, retVal);
}
return retVal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Set<String> readSet(File inFile, String column) throws IOException {\n Set<String> retVal = new HashSet<String>();\n try (TabbedLineReader reader = new TabbedLineReader(inFile)) {\n reader.readIntoSet(column, retVal);\n }\n return retVal;\n }",
"private voi... | [
"0.62698",
"0.6179089",
"0.5447644",
"0.5414349",
"0.51701707",
"0.5024906",
"0.4986615",
"0.49228802",
"0.48874286",
"0.48287326",
"0.48190692",
"0.46874827",
"0.46470788",
"0.46435142",
"0.4609127",
"0.4581574",
"0.45734292",
"0.45705116",
"0.45525488",
"0.45521674",
"0.455... | 0.717628 | 0 |
Read a string set from this file. The strings to be put in the set are taken from the specified column. This process exhausts the file. | private void readIntoSet(String column, Set<String> retVal) throws IOException {
int idx = this.findField(column);
for (TabbedLineReader.Line line : this) {
String value = line.get(idx);
retVal.add(value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Set<String> readSet(File inFile, String column) throws IOException {\n Set<String> retVal = new HashSet<String>();\n try (TabbedLineReader reader = new TabbedLineReader(inFile)) {\n reader.readIntoSet(column, retVal);\n }\n return retVal;\n }",
"public stat... | [
"0.73687303",
"0.70155835",
"0.61173964",
"0.56992006",
"0.5388314",
"0.5383496",
"0.5296292",
"0.51918864",
"0.5188936",
"0.5071075",
"0.5008981",
"0.5004765",
"0.49570498",
"0.49300832",
"0.4864272",
"0.48629674",
"0.48163298",
"0.4788915",
"0.4747696",
"0.47311848",
"0.472... | 0.7546014 | 0 |
Read a single column into a list. | public static List<String> readColumn(File inFile, String string) throws IOException {
List<String> retVal = new ArrayList<String>(100);
try (TabbedLineReader inStream = new TabbedLineReader(inFile)) {
int inCol = inStream.findField(string);
for (TabbedLineReader.Line line : inSt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<?> getList(String columnName) {\n ListVector vector = (ListVector) table.getVector(columnName);\n return vector.getObject(rowNumber);\n }",
"public ArrayList<Object> retrieveData(String column) {\n ArrayList<Object> dataLst = new ArrayList<Object>(this.rowCount);\r\n\r\n int colT... | [
"0.654364",
"0.62857723",
"0.6053204",
"0.5984167",
"0.59596217",
"0.59271747",
"0.5904158",
"0.5881015",
"0.5847771",
"0.5831133",
"0.5803572",
"0.57750434",
"0.5769891",
"0.5759572",
"0.5753936",
"0.5748568",
"0.5744393",
"0.572198",
"0.5695842",
"0.56874764",
"0.56833816",... | 0.62842655 | 2 |
Split a line into fields. | protected String[] splitLine(String line) {
return StringUtils.splitPreserveAllTokens(line, TabbedLineReader.this.delim);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String[] readLine( String line ) throws IOException {\n if ( StringUtils.isBlank( line ) ) {\n return null;\n }\n if ( line.startsWith( \"#\" ) ) {\n return null;\n }\n\n String[] fields = StringUtils.splitPreserveAllTokens( line, '\\t' );\n i... | [
"0.6682122",
"0.6678799",
"0.66366595",
"0.62753105",
"0.61066747",
"0.608921",
"0.6088772",
"0.5998516",
"0.59660435",
"0.58845735",
"0.5819873",
"0.58108157",
"0.56784505",
"0.5657799",
"0.5547249",
"0.55332667",
"0.55093914",
"0.54905796",
"0.54852694",
"0.54404753",
"0.54... | 0.65401644 | 3 |
There's already a schema read operation in progress. Just piggyback on that | @NotNull
private CompletableFuture<StoredSchema> getSchema(String schemaId) {
return readSchemaOperations.computeIfAbsent(schemaId, key -> {
if (log.isDebugEnabled()) {
log.debug("[{}] Fetching schema from store", schemaId);
}
return getSchemaLocator(getSc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void executeSchemaOperations() {\n }",
"public void syncSchema(Schema schema) {\n Span span = this.tracer.buildSpan(\"Client.SyncSchema\").start();\n try {\n Schema serverSchema = readSchema();\n\n // find out local - remote schema\n Schema diffSchema... | [
"0.6267159",
"0.59384125",
"0.5805213",
"0.57284653",
"0.5561381",
"0.55256754",
"0.5480223",
"0.5456387",
"0.5421914",
"0.5392182",
"0.5362756",
"0.53323936",
"0.5317525",
"0.5254101",
"0.5243998",
"0.5202857",
"0.5191543",
"0.51888055",
"0.517443",
"0.5165305",
"0.51363057"... | 0.5121089 | 23 |
The schema storage converts the schema from bytes to long so it handles both cases 1) version is 64 bytes long pre 2.4.0; 2) version is 8 bytes long post 2.4.0 NOTE: if you are planning to change the logic here. you should consider both 64 bytes and 8 bytes cases. | @Override
public SchemaVersion versionFromBytes(byte[] version) {
ByteBuffer bb = ByteBuffer.wrap(version);
return new LongSchemaVersion(bb.getLong());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BigDecimal getLqncoreSchemaVersion();",
"BigDecimal getLqnSchemaVersion();",
"public boolean isLong() {\n return field.getJavaType() == FieldDescriptor.JavaType.LONG && !isInt52();\n }",
"String getSchemaVersion();",
"@Test\n public void testUnionOnSchemaIncompatibleTypes() throws Exception {\n ... | [
"0.61453056",
"0.5883262",
"0.5625808",
"0.56034863",
"0.5596346",
"0.5563018",
"0.55011076",
"0.54554904",
"0.544887",
"0.54154736",
"0.53781295",
"0.5334409",
"0.5331018",
"0.5328589",
"0.53172994",
"0.5294116",
"0.5289098",
"0.5287211",
"0.52833855",
"0.525452",
"0.5241524... | 0.74011374 | 0 |
When an NFC tag is being written, call the write tag function when an intent is received that says the tag is within range of the device and ready to be written to | public void onNewIntent(Intent intent) {
Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
String nfcMessage = intent.getStringExtra("nfcMessage");
if(nfcMessage != null) {
if(writeTag(this, tag, nfcMessage))
Toast.makeText(this, "Write successfull", Toast.LENGTH_LONG).show... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnNfcDataReceived {\n void processNfcData(Tag mytag);\n}",
"public void writeNFC(View view) {\n\n // capture in logcat\n Log.d(TAG, getString(R.string.debug_key) + \" Write key pressed\");\n\n getNdef();\n if (ndef == null)\n return;\n\n NdefMessa... | [
"0.6763869",
"0.6640294",
"0.66231066",
"0.64405507",
"0.6396191",
"0.6354265",
"0.6104571",
"0.6045186",
"0.5976769",
"0.5835992",
"0.5790317",
"0.57864535",
"0.5640121",
"0.5603344",
"0.5555391",
"0.5526842",
"0.5488021",
"0.5460332",
"0.54406375",
"0.54072785",
"0.5403915"... | 0.63156265 | 6 |
Record to launch Play Store if app is not installed | public static boolean writeTag(Context context, Tag tag, String data) {
NdefRecord appRecord = NdefRecord.createApplicationRecord(context.getPackageName());
// Record with actual data we care about
NdefRecord relayRecord = new NdefRecord(NdefRecord.TNF_MIME_MEDIA,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void handleApplicationLaunch(Context context) {\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n boolean doNotRemindAgain = sharedPrefs.getBoolean(PREF_KEY_DO_NOT_REMIND_AGAIN, false);\n if (!doNotRemindAgain) {\n // Increme... | [
"0.6281984",
"0.61831176",
"0.60013574",
"0.59572476",
"0.59296626",
"0.5911021",
"0.588933",
"0.5876238",
"0.5853802",
"0.58496684",
"0.57938945",
"0.5785628",
"0.57513344",
"0.5701756",
"0.57014716",
"0.5687743",
"0.5682845",
"0.56574667",
"0.5653368",
"0.5634326",
"0.56225... | 0.0 | -1 |
end of main constructor | public OrchardGame() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Main() {\n\n super();\n }",
"private Main ()\n {\n super ();\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public Main() {\n\t\tsuper();\n\t}",
"public Main() {\r\n\t}",
"public Main() {\n \n \n }",
"public Main() {\r\n }",
... | [
"0.7932623",
"0.7744706",
"0.77209455",
"0.76552397",
"0.7614706",
"0.7496279",
"0.74637645",
"0.74637645",
"0.7418881",
"0.73458856",
"0.72540945",
"0.72540945",
"0.7212898",
"0.7165506",
"0.71231335",
"0.7106036",
"0.71043116",
"0.70944613",
"0.70283073",
"0.7005191",
"0.69... | 0.0 | -1 |
Description InputStream is used for direct player input | public void setScan(InputStream inStream){
this.scan = new Scanner (inStream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract InputStream getInputStream();",
"public abstract InputStream getInputStream();",
"@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}",
"@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}",
"public InputStream getInputStream() throws IOException {\n/* 521 */ ... | [
"0.6438668",
"0.6438668",
"0.64267164",
"0.6373508",
"0.6361644",
"0.6357278",
"0.6357278",
"0.62992525",
"0.6296752",
"0.6284413",
"0.6284413",
"0.6284413",
"0.62510526",
"0.6209387",
"0.61881846",
"0.6155581",
"0.603662",
"0.59967786",
"0.5991875",
"0.5982538",
"0.5981246",... | 0.0 | -1 |
Description: ByteArrayInputStream used for automated input | public void setScan(ByteArrayInputStream inStream){
this.programIn= (ByteArrayInputStream) inStream;
this.scan = new Scanner (programIn);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InputStream getDataStream();",
"InputStream mo1151a();",
"public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }",
"public abstract InputStream mo131998b();",
"private boolean tryByteArrayInputStream(){\n return true;\n }",
"public abstract InputStream getIn... | [
"0.67805433",
"0.6731746",
"0.65572786",
"0.65299994",
"0.6428517",
"0.6348483",
"0.6348483",
"0.62875926",
"0.62875926",
"0.62875926",
"0.6271508",
"0.6271508",
"0.62518483",
"0.6185078",
"0.6087549",
"0.6074801",
"0.603317",
"0.60288984",
"0.6016659",
"0.5982356",
"0.595796... | 0.6295695 | 7 |
DEFAULT CONSTRUCTOR (Whenever an obj of this class is created 1st Default constructor is called) | public RediffMailLoginPage(WebDriver driver ) {
this.driver =driver;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"defaultConstructor(){}",
"ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}",
"void DefaultConstructor(){}",
"public Constructor(){\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private SingleObject()\r\n {\r\n }",
"private Default()\n {}",
"public Objec... | [
"0.8089953",
"0.7998268",
"0.7889616",
"0.7828152",
"0.7715715",
"0.7393976",
"0.73048645",
"0.721678",
"0.7211636",
"0.71949804",
"0.7166036",
"0.7133148",
"0.713055",
"0.7090066",
"0.7086108",
"0.70567805",
"0.7033806",
"0.70178545",
"0.7006699",
"0.6980893",
"0.6954789",
... | 0.0 | -1 |
PROIBI CACHORROS ACIMA DO PESO | public String validaPeso() {
if (this.peso>20) {
return "Cachorro acima do peso.";
}
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOf... | [
"0.6290054",
"0.62563396",
"0.6178946",
"0.5964304",
"0.5891925",
"0.58181846",
"0.5806831",
"0.5805247",
"0.5769042",
"0.5764836",
"0.57428753",
"0.57277954",
"0.57227576",
"0.57170594",
"0.5700794",
"0.56941897",
"0.56818736",
"0.56730026",
"0.56716824",
"0.5668874",
"0.564... | 0.0 | -1 |
PROIBI CACHORRO COM AGRESSIVIDADE | public String validaAgressividade() {
if (this.agressividade>10 || this.agressividade<1) {// ALTA.
return "Agressividade deve variar de 1 a 10";
}
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Agencia abrirAgencia() {\n Agencia a = new Agencia(\"\" + numeroProximaAgencia++,this,10);\n boolean agenciaAdicionada = adicionaArrayAgencias(a);\n if (agenciaAdicionada) {\n return a;\n } else {\n return null;\n }\n }",
"public Arquero(){\n ... | [
"0.6126185",
"0.6085356",
"0.60656285",
"0.600289",
"0.5942466",
"0.59305626",
"0.59090286",
"0.58191293",
"0.58142704",
"0.58017105",
"0.57973486",
"0.57848436",
"0.5755752",
"0.5695711",
"0.56571805",
"0.5653135",
"0.56414056",
"0.5637027",
"0.56326896",
"0.56199366",
"0.56... | 0.0 | -1 |
Capitalize the first letter of the filter key so that it can be used to create a getter | public boolean matches(Object objectToFilter) {
filterKey = filterKey.substring(0, 1).toUpperCase() + filterKey.substring(1);
String methodName = "get" + filterKey;
try {
Class parameters[] = {};
Method methodToCall = objectToFilter.getClass().getDeclaredMethod(methodNam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}",
"String getFilterName();",
"static String normalizedNameOf(SdkField<?> field) {\n String name = field.... | [
"0.65412384",
"0.6277115",
"0.6268821",
"0.6086164",
"0.6005185",
"0.5998195",
"0.59880054",
"0.5909832",
"0.58304936",
"0.58167726",
"0.57858765",
"0.57655925",
"0.5757422",
"0.5742277",
"0.5735987",
"0.5703627",
"0.5693841",
"0.5680796",
"0.5668133",
"0.5629669",
"0.5609018... | 0.0 | -1 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static FragmentEnderecoNovoUsuario newInstance(String param1, String param2) {
FragmentEnderecoNovoUsuario fragment = new FragmentEnderecoNovoUsuario();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArgument... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n ... | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.664618... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final Bundle b = getArguments();
getActivity().findViewById(R.id.editTextNomeInfoPessoais).setVisibility(View.INVISIBLE);
getActivity().findViewById(R.id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
if (mListener != null) {
mListener.onFragmentInteraction(uri);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@... | [
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",... | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
public void onFragmentInteraction(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public int... | [
"0.7323901",
"0.720826",
"0.71346456",
"0.712432",
"0.71223646",
"0.7014406",
"0.6975986",
"0.6975986",
"0.6975986",
"0.6973731",
"0.69676983",
"0.69656146",
"0.6960717",
"0.69542384",
"0.6943149",
"0.6933716",
"0.69288176",
"0.69264686",
"0.6922715",
"0.6909953",
"0.6902666"... | 0.0 | -1 |
TODO: Update argument type and name | public void onFragmentInteraction(Uri uri); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic ... | [
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.599... | 0.0 | -1 |
public static ArrayList room = new ArrayList(); | public static void main(String[] args) {
/* DONE: Launch ChatClient from this main method
*
* Helpful link:
* https://docs.oracle.com/javase/8/javafx/api/javafx/application/Application.html#launch-java.lang.Class-java.lang.String...-
*/
Application.launch(ChatClient.class, args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList getRooms();",
"public ArrayList<RoomList> getRoomList() {\r\n return RoomList;\r\n }",
"public ArrayList<Room> getRooms() {\n return rooms;\n }",
"public void setRooms(ArrayList value);",
"public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //t... | [
"0.7475172",
"0.70396036",
"0.6889544",
"0.6846234",
"0.684282",
"0.6761073",
"0.67000246",
"0.6568288",
"0.64564013",
"0.64517754",
"0.64354944",
"0.64331913",
"0.63489693",
"0.62579054",
"0.6236961",
"0.62326396",
"0.6198853",
"0.61488295",
"0.6140715",
"0.61394286",
"0.611... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public User getUserById(String id) {
User user = null;
Connection connection = null;
try{
connection = BaseDao.getConnection();
user = userMapper.getUserById(connection,id);
}catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
user = null;
}finally{
BaseDao.closeR... | {
"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 boolean modify(User user) {
Connection connection = null;
boolean flag = false;
try {
connection = BaseDao.getConnection();
if(userMapper.modify(connection,user) > 0)
flag = true;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
Bas... | {
"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 boolean updatePwd(int id, String pwd) {
boolean flag = false;
Connection connection = null;
try{
connection = BaseDao.getConnection();
if(userMapper.updatePwd(connection,id,pwd) > 0)
flag = true;
}catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}finally{
... | {
"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 |
Constructeur de ServiceClient sans argument | public ServiceClient() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ClienteServicio() {\n }",
"public ClientServiceImpl() {\r\n\t}",
"public TestServiceClient(final ApiClient apiClient) {\n super(apiClient);\n }",
"public Client(Client client) {\n\n }",
"public Client() {\n }",
"public Client() {}",
"public TurnoVOClient() {\r\n }",
"public Cli... | [
"0.80982107",
"0.7595374",
"0.7560232",
"0.73243403",
"0.7317023",
"0.7211743",
"0.7206089",
"0.7130735",
"0.7129057",
"0.7036567",
"0.70123404",
"0.696759",
"0.696658",
"0.6964715",
"0.6944388",
"0.69322395",
"0.6911959",
"0.6897548",
"0.68581676",
"0.68517137",
"0.6824151",... | 0.8567346 | 0 |
Getter de l'attribut IDaoClient | public IDaoClient getDao() {
return dao;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cliente getCliente() {\n return objCliente;\n }",
"public ICliente getCodCli();",
"public Cliente getCliente() {\n return cliente;\n }",
"public ClienteEntity getCliente() {\r\n return cliente;\r\n }",
"public int getIdClient() {\r\n return idClient;\r\n }",
... | [
"0.7368975",
"0.73600626",
"0.7237941",
"0.7179216",
"0.7152529",
"0.7065297",
"0.70517236",
"0.69959134",
"0.6983905",
"0.6939864",
"0.6936247",
"0.69140047",
"0.68897116",
"0.68815005",
"0.68497854",
"0.68320787",
"0.67760515",
"0.67530787",
"0.67493445",
"0.67493445",
"0.6... | 0.632431 | 63 |
Setter de l'attribut IDaoClient | public void setDao(IDaoClient dao) {
this.dao = dao;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCodCli(ICliente codigo);",
"public void setIdCliente(int value) {\n this.idCliente = value;\n }",
"protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}",
"@Override\n\tpublic void altaCliente(Cliente cliente) {\n\t}",
"public void setClient(ConnectionToClient clie... | [
"0.7083928",
"0.6992242",
"0.69857913",
"0.6969958",
"0.69161737",
"0.68536186",
"0.68334454",
"0.68073756",
"0.6792115",
"0.6766159",
"0.6760142",
"0.66826814",
"0.6663244",
"0.6647669",
"0.66305524",
"0.66235733",
"0.66127217",
"0.6595483",
"0.6557566",
"0.6500341",
"0.6476... | 0.626186 | 33 |
Methode qui retourne la liste de tous les clients | public List<Client> findAll() {
return dao.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Clients> getallClients();",
"@Override\n\t\tpublic List<Client> listeClient() {\n\t\t\treturn null;\n\t\t}",
"public List<Client> getAllClient();",
"public List<T> showAllClients();",
"private void listaClient() {\n\t\t\r\n\t\tthis.listaClient.add(cliente);\r\n\t}",
"List<User> getAllClients(... | [
"0.8319818",
"0.80270195",
"0.80128425",
"0.7891971",
"0.7866626",
"0.7779001",
"0.77351725",
"0.7687418",
"0.76563346",
"0.76428527",
"0.7565483",
"0.74878204",
"0.7485699",
"0.74729085",
"0.744428",
"0.7437851",
"0.74355793",
"0.73973334",
"0.7388367",
"0.7385832",
"0.73578... | 0.65850127 | 79 |
Do any processing of the information input by the user, and/or perform step processing (if no user interaction required) It is this method's job to save any data to the underlying database, as necessary, and return error messages (if any) which can then be processed by the appropriate user interface (JSPUI or XMLUI) NO... | public int doProcessing(Context context, HttpServletRequest request,
HttpServletResponse response, SubmissionInfo subInfo)
throws ServletException, IOException, SQLException,
AuthorizeException
{
// Get the values from the initial questions form
boolean multipleTi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void screeningProcessing() throws TCWebException {\n try {\n DataAccessInt dAccess = Util.getDataAccess(Constants.DW_DATA_SOURCE, true);\n\n Request dr = new Request();\n dr.setContentHandle(\"coderProblemInfo\");\n dr.setProperty(\"cr\", getRequest().ge... | [
"0.62118787",
"0.61965907",
"0.5937527",
"0.5547366",
"0.55229944",
"0.54699755",
"0.5434881",
"0.53733283",
"0.5355073",
"0.5325096",
"0.5322855",
"0.5317737",
"0.53129864",
"0.5302749",
"0.53010744",
"0.5299605",
"0.5297682",
"0.52860653",
"0.52820444",
"0.5281098",
"0.5278... | 0.51769197 | 36 |
Retrieves the number of pages that this "step" extends over. This method is used to build the progress bar. This method may just return 1 for most steps (since most steps consist of a single page). But, it should return a number greater than 1 for any "step" which spans across a number of HTML pages. For example, the c... | public int getNumberOfPages(HttpServletRequest request,
SubmissionInfo subInfo) throws ServletException
{
// always just one page of initial questions
return 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPageCount()\n {\n return _pages.size();\n }",
"public Integer getPageCount();",
"int getPagesAmount();",
"public int getPageCount() { return _pages.size(); }",
"public int getTotalPageCount() {\n try {\n return (int) this.webView.getEngine().executeScript(\"PDF... | [
"0.73690283",
"0.7209158",
"0.71613735",
"0.71163076",
"0.7105777",
"0.7105058",
"0.7073932",
"0.7068451",
"0.7062639",
"0.702975",
"0.70065194",
"0.6989511",
"0.6986428",
"0.68966025",
"0.6875367",
"0.6859267",
"0.68361264",
"0.6824217",
"0.67472625",
"0.67323536",
"0.668873... | 0.6744237 | 19 |
Process input from "verify prune" page | protected void processVerifyPrune(Context context,
HttpServletRequest request, HttpServletResponse response,
SubmissionInfo subInfo, boolean multipleTitles,
boolean publishedBefore, boolean multipleFiles)
throws ServletException, IOException, SQLException,
Aut... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void prune() {\n\n }",
"public int doProcessing(Context context, HttpServletRequest request,\n HttpServletResponse response, SubmissionInfo subInfo)\n throws ServletException, IOException, SQLException,\n AuthorizeException\n {\n // Get the values from the initial qu... | [
"0.53641754",
"0.5150743",
"0.50554556",
"0.5052145",
"0.4971604",
"0.47407994",
"0.47289553",
"0.47270685",
"0.4682532",
"0.46757168",
"0.46683633",
"0.46092156",
"0.46083394",
"0.45887202",
"0.4582364",
"0.45708612",
"0.45651773",
"0.4560604",
"0.4560149",
"0.45407024",
"0.... | 0.6387492 | 0 |
Adds a value change listener. Anytime readable property value changes, the listener will be notified. | void addChangeListener(PropertyChangeListener<? super R> listener); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPropertyChangeListener(PropertyChangeListener listener);",
"void addPropertyChangeListener(PropertyChangeListener listener);",
"private static void usePropertyChangeListener() {\n SimpleStringProperty stringProperty = new SimpleStringProperty(\"xyz\");\n // Prints property's value\... | [
"0.7159817",
"0.7152365",
"0.7109498",
"0.70381546",
"0.6993073",
"0.6991143",
"0.69808644",
"0.6969142",
"0.6951882",
"0.6874819",
"0.6868556",
"0.685957",
"0.685276",
"0.6844102",
"0.68396735",
"0.6801777",
"0.6797266",
"0.6738649",
"0.66536707",
"0.6652634",
"0.6652634",
... | 0.720747 | 0 |
Removes the value change listener. | void removeChangeListener(PropertyChangeListener<? super R> listener); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void removeValueChangeListener(final ValueChangeListener<T> listener) {\n\t\t\n\t}",
"void removeCalcValueListener(CalcValueListener l);",
"public void removeListener(ValueChangedListener listener) {\n\t\t_listenerManager.removeListener(listener);\n\t}",
"@Override\r\n public void rmVa... | [
"0.8324176",
"0.7897351",
"0.78724277",
"0.7768827",
"0.77495235",
"0.76509666",
"0.76424426",
"0.75186044",
"0.74569386",
"0.74160016",
"0.740847",
"0.73994607",
"0.7391362",
"0.7351587",
"0.7307303",
"0.7291448",
"0.72526973",
"0.72405565",
"0.7239652",
"0.7239652",
"0.7218... | 0.7274108 | 16 |
Gets the value of the property. | R getValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }",
"public String getPropValue() {\n return propValue;\n }",
"public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }",
"Property getProperty();",
"Property getProperty();",... | [
"0.7723105",
"0.7634112",
"0.75822175",
"0.7447672",
"0.7447672",
"0.7445438",
"0.73201835",
"0.7238095",
"0.7236115",
"0.7236115",
"0.7236115",
"0.7225842",
"0.7221162",
"0.71840405",
"0.71759754",
"0.71759754",
"0.71759754",
"0.71759754",
"0.71759754",
"0.71759754",
"0.7175... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column favortie.favortieid | public Integer getFavortieid() {
return favortieid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFavortieid(Integer favortieid) {\n this.favortieid = favortieid;\n }",
"MemberFav selectByPrimaryKey(Long id);",
"private int ricavaID(String itemSelected){\n String ogg = ricavaNome(itemSelected);\n String schema = ricavaSchema(itemSelected);\n int id = -1;\n ... | [
"0.6852634",
"0.602115",
"0.5525408",
"0.5406923",
"0.53856707",
"0.5344146",
"0.5328783",
"0.5251514",
"0.52082694",
"0.5117984",
"0.51102227",
"0.50853074",
"0.5083489",
"0.50806296",
"0.5071851",
"0.5067027",
"0.50471467",
"0.5021015",
"0.5017195",
"0.5005894",
"0.49966207... | 0.7444962 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column favortie.favortieid | public void setFavortieid(Integer favortieid) {
this.favortieid = favortieid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getFavortieid() {\n return favortieid;\n }",
"public void makeFavorite(String title, int favorite)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n\n /* the execSQL Method simply executes this query on the Database, in this Query UPDATE is\n * used to spec... | [
"0.6938777",
"0.5706033",
"0.55862606",
"0.5578838",
"0.5553036",
"0.55173266",
"0.5407998",
"0.5385753",
"0.53834194",
"0.53587323",
"0.5355819",
"0.534874",
"0.5337137",
"0.5333322",
"0.5317858",
"0.5307023",
"0.52801514",
"0.5273753",
"0.5233443",
"0.5172982",
"0.5164661",... | 0.76851046 | 0 |
This method was generated by MyBatis Generator. This method returns the value of the database column favortie.userid | public Integer getUserid() {
return userid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"java.lang.String getUserId();",
"Integer getUserId();",
"public Long getUserid() {\r\n return userid;\r\n }",
"public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}",
"String getUserId();",
"String getUserId();",
"publ... | [
"0.7031802",
"0.7031802",
"0.7031802",
"0.6893778",
"0.6773492",
"0.67656803",
"0.67418116",
"0.67418116",
"0.67229277",
"0.67229277",
"0.67229277",
"0.67229277",
"0.67048955",
"0.66574925",
"0.6651344",
"0.6651344",
"0.6622214",
"0.6617635",
"0.6609251",
"0.6609251",
"0.6568... | 0.6873857 | 15 |
This method was generated by MyBatis Generator. This method sets the value of the database column favortie.userid | public void setUserid(Integer userid) {
this.userid = userid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserId(int value) {\n this.userId = value;\n }",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserId(long userId);",
"public void setUserid(Long userid) {\r\n this.userid = userid;\r\n ... | [
"0.6897457",
"0.68468875",
"0.68468875",
"0.68468875",
"0.68468875",
"0.6794163",
"0.67836183",
"0.6715539",
"0.6715539",
"0.6709606",
"0.6651408",
"0.66370225",
"0.6619096",
"0.6603802",
"0.6589495",
"0.65787923",
"0.65787923",
"0.65776527",
"0.65776527",
"0.65776527",
"0.65... | 0.677697 | 16 |
This method was generated by MyBatis Generator. This method returns the value of the database column favortie.bookid | public Integer getBookid() {
return bookid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getBookId() {\n return bookId;\n }",
"public Integer getBookId() {\n return bookId;\n }",
"public Integer getBookId() {\n return bookId;\n }",
"public Integer getBookid() {\r\n\t\treturn bookid;\r\n\t}",
"@Id \n\t@Basic( optional = false )\n\t@Column( name = \"b... | [
"0.6880546",
"0.6880546",
"0.6880546",
"0.685767",
"0.6723067",
"0.67169005",
"0.6663629",
"0.66119176",
"0.66119176",
"0.64920616",
"0.64289176",
"0.62001705",
"0.62001705",
"0.61311364",
"0.61260134",
"0.61055946",
"0.6081582",
"0.6081582",
"0.6081582",
"0.60722697",
"0.602... | 0.68935823 | 1 |
This method was generated by MyBatis Generator. This method sets the value of the database column favortie.bookid | public void setBookid(Integer bookid) {
this.bookid = bookid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}",
"public void setBookid(Integer bookid) {\r\n\t\tthis.bookid = bookid;\r\n\t}",
"public void setBookId(Integer bookId) {\n this.bookId = bookId;\n }",
"public void setBookId(Integer bookId) {\n this.bookId = bookId;\n }"... | [
"0.70099497",
"0.6930392",
"0.684707",
"0.684707",
"0.684707",
"0.6585995",
"0.6556206",
"0.621511",
"0.6177436",
"0.6137287",
"0.60499585",
"0.60369164",
"0.600789",
"0.600789",
"0.600789",
"0.6006853",
"0.6006853",
"0.5921825",
"0.59018046",
"0.5899651",
"0.5807922",
"0.5... | 0.7036041 | 1 |
This method was generated by MyBatis Generator. This method returns the value of the database column favortie.favortiestate | public String getFavortiestate() {
return favortiestate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFavortiestate(String favortiestate) {\n this.favortiestate = favortiestate;\n }",
"public Integer getFavortieid() {\n return favortieid;\n }",
"public void setFavortieid(Integer favortieid) {\n this.favortieid = favortieid;\n }",
"public void saveFavorite(){\n ... | [
"0.7006244",
"0.62197435",
"0.5279439",
"0.51945174",
"0.5165863",
"0.50141364",
"0.49733233",
"0.49719942",
"0.496343",
"0.496343",
"0.49156702",
"0.4895498",
"0.48903614",
"0.48770455",
"0.48767924",
"0.4852443",
"0.4803276",
"0.4791209",
"0.47851017",
"0.47850734",
"0.4766... | 0.7459405 | 0 |
This method was generated by MyBatis Generator. This method sets the value of the database column favortie.favortiestate | public void setFavortiestate(String favortiestate) {
this.favortiestate = favortiestate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFavortiestate() {\n return favortiestate;\n }",
"public void setToFavorite(boolean favorite) {\n this.isFavorite = favorite;\n }",
"public void setFavorite(boolean favorite) {\n this.favorite = favorite;\n }",
"public void setFavorite(boolean favorite) {\n ... | [
"0.6674943",
"0.62148994",
"0.6184169",
"0.61313915",
"0.61021847",
"0.60436916",
"0.59816563",
"0.58824456",
"0.5855134",
"0.57957506",
"0.5776221",
"0.5738585",
"0.57080334",
"0.5698658",
"0.56851214",
"0.55794525",
"0.5559764",
"0.5467099",
"0.5337306",
"0.53175974",
"0.52... | 0.7720147 | 0 |
Creates an empty inventory. | public Inventory () {
weaponsInventory = new ArrayList<>();
pointInventory = 0;
lenInventory = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Inventory() {\n this.SIZE = DEFAULT_SIZE;\n this.ITEMS = new ArrayList<>();\n }",
"private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiN... | [
"0.7530712",
"0.74884194",
"0.72076935",
"0.6993207",
"0.69400394",
"0.6922179",
"0.6831903",
"0.67947",
"0.6653159",
"0.66177857",
"0.66096354",
"0.64711255",
"0.6387326",
"0.6331005",
"0.6291809",
"0.6272743",
"0.6268088",
"0.62409526",
"0.62039864",
"0.6185635",
"0.617429"... | 0.6908214 | 6 |
Returns the weapons inventory list. | public List<IWeapon> getWeaponsInventory(){
return weaponsInventory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Integer> getPurchasedWeapons() {\r\n\t\treturn collectionManager.getPurchasedWeapons();\r\n\t}",
"public ArrayList<Weapon> getWeapons() {\n return weapons;\n }",
"public Weapon[] getWeapons(){\n\t\tSystem.out.println(\"Creating Weapons...\");\n\t\tfor(int i=0; i<boardWeapons.length; i++){... | [
"0.7280217",
"0.72741485",
"0.72560495",
"0.7231269",
"0.7199272",
"0.7183721",
"0.7149359",
"0.71000355",
"0.7025738",
"0.7023921",
"0.7022078",
"0.692207",
"0.69195575",
"0.6912207",
"0.69036555",
"0.68821883",
"0.68726057",
"0.68159527",
"0.680629",
"0.67211485",
"0.669492... | 0.7614183 | 0 |
Returns len of the weapons inventory list. | public int getLen(){
return this.lenInventory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getInventoryLength() {\n return items.length;\n }",
"public int getItemListLength() {\n\t\treturn inventoryList.size();\n\t}",
"public int weaponCount(){\n\t\treturn weaponList.size();\n\t}",
"public int getInventorySize(){\n return inventory.size();\n }",
"public int getInve... | [
"0.8146224",
"0.79590297",
"0.7942876",
"0.77899736",
"0.76605",
"0.7487652",
"0.74364483",
"0.7413749",
"0.7345006",
"0.73196274",
"0.7245503",
"0.7239789",
"0.71706045",
"0.71410495",
"0.6936736",
"0.6896089",
"0.6880197",
"0.68625957",
"0.6815899",
"0.6795947",
"0.6729988"... | 0.7162947 | 13 |
Adds "weapon" to inventory list and adds 1 to the inventory len. | public void addToInventory(IWeapon weapon){
if (weaponsInventory.size() < 12) {
this.weaponsInventory.add(weapon);
lenInventory += 1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }",
"public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapon... | [
"0.7249407",
"0.72290266",
"0.7193756",
"0.7157891",
"0.70182204",
"0.6989073",
"0.69572526",
"0.67510545",
"0.6688268",
"0.6667882",
"0.6649934",
"0.6538827",
"0.6455517",
"0.62809336",
"0.6274706",
"0.6268788",
"0.6239787",
"0.62344456",
"0.62170494",
"0.61457884",
"0.61424... | 0.84398043 | 0 |
Returns the index of the weapon pointed in the inventory. | public int getPointer(){
return this.pointInventory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getKeyEquip() {\r\n return Input.Keys.valueOf(keyShootName);\r\n }",
"public void selectWeaponFromInventory(int weaponIndex) {\n }",
"public int getKeyInventory() {\r\n return Input.Keys.valueOf(keyInventoryName);\r\n }",
"public int getSlotForId(int itemId) {\n\t\tif (summonedFamiliar.... | [
"0.69157386",
"0.69092387",
"0.6364109",
"0.63191485",
"0.62667596",
"0.62338144",
"0.61782795",
"0.6048243",
"0.60264426",
"0.6011747",
"0.5994714",
"0.5971999",
"0.59663486",
"0.59663486",
"0.59479064",
"0.59479064",
"0.5928393",
"0.5926702",
"0.588779",
"0.5884181",
"0.584... | 0.5546116 | 54 |
Move the pointer adding slot to index without over passing the list. | public void movePoint(int slots) {
if (0 >= this.pointInventory + slots) {
this.pointInventory = 0;
}
else this.pointInventory = Math.min(this.lenInventory - 1, this.pointInventory + slots);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of t... | [
"0.6594519",
"0.64162683",
"0.6281055",
"0.59696954",
"0.59187376",
"0.5881525",
"0.584295",
"0.5827337",
"0.58104336",
"0.5789368",
"0.5777147",
"0.5775809",
"0.5754944",
"0.5741155",
"0.57310843",
"0.57218814",
"0.5713994",
"0.5706958",
"0.57064366",
"0.5700789",
"0.5692526... | 0.5902906 | 5 |
Tries to equip the pointed weapon to "character". | public void equipWeaponToCharacter (IPlayerCharacter character) {
if (lenInventory > 1){
character.equip(this.weaponsInventory.get(this.pointInventory));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void equip(@NotNull IWeapon weapon) {\n weapon.equipToMage(this);\n }",
"static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item =... | [
"0.7484595",
"0.72874904",
"0.7281916",
"0.70336413",
"0.7013687",
"0.6882019",
"0.6805368",
"0.67781645",
"0.6776489",
"0.6710464",
"0.65073705",
"0.64994884",
"0.6464585",
"0.64281136",
"0.6419106",
"0.64132917",
"0.63248503",
"0.6262601",
"0.626219",
"0.625429",
"0.6209152... | 0.85619754 | 0 |
/ Show all the different kind of sorting algorithm by applying into (num array). Display the execution time for each sorting.Example in below. Use any databases[MongoDB, Oracle or MySql] to store data and retrieve data. At the end. After running all the sorting algo, come to a conclusion which one is suitable on given ... | public static void main(String[] args) throws Exception {
int [] num = new int[10];
storeRandomNumbers(num);
ConnectToSqlDB connectToSqlDB = new ConnectToSqlDB();
String DATABASE_URL = "jdbc:mysql://localhost:3306/SortingNumbers";
Connection connection;
Statement statement;
ResultSet resultSet;
St... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void basicTime(){\t\n\t\tint[] array;\n\t\t//Basic sort timings\n\t\tSystem.out.printf(\"%12s%10s%10s%10s%10s%10s%n\", \"Size\", \"Bubble\", \"Insertion\", \"Selection\", \"Quick\", \"Merge\");\n\t\t//1K\n\t\tarray = generateArray(1000, 0, 1000);\n\t\tallSorts(array);\n\t\t//5K\n\t\tarray = generateA... | [
"0.7621797",
"0.74841356",
"0.7464871",
"0.72247547",
"0.71906805",
"0.71817386",
"0.7141358",
"0.7140602",
"0.71380955",
"0.7073149",
"0.7033847",
"0.70264286",
"0.6979787",
"0.69740105",
"0.6922179",
"0.6920319",
"0.6914739",
"0.68993866",
"0.6849338",
"0.67869824",
"0.6786... | 0.0 | -1 |
Come to conclusion about which Sorting Algo is better in given data set of 1000000. | public static void storeRandomNumbers(int [] num){
Random rand = new Random();
for(int i=0; i<num.length; i++){
num[i] = rand.nextInt(1000000);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n for (int N = 100; N <= 100000; N *= 10) {\n int[] nums = new int[N];\n Random random = new Random();\n for (int i = 0; i < N; i++) {\n nums[i] = random.nextInt(N * 10);\n }\n Long start = 0L, end... | [
"0.7391809",
"0.7236514",
"0.7122138",
"0.706443",
"0.7043802",
"0.6940194",
"0.68907636",
"0.6851048",
"0.6836351",
"0.68037117",
"0.6780683",
"0.66709477",
"0.66405773",
"0.65352947",
"0.6488178",
"0.6471974",
"0.6466819",
"0.6440438",
"0.6422076",
"0.63938373",
"0.63829386... | 0.0 | -1 |
this method used to set Create account TextView text and click event( maltipal colors for TextView yet not supported in Xml so i have done it programmatically) | private void initCreateAccountTextView() {
TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewLogin);
textViewCreateAccount.setText(fromHtml("<font color='#000000'>Sudah Memiliki Akun ? </font><font color='#03A9F4'>Login</font>"));
textViewCreateAccount.setOnClickListener(new ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initCreateAccountTextView() {\n\n TextView textViewCreateAccount = (TextView) findViewById(R.id.textViewCreateAccount);\n // El que hizo esto es un Dios\n textViewCreateAccount.setText(fromHtml(\"<font color='#000'>¿No tienes cuenta? </font><font color='#6dbaf8'>Registrate</font>\... | [
"0.77336836",
"0.67956036",
"0.62179655",
"0.6203598",
"0.61143076",
"0.60480213",
"0.60358477",
"0.6022612",
"0.5903316",
"0.58857477",
"0.5870757",
"0.5835768",
"0.5775868",
"0.5775045",
"0.57682157",
"0.5718082",
"0.5583385",
"0.55750406",
"0.55480564",
"0.55123174",
"0.55... | 0.78866404 | 0 |
This method is for handling fromHtml method deprecation | @SuppressWarnings("deprecation")
public static Spanned fromHtml(String html) {
Spanned result;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
result = Html.fromHtml(html, Html.FROM_HTML_MODE_LEGACY);
} else {
result = Html.fromHtml(html);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected SafeHtml getInnerHtml() {\n return html;\n }",
"@SuppressWarnings(\"deprecation\")\n public static String convertHTMLToText(String html) {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {\n return Html.fromHtml(html).toString();\n } else {\n return Html.... | [
"0.6370691",
"0.63587856",
"0.5999426",
"0.5975092",
"0.5932589",
"0.58973366",
"0.58486164",
"0.5772207",
"0.5772207",
"0.5752735",
"0.57386315",
"0.568106",
"0.56737727",
"0.5667373",
"0.5645717",
"0.5621892",
"0.5597636",
"0.5558469",
"0.5558469",
"0.55163294",
"0.54628456... | 0.63830954 | 1 |
Id or Primary Key | public Long getCodigo() {
return codigo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Key getPrimaryKey();",
"PrimaryKey getPrimaryKey();",
"public PrimaryKey getPrimaryKey();",
"PrimaryKey createPrimaryKey();",
"@Override\r\n\tpublic String getPrimaryKey() {\n\t\treturn \"ID\";\r\n\t}",
"PrimaryKey getPrimarykey();",
"boolean isPrimaryKey();",
"boolean getPrimaryKey();",
"Integer g... | [
"0.7700655",
"0.76706386",
"0.7525455",
"0.7435689",
"0.73732257",
"0.73181003",
"0.714519",
"0.7100053",
"0.7098249",
"0.7098249",
"0.7098249",
"0.70421845",
"0.70320594",
"0.70057327",
"0.70057327",
"0.70057327",
"0.69826597",
"0.69713634",
"0.69713634",
"0.69713634",
"0.69... | 0.0 | -1 |
UpdateableDataContext dataContext = new SalesforceDataContext("foo", "bar", "baz"); | public UpdateableDataContext connect(String uname,String pward,String secTocken)
{
UpdateableDataContext dataContext = new SalesforceDataContext(uname,pward,secTocken);
/*Table accountTable = dataContext.getDefaultSchema().getTableByName("Account");
DataSet dataSet = dataContext.query().from(accountT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataContextVariable createDataContextVariable();",
"DataContext copy();",
"@Override\n\tpublic void updateContext(Context context) {\n\t}",
"private void updateDB() {\n }",
"public int update(StoreFeedBack storeFeedBack);",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity da... | [
"0.5877179",
"0.5627164",
"0.5582676",
"0.5459141",
"0.5419703",
"0.53582025",
"0.5350152",
"0.53138447",
"0.52473533",
"0.5223909",
"0.5221889",
"0.52184576",
"0.52113396",
"0.5159721",
"0.51514214",
"0.514626",
"0.51410973",
"0.51351255",
"0.51107436",
"0.50860924",
"0.5080... | 0.63150895 | 0 |
Writes a list of rateables to the given file. | public void saveRateablesToFile(List<Rateable> allRateables, File file) throws IOException
{
try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))
{
oos.writeObject(allRateables);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void write(TraceList traceList,File file) throws IOException;",
"void writeRecordsToFile(List<IRecord> recordList) throws IOException;",
"public static void write2File(String fileName) throws IOException{\n BufferedWriter output = null;\n try {\n File file = new File(fileName);\n ... | [
"0.6427241",
"0.6417815",
"0.63403577",
"0.6213468",
"0.6120836",
"0.6109069",
"0.6080215",
"0.5940381",
"0.59159446",
"0.59029686",
"0.5890905",
"0.58858854",
"0.58633906",
"0.58475506",
"0.5846993",
"0.58340126",
"0.5822186",
"0.5808651",
"0.5793071",
"0.57870287",
"0.57715... | 0.82677364 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[][] matrix = new int[3][3];
Scanner input = new Scanner(System.in);
System.out.print("Enter a number between 0 and 511: ");
int num = input.nextInt();
String binary = decimalToBinary(num,matrix);
// put 1's and 0's using bin... | {
"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 |
Constructor que recibe referencia objeto de Clase02 | public Clase04(Clase04 o){
numPersonas++;
numero= o.numero;
nombre= o.nombre;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Clade() {}",
"public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PO... | [
"0.6202531",
"0.61958545",
"0.6101341",
"0.593528",
"0.58579785",
"0.58536786",
"0.58534044",
"0.58469874",
"0.5835514",
"0.57954013",
"0.5790912",
"0.57779336",
"0.5773361",
"0.57691395",
"0.575514",
"0.5754574",
"0.57535183",
"0.57327354",
"0.5731291",
"0.57219124",
"0.5719... | 0.6852877 | 0 |
Created by root on 17225. | public interface SpLocalFeatureList <T extends SpLocalFeature<?, ?>> extends SpRandomisableList<T>, Writeable {
/** The header used when writing LocalFeatureLists to streams and files */
public static final byte[] BINARY_HEADER = "KPT".getBytes();
/**
* Get the feature-vector data of the list as a tw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private void createAndListen() {\n\n\t\t\n\t}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"public void create() {\n\t\t\n\t}",
"private Server()\n\t{\n\t}",
"@Override\n\tpublic void createClient() {\n\t\t\n\t}",
"private Mongopool() {\n\t}",
"@Override\n protecte... | [
"0.54618734",
"0.5447993",
"0.5442807",
"0.5440822",
"0.5423148",
"0.5401264",
"0.53865457",
"0.5384872",
"0.5326929",
"0.53244555",
"0.53181",
"0.528058",
"0.52528083",
"0.5246825",
"0.52444553",
"0.51992476",
"0.519708",
"0.5190195",
"0.5172868",
"0.5170417",
"0.51692",
"... | 0.0 | -1 |
Get the featurevector data of the list as a twodimensional array of data. The number of rows will equal the number of features in the list, and the type must be compatible with the data type of the features themselves. | public <Q> Q[] asDataArray(Q[] a); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Feature[] getFeatures() {\n Feature[] features = new Feature[rows.size()];\n for(int i=0;i<features.length;i++){\n features[i] = (Feature)rows.elementAt(i);\n }\n return features;\n }",
"public float[] getVector() {\r\n\t\t\r\n\t\tfloat array[]=new float[12]... | [
"0.57748234",
"0.5739178",
"0.56056386",
"0.55990916",
"0.5596868",
"0.5596868",
"0.556698",
"0.5560309",
"0.5505868",
"0.5499706",
"0.548065",
"0.548065",
"0.5466661",
"0.5466661",
"0.53748643",
"0.5360702",
"0.53353786",
"0.5282722",
"0.5268719",
"0.52614856",
"0.522091",
... | 0.0 | -1 |
Get the length of the featurevectors of each local feature if they are constant. This value is used as instantiate new local features in the case that the local feature has a constructor that takes a single integer. | public int vecLength(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"int sizeOfFeatureArray();",
"int sizeOfFeatureArray();",
"public int numFeatures() {\n return FTypes.values().length;\n }",
"pub... | [
"0.65675867",
"0.65665287",
"0.641473",
"0.641473",
"0.6380505",
"0.6371834",
"0.6371834",
"0.631913",
"0.6293116",
"0.6282878",
"0.61860514",
"0.6178738",
"0.5995096",
"0.5972761",
"0.5969362",
"0.59286743",
"0.5819336",
"0.5795524",
"0.57403606",
"0.57403606",
"0.5692697",
... | 0.59017485 | 16 |
Ponto medio entre 2 vetores | public float dot(Vector3 other){
return r * other.r + g * other.g + b * other.b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMen... | [
"0.62965685",
"0.61776745",
"0.6161191",
"0.60899156",
"0.6086627",
"0.6051244",
"0.59951544",
"0.59881616",
"0.5976763",
"0.58928996",
"0.58548987",
"0.5847857",
"0.58478343",
"0.582919",
"0.58147347",
"0.5812558",
"0.580962",
"0.5792875",
"0.5765219",
"0.5761931",
"0.575465... | 0.0 | -1 |
Handles a request to start the Loader. | @Override
protected void onStartLoading() {
if (lecturers != null) {
// If we currently have a result available, deliver it
// immediately.
deliverResult(lecturers);
}
if (takeContentChanged() || lecturers == null) {
// If the data has changed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void startLoader(){\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<Cursor> movieLoader = loaderManager.getLoader(MOVIE_LOADER);\n if(movieLoader == null)\n loaderManager.initLoader(MOVIE_LOADER, null, this);\n else\n loaderManager.resta... | [
"0.6341039",
"0.61047137",
"0.603341",
"0.5962186",
"0.5958233",
"0.5951009",
"0.5949474",
"0.58931375",
"0.5824931",
"0.57380205",
"0.57139623",
"0.56496745",
"0.5644665",
"0.56230223",
"0.56149185",
"0.56011367",
"0.5598109",
"0.5556638",
"0.5536191",
"0.5536191",
"0.553326... | 0.5436752 | 31 |
Handles a request to stop the Loader. | @Override
protected void onStopLoading() {
// Attempt to cancel the current load task if possible.
cancelLoad();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onStopLoading() {\n // The Loader is in a stopped state, so we should attempt to cancel the\n // current load (if there is one).\n cancelLoad();\n }",
"public void stopRequest()\r\n\t{\r\n\t\tnoStopRequested = false;\r\n\t\tinternalThread.interrupt();\r\n\t}"... | [
"0.7126304",
"0.6988486",
"0.6748212",
"0.6631336",
"0.6631336",
"0.6595712",
"0.6556866",
"0.6547708",
"0.6547708",
"0.6470901",
"0.64637625",
"0.63909715",
"0.6331895",
"0.6327382",
"0.6231741",
"0.6224555",
"0.61788356",
"0.6176974",
"0.6164475",
"0.6159085",
"0.61320364",... | 0.6537105 | 11 |
Helper function to take care of releasing resources associated with an actively loaded data set. | protected void onReleaseResources(List<Lecturer> lecturers) {
// For a simple List<> there is nothing to do. For something
// like a Cursor, we would close it here.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dispose() {\r\n _isdisposed=true;\r\n try {\r\n _tables.dispose(); _tables=null;\r\n finalize();\r\n DataSet _current=this;\r\n _current=null; System.gc();\r\n }\r\n catch (Throwable ex) {\r\n throw new RuntimeException(... | [
"0.7265056",
"0.7029758",
"0.6652587",
"0.6634572",
"0.65772915",
"0.65138054",
"0.65135795",
"0.645259",
"0.6434317",
"0.640812",
"0.6407294",
"0.63389164",
"0.6334773",
"0.6309991",
"0.62835956",
"0.62727123",
"0.6259553",
"0.62480265",
"0.62365454",
"0.6220972",
"0.6209924... | 0.0 | -1 |
Implementation for the CreateNdefMessageCallback interface | @Override
public NdefMessage createNdefMessage(NfcEvent event) {
// Get Networkdata
//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);
DaoSession dbSession = HostageApplication.getInstances().getDaoSession();
DAOHelper daoHelper = new DAOHelper(dbSession,this);
ArrayList<NetworkRecord> localNetworkIn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NdefMessage createNdefMessage(NfcEvent arg0) {\n\t\treturn null;\n\t}",
"@Override\n public NdefMessage createNdefMessage(NfcEvent nfcEvent) {\n NdefRecord ndefRecord = NdefRecord.createMime(\"text/plain\", String.valueOf(Constants.user.getId()).getBytes());\n NdefMessage ndefMessage = ne... | [
"0.70205605",
"0.65515214",
"0.6252442",
"0.62240934",
"0.5947089",
"0.5888193",
"0.5834332",
"0.5791726",
"0.57683367",
"0.5702848",
"0.56830287",
"0.5642933",
"0.55041283",
"0.5487264",
"0.54322374",
"0.54251003",
"0.53619707",
"0.52974874",
"0.52973604",
"0.5290706",
"0.52... | 0.64115477 | 2 |
Implementation for the OnNdefPushCompleteCallback interface | @Override
public void onNdefPushComplete(NfcEvent arg0) {
// A handler is needed to send messages to the activity when this
// callback occurs, because it happens from a binder thread
mHandler.obtainMessage(MESSAGE_SENT).sendToTarget();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onNdefPushComplete(NfcEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void onNdefPushComplete(NfcEvent event) {\n\t\tmHandler.obtainMessage(MESSAGE_SENT).sendToTarget();\n\t\t\n\t}",
"@Override\n public void onNdefPushComplete(NfcEvent nfcEvent) {\n Handler h = handler;\n if (h !=... | [
"0.8085742",
"0.77573407",
"0.76605237",
"0.6910334",
"0.5859375",
"0.5822941",
"0.5807993",
"0.57691693",
"0.57459086",
"0.57385755",
"0.56520617",
"0.56182396",
"0.5618103",
"0.5585389",
"0.55842245",
"0.5571177",
"0.5560322",
"0.5560322",
"0.55591357",
"0.55556244",
"0.553... | 0.7966183 | 1 |
onResume gets called after this to handle the intent | @Override
public void onNewIntent(Intent intent) {
setIntent(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onResume() {\n super.onResume();\n }",
"public void onResume() {\n super.onResume();\n }",
"@Override\r\n protected void onResume() {\n super.onResume();\r\n Log.i(TAG, \"onResume\");\r\n\r\n }",
"@Override\n public void onResume() {\n ... | [
"0.82481545",
"0.82481545",
"0.8171743",
"0.8163041",
"0.8107272",
"0.8104251",
"0.810231",
"0.80898833",
"0.8079743",
"0.8067105",
"0.8055582",
"0.8055582",
"0.805065",
"0.805065",
"0.805065",
"0.805065",
"0.80438817",
"0.80438817",
"0.80438817",
"0.80438817",
"0.80226266",
... | 0.0 | -1 |
Parses the NDEF Message from the intent and prints to the TextView | void processIntent(Intent intent) {
Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
// only one message sent during the beam
NdefMessage msg = (NdefMessage) rawMsgs[0];
try {
DaoSession dbSession = HostageApplication.getInstances().getDaoSession();
DAOHelper daoHelpe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n String s = new String(msg.getRecords()[0].getPayload());\n nfcTagCode = s.substring(3);\n\n ... | [
"0.74708956",
"0.731365",
"0.7291336",
"0.66579366",
"0.63282543",
"0.632228",
"0.62526995",
"0.61113226",
"0.60543936",
"0.6019906",
"0.600098",
"0.5904095",
"0.5856813",
"0.57858574",
"0.5743493",
"0.57245463",
"0.5684897",
"0.5642867",
"0.5615898",
"0.5613456",
"0.5608354"... | 0.59322315 | 11 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.highrankwidget);
list = (ListView)findViewById(R.id.list);
activity = new ArrayList<String>();
activity.add("ListView");
activity.add("Gallery");
activity.add... | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.