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
Gets the specified justification
public TextJustification getJustification();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.JustificationEnum getJustification() {\r\n return justification;\r\n }", "public void setJustification(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.JustificationEnum justification) {\r\n this.justification = justification;\r\n }", "@Length(max = 300)\r\n\t@Column(name = \"justificacion\", unique = false, nullable = true, insertable = true, updatable = true, columnDefinition = \"varchar(300)\")\r\n\tpublic String getJustificacion() {\r\n\t\treturn justificacion;\r\n\t}", "public String orientation()\n {\n int height = cat.getWidth();\n int width = cat.getHeight();\n\n if (height >= width)\n {\n return \"landscape\";\n }\n else \n {\n return \"portrait\";\n\n }\n }", "public void setJustificacion(String justificacion) {\r\n\t\tthis.justificacion = justificacion;\r\n\t}", "public GraphicsImageWrapper setJustification(EscPosConst.Justification justification) {\n this.justification = justification;\n return this;\n }", "private String getTileOriententation(int marker) { return (marker>CONCEALED && marker<CONCEALED_END)? \" concealed\" : \"\"; }", "public boolean rightJustified(){\n return justification.equals(FormatAlignment.RIGHT_JUSTIFY);\n }", "public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }", "String getPersonality();", "public boolean centerJustified(){\n return justification.equals(FormatAlignment.CENTER_JUSTIFY);\n }", "public void setJustification(int val) throws IOException {\n writer.write(0x1B);\n writer.write(\"a\");\n writer.write(val);\n writer.flush();\n }", "public double getEmphasis();", "public boolean noJustified(){\n return justification.equals(FormatAlignment.NO_JUSTIFY);\n }", "public void setTextoJustificativo(String textoJustificativo) {\r\n this.textoJustificativo = textoJustificativo;\r\n }", "public short getTextOrientation()\n {\n return field_2_textOrientation;\n }", "String getLayout();", "public String orientation() {\n\t\tif (orientation == null)\n\t\t\tarea();\n\t\treturn orientation;\n\t}", "public static String getLayout() {\n layout = getProperty(\"layout\");\n if (layout == null) layout = \"dot\";\n return layout;\n }", "public String restrictionTemplate() {\n return mRestriction == null ? null : mRestriction.getSequenceName();\n }", "String getMIDINotation();", "private String calculateNutritionLineOne(Recipe meal){\n int calories = (int) Math.round(meal.getTotalCalories());\n int sugar = (int) Math.round(meal.getTotalSugar());\n int protein = (int) Math.round(meal.getTotalProtein());\n String lineOne = \"Calories \" + calories + \"KCal\\t Sugar \" + sugar + \" g\\t\\t Protein \" + protein + \" g\";\n return lineOne;\n }", "private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }", "public String getIndentationString() {\n String result = (String) getTextBuffer().getProperty(PTextBuffer.INDENTATION_PROPERTY);\n if (result == null) {\n result = \"\\t\";\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tString[] words = { \"This\", \"is\", \"an\", \"example\", \"of\", \"text\", \"justification.\" };\n\t\tTextJustification t = new TextJustification();\n\t\tfor (String s : t.fullJustify(words, 16)){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "private static String justifyLine(String text, int totalSpacesToInsert) {\n String[] wordArray = text.split(\"\\\\s\");\n String toAppend = \" \";\n\n while ((totalSpacesToInsert) >= (wordArray.length - 1)) {\n toAppend = toAppend + \" \";\n totalSpacesToInsert = totalSpacesToInsert - (wordArray.length - 1);\n }\n int i = 0;\n String justifiedText = \"\";\n for (String word : wordArray) {\n if (i < totalSpacesToInsert)\n justifiedText = justifiedText + word + \" \" + toAppend;\n\n else\n justifiedText = justifiedText + word + toAppend;\n\n i++;\n }\n\n return justifiedText;\n }", "public abstract int getEmphasis();", "public TextRotation getRotationRelativity();", "String describe() {\n switch (this) {\n case NORTH_4M:\n return \"north\";\n case NORTH_16M:\n return \"north_16m\";\n case SOUTH_4M:\n return \"south\";\n case SOUTH_16M:\n return \"south_16m\";\n case WILTSHIRE_4M:\n return \"wiltshire\";\n case WILTSHIRE_16M:\n return \"wiltshire_16m\";\n }\n return \"?\";\n }", "public String getOrientation(){\n\n if(robot.getRotation()%360 == 0){\n return \"NORTH\";\n } else if(robot.getRotation()%360 == 90\n ||robot.getRotation()%360 == -270){\n return \"EAST\";\n } else if(robot.getRotation()%360 == 180\n ||robot.getRotation()%360 == -180){\n return \"SOUTH\";\n } else if(robot.getRotation()%360 == 270\n ||robot.getRotation()%360 == -90){\n return \"WEST\";\n } else\n\n errorMessage(\"Id:10T error\");\n return null;\n }", "public String getOrientation() {\n\n if(getResources().getDisplayMetrics().widthPixels > \n getResources().getDisplayMetrics().heightPixels) { \n return \"LANDSCAPE\";\n } else {\n return \"PORTRAIT\";\n } \n \n }", "protected String getIndent() \r\n\t{\r\n\tStringBuffer buffer = new StringBuffer();\r\n\tfor (int i = 0; i < indent; ++i)\r\n\t\tbuffer.append(' ');\r\n\treturn buffer.toString();\r\n\t}", "String getDesignation();", "public static String getAlignedWord(String word, int length) {\n SpreedWord pivot = new SpreedWord();// to get the pivot.\n String alignWord = \"<html>\"; // get the align word.\n double align; // get number of spaces\n double count = 0; // count the number of spaces\n double leftSpace; // geting left space\n double rightSpace = 0; // get right space\n int getPivot; // get pivot number\n // this check to see if the length is even add one\n if (length % 2 == 0) {\n length = length + 1;\n }\n // this checks for commas and semicolons and periods.\n for (int i = 0; i < word.length(); i++) {\n if (word.charAt(i) == '.') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ';') {\n word = word.substring(0, word.length() - 1);\n break;\n } else if (word.charAt(i) == ',') {\n word = word.substring(0, word.length() - 1);\n break;\n }\n }\n // this gets the pivot\n getPivot = pivot.getPivot(word);\n // takes half the length\n align = length / 2;\n // gets the numbers space before the pivot.\n char[] letters = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (!Character.isLetter(letters[i])) {\n count++;\n } else {\n break;\n }\n }\n // get left spaces\n align = align - (getPivot + count);\n\n leftSpace = align;\n\n // adding the left spaces\n for (int i = 0; i < leftSpace; i++) {\n alignWord += \"&nbsp;\";\n }\n // add the word\n alignWord += word.substring(0, getPivot);\n alignWord += \"<font color=\\\"yellow\\\">\";\n alignWord += word.charAt(getPivot);\n alignWord += \"</font>\";\n for (int i = getPivot + 1; i < word.length(); i++)\n alignWord += word.charAt(i);\n //alignWord += word.substring(getPivot + 1, word.length() - getPivot + 1);\n // adding the right space or truncate\n if (alignWord.length() > length) {\n\n } else {\n rightSpace = length - alignWord.length();\n for (int j = 0; j < rightSpace; j++) {\n alignWord += \" \";\n }\n }\n\n alignWord += \"</html>\";\n System.out.println(alignWord);\n\n return alignWord;\n }", "public StrColumn getLabelAltIdW() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"label_alt_id_w\", StrColumn::new) :\n getBinaryColumn(\"label_alt_id_w\"));\n }", "private String createDistrictName(String districtLine){\n if(districtLine.contains(\"Representative\")) {\n return \"State House District \" + districtLine.split(\" \")[districtLine.split(\" \").length-1];\n }\n else if(districtLine.contains(\"Senator\")){\n return \"State Senate District \" + districtLine.split(\" \")[districtLine.split(\" \").length-1];\n }\n else{\n return null;\n }\n }", "java.lang.String getMent();", "@Override\r\n public String format(String text, int limit, boolean justify) throws PalavraMaiorException {\r\n StringBuilder stringBuilder = new StringBuilder(text);\r\n try {\r\n new IdwallFormatterValidate().validarTextoEntrada(text, limit);\r\n\r\n for (int i = limit; i <= stringBuilder.length(); i += limit) {\r\n\r\n char primeiroCaracter = stringBuilder.charAt(i);\r\n String[] linhas = stringBuilder.substring(i - limit + 2, i).split(newline);\r\n\r\n if (linhas.length >= 2) {\r\n for (int x = 1; x <= linhas.length - 1; x++) {\r\n i -= linhas[x].length();\r\n }\r\n } else {\r\n while (primeiroCaracter != ' ') {\r\n i--;\r\n primeiroCaracter = stringBuilder.charAt(i);\r\n }\r\n stringBuilder.deleteCharAt(i);\r\n stringBuilder.insert(i, newline);\r\n }\r\n }\r\n if (justify) {\r\n stringBuilder = justify(stringBuilder.toString(), limit);\r\n }\r\n } catch (PalavraMaiorException ex) {\r\n throw ex;\r\n }\r\n return stringBuilder.toString();\r\n }", "java.lang.String getPrenume();", "@JSProperty(\"textAlign\")\n @Nullable\n String getTextAlign();", "String getParagraph();", "String getUnitsString();", "public static String formatCertification(MediaCertification cert, CertificationStyle style) {\n if (cert == MediaCertification.UNKNOWN) {\n return \"\";\n }\n\n switch (style) {\n case SHORT:\n return cert.getName();\n\n case MEDIUM:\n return cert.getCountry().getAlpha2() + \": \" + cert.getName();\n\n case MEDIUM_FULL:\n return cert.getCountry().getName() + \": \" + cert.getName();\n\n case LARGE:\n return MediaCertification.generateCertificationStringWithAlternateNames(cert);\n\n case LARGE_FULL:\n return MediaCertification.generateCertificationStringWithAlternateNames(cert, true);\n\n case TECHNICAL:\n return cert.name();\n\n default:\n return \"\";\n }\n }", "java.lang.String getIndispensableYn();", "java.lang.String getIndispensableYn();", "public int getAlignment()\n {\n return align;\n }", "public String getTreatment()\n {\n return this.treatment;\n \n }", "private String getFinalText(Unit units, int lowerBound, int upperBound) {\n if (shouldUseUpToFormat(lowerBound)) return useUpToFormat(units, upperBound);\n return useRangeFormat(units, lowerBound, upperBound);\n }", "public short getHorizontalAlignment()\n {\n return halign;\n }", "String getDoctorName();", "String getUnit();", "public IfcPositiveLengthMeasure getCasingThickness()\n\t{\n\t\treturn this.CasingThickness;\n\t}", "public String getUnderline() {\n return underline.getText(); /*FAULT:: return \"y\"; */\n }", "public String unit() {\n return this.unit;\n }", "protected String getIndentString() {\n return indent.toString();\n }", "private String centerName(int totalLength) {\n\t\tString name = getHotel().getName().toUpperCase();\n\t\tint spaces = totalLength - name.length();\n\t\tif (!(spaces % 2 == 1)) {\n\t\t\tspaces--;\n\t\t\tname += \" \";\n\t\t}\n\t\tfor (int i = 0; i < spaces / 2; i++) {\n\t\t\tname = \" \" + name + \" \";\n\t\t}\n\t\treturn \" \" + name;\n\t}", "String getPersonalityIdentifier();", "public IOrientation getOrientation();", "public String getAlign() {\n return align;\n }", "public String getUnit()\n {\n return (this.unit);\n }", "@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }", "public static String nameLeftValueRightJustify(String param1, String param2,\r\n\t\t\tint cpl) {\r\n\t\t if(param1 == null)\r\n \tparam1 = \"\";\r\n if(param2 == null)\r\n \tparam2 = \"\";\r\n\t\tint len = param1.length();\r\n\t\treturn param1.trim()+rightJustify(param2, (cpl - len));\r\n\t}", "public int getHorizontalAlignment() {\n return horizontalAlignment;\n }", "private String getPurposeString( String purposeName ) {\n String purpose = \"\";\n int index = purposeName.indexOf( '_' );\n\n // if there's no '_', the purposeName has no segments.\n if ( index < 0 ) {\n purpose = purposeName;\n }\n // if there is a '_', the purpose is the substring preceding it.\n else {\n purpose = purposeName.substring(0, index);\n }\n return purpose;\n }", "@Override\n public java.lang.String getLegalPersonality() {\n return _entityCustomer.getLegalPersonality();\n }", "public String getAutosizing()\n{\n String li = _layoutInfo instanceof String? (String)_layoutInfo : null;\n return li!=null && li.length()>6 && (li.charAt(0)=='-' || li.charAt(0)=='~')? li : getAutosizingDefault();\n}", "public static String GetLevelTpye(int levelNum){\n\t\tif(levelNum==0){\n\t\t\treturn \"puzzle\";\n\t\t}\n\t\telse if(levelNum==1){\n\t\t\treturn \"lightning\";\n\t\t}\n\t\telse {\n\t\t\treturn \"release\";\n\t\t}\n\t}", "java.lang.String getDegreeName();", "public static String formatColumn(String colText, Integer colWidth, boolean leftJustify) {\t\t\n\t\tString str50Spaces = \" \";\n\t\tString paddedResult;\n\t\tif (leftJustify) paddedResult = (colText + str50Spaces).substring(0, colWidth);\n\t\telse paddedResult = (str50Spaces + colText).substring(colWidth - colText.length());\n\t\treturn paddedResult;\n\t}", "String getPunctuation();", "public String getZoomAsText() {\n\tString newItem = format.format(zoom * multiplier);\n\treturn newItem;\n}", "boolean getAligning();", "static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}", "public String look() {\r\n currentRoom = player.getCurrentRoom();\r\n String res;\r\n res = currentRoom.getTitle() + System.getProperty(\"line.separator\");\r\n res += currentRoom.getDescription() + System.getProperty(\"line.separator\");\r\n res += currentRoom.getAvailableDirections() + System.getProperty(\"line.separator\");\r\n res += currentRoom.getMonstersToString();\r\n\r\n return res;\r\n }", "public String getFaculty() {\n String tamperedFaculty = faculty.toUpperCase();\n return tamperedFaculty;\n }", "String getLevelName();", "String getLevelName();", "String getLevelName();", "float getHeading();", "float getHeading();", "float getHeading();", "private String getString() {\n TableRow<Story> row = getTableRow();\n Story story = null;\n Integer priority;\n String priorityString = null;\n if (row != null) {\n story = row.getItem();\n }\n if (story != null) {\n priority = getModel().getStoryPriority(story);\n if (priority != -1) {\n priorityString = priority.toString();\n }\n else {\n priorityString = \"-\";\n }\n }\n\n return priorityString;\n }", "public String levelName() {\n return \"Wide Easy\";\n }", "public String levelName() {\r\n return new String(\"Final Four\");\r\n }", "String validateAlignment() {\n\t\treturn null;\n\t}", "Rule IndentChar() {\n return FirstOf(Letter(), Digit(), \".\", \"_\");\n }", "public float getCharSpacing()\n {\n return (float) getStyle().getCharSpacing();\n }", "String levelName();", "public String getUnit();", "private int getMinimumWrapMarkWidth() {\n return metrics[Font.PLAIN].charWidth('W');\n }", "String getSpace();", "java.lang.String getRule();", "@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}", "private static String getProteinHeader() {\r\n return \"Protein Family No.\" + SEP\r\n + \"Protein Family Name\" + SEP\r\n + \"Spectral Count\" + SEP\r\n + \"Protein No.\" + SEP\r\n + \"Accession\" + SEP\r\n + \"Description\" + SEP\r\n + \"Species\" + SEP\r\n + \"MW [kDa]\" + SEP;\r\n }", "public java.lang.String getCellpadding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CELLPADDING$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public int getHorizontalAlignment()\n {\n return field.getHorizontalAlignment();\n }", "protected String paramString() {\n String horizontalAlignmentString;\n if (horizontalAlignment == LEFT) {\n\t horizontalAlignmentString = \"LEFT\";\n\t} else if (horizontalAlignment == CENTER) {\n\t horizontalAlignmentString = \"CENTER\";\n\t} else if (horizontalAlignment == RIGHT) {\n\t horizontalAlignmentString = \"RIGHT\";\n\t} else if (horizontalAlignment == LEADING) {\n\t horizontalAlignmentString = \"LEADING\";\n\t} else if (horizontalAlignment == TRAILING) {\n\t horizontalAlignmentString = \"TRAILING\";\n\t} else horizontalAlignmentString = \"\";\n String commandString = (command != null ?\n\t\t\t\tcommand : \"\");\n\n return super.paramString() +\n \",columns=\" + columns +\n \",columnWidth=\" + columnWidth +\n \",command=\" + commandString +\n \",horizontalAlignment=\" + horizontalAlignmentString;\n }", "public int getAlignment()\n {\n return bouquet.getAlignment();\n }", "@Override\r\n\tpublic String getFortune() {\n\t\tString[] s= {\"have a nice day :)\",\r\n\t\t\t\t\"attaboy!\",\r\n\t\t\t\t\"good fortune to you <3\"\r\n\t\t};\r\n\t\tint x;\r\n\t\tx=((int)(Math.random()*9))%3;\r\n\t\t\r\n\t\treturn s[x] ;\r\n\t}", "private static String getLower(MultiplicityInterval occ) {\n return Integer.toString(getLowerNumber(occ));\n }" ]
[ "0.6991154", "0.6030807", "0.57112366", "0.5521924", "0.54369116", "0.53623354", "0.53428936", "0.5299692", "0.5178745", "0.51555324", "0.5129962", "0.5088445", "0.50741863", "0.50673515", "0.50401133", "0.5018148", "0.49838796", "0.49553242", "0.49369818", "0.4932562", "0.48755038", "0.48642012", "0.4855914", "0.4851535", "0.48457602", "0.48385292", "0.48285615", "0.48238954", "0.48184347", "0.48143816", "0.48015216", "0.47952336", "0.47936803", "0.47924525", "0.4768616", "0.47242606", "0.47201237", "0.4719055", "0.47189647", "0.47176847", "0.46991012", "0.46987984", "0.46910352", "0.4676994", "0.4676994", "0.4670292", "0.46648198", "0.4660852", "0.46589035", "0.4657276", "0.46480837", "0.46350753", "0.46224236", "0.4610899", "0.46082464", "0.46010107", "0.45986855", "0.45941126", "0.45920533", "0.45873788", "0.4582046", "0.45793414", "0.45714098", "0.4570258", "0.45582384", "0.45581043", "0.45546392", "0.45519242", "0.45341513", "0.4517469", "0.45147663", "0.45146444", "0.44925672", "0.44910976", "0.4487558", "0.4486922", "0.4486922", "0.4486922", "0.44859162", "0.44859162", "0.44859162", "0.44840604", "0.44768012", "0.4473848", "0.44732767", "0.44699875", "0.4469285", "0.4469037", "0.44665906", "0.4465275", "0.44643936", "0.44592804", "0.44580582", "0.44527504", "0.44486734", "0.44485688", "0.4444255", "0.44441727", "0.44424722", "0.44423974" ]
0.8130194
0
Gets the rotation angle to use
public double getRotation();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "double getAngle();", "double getAngle();", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "public double getAngle();", "public double getAngle ()\n {\n return angle_;\n }", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public int getAngle() {\r\n return angle;\r\n }", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double getAngle() { return angle; }", "public float getAngle() {\n return angle;\n }", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "public float getAngle() {\n return angle;\n }", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double getRotation() {\n return getDouble(\"ts\");\n }", "int getRotationDegrees() {\n return rotationDegrees;\n }", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public float getAngle() {\n return mAngle;\n }", "public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public float getRotation() {\n\t\treturn rotation;\n\t}", "EDataType getAngleDegrees();", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "public float getRotation() {\n return this.rotation;\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "int getSensorRotationDegrees();", "int getStartRotationDegree();", "public float getRotation()\n {\n return rotation;\n }", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "public int getGyroAngle() {\r\n \treturn (int)Math.round(gyro.getAngle());\r\n }", "public double radians() {\n return Math.toRadians(this.degrees);\n }", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "public double getdegRotationToTarget() {\n NetworkTableEntry tx = m_table.getEntry(\"tx\");\n double x = tx.getDouble(0.0);\n return x;\n }", "public float getRawRotationAngle() {\n return this.mRawRotationAngle;\n }", "public double findAngle() {\n return 0d;\n }", "public int getDeviceRotation();", "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "DMatrix3C getRotation();", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "public float getAngle() {\n if(vectorAngle < 0 )\n return (float) Math.toDegrees(Math.atan(longComponent / latComponent));\n else\n return vectorAngle;\n\n }", "protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }", "public double getStartAngle();", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public float getBaseRotation() {\n return this.baseRotation;\n }", "private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 - Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 + Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 90 - Math.abs(rotation);\r\n\t\t\trotation = 270 + rotation;\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY == 0)\r\n\t\t\trotation = 0;\r\n\t\telse if(tarX == 0 && tarY > 0)\r\n\t\t\trotation = 90;\r\n\t\telse if(tarX < 0 && tarY == 0)\r\n\t\t\trotation = 180;\r\n\t\telse if(tarX == 0 && tarY < 0)\r\n\t\t\trotation = 270;\r\n\t\t\r\n\t\treturn (rotation - 90);\r\n\t}", "public mat4 getRotation() {\n return worldMatrix.getRotation(pr, yr, pr);\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "int getEndRotationDegree();", "float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }", "double getAngle(int id);", "public double nextAngle()\n {\n return nextAngle();\n }", "public int getCurrentAngle(){\n return flatbed.currentAngle;\n }", "private double getRotationMomentum()\n\t{\n\t\treturn getRotation() * this.currentMomentMass;\n\t}", "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "public double getRotation1() {\n return rotation1;\n }", "public static int getRotationAngle(RotationOptions rotationOptions, EncodedImage encodedImage) {\n if (!rotationOptions.rotationEnabled()) {\n return 0;\n }\n int extractOrientationFromMetadata = extractOrientationFromMetadata(encodedImage);\n if (rotationOptions.useImageMetadata()) {\n return extractOrientationFromMetadata;\n }\n return (extractOrientationFromMetadata + rotationOptions.getForcedAngle()) % FULL_ROUND;\n }", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}" ]
[ "0.829856", "0.819764", "0.8142991", "0.81035364", "0.8014005", "0.7992899", "0.7850122", "0.7850122", "0.7831463", "0.7800121", "0.77861184", "0.77580583", "0.7745483", "0.7743581", "0.77358675", "0.77301043", "0.7711988", "0.77035004", "0.7686652", "0.7684821", "0.7684821", "0.7676201", "0.76737213", "0.76737213", "0.75860673", "0.75776523", "0.75668186", "0.75603974", "0.7556274", "0.7552137", "0.7550328", "0.7512127", "0.75098574", "0.75095487", "0.74978846", "0.7490225", "0.7471616", "0.7471294", "0.74637103", "0.7453267", "0.74201185", "0.74096", "0.73910385", "0.73489666", "0.73065704", "0.7306029", "0.7296295", "0.7289325", "0.72787595", "0.7278242", "0.72556514", "0.7238745", "0.7227374", "0.72184545", "0.7210815", "0.72007203", "0.71827155", "0.71821785", "0.71660954", "0.7151906", "0.71124923", "0.7097492", "0.70959836", "0.7083167", "0.70680153", "0.7061026", "0.69899094", "0.6972677", "0.6971866", "0.69614446", "0.69586223", "0.6918623", "0.69146526", "0.6912942", "0.690495", "0.6862914", "0.6856878", "0.68564576", "0.68552333", "0.6852369", "0.68508905", "0.6845505", "0.6842995", "0.6796484", "0.67933667", "0.67840123", "0.67739797", "0.67642623", "0.6748192", "0.6735728", "0.67301905", "0.6717063", "0.6690028", "0.6685251", "0.6678285", "0.667432", "0.6656627", "0.66557926", "0.66556233", "0.66492003" ]
0.79358464
6
Gets how the rotation angle is applied
public TextRotation getRotationRelativity();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getRotation();", "public static double rotation()\r\n\t{\r\n\t\treturn -(mxp.getAngle()/45);\r\n\t}", "public double getRotation()\n\t{\n\t\tdouble determinant = this.basisDeterminant();\n\t\tTransform2D m = orthonormalized();\n\t\tif (determinant < 0) \n\t\t{\n\t\t\tm.scaleBasis(new Vector2(1, -1)); // convention to separate rotation and reflection for 2D is to absorb a flip along y into scaling.\n\t\t}\n\t\treturn Math.atan2(m.matrix[0].y, m.matrix[0].x);\n\t}", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public double getAngle() {\n synchronized (this.angleLock) {\n return this.movementComposer.getOrientationAngle();\n }\n }", "public double getAngle();", "public double getAngle() {\n\t\treturn 180 * (this.N - 2) / this.N;\n\t}", "public Rotation2d getAngle() {\n // Note: This assumes the CANCoders are setup with the default feedback coefficient\n // and the sesnor value reports degrees.\n return Rotation2d.fromDegrees(canCoder.getAbsolutePosition());\n }", "double getAngle();", "double getAngle();", "private double getAngle()\n {\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return angles.firstAngle;\n }", "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "public double getRotationAngle() {\n\t\treturn _rotationAngle;\n\t}", "public int getAngle() {\r\n return angle;\r\n }", "public double getRotationAngleInRadians() {\n return Math.toRadians(rotationAngle);\n }", "public double getAngle() { return angle; }", "public float getRotationAngle() {\n return this.mRotationAngle;\n }", "public double getAngle ()\n {\n return angle_;\n }", "public double getAngle() {\n return Math.atan2(sinTheta, cosTheta);\n }", "public float getRotationAngle() {\n return mPolygonShapeSpec.getRotation();\n }", "public double getRotation() {\n return getDouble(\"ts\");\n }", "public int getAngle() {\r\n\t\treturn angle;\r\n\t}", "public double getAngle() {\n return angle;\n }", "public double getAngle() {\n return angle;\n }", "public int getAngle(){\n\t\treturn (int)angle;\n\t}", "public int getRotation() {\n\t\treturn config & 0x3;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public double getAngle() {\n\t\treturn angle;\n\t}", "public float getAngle() {\n return angle;\n }", "public double getAngle() {\n\t\treturn armMotor.getEncPosition();\n\t}", "private double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "private double getAngle() {\n // We experimentally determined the Z axis is the axis we want to use for\n // heading angle. We have to process the angle because the imu works in\n // euler angles so the Z axis is returned as 0 to +180 or 0 to -180\n // rolling back to -179 or +179 when rotation passes 180 degrees. We\n // detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC,\n AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public float getAngle() {\n return angle;\n }", "public double getAngle()\n {\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return globalAngle;\n }", "public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "public double getAngle () {\n return super.getAngle() % 360D;\n }", "public double getAngle(){\n\t\treturn this.angle;\n\t}", "public double angle()\n {\n return Math.atan2(this.y, this.x);\n }", "public int getAngle(){\n\t\tif(!resetCoordinates()&&robot.imu1.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu1.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(!resetCoordinates()&&robot.imu.isGyroCalibrated()){\n\t\t\trobot.angles=robot.imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.YZX, AngleUnit.DEGREES);\n\t\t\tdouble currentAngle=robot.angles.firstAngle;\n\t\t\tint finalAngle= robot.startingAngle+(int)Math.round(currentAngle);\n\t\t\tif(finalAngle<0){\n\t\t\t\treturn 360+finalAngle;\n\t\t\t}\n\t\t\treturn finalAngle;\n\n\t\t}\n\t\telse if(resetCoordinates()){\n\t\t\tdouble oldAngle = robot.rotation.thirdAngle;\n\t\t\tdouble posAngle = oldAngle;\n\t\t\tint finalAngle;\n\t\t\tif (oldAngle < 0) posAngle = 360 - Math.abs(oldAngle);\n\t\t\tif((int) (Math.round(posAngle)) - 45 < 0){\n\t\t\t\tfinalAngle = 360-(int)Math.round(posAngle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfinalAngle = (int) (Math.round(posAngle)) - 45;\n\t\t\t}\n\t\t\treturn finalAngle;\n\t\t}\n\t\telse{\n\t\t\treturn 10000;\n\t\t}\n\t}", "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "int getRotationDegrees() {\n return rotationDegrees;\n }", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public double getTurnAngle() {\n return getTurnAngle(turnEncoder.getCount());\n }", "public float getRotation()\n {\n return rotation;\n }", "public double getAngle() {\n\t\treturn this.position[2];\n\t}", "public double getAngle() {\n if (r == 0) {\n if (i == 0)\n return 0;// error?\n if (i > 0)\n return p2;\n else\n return -p2;\n }\n double d = Math.atan(i / r);\n if (r >= 0) {\n return d;\n }\n if (i >= 0)\n return Math.PI + d;\n return d + Math.PI;\n }", "public double getRotDiff() {\n\t\treturn rotDiff;\n\t}", "public double getAngle()\n {\n return (AngleAverage);\n }", "public double getAngle() {\n try {\n switch(Coordinates.angleUnit()) {\n case Coordinates.RADIAN:\n\treturn Double.parseDouble(deg.getText().trim());\n case Coordinates.DEGRE:\n\treturn Math.PI * Double.parseDouble(deg.getText().trim()) / 180.0;\n case Coordinates.DEGMN:\n\tString d = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tString m = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\");\n case Coordinates.DEGMNSEC:\n\td = deg.getText().trim();\n\tif(d.length() == 0)\n\t d = \"0\";\n\tm = mn.getText().trim();\n\tif(m.length() == 0)\n\t m = \"0\";\n\tString s = sec.getText().trim();\n\tif(s.length() == 0)\n\t s = \"0\";\n\treturn Coordinates.parseAngle(d + \"11\" + m + \"'\" + s + \"\\\"\");\n }\n }\n catch(NumberFormatException e) {\n }\n return 0.0;\n }", "public double getAngle2() {\n\n // We experimentally determined the Z axis is the axis we want to use for heading angle.\n // We have to process the angle because the imu works in euler angles so the Z axis is\n // returned as 0 to +180 or 0 to -180 rolling back to -179 or +179 when rotation passes\n // 180 degrees. We detect this transition and track the total cumulative angle of rotation.\n\n Orientation angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n\n\n\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n\n globalAngle += deltaAngle;\n\n lastAngles = angles;\n\n return (globalAngle);\n\n }", "public float getRotation() {\n\t\treturn rotation;\n\t}", "public int getRotations();", "double getCalibratedLevelAngle();", "public double angle() {\n return Math.atan2(_y,_x);\n }", "public double getOrientation()\r\n\t{\r\n\t\treturn Math.atan2(-end.getY()+start.getY(), end.getX()-start.getX());\r\n\t}", "public float getRotation() {\n return this.rotation;\n }", "public double getPerihelionAngle() {\n return perihelionAngle;\n }", "public double getAngle() {\n\t\treturn Math.atan2(imaginary, real);\n\t}", "public float getAngle() {\n return mAngle;\n }", "public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }", "public int getDeviceRotation();", "public double getAngle() {\n\t\treturn navx.getAngle();\n\t}", "int getStartRotationDegree();", "int getSensorRotationDegrees();", "public static double getAngle() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ts\").getDouble(0);\n }", "public double angle() {\n double angle = Math.toDegrees(Utilities.calculateAngle(this.dx, -this.dy));\n return angle;\n }", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 - Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 + Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 90 - Math.abs(rotation);\r\n\t\t\trotation = 270 + rotation;\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY == 0)\r\n\t\t\trotation = 0;\r\n\t\telse if(tarX == 0 && tarY > 0)\r\n\t\t\trotation = 90;\r\n\t\telse if(tarX < 0 && tarY == 0)\r\n\t\t\trotation = 180;\r\n\t\telse if(tarX == 0 && tarY < 0)\r\n\t\t\trotation = 270;\r\n\t\t\r\n\t\treturn (rotation - 90);\r\n\t}", "public double getAngle() {\n\t\tdouble angle = Math.atan2(imaginary, real);\n\t\tangle = fixNegativeAngle(angle);\n\n\t\treturn angle;\n\t}", "public double getAngleInDegrees() {\n return intakeAngle;\n }", "double adjust_angle_rotation(double angle) {\n double temp;\n temp=angle;\n if(temp>90) {\n temp=180-temp;\n }\n return temp;\n }", "float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }", "public double getAngleYZ() {\r\n\t\tdouble l = this.lenght();\r\n\t\tif (l==0)\r\n\t\t\treturn 0;\r\n\t\treturn Math.asin(this.x/l);\r\n\t}", "public float getOrientation() {\n return this.orientation + this.baseRotation;\n }", "public abstract double getOrientation();", "private double getAngle(){\n //Get a new angle measurement\n angles = imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n //Get the difference between current angle measurement and last angle measurement\n double deltaAngle = angles.firstAngle - lastAngles.firstAngle;\n\n //Process the angle to keep it within (-180,180)\n //(Once angle passes +180, it will rollback to -179, and vice versa)\n if (deltaAngle < -180)\n deltaAngle += 360;\n else if (deltaAngle > 180)\n deltaAngle -= 360;\n\n //Add the change in angle since last measurement (deltaAngle)\n //to the change in angle since last reset (globalAngle)\n globalAngle += deltaAngle;\n //Set last angle measurement to current angle measurement\n lastAngles = angles;\n\n return globalAngle;\n }", "public double getAngle() {\n\treturn CVector.heading(v1, v2);\n }", "public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }", "EDataType getAngleDegrees();", "private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}", "public float getAzimuthAngle()\n {\n return azimuth_slider.getValue() / ANGLE_SCALE_FACTOR;\n }", "public double getRotation1() {\n return rotation1;\n }", "public double getYawAngle () {\n return gyro.getAngle() * Math.PI / 180; //Convert the angle to radians.\n }", "public double currentAngle() {\n return imu.getAngularOrientation(AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES).firstAngle;\r\n }", "private double getRotationMomentum()\n\t{\n\t\treturn getRotation() * this.currentMomentMass;\n\t}", "public double toAngle()\n\t{\n\t\treturn Math.toDegrees(Math.atan2(y, x));\n\t}", "public int getCameraSensorRotation();", "public float getPitchAngle() { return PitchAngle; }", "public float getAngle () {\n\t\treturn body.getAngle();\n\t}", "public double getGryoAngle() {\n\n\t\t// Normalize the angle\n\t\tdouble angle = gyro.getAngle() % 360;\n\n\t\tif (angle < 0) {\n\t\t\tangle = angle + 360;\n\t\t}\n\n\t\treturn angle;\n\t}", "public double getGyroAngle() {\n double[] ypr = new double[3];\n gyro.GetYawPitchRoll(ypr);\n return ypr[0];\n }", "public float getRawRotationAngle() {\n return this.mRawRotationAngle;\n }", "private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientation().firstAngle;\n\n\t\t// Finally we calculate a computedTarget from the current angle heading.\n\t\tdata.PID.computedTarget = data.PID.headings[1] + (data.PID.IMURotations * 360);\n\n\t\t// Now we determine if we need to re-calculate the angles.\n\t\tif(data.PID.headings[0] > 300 && data.PID.headings[1] < 60) {\n\t\t\tdata.PID.IMURotations++; //rotations of 360 degrees\n\t\t\tcalculateAngles();\n\t\t} else if(data.PID.headings[0] < 60 && data.PID.headings[1] > 300) {\n\t\t\tdata.PID.IMURotations--;\n\t\t\tcalculateAngles();\n\t\t}\n\t\treturn data.PID.headings[1];\n\t}", "public double getRotationalPeriod() {\n return rotationalPeriod;\n }", "public double getRawAngle()\n {\n double Angle = 0.0;\n\n switch (MajorAxis)\n {\n case X:\n Angle = getAngleX();\n break;\n case Y:\n Angle = getAngleY();\n break;\n case Z:\n Angle = getAngleZ();\n break;\n }\n\n return(Angle);\n }", "int getEndRotationDegree();", "protected float getGyroscopeAngle() {\n if (doGyro) {\n Orientation exangles = bosch.getAngularOrientation(AxesReference.EXTRINSIC, AxesOrder.XYZ, AngleUnit.DEGREES);\n float gyroAngle = exangles.thirdAngle;\n //exangles.\n //telemetry.addData(\"angle\", \"angle: \" + exangles.thirdAngle);\n float calculated = normalizeAngle(reverseAngle(gyroAngle));\n //telemetry.addData(\"angle2\",\"calculated:\" + calculated);\n return calculated;\n } else {\n return 0.0f;\n }\n }", "public float getBaseRotation() {\n return this.baseRotation;\n }", "DMatrix3C getRotation();", "public double getHeadingInDegrees(){\r\n double headingRadians = calculateHeadingRadians();\r\n return headingRadians * 180 / Math.PI;\r\n }" ]
[ "0.78736454", "0.78696454", "0.7688278", "0.76305455", "0.7611532", "0.75638753", "0.75362605", "0.752566", "0.7515651", "0.7515651", "0.75123465", "0.7481903", "0.7470624", "0.7462207", "0.743856", "0.7424139", "0.7423161", "0.74081904", "0.7407387", "0.7385919", "0.7373047", "0.7367683", "0.73651874", "0.73651874", "0.7330615", "0.72952425", "0.7289192", "0.7289192", "0.7287101", "0.72743785", "0.7272151", "0.72687674", "0.7254134", "0.72354954", "0.7234283", "0.72220343", "0.72130054", "0.71726346", "0.7167353", "0.71668464", "0.71590316", "0.7151902", "0.71176165", "0.7104347", "0.7096762", "0.7096128", "0.70910037", "0.7090459", "0.7072646", "0.7057791", "0.7056697", "0.70552105", "0.7033614", "0.70245534", "0.7022641", "0.7018475", "0.7011099", "0.70107836", "0.6990581", "0.69728065", "0.6962102", "0.69558394", "0.695353", "0.69341177", "0.6933558", "0.69261885", "0.6924502", "0.6920279", "0.69122726", "0.69118387", "0.6895127", "0.68776065", "0.6862955", "0.68544406", "0.6846492", "0.68134505", "0.68121225", "0.6810595", "0.6777911", "0.6773875", "0.67716295", "0.677101", "0.6769004", "0.67429125", "0.6738611", "0.67162746", "0.67088246", "0.6693089", "0.668408", "0.66622597", "0.664313", "0.66326654", "0.66310275", "0.66236174", "0.6618922", "0.66172886", "0.6616547", "0.6606373", "0.65861225", "0.65844685" ]
0.66652364
89
Determines whether the text should be displayed with an outline box
public DisplayType getDisplayType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean mustDrawOutline()\n {\n return this.getActiveAttributes().isDrawOutline();\n }", "@Override\r\n public boolean isText ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isText();\r\n }", "private boolean hasAnOutline()\n {\n return getEntryEditorWidgetTreeViewerInput() != null;\n }", "public boolean isLetterBoxPainting ()\r\n {\r\n return constants.letterBoxPainting.getValue();\r\n }", "private void paintBox(Graphics g, TextInBox textInBox) {\n g.setColor(BOX_COLOR);\n Rectangle2D.Double box = getBoundsOfNode(textInBox);\n g.fillRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n g.setColor(BORDER_COLOR);\n g.drawRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n\n // draw the text on top of the box (possibly multiple lines)\n g.setColor(TEXT_COLOR);\n String[] lines = textInBox.text.split(\"\\n\");\n FontMetrics m = getFontMetrics(getFont());\n int x = (int) box.x + ARC_SIZE / 2;\n int y = (int) box.y + m.getAscent() + m.getLeading() + 1;\n for (int i = 0; i < lines.length; i++) {\n g.drawString(lines[i], x, y);\n y += m.getHeight();\n }\n }", "boolean hasIndispensableYn();", "boolean hasIndispensableYn();", "public boolean isSimple() {\r\n return this.mTextBackgroundColor == 1 && this.mTextSelectionStart == 0 && this.mTextSelectionEnd == 0 && this.mLineCharOffsets == null && this.mLineBaselines == null && this.mHint == null;\r\n }", "boolean is(TextStyle style);", "public boolean isTextPainted() {\r\n return textPainted;\r\n }", "public boolean isTextPainted() {\r\n return textPainted;\r\n }", "boolean isDrawOutline(DrawContext dc, Object shape);", "public void testStyleWhenSelectionIsInsideText()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n doTestStyleWhenSelectionIsInsideText();\n }\n });\n }", "public boolean inVerticalBlank();", "boolean checkBorders();", "protected boolean showOutlineView() {\r\n\t\treturn false;\r\n\t}", "public String getOutline() {\n return outline;\n }", "public void testStyleWhenCaretIsInsideText()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n doTestStyleWhenCaretIsInsideText();\n }\n });\n }", "private static void drawOutlineText(Canvas canvas, Paint textPaint, String str,\n float x, float y) {\n // Is there a better way to do this?\n textPaint.setColor(0xff000000);\n canvas.drawText(str, x-1, y, textPaint);\n canvas.drawText(str, x+1, y, textPaint);\n canvas.drawText(str, x, y-1, textPaint);\n canvas.drawText(str, x, y+1, textPaint);\n canvas.drawText(str, x-0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x-0.7f, y+0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y+0.7f, textPaint);\n textPaint.setColor(0xffffffff);\n canvas.drawText(str, x, y, textPaint);\n }", "boolean isShowLabelBackdrop();", "public void testTextAppearanceWithEmptyProperties() {\n List<NlComponent> components = ImmutableList.of(myTextView);\n Map<String, NlProperty> properties = getPropertyMap(components);\n properties.remove(ATTR_TEXT_ALIGNMENT);\n\n assertThat(myProvider.isApplicable(components, properties, myPropertiesManager)).isTrue();\n TextInspectorComponent inspector = myProvider.createCustomInspector(components, properties, myPropertiesManager);\n inspector.refresh();\n\n Optional<NlComponentEditor> textAppearanceEditor = inspector.getEditors().stream()\n .filter(editor -> editor.getProperty().getName().equals(ATTR_TEXT_APPEARANCE))\n .findFirst();\n assertThat(textAppearanceEditor.isPresent()).isTrue();\n assert textAppearanceEditor.isPresent();\n assertThat(textAppearanceEditor.get()).isInstanceOf(BaseComponentEditor.class);\n BaseComponentEditor editor = (BaseComponentEditor)textAppearanceEditor.get();\n editor.stopEditing(\"Material.Display1\");\n UIUtil.dispatchAllInvocationEvents();\n\n assertThat(properties.get(ATTR_TEXT_APPEARANCE).getValue()).isEqualTo(\"Material.Display1\");\n assertThat(properties.get(ATTR_TYPEFACE).getValue()).isNull();\n assertThat(properties.get(ATTR_TEXT_SIZE).getValue()).isNull();\n assertThat(properties.get(ATTR_LINE_SPACING_EXTRA).getValue()).isNull();\n assertThat(properties.get(ATTR_TEXT_COLOR).getValue()).isNull();\n assertThat(properties.get(ATTR_TEXT_STYLE).getValue()).isNull();\n assertThat(properties.get(ATTR_TEXT_ALL_CAPS).getValue()).isNull();\n }", "public boolean isTextShown() {\n return introText.getVisibility() == View.VISIBLE;\n }", "public boolean isSentencePainting ()\r\n {\r\n return constants.sentencePainting.getValue();\r\n }", "public final boolean isText() {\n return this.getTopLevelType().equals(\"text\");\n }", "public RMXString.Outline getOutline() { return null; }", "boolean hasText();", "boolean hasText();", "boolean hasText();", "boolean hasText();", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "@DISPID(-2147417078)\n @PropGet\n boolean isTextEdit();", "public boolean shouldDisplayTextLabel()\r\n {\r\n return displayTextLabelInformation_;\r\n }", "int getTextStrokeWidth();", "private void showCaptionTest() {\n\t\tmCaptionTestView.setTextColor(mColor);\n\t\tmCaptionTestView.setTextSize(mCaptionSize);\n\t\tif(mStroke)\n\t\t\tmCaptionTestView.setShadowLayer(5, 0, 0, mStrokeColor);\n\t\telse\n\t\t\tmCaptionTestView.setShadowLayer(0, 0, 0, 0);\n\t}", "public boolean getStrikeout()\n {\n return font.isStruckout();\n }", "public String getOutlineColor();", "public VBox vbText() {\r\n\r\n VBox vbTop = new VBox(); //VBox for text at the top\r\n\r\n vbTop.setAlignment(Pos.CENTER); //Align to center\r\n\r\n vbTop.setPadding(new Insets(1, 1, 15, 1)); //Padding\r\n\r\n //Create the text for the BorderPane top\r\n Text mainText1 = new Text(\"User Confirmation\");\r\n Text mainText2 = new Text(\"Is this information correct?\");\r\n\r\n //Set attributes for the text\r\n mainText1.setFont(Font.font(\"Times New Roman\", FontWeight.BOLD, 25));\r\n mainText2.setFont(Font.font(\"Times New Roman\", FontWeight.BOLD, 15));\r\n\r\n //SetId's\r\n mainText1.setId(\"text\");\r\n mainText2.setId(\"text\");\r\n\r\n vbTop.getChildren().addAll(mainText1, mainText2); //Add text to VBox\r\n\r\n return vbTop;\r\n\r\n }", "public static void drawCenteredTextWithOutline(Graphics2D g2, String text, int w, int h){\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_QUALITY);\n \n FontMetrics FM = g2.getFontMetrics();\n \n Font F = new Font(\"Dialog\", Font.BOLD, 15);\n FontRenderContext frc = g2.getFontRenderContext();\n TextLayout tl = new TextLayout(text, F, frc);\n Shape outline = tl.getOutline(null);\n \n int x = (w - (int) outline.getBounds().getWidth()) / 2;\n int y = (FM.getAscent() + (h - (FM.getAscent() + FM.getDescent())) / 2);\n //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n g2.setColor(new Color(0, 0, 0, 255));\n g2.translate(x, y);\n g2.draw(outline);\n g2.translate(-x, -y);\n //+++++++++++++++++++++++++++++++++++++++++++++++++++\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n g2.setRenderingHint(RenderingHints.KEY_RENDERING,\n RenderingHints.VALUE_RENDER_QUALITY);\n\n g2.setColor(new Color(204, 0, 0, 220));\n g2.setFont(F);\n g2.drawString(text, x, y);\n }", "public Boolean maskText();", "static void drawText(PDDocument document, PDPage page, PDRectangle box, PDFont font, Color color, String[] lines, ALIGNMENT alignment, ROTATION rotation, float fontLeading, float fontSize, boolean autoScale, boolean drawBoundingBox) throws IOException {\n\n\n /* Prepare the content stream */\n PDPageContentStream stream = new PDPageContentStream(document, page, true, true);\n\n\n /* Define the working boundary for the text being inserted */\n float boundaryX = box.getLowerLeftX();\n float boundaryY = box.getUpperRightY();\n float boundaryWidth = box.getUpperRightX() - box.getLowerLeftX();\n float boundaryHeight = box.getUpperRightY() - box.getLowerLeftY();\n\n /* Define font attributes */\n if (fontSize <= 0)\n fontSize = 12.0f;\n\n stream.setFont(font, fontSize);\n\n if (fontLeading > 0)\n stream.setLeading(fontLeading);\n\n /* Get the size of the page in printer DPI */\n PDRectangle pageSize = page.getMediaBox();\n float pageWidth = pageSize.getWidth();\n float pageHeight = pageSize.getHeight();\n\n /* Draw the outline of the bounding box */\n if (drawBoundingBox == true) {\n stream.setNonStrokingColor(Color.BLUE);\n stream.addRect(box.getLowerLeftX(), box.getLowerLeftY(), box.getWidth(), box.getHeight());\n stream.fill();\n stream.setNonStrokingColor(Color.WHITE);\n stream.addRect(box.getLowerLeftX() + 1, box.getLowerLeftY() + 1, box.getWidth() - 2, box.getHeight() - 2);\n stream.fill();\n }\n\n\n /* Enter into text drawing mode */\n stream.beginText();\n stream.setNonStrokingColor(color);\n\n /* Create a TextMatrix object */\n // The text matrix allows drawing text normally without consideration for where it is located,\n // how big it is, or what direction it is facing\n Matrix matrix = new Matrix();\n\n /* Determine the value to scale the text to fit the boundary box, taking into account optional rotation */\n\n // Get the widths of each line\n float[] lineWidths = new float[lines.length];\n for (int i = 0; i < (lines.length); i++) {\n lineWidths[i] = font.getStringWidth(lines[i])/1000f*fontSize;\n }\n\n // Get the width of the longest line\n Arrays.sort(lineWidths);\n float maxlineWidth = lineWidths[(lines.length-1)];\n\n // Calculate autoScaleFactor based on the type of rotation\n float autoScaleFactor = 1.0f;\n if (rotation == ROTATION.RIGHT) {\n //The boundaryWidth and boundaryHeight variables are swapped for the rotate right and left cases\n\n // Calculate the scale factor to fit the longest line in the bounding box\n float fitWidthScaleFactor = boundaryHeight / maxlineWidth;\n\n // Determine the value to scale the combined height of text to fit the boundary box\n float fitHeightScaleFactor = boundaryWidth / (lines.length*fontLeading);\n\n // Go with the smaller of the calculated width and height scale values\n if (fitHeightScaleFactor < fitWidthScaleFactor)\n autoScaleFactor = fitHeightScaleFactor;\n else\n autoScaleFactor = fitWidthScaleFactor;\n\n matrix.translate(boundaryX+boundaryWidth, boundaryY);\n matrix.rotate(-Math.PI/2);\n } else if (rotation == ROTATION.LEFT){\n //The boundaryWidth and boundaryHeight variables are swapped for the rotate right and left cases\n\n // Calculate the scale factor to fit the longest line in the bounding box\n float fitWidthScaleFactor = boundaryHeight / maxlineWidth;\n\n // Determine the value to scale the combined height of text to fit the boundary box\n float fitHeightScaleFactor = boundaryWidth / (lines.length*fontLeading);\n\n // Go with the smaller of the calculated width and height scale values\n if (fitHeightScaleFactor < fitWidthScaleFactor)\n autoScaleFactor = fitHeightScaleFactor;\n else\n autoScaleFactor = fitWidthScaleFactor;\n\n matrix.translate(boundaryX,boundaryY-boundaryHeight);\n matrix.rotate(Math.PI/2);\n } else {\n // Calculate the scale factor to fit the longest line in the bounding box\n float fitWidthScaleFactor = boundaryWidth / maxlineWidth;\n\n // Determine the value to scale the combined height of text to fit the boundary box\n float fitHeightScaleFactor = boundaryHeight / (lines.length*fontLeading);\n\n // Go with the smaller of the calculated width and height scale values\n if (fitHeightScaleFactor < fitWidthScaleFactor)\n autoScaleFactor = fitHeightScaleFactor;\n else\n autoScaleFactor = fitWidthScaleFactor;\n\n // Determine the Y offset for the starting point of the text\n float textYOffset = 0.0f;\n if (autoScaleFactor == fitWidthScaleFactor)\n textYOffset = (boundaryHeight-(lines.length)*fontSize)/2;\n else {\n if (autoScale)\n textYOffset = (fontLeading - fontSize) * lines.length / 2;\n else\n textYOffset = 0.0f;\n }\n matrix.translate(boundaryX,boundaryY-textYOffset);\n }\n\n\n /* Scale the text if desired */\n if (autoScale)\n matrix.scale(autoScaleFactor,autoScaleFactor);\n else\n autoScaleFactor = 1.0f;\n\n\n /* Apply the text matrix to the content stream */\n stream.setTextMatrix(matrix);\n\n\n /* Draw the lines of text */\n for (int i = 0; i < lines.length; i++)\n {\n // Default the line offset to zero for ALIGNMENT.LEFT and adjust for other types of alignment\n float lineOffset = 0f;\n\n if (alignment == ALIGNMENT.CENTER) {\n if (rotation == ROTATION.RIGHT || rotation == ROTATION.LEFT)\n lineOffset = (boundaryHeight / autoScaleFactor / 2) - (font.getStringWidth(lines[i]) / 1000f * fontSize / 2);\n if (rotation == ROTATION.NONE)\n lineOffset = (boundaryWidth / autoScaleFactor / 2) - (font.getStringWidth(lines[i]) / 1000f * fontSize / 2);\n }\n\n if (alignment == ALIGNMENT.RIGHT) {\n if (rotation == ROTATION.RIGHT || rotation == ROTATION.LEFT)\n lineOffset = (boundaryHeight / autoScaleFactor) - (font.getStringWidth(lines[i]) / 1000f * fontSize);\n if (rotation == ROTATION.NONE)\n lineOffset = (boundaryWidth / autoScaleFactor) - (font.getStringWidth(lines[i]) / 1000f * fontSize);\n }\n\n // Move the cursor to the appropriate new location relative to its current old location\n stream.newLineAtOffset(lineOffset, -fontLeading);\n\n // Draw the text\n stream.showText(lines[i]);\n\n // Reset the cursor to a predictable state for the next loop iteration\n stream.moveTextPositionByAmount(-lineOffset,0);\n }\n\n\n stream.endText();\n stream.close();\n }", "public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }", "private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}", "boolean hasFocus() {\n\t\t\tif (text == null || text.isDisposed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn text.getShell().isFocusControl() || text.isFocusControl();\n\t\t}", "@Override\n\tpublic String box() {\n\t\treturn \"Earphone box\";\n\t}", "public boolean isPlain() {\n\treturn style == 0;\n }", "@Test\n public void printInfoRectangleNoMoves() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 100, 50.0, 100.0));\n textView1.animate(model1, 1, out);\n assertEquals(\"Shapes:\\nName: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Lower-left corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1.0,0.0,0.0)\\n\"\n + \"Appears at t=1.0s\\n\"\n + \"Disappears at t=100.0s\\n\\n\", out.toString());\n }", "@Override\n\tpublic String shape() {\n\t\treturn \"Text\";\n\t}", "protected Shape getTextShape(Graphics2D g2) {\n String txt = value > 999 ? \"1K\" : Objects.toString(value);\n AffineTransform at = txt.length() < 3 ? null : AffineTransform.getScaleInstance(.66, 1d);\n return new TextLayout(txt, g2.getFont(), g2.getFontRenderContext()).getOutline(at);\n }", "private void vbox_text(Group vbox, String text){\n vbox.getChildren().clear();\n vbox.setLayoutX(400);\n vbox.setLayoutY(100);\n\n Label label_help = new Label(text);\n label_help.setFont(Font.font(\"Cambria\", 20));\n label_help.setTextFill(Color.web(\"#000000\"));\n label_help.setWrapText(true);\n\n BorderPane canvasBorderPane = new BorderPane();\n canvasBorderPane.setPadding(new Insets(5));\n canvasBorderPane.setBackground(new Background(new BackgroundFill(Color.WHITE, new CornerRadii(0), Insets.EMPTY)));\n canvasBorderPane.setCenter(label_help);\n\n BorderPane border = new BorderPane();\n border.setCenter(canvasBorderPane);\n border.setPadding(new Insets(5));\n border.setBackground(new Background(new BackgroundFill(Color.GREY, new CornerRadii(0), Insets.EMPTY)));\n\n vbox.getChildren().add(border);\n }", "private void displayEmpty() {\n if (strokeWeight == 0)\r\n noStroke();\r\n else\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "public void testHideAndRevealLabelWithOutlineOnLabel() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n // Step 1.1 : open the outline view and get its SWTBotView\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n setShownImage(item);\n checkOutlineIsCorrectlyDecorated(item, false);\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, true);\n\n // Step 3 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n try {\n item = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n item.contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (WidgetNotFoundException e) {\n outlineAllowToHideLabel = false;\n try {\n item.contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(item, false);\n }\n\n }", "public void testHideAndRevealLabelWithOutlineOnEdge() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Causes timeout.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(EDGE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").getNode(LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "public boolean getStrokeOnTop() { return false; }", "public boolean isUnderlined() { return false; }", "public boolean getBorderVisible() {\n checkWidget();\n return borderLeft == 1;\n }", "public void displayHover() {\n if (textColour == null) {\r\n displayEmptyHover();\r\n return;\r\n }\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n hoverFill(boxColour);\r\n if (strokeWeight != 0 && text != null) {\r\n rect(x, y, w, h, 7);\r\n }\r\n fill(textColour);\r\n textSize(textSize);\r\n text(text, x + xTextOffset, y + yTextOffset);\r\n }", "public boolean button(int minX, int maxX, int minY, int maxY, int rectColor, int textColor, int bTextSize, String textString) { //Funkktion der opfører sig som en knap, ved at registrere om musen bliver klikket indenfor en given region.\n\n textSize(bTextSize);\n textAlign(CENTER, CENTER);\n rectMode(CORNER);\n stroke(0);\n\n fill(rectColor);\n rect(minX, minY, dist(minX, 0, maxX, 0), dist(0, minY, 0, maxY));\n fill(textColor);\n text(textString, minX, minY, dist(minX, 0, maxX, 0), dist(0, minY, 0, maxY));\n\n if (mouseX > minX && mouseX < maxX && mouseY > minY && mouseY < maxY && mousePressed == true) {\n mousePressed = false;\n return true;\n } else {\n return false;\n }\n\n }", "public boolean isTextboxWrapLine()\n {\n return isWrapLine;\n }", "public void testRevealEdgeAfterHideLabelWithOutline() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n return;\n }\n\n // Step 1 : hide the label (using Context menu) and check that it is\n // correctly hidden\n SWTBotGefEditPart labelEditPart = editor.getEditPart(EDGE_WITH_LABEL_NAME);\n SWTBotGefEditPart nodeEditPart = labelEditPart.parent();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n\n editor.select(nodeEditPart);\n // Wait all UI events to ensure that the tabbar is correctly refreshed.\n SWTBotUtils.waitAllUiEvents();\n ICondition done = new OperationDoneCondition();\n editor.bot().toolbarButtonWithTooltip(HIDE_LABEL_TOOLTIP).click();\n bot.waitUntil(done);\n\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n\n // Step 2 : now we hide the node (using the context menu)\n editor.select(nodeEditPart);\n done = new OperationDoneCondition();\n editor.clickContextMenu(HIDE_ELEMENT_TOOLTIP);\n bot.waitUntil(done);\n checkEdgeIsHidden(nodeEditPart);\n\n // Step 3 : reveal the node (using outline)\n // The label must still be hidden\n // Step 3.1 : open the outline view and get its SWTBotView\n final SWTBotView view = getAndExpandOutlineView(false);\n\n // Step 3.2 : open the context menu the element to reveal and select the\n // reveal element action\n SWTBotTreeItem item = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n SWTBotUtils.clickContextMenu(item, REVEAL_ELEMENT_TOOLTIP);\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n\n // Step 4 : reveal the label (using outline)\n item = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n done = new OperationDoneCondition();\n SWTBotUtils.clickContextMenu(item, REVEAL_LABEL_TOOLTIP);\n bot.waitUntil(done);\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n }", "public Outline getOutline()\n {\n return outline;\n }", "boolean isAlwaysvectorfont();", "protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }", "@Test\n\tpublic void testInfobox() {\t\n\t\tTextArea info = (TextArea) s.lookup(\"#T6_infobox_TextArea\");\n\t\tTextArea compInfo = (TextArea) s.lookup(\"#T6_composite_infobox_TextArea\");\n\t\tTextArea parmInfo = (TextArea) s.lookup(\"#T6_parm_infobox_TextArea\");\n\t\tTextArea pasrmInfo = (TextArea) s.lookup(\"#T6_pasrm_infobox_TextArea\");\n\t\tTextArea ldInfo = (TextArea) s.lookup(\"#T6_ld_infobox_TextArea\");\n\t\tclickOn(\"#Main_compatibility_Button\");\n\t\tmoveTo(\"#T6_more_info_Text\");\n\t\tif (!info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(1);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_composite_Text\");\n\t\tif (info.isVisible()||!compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(2);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_parm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||!parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(3);\n\t\t\tassertTrue(false);\n\t\t\t\n\t\t}\n\t\tmoveTo(\"#T6_pasrm_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||!pasrmInfo.isVisible()||ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_ld_Text\");\n\t\tif (info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||!ldInfo.isVisible()) {\n\t\t\t// if any infobox other than composite infobox is shown fail test case\n\t\t\tSystem.out.println(5);\n\t\t\tassertTrue(false);\n\t\t}\n\t\tmoveTo(\"#T6_generate_Button\");\n\t\t// if any infobox is shown fail test case\n\t\tassertFalse(info.isVisible()||compInfo.isVisible()||parmInfo.isVisible()||pasrmInfo.isVisible()||ldInfo.isVisible());\n\t\t\n\t}", "boolean hasHadithText();", "@Override\r\n Shape getOutline ()\r\n {\r\n return null;\r\n }", "boolean isHighlighted();", "public static boolean isTextEllipsized(TextView textView){\n\n Layout textViewLayout = textView.getLayout();\n\n if (textViewLayout != null) {\n\n int lines = textViewLayout.getLineCount();\n\n if (lines > 0) {\n\n if (textViewLayout.getEllipsisCount(lines-1) > 0) return true;\n }\n }\n\n return false;\n }", "public void testRevealEdgeAfterHideAndRevealLabelWithOutline() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n return;\n }\n\n // Step 1 : hide the label (using the context menu) and check that it is\n // correctly hidden\n SWTBotGefEditPart edgeEditPart = editor.getEditPart(EDGE_WITH_LABEL_NAME, AbstractDiagramEdgeEditPart.class);\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n\n editor.select(edgeEditPart);\n editor.clickContextMenu(HIDE_LABEL_TOOLTIP);\n checkEdgeLabelIsHidden(EDGE_WITH_LABEL_NAME);\n\n // Step 2 : now we hide the edge (using the context menu)\n editor.select(edgeEditPart);\n editor.clickContextMenu(HIDE_ELEMENT_TOOLTIP);\n\n checkEdgeIsHidden(edgeEditPart);\n\n // Step 3 : reveal the label (using outline)\n // Edge must still be hidden\n // Step 3.1 : open the outline view and get its SWTBotView\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 3.2 : open the context menu the label to reveal and select the\n // reveal label action\n SWTBotTreeItem item = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n item.contextMenu(REVEAL_LABEL_TOOLTIP).click();\n checkEdgeIsHidden(edgeEditPart);\n\n // Step 4 : reveal the node (using outline)\n // The label must now be visible\n item = view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").click();\n view.bot().tree().getTreeItem(\"p\").getNode(EDGE_WITH_LABEL_NAME + \" : B\").select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(item));\n item.contextMenu(REVEAL_ELEMENT_TOOLTIP).click();\n checkEdgeLabelIsVisible(EDGE_WITH_LABEL_NAME);\n }", "private void toggleCrossLineText(){\n if (userNameTextView.getText().toString().equals(\"\")){\n productTextView.setPaintFlags(productTextView.getPaintFlags() & ~Paint.STRIKE_THRU_TEXT_FLAG);\n } else {\n productTextView.setPaintFlags(productTextView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n }\n }", "public boolean isBordered() {\n return mPolygonShapeSpec.hasBorder();\n }", "protected void ifLost(){\n canvas.add(titleBorder);\n canvas.add(titleBox);\n Image lostText = new Image(213, 400, \"124-hw4/BreakoutText/lostText.png\");\n canvas.add(lostText);\n }", "public boolean isDisplayed_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}", "public boolean buttonC(int minX, int maxX, int minY, int maxY, int rectColor, int textColor, int bTextSize, String textString) { //Funkktion der opfører sig som en knap, ved at registrere om musen bliver klikket indenfor en given region.\n\n textSize(bTextSize);\n textAlign(CENTER, CENTER);\n rectMode(CORNER);\n stroke(0);\n\n fill(rectColor);\n rect(minX, minY, dist(minX, 0, maxX, 0), dist(0, minY, 0, maxY));\n\n fill(0xff1d60fe);\n circle(minX+dist(minX, 0, maxX, 0)/2+1, minY+dist(0, minY, 0, maxY)/2+1, infoHelpBttnW-5);\n\n fill(textColor);\n text(textString, minX+2, minY, dist(minX, 0, maxX, 0), dist(0, minY, 0, maxY)-6);\n \n\n if (mouseX > minX && mouseX < maxX && mouseY > minY && mouseY < maxY && mousePressed == true) {\n mousePressed = false;\n return true;\n } else {\n return false;\n }\n\n }", "@Override \n\tpublic void focusGained(FocusEvent e){\n\t\tif(this.getText().equals(this.texto)){\n\t\t\tthis.setText(\"\");\n\t\t\tthis.setForeground(Color.BLACK);\n\t\t}\n\t}", "protected boolean affectsTextPresentation(PropertyChangeEvent event)\n {\n return true;\n }", "public boolean isIsFontStrikeout() {\n return isFontStrikeout;\n }", "public boolean isBorderOpaque() {\n // TODO codavaj!!\n return false;\n }", "public void testHideAndRevealLabelWithOutlineOnNode() throws Exception {\n if (TestsUtil.shouldSkipUnreliableTests()) {\n // Can cause timeouts.\n return;\n }\n // Step 1 : hide the label and check that it is correctly hidden\n SWTBotGefEditPart editPart = editor.getEditPart(NODE_WITH_LABEL_NAME);\n SWTBotGefEditPart parentEditPart = editPart.parent();\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n\n final SWTBotView view = getAndExpandOutlineView(true);\n\n // Step 1.2 : open the context menu the element to hide and select the\n // hide element action\n SWTBotTreeItem labelItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).getNode(NODE_WITH_LABEL_NAME + \" \" + LABEL_SUFFIX_IN_OUTLINE).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(labelItem));\n setShownImage(labelItem);\n SWTBotTreeItem nodeItem = view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).click();\n view.bot().tree().getTreeItem(\"p\").getNode(NODE_WITH_LABEL_NAME).select();\n SWTBotUtils.waitAllUiEvents();\n bot.waitUntil(new TreeItemSelected(nodeItem));\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n nodeItem.contextMenu(HIDE_LABEL_TOOLTIP).click();\n\n // Step 1.3 : ensure node is hidden\n checkLabelIsHidden(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, true);\n\n // Step 2 : ensure that the outline doesn't propose user to hide\n // label anymore\n boolean outlineAllowToHideLabel = true;\n boolean outlineAllowToRevealLabel = false;\n\n editor.select(parentEditPart);\n SWTBotUtils.waitAllUiEvents();\n final long oldTimeout = SWTBotPreferences.TIMEOUT;\n try {\n SWTBotPreferences.TIMEOUT = 1000;\n nodeItem.click().contextMenu(HIDE_LABEL_TOOLTIP).click();\n } catch (RuntimeException e) {\n outlineAllowToHideLabel = false;\n try {\n nodeItem.click().contextMenu(REVEAL_LABEL_TOOLTIP).click();\n outlineAllowToRevealLabel = true;\n } catch (WidgetNotFoundException wnfe) {\n outlineAllowToRevealLabel = false;\n }\n } finally {\n SWTBotPreferences.TIMEOUT = oldTimeout;\n Assert.assertFalse(\"The context menu shouldn't allow user to hide label of \" + editPart.part(), outlineAllowToHideLabel);\n Assert.assertTrue(\"The context menu should allow user to show label of \" + editPart.part(), outlineAllowToRevealLabel);\n\n // Step 4 : we ensure that label has been correctly revealed\n checkLabelIsVisible(NODE_WITH_LABEL_NAME);\n checkOutlineIsCorrectlyDecorated(labelItem, false);\n }\n\n }", "public void aapne() {\n trykketPaa = true;\n setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n if (bombe) {\n setText(\"x\");\n Color moerkeregroenn = Color.rgb(86, 130, 3, 0.5);\n setBackground(new Background(new BackgroundFill(moerkeregroenn, CornerRadii.EMPTY, Insets.EMPTY)));\n } else if (bombeNaboer == 0) {\n setText(\" \");\n } else {\n setText(bombeNaboer + \"\");\n if (bombeNaboer == 1) {\n setTextFill(Color.BLUE);\n } else if (bombeNaboer == 2) {\n setTextFill(Color.GREEN);\n } else if (bombeNaboer == 3) {\n setTextFill(Color.RED);\n } else if (bombeNaboer == 4) {\n setTextFill(Color.DARKBLUE);\n } else if (bombeNaboer == 5) {\n setTextFill(Color.BROWN);\n } else if (bombeNaboer == 6) {\n setTextFill(Color.DARKCYAN);\n }\n }\n }", "private void displayEmptyHover() {\n if (strokeWeight == 0)\r\n noStroke();\r\n else\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n hoverFill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "boolean hasAligning();", "public void setOutline(String outline) {\n this.outline = outline == null ? null : outline.trim();\n }", "boolean isText(Object object);", "public boolean shouldPaintPrompt(JTextComponent txt)\n/* */ {\n/* 295 */ return (txt.getText() == null) || (txt.getText().length() == 0);\n/* */ }", "public boolean isPaintingAnnotations() {\n \t\treturn !fConfiguredAnnotationTypes.isEmpty() || !fConfiguredHighlightAnnotationTypes.isEmpty();\n \t}", "public void display() {\n System.out.println(\"显示浅蓝色文本框\");\n }", "public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "public boolean testHit(double x, double y, Graphics2D gc){\r\n if (textShape == null){\r\n return false;\r\n }\r\n int devScale = ((SunGraphics2D)gc).getSurfaceData().getDefaultScale();\r\n AffineTransform transform = new AffineTransform();\r\n transform.setToScale(devScale, devScale);\r\n Point.Double point = new Point2D.Double(x, y);\r\n Point.Double transformedPoint = new Point2D.Double(x, y);\r\n transform.transform(point, transformedPoint);\r\n java.awt.Rectangle test = new java.awt.Rectangle((int)Math.round(transformedPoint.getX()), (int)Math.round(transformedPoint.getY()), 1*devScale,1*devScale);\r\n if (gc.hit(test, textShape, true) || gc.hit(test, textShape, false)){\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n public void strokeText(String text, double x, double y, double maxWidth) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y, maxWidth);\n }", "public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }", "@Override\n\tpublic int getOutlineLevel() {\n\t\treturn 0;\n\t}", "public void testStyleWhenCaretIsAfterText()\n {\n deferTest(new Command()\n {\n public void execute()\n {\n doTestStyleWhenCaretIsAfterText();\n }\n });\n }", "private TextBox drawMatch(TextBox boxBlue, TextBox boxRed, Group group, int level) {\n\n //BoxBlue\n double beginXBlue = boxBlue.getLayoutX();\n double beginYBlue = boxBlue.getLayoutY();\n //BoxRed\n double beginXRed = boxRed.getLayoutX();\n double beginYRed = boxRed.getLayoutY();\n //LineBlue Horizontale\n double beginXLineHBlue = beginXBlue + widthRectangle;\n double beginYLineHBlue = beginYBlue + heightRectangle;\n double endXLineHBlue = beginXLineHBlue + spaceBetweenMatch;\n double endYLineHBlue = beginYBlue + heightRectangle;\n //LineBlue Verticale\n double beginXLineVBlue = endXLineHBlue;\n double beginYLineVBlue = beginYLineHBlue;\n double endXLineVBlue = endXLineHBlue;\n double endYLineVBlue = ((beginYRed - endYLineHBlue) / 2) + endYLineHBlue - (heightRectangle / 2);\n\n //LineRed Horizontale\n double beginXLineHRed = beginXRed + widthRectangle;\n double beginYLineHRed = beginYRed;\n double endXLineHRed = beginXLineHRed + spaceBetweenMatch;\n double endYLineHRed = beginYRed;\n //LineRed Verticale\n double beginXLineVRed = endXLineHRed;\n double beginYLineVRed = endYLineHRed;\n double endXLineVRed = endXLineHRed;\n double endYLineVRed = endYLineVBlue + heightRectangle;\n\n double beginXResultat = endXLineHBlue;\n double beginYResultat = endYLineVBlue;\n\n Color colorResultat = Color.color(1.0, 1.0, 0.0, 0.5);\n if (level % 2 == 0) {\n colorResultat = Color.color(0.0, 1.0, 1.0, 0.5);\n }\n\n Line lineBlueH = drawLine(beginXLineHBlue, beginYLineHBlue , endXLineHBlue, endYLineHBlue);\n Line lineBlueV = drawLine(beginXLineVBlue, beginYLineVBlue , endXLineVBlue, endYLineVBlue);\n\n Line lineRedH = drawLine(beginXLineHRed, beginYLineHRed , endXLineHRed, endYLineHRed);\n Line lineRedV = drawLine(beginXLineVRed, beginYLineVRed , endXLineVRed, endYLineVRed);\n\n TextBox victoryBox = createTextBox(new ParticipantBean(\"\", \"\"), beginXResultat, beginYResultat, colorResultat);\n TextBox defaitBox = new TextBox(new ParticipantBean(\"\", \"\"), widthRectangle, heightRectangle, colorResultat);\n\n group.getChildren().addAll(victoryBox, lineBlueH, lineRedH, lineBlueV, lineRedV);\n\n TextBoxListner textBoxListner = new TextBoxListner(boxBlue, boxRed, victoryBox, defaitBox);\n boxBlue.setListner(textBoxListner);\n boxRed.setListner(textBoxListner);\n\n return victoryBox;\n }", "boolean hasRect();", "boolean isDisplay();", "boolean isDisplay();", "public boolean getPaintBorder() {\n\t\treturn p.getPaintBorder();\n\t}", "public void setOutline(RMXString.Outline anOutline) { }", "private void writeTextArea(){\r\n try\r\n {\r\n //Fill in \"textArea\" with club names and results\r\n textArea.appendText(\"OK: \" + choiceHomeTeam.getValue() + \" - \" + choiceAwayTeam.getValue() + \" \" \r\n + Integer.valueOf(finalTimeHomeScore.getText()) + \":\"\r\n + Integer.valueOf(finalTimeAwayScore.getText()) + \"(\" \r\n + Integer.valueOf(halfTimeHomeScore.getText()) + \":\" \r\n + Integer.valueOf(halfTimeAwayScore.getText()) + \")\\n\");\r\n textArea.setWrapText(true);\r\n //the letters will be green\r\n textArea.setStyle(\"-fx-text-fill: #4F8A10;\"); \r\n }\r\n //Fill in \"textArea\" with erros\r\n catch(NumberFormatException e)\r\n {\r\n textArea.appendText(\"Error: \" + e.getMessage() + \"\\n\");\r\n textArea.setWrapText(true);\r\n //the letters will be red\r\n textArea.setStyle(\"-fx-text-fill: RED;\"); \r\n } \r\n }" ]
[ "0.6666619", "0.6515917", "0.65036255", "0.62327343", "0.61061496", "0.59819627", "0.59819627", "0.59816146", "0.5961656", "0.5920014", "0.5920014", "0.5886911", "0.5828039", "0.5806132", "0.5796693", "0.57757026", "0.5756183", "0.5741719", "0.5700004", "0.5653556", "0.5645822", "0.56213486", "0.5609369", "0.5593905", "0.5590035", "0.5574757", "0.5574757", "0.5574757", "0.5574757", "0.55609846", "0.5558235", "0.5548559", "0.55391926", "0.55039185", "0.54960954", "0.5476663", "0.5469833", "0.5465652", "0.5461813", "0.5431009", "0.54252154", "0.54123193", "0.5411544", "0.5403558", "0.54008216", "0.5399303", "0.5376824", "0.53723323", "0.5356595", "0.53523314", "0.5350978", "0.53425914", "0.5321391", "0.5305506", "0.52973807", "0.5296799", "0.52947927", "0.52828187", "0.5278684", "0.5276714", "0.52663326", "0.526145", "0.5260626", "0.5236606", "0.52283114", "0.5228018", "0.5223049", "0.52115214", "0.5210908", "0.5210099", "0.52050626", "0.51850325", "0.5179828", "0.51669335", "0.5159774", "0.515679", "0.51431626", "0.513715", "0.51293504", "0.5125683", "0.5124671", "0.5116493", "0.5111953", "0.51068145", "0.50993365", "0.50959367", "0.5084741", "0.5073809", "0.5073515", "0.5071596", "0.50699514", "0.50587326", "0.5052732", "0.50525707", "0.5051712", "0.5050681", "0.5042169", "0.5042169", "0.5036691", "0.5036577", "0.50328106" ]
0.0
-1
Determines whether text background should be masked out.
public Boolean maskText();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void doToggleTextBackgrounds() {\r\n\t\trenderer.textBackgrounds = ui.viewTextBackgrounds.isSelected();\r\n\t\trenderer.repaint();\r\n\t}", "public boolean isShapeMasked() {\n return this.shapeMasked;\n }", "protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }", "boolean isShowLabelBackdrop();", "public boolean isMaskSelected() {\n return false;\n }", "TextStyle negate();", "public boolean isSimple() {\r\n return this.mTextBackgroundColor == 1 && this.mTextSelectionStart == 0 && this.mTextSelectionEnd == 0 && this.mLineCharOffsets == null && this.mLineBaselines == null && this.mHint == null;\r\n }", "public boolean isMaskSelected() {\n return (this.mActivity.getCameraAppUI().getCurrSelect() == null || this.mActivity.getCameraAppUI().getCurrSelect() == \"\") ? false : true;\n }", "public boolean hasClip() {\n return (mClipboardManager.getTextFromClipboard() != null);\n }", "public boolean isPasteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn true;\n \t}", "public boolean isTextPainted() {\r\n return textPainted;\r\n }", "public boolean isTextPainted() {\r\n return textPainted;\r\n }", "public boolean isTranslucent() {\n return false;\n }", "public boolean getCorrectFuncion(){\n\t\tif(this.getBackground().equals(Color.RED))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "protected final boolean shouldClearRectBeforePaint() {\n // TODO: sun.awt.noerasebackground\n return true;\n }", "public boolean isInterior() {\n return false;\n }", "public boolean isBackgroundPainted() {\r\n return backPainted;\r\n }", "boolean isFalseColor();", "public boolean isFullyExplored();", "@Override\n public Region getTransparentRegion() {\n return patternDrawable.getTransparentRegion();\n }", "public static boolean isBG(double backgroundB0) {\n\n\t\tboolean background = false;\n\t\tif (CL_Initializer.BACKGROUNDTHRESHOLD > 0.0) {\n\t\t\tbackground = backgroundB0 < CL_Initializer.BACKGROUNDTHRESHOLD;\n\t\t}\n\t\tif (CL_Initializer.bgMask != null)\n\t\t\ttry {\n\t\t\t\tbackground = (CL_Initializer.bgMask.nextVoxel()[0] == 0.0);\n\t\t\t} catch (DataSourceException e) {\n\t\t\t\tthrow new LoggedException(\"Error reading background mask.\" + e);\n\t\t\t}\n\n\t\treturn background;\n\t}", "boolean isHighlighted();", "boolean is(TextStyle style);", "public abstract boolean canClip();", "public boolean isPlain() {\n\treturn style == 0;\n }", "boolean getNoColor();", "protected boolean isBlack() {\n return this.black;\n }", "@Override\r\n public boolean isText ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && shape.isText();\r\n }", "public boolean isClipPreserved()\n/* */ {\n/* 171 */ return this.clipPreserved;\n/* */ }", "@Override\n\tprotected void onDraw(Canvas canvas)\n\t{\n\t\n\t\tif(bgMaskFilter)\n\t\t{paint.setMaskFilter(new BlurMaskFilter(minR*0.35f,BlurMaskFilter.Blur.INNER));}\n\n\t\tpaint.setColor(backgroundColor);\n\t\tcanvas.drawRoundRect(rectf,rX,rY,paint);\n\n\t\tif(textMaskFilter)\n\t\t{paint.setMaskFilter(new BlurMaskFilter(minR*0.15f,BlurMaskFilter.Blur.SOLID));}\n\n\t\tpaint.setColor(textColor);\n\t\tpaint.setTextSize(textSize);\n\t\tcanvas.drawText(text,centerX,(y-paint.ascent()-paint.descent())/2,paint);\n paint.setMaskFilter(null);\n\n\t}", "public boolean isAntialiasGrid() {\n return this.antialiasGrid;\n }", "boolean hasBackgroundPower();", "@SuppressLint(\"WrongCall\")\n private void drawMask() {\n clear(mMaskCanvas);\n draw(mMaskCanvas, mPaintTransparent);\n }", "boolean getArmedMark();", "public default boolean hasScannableGroup() {\n\t\treturn false;\n\t}", "@Override\n public boolean isGoodForInterior()\n {\n return false;\n }", "public boolean isBlack() {\r\n\t\treturn !isRed();\r\n\t}", "public boolean isCutEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}", "public boolean isInterior() {\n return true;\n }", "public abstract View getBlackBackground();", "public boolean isBorderOpaque() {\n // TODO codavaj!!\n return false;\n }", "private boolean isBlack(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK || aux == Cells.BLACK_QUEEN);\r\n }", "public RMRect getBoundsMarked()\n{\n // Declare bounds marked rect\n RMRect boundsMarked = null;\n \n // If stroke, get stroke marked bounds\n if(getStroke()!=null)\n boundsMarked = getStroke().getBounds(this);\n \n // If fill, get fill marked bounds\n if(getFill()!=null) {\n RMRect b = getFill().getBounds(this);\n boundsMarked = boundsMarked==null? b : boundsMarked.unionRect(b);\n }\n \n // If effect, get effect marked bounds\n if(getEffect()!=null) {\n RMRect b = getEffect().getBounds(this);\n boundsMarked = boundsMarked==null? b : boundsMarked.unionRect(b);\n }\n \n // Return marked bounds\n return boundsMarked!=null? boundsMarked : getBoundsInside();\n}", "@Override\n public void setBackgroundPattern(Pattern pattern) {\n }", "public boolean isPaintingAnnotations() {\n \t\treturn !fConfiguredAnnotationTypes.isEmpty() || !fConfiguredHighlightAnnotationTypes.isEmpty();\n \t}", "public abstract boolean isInterior();", "private void unhighlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.BLACK, new TicksTiming(0), new TicksTiming(0));\r\n\r\n\t }", "public boolean isLetterBoxPainting ()\r\n {\r\n return constants.letterBoxPainting.getValue();\r\n }", "public void txtHabilitar(org.edisoncor.gui.textField.TextFieldRectBackground txt, boolean estado){\n txt.setEnabled(estado);\n }", "public void setHasBackground(boolean hasBackground){\n this.hasBackground = hasBackground;\n }", "public boolean getHighlight();", "protected boolean getTransparent() {\n\treturn isTransparent;\n }", "public boolean isCopyEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}", "@Override\r\n public boolean isClef ()\r\n {\r\n return ShapeSet.Clefs.contains(getShape());\r\n }", "public boolean isSelectAllEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getCharCount() > 0;\n \t}", "boolean isMarkedIndicator();", "private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }", "public boolean isDefault() {\r\n\treturn bgclip == border;\r\n }", "public boolean isColor() {\n\t\treturn !isFormat && this != RESET;\n\t}", "public boolean isBrushless()\n {\n final String funcName = \"isBrushless\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", brushless);\n }\n\n return brushless;\n }", "private void drawMask(TextureRegion mask, Texture background, float cameraX, float cameraY, float maskWidth,\r\n\t\t\t\t\t\t float maskHeight, CharacterModel character) {\r\n\t\tupdateMaskPosition(maskWidth, maskHeight, character);\r\n\t\tcanvas.beginCustom(GameCanvas.BlendState.OPAQUE, GameCanvas.ChannelState.ALPHA);\r\n\t\tif(background != null) {\r\n\t\t\tcanvas.draw(background, Color.CLEAR, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\t}\r\n\t\tcanvas.draw(mask, Color.WHITE, maskOrigin.x, maskOrigin.y, maskWidth, maskHeight);\r\n\t\tcanvas.endCustom();\r\n\t}", "boolean isIncludeBounds();", "boolean isDrawInterior(DrawContext dc, Object shape);", "public default boolean hasScannable() {\n\t\treturn false;\n\t}", "public boolean isSetRawTextSpan() {\n return this.rawTextSpan != null;\n }", "boolean isHollow();", "boolean isAlwaysvectorfont();", "public boolean isOpaque()\n/* */ {\n/* 83 */ Color back = getBackground();\n/* 84 */ Component p = getParent();\n/* 85 */ if (p != null) {\n/* 86 */ p = p.getParent();\n/* */ }\n/* */ \n/* 89 */ boolean colorMatch = (back != null) && (p != null) && (back.equals(p.getBackground())) && (p.isOpaque());\n/* */ \n/* */ \n/* 92 */ return (!colorMatch) && (super.isOpaque());\n/* */ }", "private void decorateBitmap() {\n\n RectF roundedRect = new RectF(2, 2, mBitmap.getWidth() - 2, mBitmap.getHeight() - 2);\n float cornerRadius = mBitmap.getHeight() * CORNER_RADIUS_SIZE;\n\n // Alpha canvas with white rounded rect\n Bitmap maskBitmap = Bitmap.createBitmap(mBitmap.getWidth(), mBitmap.getHeight(),\n Bitmap.Config.ARGB_8888);\n Canvas maskCanvas = new Canvas(maskBitmap);\n maskCanvas.drawColor(Color.TRANSPARENT);\n Paint maskPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n maskPaint.setColor(Color.BLACK);\n maskPaint.setStyle(Paint.Style.FILL);\n maskCanvas.drawRoundRect(roundedRect, cornerRadius, cornerRadius, maskPaint);\n\n Paint paint = new Paint();\n paint.setFilterBitmap(false);\n\n // Draw mask onto mBitmap\n Canvas canvas = new Canvas(mBitmap);\n\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n canvas.drawBitmap(maskBitmap, 0, 0, paint);\n\n // Now re-use the above bitmap to do a shadow.\n paint.setXfermode(null);\n\n maskBitmap.recycle();\n }", "private boolean appendBackgroundOriginClip(StringBuilder buf, StyleValue origin,\n\t\tStyleValue clip) {\n\t\tboolean clipIsInitial;\n\t\tString clipText = null;\n\t\tif (clip == null) {\n\t\t\tclipIsInitial = true;\n\t\t} else {\n\t\t\tclipText = clip.getMinifiedCssText(\"background-clip\").toLowerCase(Locale.ROOT);\n\t\t\tif (\"border-box\".equals(clipText) || \"initial\".equals(clipText)\n\t\t\t\t|| \"unset\".equals(clipText)) {\n\t\t\t\tclipIsInitial = true;\n\t\t\t} else {\n\t\t\t\tclipIsInitial = false;\n\t\t\t}\n\t\t}\n\t\tboolean originIsInitial;\n\t\tString originText = \"\";\n\t\tif (origin == null) {\n\t\t\toriginIsInitial = true;\n\t\t} else {\n\t\t\toriginText = origin.getMinifiedCssText(\"background-origin\").toLowerCase(Locale.ROOT);\n\t\t\tif (\"padding-box\".equals(originText) || \"initial\".equals(originText)\n\t\t\t\t|| \"unset\".equals(originText)) {\n\t\t\t\toriginIsInitial = true;\n\t\t\t} else {\n\t\t\t\toriginIsInitial = false;\n\t\t\t}\n\t\t}\n\t\tif (isIdentOrKeyword(origin) && !isRevertValue(origin)\n\t\t\t&& !isUnknownIdentifier(\"background-origin\", origin) && isIdentOrKeyword(clip)\n\t\t\t&& !isRevertValue(clip) && !isUnknownIdentifier(\"background-clip\", clip)) {\n\t\t\tif (!originIsInitial || !clipIsInitial) {\n\t\t\t\tappendText(buf, originText);\n\t\t\t\tif (!originText.equalsIgnoreCase(clipText)) {\n\t\t\t\t\tappendText(buf, clipText);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public int getTextLabelBackgroundColor() {\n\t\treturn mTextLabelBackgroundColor;\n\t}", "public boolean isUnderlined() { return false; }", "public void cancelSelectionBorder(){\n BackgroundImage bgselected= new BackgroundImage(new Image(\"rugbeats/img/Background_selectedhdpi.png\"),BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\n new BackgroundSize(1.0, 1.0, true, true, false, false));\n ImgStack.setBackground(new Background(bgselected));\n }", "public boolean isHighlighted() {\r\n\t\treturn view.isHighlighted();\r\n\t}", "public boolean hasOTDFLTUPFNTSCATIND() {\n return fieldSetFlags()[5];\n }", "public boolean isHighlighted() {\n return _isHighlighted;\n }", "public java.lang.String getMaskstatus() {\n return maskstatus;\n }", "boolean labelColor(String mode);", "boolean hasIndispensableYn();", "boolean hasIndispensableYn();", "public boolean shouldDisplayTextLabel()\r\n {\r\n return displayTextLabelInformation_;\r\n }", "@java.lang.Override\n public boolean hasMasksCount() {\n return masksCount_ != null;\n }", "boolean checkBorders();", "public boolean isSetTextSpan() {\n return this.textSpan != null;\n }", "default boolean isAllCorners() {\n return false;\n }", "public native boolean isMonochromeImage() throws MagickException;", "public boolean isInBackground(){\n return isInBackground;\n }", "public boolean isTranslationPainting ()\r\n {\r\n return constants.translationPainting.getValue();\r\n }", "private boolean shouldBeHighlighted(Object annotationType) {\n \t\treturn contains(annotationType, fAllowedHighlightAnnotationTypes, fConfiguredHighlightAnnotationTypes);\n \t}", "public boolean getTransparent() {\n\t\treturn _transparent;\n\t}", "private void updateBackground(JTextComponent c) {\n // This is a temporary workaround.\n // This code does not correctly deal with Synth (Synth doesn't use\n // properties like this), nor does it deal with the situation where\n // the developer grabs the color from a JLabel and sets it as\n // the background for a JTextArea in all look and feels. The problem\n // scenario results if the Color obtained for the Label and TextArea\n // is ==, which is the case for the windows look and feel.\n // Until an appropriate solution is found, the code is being\n // reverted to what it was before the original fix.\n if (this instanceof SynthUI || (c instanceof JTextArea)) {\n return;\n }\n Color background = c.getBackground();\n if (background instanceof UIResource) {\n String prefix = getPropertyPrefix();\n\n Color disabledBG =\n DefaultLookup.getColor(c, this, prefix + \".disabledBackground\", null);\n Color inactiveBG =\n DefaultLookup.getColor(c, this, prefix + \".inactiveBackground\", null);\n Color bg =\n DefaultLookup.getColor(c, this, prefix + \".background\", null);\n\n /* In an ideal situation, the following check would not be necessary\n * and we would replace the color any time the previous color was a\n * UIResource. However, it turns out that there is existing code that\n * uses the following inadvisable pattern to turn a text area into\n * what appears to be a multi-line label:\n *\n * JLabel label = new JLabel();\n * JTextArea area = new JTextArea();\n * area.setBackground(label.getBackground());\n * area.setEditable(false);\n *\n * JLabel's default background is a UIResource. As such, just\n * checking for UIResource would have us always changing the\n * background away from what the developer wanted.\n *\n * Therefore, for JTextArea/JEditorPane, we'll additionally check\n * that the color we're about to replace matches one that was\n * installed by us from the UIDefaults.\n */\n if ((c instanceof JTextArea || c instanceof JEditorPane)\n && background != disabledBG\n && background != inactiveBG\n && background != bg) {\n\n return;\n }\n\n Color newColor = null;\n if (!c.isEnabled()) {\n newColor = disabledBG;\n }\n if (newColor == null && !c.isEditable()) {\n newColor = inactiveBG;\n }\n if (newColor == null) {\n newColor = bg;\n }\n if (newColor != null && newColor != background) {\n c.setBackground(newColor);\n }\n }\n }", "String getRemediationBackground();", "public boolean isItalic() {\n\treturn (style & ITALIC) != 0;\n }", "@Override\n public boolean getPadding(Rect padding) {\n return patternDrawable.getPadding(padding);\n }", "protected boolean[] getMask() {\n\t\treturn this.mask;\n\t}", "public Color getBackground();", "public boolean isLineClear() {\r\n return lineActivity.haveAverage() && (lineActivity.getAverage() < 0.5);\r\n }", "public BufferedImage subtractBackground(BufferedImage inputImage) {\r\n\t\t// Get the mask from the blurred image\r\n\t\tBufferedImage mask = imageMasker.createMask(imageBlur.averageBlur(inputImage, blurRadius), backgroundImage, prevMetrics, threshold);\r\n\t\t// Get the bounding box from the mask\r\n\t\tMetrics imageMetrics = boundingBoxer.getBoundingBox(mask, prevMetrics);\r\n\t\t// Improve the image\r\n\t\tmask = imageMasker.expandContract(mask, imageMetrics, maskRadius);\r\n\t\tmask = imageMasker.contractExpand(mask, imageMetrics, maskRadius);\r\n\t\t// Get metrics\r\n\t\timageMetrics = boundingBoxer.getBoundingBox(mask, prevMetrics);\r\n\t\timageMetrics = metricsCentroid.findXMetrics(mask, imageMetrics, prevMetrics);\r\n\r\n\t\t// Mask the image\r\n\t\tBufferedImage maskedImage = imageMasker.applyMask(inputImage, mask);\r\n\r\n\t\t// Store bounding box to use in next iteration\r\n\t\tthis.prevMetrics = imageMetrics;\r\n\t\t// Store it to the csv\r\n\t\tif (csvHandler != null) {\r\n\t\t\tcsvHandler.writeCSVLine(imageMetrics.getMetrics());\r\n\t\t}\r\n\t\t// Check size\r\n\t\tcheckLargestBBox(imageMetrics);\r\n\t\t// Return the image with debug information\r\n\t\t// return\r\n\t\t// metricsCentroid.drawMetrics(boundingBoxer.drawBoundingBox(maskedImage,\r\n\t\t// imageMetrics), imageMetrics);\r\n\t\t// Return the image\r\n\t\treturn maskedImage;\r\n\t}", "private static int checkStyle(int style) {\n\t\tstyle |= SWT.NO_FOCUS;\n\t\tint mask = SWT.HORIZONTAL | SWT.VERTICAL | SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT | SWT.UP | SWT.DOWN;\n\t\treturn style & ~mask;\n\t}", "public boolean isDark() {\n return (col + row) % 2 == 0;\n }" ]
[ "0.5845032", "0.5776659", "0.57760113", "0.56532615", "0.556392", "0.54231656", "0.54184985", "0.5411955", "0.5392599", "0.53863055", "0.53858685", "0.53858685", "0.5374031", "0.53487366", "0.53381145", "0.5331263", "0.5328856", "0.5328434", "0.53284144", "0.53210664", "0.529909", "0.52619267", "0.5250903", "0.5235147", "0.520954", "0.5179005", "0.51766574", "0.51759535", "0.517314", "0.5168928", "0.5147128", "0.5124142", "0.5110645", "0.51070136", "0.5103683", "0.5037792", "0.501663", "0.5005271", "0.5001024", "0.49748343", "0.4969577", "0.49597833", "0.49462858", "0.494124", "0.49273333", "0.4922782", "0.49208593", "0.49120906", "0.49118298", "0.4910788", "0.49078068", "0.48981926", "0.4891438", "0.48908", "0.4884306", "0.48767382", "0.485718", "0.48531488", "0.48526576", "0.48479792", "0.4839849", "0.48384884", "0.4828281", "0.4820135", "0.48137534", "0.48044503", "0.48035568", "0.47990504", "0.4785988", "0.4783356", "0.4777631", "0.47730464", "0.47729006", "0.47681564", "0.47627953", "0.47414824", "0.47343123", "0.47337177", "0.4723839", "0.4723839", "0.47237304", "0.47142175", "0.4706927", "0.47061518", "0.47059754", "0.4704315", "0.46961448", "0.46945283", "0.46932948", "0.46854365", "0.46843123", "0.4673309", "0.46664968", "0.46658474", "0.46647894", "0.4656823", "0.46503282", "0.46454093", "0.46422035", "0.46286592" ]
0.7219116
0
Gets the offset in the x direction for the text location. The offset is specified in halfcharacters.
public int getXOffset();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int getXOffset() {\n return xOffset;\n }", "protected abstract int getXOffset();", "public float getxOffset() {\n\t\treturn xOffset;\n\t}", "public double getxOffset() {\n return currentXOffset + xOffset;\n }", "double getXPosition();", "public int getXOffset(float xpos) {\n return -(getWidth() / 2);\n }", "public float getTextureXOffset() {\n\t\tint column = index % texture.getNumberOfRows();\n\t\treturn (float) column / (float) texture.getNumberOfRows();\n\t}", "public static int getStartXCoordinate(){\n\t\tint x = getThymioStartField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n \t\n\t\treturn x ;\n\t}", "public static String getWordLeftOfOffset(CharSequence text, int cursorOffset) {\n\t\treturn grabWord(text, cursorOffset - 1, false);\n\t}", "public double getUserFriendlyXPos(){\n return xPos - myGrid.getWidth()/ HALF;\n }", "public float getXOffset() {\n return mXOffset;\n }", "double getPositionX();", "double getPositionX();", "double getPositionX();", "public int getStart ()\r\n {\r\n return glyph.getBounds().x;\r\n }", "public final int getPosX(int extraOffset) {\n final int align = alignment.getValue().ordinal();\n final int dirSignX = AlignHelper.getFlowDirX2(align);\n return (extraOffset + offsetX.getValue()) * dirSignX + AlignHelper.alignH(Common.getScreenWidth(), align);\n }", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public final int getPositionX() {\r\n return (int) position.x();\r\n }", "public int getX() {\n return PADDING;\n //return columnToX(this.getCols());\n //throw new UnsupportedOperationException();\n }", "public float XOffset() {\n\t\tfloat xoffset = 0;\n\t\tif (MouseX() + 12 + (tipw * 7 + 4) > MainSim.WinX) {\t\t\t \t// If the tooltip will be outside the window (based on mousex):\n\t\t\txoffset = (MouseX() + 12 + (tipw * 7 + 4)) - MainSim.WinX; \t\t// Find how much the tip will be drawn outside\n\t\t} else {\n\t\t\txoffset = 0;\n\t\t}\n\t\treturn xoffset;\n\t}", "org.apache.xmlbeans.XmlInt xgetAnchorOffset();", "public int getxPosition() {\n\t\treturn xPosition;\n\t}", "public Integer getXOffset() {\n\t\tdouble frameWidth = this.pixy.getFrameWidth() / 2;\n\t\tdouble blockX = this.getX();\n\n\t\treturn (int) (blockX + frameWidth / 2);\n\t}", "public int getXPos();", "public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public int getX(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(0)/ AvesAblazeHardware.mmPerInch);\n\t}", "public int getX() {\n return (int) xPos;\n }", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public static String getStringLeftOfOffset(CharSequence text, int cursorOffset) {\n\t\treturn grabString(text, cursorOffset - 1, false);\n\t}", "@Override\n public int getXOffset(float xpos) {\n return -(getWidth() / 2);\n }", "public int getXPosition() {\n return xPosition;\n }", "public final int getCursorAbsoluteX() {\n return getAbsoluteX() + cursorX;\n }", "private int get_x() {\n return center_x;\n }", "@DISPID(-2147417104)\n @PropGet\n int offsetLeft();", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public int getxPos() \n\t{\n\t\treturn xPos;\n\t}", "public int getLocationX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}", "public int getXLeftUpper() {\n return xLeftUpper;\n }", "public int getxPos() {\n\t\treturn xPos;\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "public final int getXOff() {\r\n\t\treturn xOff;\r\n\t}", "double getOffset();", "public static int getPositionAbove(JTextComponent c, int offset, int x)\n throws BadLocationException {\n BaseDocument doc = (BaseDocument)c.getDocument();\n BaseTextUI ui = (BaseTextUI)c.getUI();\n offset = ui.viewToModel(c, x, ui.getYFromPos(offset) - ui.getEditorUI().getLineHeight());\n return offset;\n }", "public float getX() { return xCoordinate;}", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getX() {\n return pos_x;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "double getMapPositionX();", "public int getXPointerPosition() {\n\t\treturn getXPosition() + getXOffset();\n\t}", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public int getPosicaoX() {\r\n\t\treturn posicaoX;\r\n\t}", "public int calculateScreenX(float x) {\n return Math.round(center.x + x - position.x);\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getXPosition() {\n return this.xPosition;\n }", "public float getPositionX() {return this.position.getX();}", "protected float getX(float x) {\r\n\t\treturn ((x - viewStart.x) * parent.pixelsPerUnit);\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public int xPos() {\r\n\t\treturn this.xPos;\r\n\t}", "public int getxPos() {\n return xPos;\n }", "public int getElementHorizontalalAlignmentLeft(WebDriver driver, String xpathUpper, String xpathLower) throws NumberFormatException, IOException {\n\t\tint X = driver.findElement(By.xpath(xpathUpper)).getLocation().getX();\n\t\tint x = driver.findElement(By.xpath(xpathLower)).getLocation().getX();\n\t\tint alignment = Math.abs(X - x);\n\t\tfileWriterPrinter(\"\\n\" + \"HORIZONTAL ALIGNMENT = \" + alignment);\n\t\treturn alignment;\n\t\t}", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getPositionX() {\r\n\t\treturn positionX;\r\n\t}", "@SuppressWarnings(\"deprecation\")\n protected float getPreTab(float x, int tabOffset) {\n Document d = getDocument();\n View v = getViewAtPosition(tabOffset, null);\n if ((d instanceof StyledDocument) && v != null) {\n // Assume f is fixed point.\n Font f = ((StyledDocument)d).getFont(v.getAttributes());\n Container c = getContainer();\n FontMetrics fm = (c != null) ? c.getFontMetrics(f) :\n Toolkit.getDefaultToolkit().getFontMetrics(f);\n int width = getCharactersPerTab() * fm.charWidth('W');\n int tb = (int)getTabBase();\n return (float)((((int)x - tb) / width + 1) * width + tb);\n }\n return 10.0f + x;\n }", "public int getX() { return position.x; }", "public int getStartX() {\r\n\t\treturn startX;\r\n\t}", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getXPosition() {\n\t\treturn this.position.x;\n\t}", "DVector3C getOffsetPosition();", "public final int getCursorX() {\n return cursorX;\n }", "Double getOffset();", "double getStartX();", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public float getxPosition() {\n return xPosition;\n }", "public static int getEndXCoordinate(){\n\t\tint x = getThymioEndField_X(); \n\t\t\n\t\tif(x == 0){\n\t\t\n \t}else{\n \t x *= FIELD_HEIGHT;\n \t}\n\n\t\treturn x;\n\t}", "@Override\n\tpublic double getXPos() {\n\t\treturn field_145851_c;\n\t}", "public int getX() {\r\n return xpos;\r\n }", "private int xpos(final PlatformEvent event) {\n // To support Noncontiguous NodeId, the index of the NodeId in the address book is used.\n final int nodeIndex = platform.getAddressBook().getIndexOfNodeId(event.getCreatorId());\n return (nodeIndex + 1) * width / (numColumns + 1);\n }", "public double getLeftX(){\r\n\t\treturn adjustInput(driverLeft.getX());\r\n\t}", "public int getXPos() {\n\t\treturn xPos;\n\t}", "public double getX() {\n return position.getX();\n }", "protected float getOffset(int line,int column) {\n prepareLine(line);\n mPaint.setTypeface(mTypefaceText);\n return measureText(mChars,0,column) + measureLineNumber() + mDividerMargin * 2 + mDividerWidth - getOffsetX();\n }", "public int getPositionX() {\n return positionX;\n }", "public float getRelX() {\n return x + (getReferenceX()-Controller.getMap().getChunkCoords(0)[0]) * Chunk.getGameWidth();\n }", "public float getX() {\n return pos.x;\n }", "public double getXOffset() {\n if (isReal) {\n return get(\"tx\");\n } else {\n return simTx.getDouble(0.0);\n }\n }", "public int getStartingPos ()\r\n {\r\n if ((getThickness() >= 2) && !getLine()\r\n .isVertical()) {\r\n return getLine()\r\n .yAt(getStart());\r\n } else {\r\n return getFirstPos() + (getThickness() / 2);\r\n }\r\n }", "int getScrollOffsetX();" ]
[ "0.62868947", "0.6214687", "0.61986625", "0.61674684", "0.5935549", "0.5888718", "0.58577734", "0.5856762", "0.5854732", "0.5846568", "0.58421713", "0.58366406", "0.58366406", "0.58366406", "0.58125776", "0.580233", "0.57103926", "0.57098275", "0.5679153", "0.5672994", "0.56711984", "0.5666723", "0.56494194", "0.56480753", "0.5628992", "0.5603056", "0.55984133", "0.5586753", "0.5557364", "0.55571306", "0.5552466", "0.55346715", "0.55202854", "0.5519574", "0.5519342", "0.55187094", "0.55099934", "0.55061543", "0.55042875", "0.5499189", "0.5495832", "0.5490928", "0.5488506", "0.54881537", "0.54881537", "0.5487642", "0.54838735", "0.5481887", "0.54813796", "0.54801744", "0.5478711", "0.5478711", "0.5470444", "0.5460908", "0.5459792", "0.5459792", "0.5457714", "0.545293", "0.5448172", "0.54403377", "0.543803", "0.5435033", "0.5427191", "0.542524", "0.5424716", "0.54176", "0.5415965", "0.54158926", "0.5410048", "0.5410048", "0.54069173", "0.5405926", "0.5400093", "0.53919744", "0.5380059", "0.5365635", "0.53638583", "0.5355637", "0.53551286", "0.5352041", "0.5349958", "0.533778", "0.5336484", "0.5333514", "0.5333514", "0.53318053", "0.5322996", "0.5321781", "0.5320121", "0.5316751", "0.5316404", "0.53117836", "0.53101647", "0.53089803", "0.5301105", "0.5298135", "0.52954996", "0.5295251", "0.5292781", "0.528847" ]
0.6625719
0
Gets the offset in the y direction for the text location. The offset is specified in halfcharacters.
public int getYOffset();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getyOffset() {\n\n return currentYOffset + yOffset;\n }", "public final int getYOffset() {\n return yOffset;\n }", "public double getTargetVerticalOffset() {\n return getDouble(\"ty\");\n }", "public double getYOffset() {\n if (isReal) {\n return get(\"ty\");\n } else {\n return simTy.getDouble(0.0);\n }\n }", "public double getYOffset()\n {\n return -0.45D;\n }", "public double getUserFriendlyYPos(){\n return myGrid.getHeight()/ HALF-yPos;\n }", "public float getYOffset() {\n return mYOffset;\n }", "public Integer getYOffset() {\n\t\tdouble frameHeight = this.pixy.getFrameHeight();\n\t\tdouble blockY = this.getY();\n\n\t\treturn (int) (frameHeight / 2 + blockY);\n\t}", "public static int getEndYCoordinate(){\n\tint y = getThymioEndField_Y(); \n\t\t\n\t\tif(y == 0){\n\t\t\n \t}else{\n \t y *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "double getYPosition();", "public float getTextureYOffset() {\n\t\tint row = index / texture.getNumberOfRows();\n\t\treturn (float) row / (float) texture.getNumberOfRows();\n\t}", "public int getTheYPosition(int y){\n\t\tif(y>=1 && y<=4){\n\t\t\treturn 7;\n\t\t}\n\t\telse if(y>=5 && y<=8){\n\t\t\treturn 6;\n\t\t}\n\t\telse if(y>=9 && y<=12){\n\t\t\treturn 5;\n\t\t}\n\t\telse if(y>=13 && y<=16){\n\t\t\treturn 4;\n\t\t}\n\t\telse if(y>=17 && y<=20){\n\t\t\treturn 3;\n\t\t}\n\t\telse if(y>=21 && y<=24){\n\t\t\treturn 2;\n\t\t}\n\t\telse if(y>=25 && y<=28){\n\t\t\treturn 1;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}", "public double getYPos() {\n\t\treturn this.position[1];\n\t}", "double getPositionY();", "double getPositionY();", "double getPositionY();", "private int abstToDeskY(float y)\n {\n return (int)(height*y);\n }", "public String getOriginYText() {\n\t\treturn originY.getText();\n\t}", "public static int getStartYCoordinate(){\n\t\tint y = getThymioStartField_Y();\n\t\tif(y == 0){\n \t\t\n \t}else{\n \t\ty *= FIELD_HEIGHT;\n \t}\n\t\treturn y;\n\t}", "double getOffset();", "public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }", "public int getY() {\n return PADDING;\n //return rowToY(this.getRows());\n //throw new UnsupportedOperationException();\n }", "public int getLocationY() {\r\n\t\treturn y;\r\n\t}", "public int yPos() {\n\t\treturn Engine.scaleY(y);\n\t}", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "default Integer getYOffset() {\n return null;\n }", "public int getYPos();", "public int getLocationY( )\n\t{\n\t\treturn locationY;\n\t}", "public int getPosicaoY() {\r\n\t\treturn posicaoY;\r\n\t}", "private int getTargetLineByPos(double y) {\n return (int)y / lineHeight + 1;\n }", "public int getYPointerPosition() {\n\t\treturn getYPosition() + getYOffset();\n\t}", "int getScrollOffsetY();", "private float drawText(Graphics2D g2d) {\n float yOffset = 0; // 1\" top margin\r\n for (TextLayout tl : textLayouts) {\r\n yOffset += tl.getAscent();\r\n tl.draw(g2d, 0, yOffset);\r\n yOffset += tl.getDescent();\r\n yOffset += tl.getLeading();\r\n }\r\n return yOffset;\r\n }", "double getMapPositionY();", "private int getExclusiveBottomIndexEndOffset() {\n \n \t\tif (fTextWidget != null && !fTextWidget.isDisposed()) {\n \t\t\tint bottom= fSourceViewer.getBottomIndex();\n \t\t\tif (((fTextWidget.getTopPixel() + fTextWidget.getClientArea().height) % fTextWidget.getLineHeight()) != 0)\n \t\t\t\tbottom++;\n \t\t\ttry {\n \t\t\t\tIDocument document= fSourceViewer.getDocument();\n \n \t\t\t\tif (bottom >= document.getNumberOfLines())\n \t\t\t\t\tbottom= document.getNumberOfLines() - 1;\n \n \t\t\t\treturn document.getLineOffset(bottom) + document.getLineLength(bottom);\n \t\t\t} catch (BadLocationException x) {\n \t\t\t}\n \t\t}\n \n \t\treturn -1;\n \t}", "public void getOriginY(){\n\t\toriginY.setText(Double.toString(note.getOriginY()));\n\t}", "public int getPos_y(){\n\t\treturn pos_y;\n\t}", "public int getYOffset(float ypos) {\n return -getHeight();\n }", "private float getYAxisLabelHeight() {\n return ViewUtils.getTextHeight(mYAxisTextPaint, PERCENTAGE_PERFECT);\n }", "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "int getLineHeight() {\n\treturn ascent + descent;\n}", "public double calculateYOffset(AxisAlignedBB axis, double offset) {\n\t\tif (axis.maxX > this.minX && axis.minX < this.maxX) {\n\t\t\tif (axis.maxZ > this.minZ && axis.minZ < this.maxZ) {\n\t\t\t\tdouble var4;\n\n\t\t\t\tif (offset > 0.0D && axis.maxY <= this.minY) {\n\t\t\t\t\tvar4 = this.minY - axis.maxY;\n\n\t\t\t\t\tif (var4 < offset) {\n\t\t\t\t\t\toffset = var4;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (offset < 0.0D && axis.minY >= this.maxY) {\n\t\t\t\t\tvar4 = this.maxY - axis.minY;\n\n\t\t\t\t\tif (var4 > offset) {\n\t\t\t\t\t\toffset = var4;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn offset;\n\t\t\t} else {\n\t\t\t\treturn offset;\n\t\t\t}\n\t\t} else {\n\t\t\treturn offset;\n\t\t}\n\t}", "Double getOffset();", "double getY() { return pos[1]; }", "public static int getOrigY() {\n return 5;\n }", "public float getRelY() {\n return y + (getReferenceY()-Controller.getMap().getChunkCoords(0)[1]) * Chunk.getGameDepth();\n }", "abstract double getOrgY();", "public int getY() {\n return (int) yPos;\n }", "public int getLocY() {\n return locY;\n }", "public float getLimit_ang_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 60);\n\t\t}\n\t}", "protected double getReferenceY() {\n if (isYAxisBoundsManual() && !mGraphView.getGridLabelRenderer().isHumanRoundingY()) {\n if (Double.isNaN(referenceY)) {\n referenceY = getMinY(false);\n }\n return referenceY;\n } else {\n // starting from 0 so that the steps have nice numbers\n return 0;\n }\n }", "public float getAlignmentY() { return 0.5f; }", "public int getY() {\n\t\treturn this.y_indice * DIM_CASE;\n\t}", "public int getLocY() {\n return locY;\n }", "@Override\n\tpublic double getMountedYOffset() {\n\t\treturn (isSitting() ? 1.7f : 2.2f) * getScale();\n\t}", "public int getyPosition() {\n\t\treturn yPosition;\n\t}", "public final float getPositionY() {\r\n\t\treturn getState(false).getPositionY();\r\n\t}", "public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}", "double getEndY();", "int getLabelOffset();", "private int getIsoY(int x, int y) {\n\t\treturn (x + y) * (TILE_HEIGHT/2);\n\t}", "public double getYPosition()\n\t{\n\t\treturn yPosition;\n\t}", "public int mapY(double y)\n {\n return (int)Math.round(height - (y - (world.view.yOrigin - (world.view.height / 2))) * height / world.view.height);\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public int getCoordY() \r\n {\r\n \treturn this.coordY;\r\n }", "public double getEndY() {\n\treturn v2.getY();\n }", "public int toMapOffset(int x, int y) {\r\n\t\treturn (x - y) * 65 + (x - y + 1) / 2 - x;\r\n\t}", "public double getY() {\r\n return this.dy;\r\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getPositionY() {\n return positionY_;\n }", "public double getLocationY() {\r\n\t\treturn location.getY();\r\n\t}", "public int getY() {\n\t\t\n\t\treturn yPosition;\t\t// Gets the y integer\n\t}", "protected float getY(float y) {\r\n\t\treturn this.getHeight() - ((y - viewStart.y) * parent.pixelsPerUnit);\r\n\t}", "public int getScrollMaxY(){\n return Math.max(0, getLineHeight() * getLineCount() - getHeight() / 2);\n }", "double getCalibrationOffset();", "public int getY(){\n return this.position[1];\n }", "public float getY()\n {\n return getBounds().top + positionAnchor.y;\n }", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "double getStartY();", "private double yPos(double yMetres){\r\n\t\treturn -yMetres*14+canvas.getHeight();\r\n\t}", "public int getYLeftUpper() {\n return yLeftUpper;\n }", "public int getEndY() {\r\n\t\treturn endY;\r\n\t}", "public int yIncriment(){\n\t\tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\treturn -1;\n\t\t\tcase NORTHEAST:\n\t\t\t\treturn -1;\n\t\t\tcase EAST:\n\t\t\t\treturn 0;\n\t\t\tcase SOUTHEAST:\n\t\t\t\treturn 1;\n\t\t\tcase SOUTH:\n\t\t\t\treturn 1;\n\t\t\tcase SOUTHWEST:\n\t\t\t\treturn 1;\n\t\t\tcase WEST:\n\t\t\t\treturn 0;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\treturn -1;\n\t\t}\n\t}", "public int maxSentenceOffset();", "public int getyPos() {\n\t\treturn yPos;\n\t}", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public int getyPos() \n\t{\n\t\treturn yPos;\n\t}", "String getPosY();", "public double syToWy (int sy) { return ((sy * extents.getHeight())/getMyHeight()) + extents.getMinY(); }", "protected float getOffset(int line,int column) {\n prepareLine(line);\n mPaint.setTypeface(mTypefaceText);\n return measureText(mChars,0,column) + measureLineNumber() + mDividerMargin * 2 + mDividerWidth - getOffsetX();\n }", "private double y(double pt){\n pt = -pt;\n if (pt<=0) pt = 90 + -pt;\n else pt = 90 - pt;\n\n pt = 180-pt;\n return pt;\n }", "public int getY() { return loc.y; }", "public final int getY()\n\t{\n\t\treturn pos.y;\n\t}", "public int getPositionY(){\n\t\treturn positiony;\n\t}", "public float getTextureOffsetY() {\r\n\t\treturn textureY;\r\n\t}", "public double fixY( double y )\n {\n return pageSize.getHeight() - y;\n }", "public int getY()\n\t{\n\t\treturn m_nPosY;\n\t}" ]
[ "0.65731955", "0.6416038", "0.62980485", "0.6273652", "0.624343", "0.61948335", "0.61934817", "0.6151037", "0.60729253", "0.60398936", "0.600046", "0.5884843", "0.58675766", "0.58607125", "0.58607125", "0.58607125", "0.5838321", "0.58059293", "0.579697", "0.5789088", "0.5776559", "0.5773822", "0.57682395", "0.57622725", "0.57611287", "0.5754518", "0.5747564", "0.57379895", "0.5728439", "0.5718851", "0.5713268", "0.57088804", "0.57080925", "0.56934065", "0.5655989", "0.5653896", "0.5651862", "0.5644002", "0.5641835", "0.5640843", "0.5629126", "0.5622776", "0.5621042", "0.56185555", "0.5601119", "0.5597691", "0.55960727", "0.5571024", "0.5569129", "0.556892", "0.55634475", "0.5562006", "0.5560961", "0.55607367", "0.5558134", "0.5555018", "0.55547935", "0.5539453", "0.55390054", "0.55390036", "0.55356765", "0.5519282", "0.55183893", "0.5508429", "0.550755", "0.550755", "0.54916984", "0.54843014", "0.54806864", "0.5474524", "0.5472842", "0.5472842", "0.5472842", "0.5470927", "0.54685485", "0.5458521", "0.5451539", "0.54465926", "0.5443438", "0.5443213", "0.5442604", "0.54414904", "0.5440865", "0.5438929", "0.54376346", "0.5436684", "0.5429909", "0.5422328", "0.5421313", "0.5418037", "0.54134786", "0.54124856", "0.5411994", "0.54106104", "0.54085135", "0.5408368", "0.54066455", "0.54054546", "0.5402239", "0.5400639" ]
0.7008996
0
Useful printing code goes here
public void printYourself(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\tpublic void print() {\n\n\t\t}", "@Override\n\tpublic void print() {\n\t\t\n\t}", "@Override\r\n\tpublic void print() {\n\t}", "@Override\n\tpublic void print() {\n\n\t}", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "@VisibleForTesting\n void print();", "public void print();", "public void print();", "public void print();", "public void print();", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "void print() {\n for (int i = 0; i < 8; i--) {\n System.out.print(\" \");\n for (int j = 0; j < 8; j++) {\n System.out.print(_pieces[i][j].textName());\n }\n System.out.print(\"\\n\");\n }\n }", "public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "public static void print() {\r\n\t\tSystem.out.println(\"1: Push\");\r\n\t\tSystem.out.println(\"2: Pop\");\r\n\t\tSystem.out.println(\"3: Peek\");\r\n\t\tSystem.out.println(\"4: Get size\");\r\n\t\tSystem.out.println(\"5: Check if empty\");\r\n\t\tSystem.out.println(\"6: Exit\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t}", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "void print();", "void print();", "void print();", "void print();", "void print();", "@Override\n public void print() {\n }", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "public void formatPrint() {\n\t\tSystem.out.printf(\"%8d \", codigo);\n\t\tSystem.out.printf(\"%5.5s \", clase);\n\t\tSystem.out.printf(\"%5.5s \", par);\n\t\tSystem.out.printf(\"%5.5s \", nombre);\n\t\tSystem.out.printf(\"%8d \", comienza);\n\t\tSystem.out.printf(\"%8d\", termina);\n\t}", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public String print();", "public void print() {\n\t\t\n\t\tfor (int j = 0; j < height(); j++) {\n\t\t\tfor (int i = 0; i < width(); i++) {\n\t\t\t\tSystem.out.printf(\"%3d \", valueAt(i, j));\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\t\n\t}", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "public void printInformation() {\n\n System.out.println(\"Name: \" + name);\n System.out.println(\"Weight: \" + weight);\n System.out.println(\"Shape: \" + shape);\n System.out.println(\"Color: \" + color);\n }", "@Override\n public void print() {\n System.out.println(\"VIn:- \"+getVehicalIndentificationNumber());\n System.out.println(\"Description:- \"+getVechicalDiscription());\n System.out.println(\"Manufacturer:- \"+getManufacturerName());\n System.out.println(\"isSelfDrive:- \"+getSelfDrive());\n System.out.println(\"isInsured:- \"+getInsured());\n System.out.println(\"insuranceProviderName:- \"+getInsuranceProviderName());\n System.out.println(\"NumberOfSeat:- \"+getNoOfSeat());\n System.out.println(\"FuelType:- \"+getFuelType());\n System.out.println(\"BaseRate:- \"+getBaseRate());\n System.out.println(\"RatePerKm:- \"+getRatePerKm());\n System.out.println(\"VehicleType:- \"+getVehicleType());\n System.out.println(\"Color:- \"+getColor());\n }", "public void print(){\r\n System.out.println(toString());\r\n }", "@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}", "public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }", "public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }", "public void print() {\n super.print();\r\n System.out.println(\"Hourly Wage: \" + hourlyWage);\r\n System.out.println(\"Hours Per Week: \" + hoursPerWeek);\r\n System.out.println(\"Weeks Per Year: \" + weeksPerYear);\r\n }", "abstract public void printInfo();", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "void printInfo();", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "public void print()\r\n {\n if (getOccupants().length != 0)\r\n {\r\n \t// will use the print method in the person class\r\n getOccupants()[0].print();\r\n }\r\n else if (this.explored)\r\n {\r\n System.out.print(\"[ H ]\");\r\n }\r\n else\r\n {\r\n System.out.print(\"[ ]\");\r\n }\r\n\r\n }", "public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "public void print() {\n System.out.println(toString());\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public void print()\n {\n System.out.println(name + \"\\n\");\n for(int iterator = 0; iterator < bookList.size() ; iterator++)\n {\n System.out.println((iterator+1) +\". \" + bookList.get(iterator).getTitle()+\" by \" +bookList.get(iterator).getAuthor()); \n }\n }", "private void print() {\n\t\t// reorganize a wraparound queue and print\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(bq[(head + i) % bq.length] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t}", "public void printRecipt(){\n\n }", "public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }", "public void print () {\n }", "public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }", "void format(Printer printer);", "public void print ()\n\t{\n\t\tSystem.out.println(\"Polyhedron File Name: \" + FileName);\n\t\tSystem.out.println(\"Object active: \" + Boolean.toString(isActive()));\n\t\tprintCoordinates();\n\t}", "public void print() {\n System.out.print(\"[ \" + value + \":\" + numSides + \" ]\");\n }", "private void print() {\r\n // Print number of survivors and zombies\r\n System.out.println(\"We have \" + survivors.length + \" survivors trying to make it to safety (\" + childNum\r\n + \" children, \" + teacherNum + \" teachers, \" + soldierNum + \" soldiers)\");\r\n System.out.println(\"But there are \" + zombies.length + \" zombies waiting for them (\" + cInfectedNum\r\n + \" common infected, \" + tankNum + \" tanks)\");\r\n }", "public void print() {\n\t\tSystem.out.println(\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName+\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)+\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress);\r\n\t}", "public void print() {\n btprint(c);\n }", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "@Override\n public void printable()\n {\n\tfor (int i = 0; i < width; i++)\n\t{\n\t for (int k = 0; k < length; k++)\n\t {\n\t\tif (k == 0 || k == length - 1)\n\t\t System.out.print(\"O \");\n\t\telse if (i == 0 || i == width - 1)\n\t\t System.out.print(\"O \");\n\t\telse\n\t\t System.out.print(\" \");\n\t }\n\n\t System.out.println();\n\t}\n }", "public void printString()\r\n\t{\r\n\t\t//print the column labels\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"Word\", \"Occurrences [form: (Paragraph#, Line#)]\");\r\n\t\tSystem.out.printf(\"%-20s %s\\n\", \"----\", \"-----------\");\r\n\t\troot.printString();\r\n\t}", "public static void printInfo(){\n }", "public void print() {\r\n\r\n\t\tfor (int row=0; row<10; row++) \r\n\t\t{\r\n\t\t\tfor (int col=0; col<10; col++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+nums[row][col]); //separated by tabs\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\n\t\tif(exceptions != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Exceptions: \" + exceptions[0]);\r\n\t\t\tfor(int i = 1; i < exceptions.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\", \" + exceptions[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exceptions: none\");\r\n\t\t}\r\n\r\n\t\tif(parameters != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Parameters: \" + parameters[0]);\r\n\t\t\tfor(int i = 1; i < parameters.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\", \" + parameters[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Parameters: none\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "void Print()\n {\n int quadLabel = 1;\n String separator;\n\n System.out.println(\"CODE\");\n\n Enumeration<Quadruple> e = this.Quadruple.elements();\n e.nextElement();\n\n while (e.hasMoreElements())\n {\n Quadruple nextQuad = e.nextElement();\n String[] quadOps = nextQuad.GetOps();\n System.out.print(quadLabel + \": \" + quadOps[0]);\n for (int i = 1; i < nextQuad.GetQuadSize(); i++)\n {\n System.out.print(\" \" + quadOps[i]);\n if (i != nextQuad.GetQuadSize() - 1)\n {\n System.out.print(\",\");\n } else System.out.print(\"\");\n }\n System.out.println(\"\");\n quadLabel++;\n }\n }", "public void print()\n {\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < memorySize; i++)\n {\n buffer.append(mainMemory[i]);\n }\n System.out.println(buffer.toString());\n }", "public void print(){\r\n\t\tSystem.out.println(\"Size of each block:\\t\\t\" + this.blockSize);\r\n\t\tSystem.out.println(\"Total Number of Inodes:\\t\\t\" + this.inodeCount);\r\n\t\tSystem.out.println(\"Total Number of Blocks:\\t\\t\" + this.blocksCount);\r\n\t\tSystem.out.println(\"Number of Free Blocks:\\t\\t\" + this.freeBlocksCount);\r\n\t\tSystem.out.println(\"Number of Free Inodes:\\t\\t\" + this.freeInodesCount);\r\n\t\tSystem.out.println(\"First Data Block:\\t\\t\" + this.firstDataBlock);\r\n\t\tSystem.out.println(\"Last Written Date and Time:\\t\" + GeneralUtils.getDateFromLong(this.wTime));\r\n\t\tSystem.out.println(\"First Inode:\\t\\t\\t\" + this.firstInode);\r\n\t\tSystem.out.println(\"Inode Size:\\t\\t\\t\" + this.inodeSize);\r\n\t}", "public void print()\n {\n System.out.println(\"Course: \" + title + \" \" + codeNumber);\n \n module1.print();\n module2.print();\n module3.print();\n module4.print();\n \n System.out.println(\"Final mark: \" + finalMark + \".\");\n }", "public void print() {\r\n\t\tObject tmp[] = piece.values().toArray();\r\n\t\tfor (int i = 0; i < piece.size(); i++) {\r\n\t\t\tChessPiece p = (ChessPiece)tmp[i];\r\n\t\t\tSystem.out.println(i + \" \" + p.chessPlayer + \":\" + p.position + \" \" + p.isEnabled());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(body.countComponents());\r\n\t}", "public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "@Override\n\tpublic void print() {\n\t\tsuper.print();\n\t\tSystem.out.println(\"ÎÒÊÇÒ»Ö»\"+this.getStrain()+\"È®.\");\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "@Override\n\tpublic void print() {\n\t\tdecoratedPrinter.print();\n\t}", "public void print() {\n int rows = this.getNumRows();\n int cols = this.getNumColumns();\n\n for (int r = 0; r < rows; r++) {\n\n for (int c = 0; c < cols; c++) {\n System.out.print(this.getString(r, c) + \", \");\n }\n\n System.out.println(\" \");\n }\n }", "abstract void print();", "public void printInfo() {\r\n System.out.printf(\"%-25s\", \"Nomor Rekam Medis Pasien\");\r\n System.out.println(\": \" + getNomorRekamMedis());\r\n System.out.printf(\"%-25s\", \"Nama Pasien\");\r\n System.out.println(\": \" + getNama());\r\n System.out.printf(\"%-25s\", \"Tempat, Tanggal Lahir\");\r\n System.out.print(\": \" + getTempatLahir() + \" , \");\r\n getTanggalKelahiran();\r\n System.out.printf(\"%-25s\", \"Alamat\");\r\n System.out.println(\": \" + getAlamat());\r\n System.out.println(\"\");\r\n }", "public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }", "public void print() {\n System.out.println(\"Nome: \" + nome);\n System.out.println(\"Telefone: \" + telefone);\n }", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"\\nMSc. student:\\n\");\n\t\tsuper.print();\n\t}", "public void print() {\n\t\tSystem.out.println(word0 + \" \" + word1 + \" \" + similarity);\n\t}", "public void print() {\n for (int i = 0; i < headers.length; i++) {\n System.out.printf(headers[i] + \", \"); // Print column headers.\n }\n System.out.printf(\"\\n\");\n for (int i = 0; i < (data.length - 1); i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.printf(data[i][j] + \" \"); // Print value at i,j.\n }\n System.out.printf(\"\\n\");\n }\n }", "public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }", "@Override\n public String print() {\n return this.text + \"\\n\" + \"1. \" + this.option1.text + \"\\n\" + \"2. \" + this.option2.text;\n }", "@Override\r\n\tpublic void print() {\n\t\tsuper.print();\r\n\t\tSystem.out.println(\"album=\" + album + \", year=\" + year);\r\n\t}", "void print() {\t\r\n\t\tIterator<Elemento> e = t.iterator();\r\n\t\twhile(e.hasNext())\r\n\t\t\te.next().print();\r\n\t}", "void print() {\n\t\n\t}", "public void print() {\n\t\tint i = 1;\n\t\tfor (String s: g.keySet()) {\n\t\t\tSystem.out.print(\"Element: \" + i++ + \" \" + s + \" --> \");\n\t\t\tfor (String k: g.get(s)) {\n\t\t\t\tSystem.out.print(k + \" ### \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private static void printToString(Printable p) {\n\t\tp.print();\n\t}", "public void print() {\n\t\tfor(String subj : subjects) {\n\t\t\tSystem.out.println(subj);\n\t\t}\n\t\tSystem.out.println(\"==========\");\n\t\t\n\t\tfor(StudentMarks ssm : studMarks) {\n\t\t\tSystem.out.println(ssm.student);\n\t\t\tfor(Byte m : ssm.marks) {\n\t\t\t\tSystem.out.print(m + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void print() {\n\t\tfor (int i = 0; i < TABLE_SIZE; i++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tif (array[i] != null) {\n\t\t\t\tSystem.out.print(array[i].value);\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.print(\"|\\n\");\n\t}", "public void print() {\n for (int i=0; i<lines.size(); i++)\n {\n System.out.println(lines.get(i));\n }\n }", "private static void print(String p) {\n\t\tSystem.out.println(PREFIX + p);\n\t}", "public void print() {\r\n System.out.print(\"[id: <\" + this.id + \"> \");\r\n if (this.dimension > 0) {\r\n System.out.print(this.data[0]);\r\n }\r\n for (int i = 1; i < this.dimension * 2; i++) {\r\n System.out.print(\" \" + this.data[i]);\r\n }\r\n System.out.println(\"]\");\r\n }", "public void print() {\n\t\tSystem.out.println(\"ONOMA IDIOKTITH: \" + fname);\n\t\tSystem.out.println(\"EPWNYMO IDIOKTITH: \" + lname);\n\t\tSystem.out.println(\"DIEUTHINSH FARMAKEIOU: \" + address);\n\t\tSystem.out.println(\"THLEFWNO FARMAKEIOU: \" + telephone);\n\t\tSystem.out.println();\n\t}", "public abstract void print();" ]
[ "0.8025526", "0.788081", "0.7781204", "0.7617085", "0.7588756", "0.7516849", "0.7501645", "0.74384856", "0.7343544", "0.7343544", "0.7343544", "0.7343544", "0.7342307", "0.72939575", "0.7279004", "0.7275095", "0.7264256", "0.72424746", "0.72370327", "0.7224388", "0.72171795", "0.72171795", "0.72171795", "0.72171795", "0.72171795", "0.7194518", "0.716565", "0.7149264", "0.71259433", "0.71155584", "0.7108358", "0.7098989", "0.70970833", "0.70970833", "0.7068116", "0.705107", "0.70386213", "0.7034737", "0.703019", "0.70281243", "0.7022726", "0.7020194", "0.7018392", "0.7017998", "0.7016259", "0.7008469", "0.70065176", "0.6997724", "0.6984655", "0.69588673", "0.6948826", "0.6947191", "0.69465876", "0.6941724", "0.69268894", "0.6918301", "0.6895924", "0.6875986", "0.68711704", "0.6868257", "0.6867641", "0.68542457", "0.68529284", "0.6827572", "0.6818946", "0.681274", "0.6812695", "0.68076354", "0.68075806", "0.6803149", "0.68020546", "0.6801054", "0.679373", "0.6789534", "0.67836845", "0.67817736", "0.67817676", "0.67764914", "0.67634827", "0.67631197", "0.67548186", "0.67528504", "0.67523724", "0.6751262", "0.6745131", "0.6732935", "0.6729322", "0.6725501", "0.67226046", "0.6719718", "0.6719302", "0.671606", "0.67127997", "0.6706724", "0.6705008", "0.6704131", "0.6693605", "0.6687158", "0.6684782", "0.66803145" ]
0.69891316
48
Take advantage of Animal code, then add some more
public void printYourself(){ super.printYourself(); // Invoke the superclass // (Animal) code // Then do Horse-specific // print work here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void seeAnimal() {\n\r\n\t}", "@Override\n\tpublic void eat(Animal otherAnimal) {\n\t\t\n\t}", "@Override\npublic void mating(Animal a) {\nSystem.out.println(a.getType()+ \" is mating.\");\n}", "public static void main(String[] args) {\n Animal zebra=new Animal(\"Pol\", \"Male\", 11, \"Zebra\");\n zebra.sleep();\n zebra.walk();\n zebra.eat();\n \n Animal giraffe=new Animal(\"Necky\",\"Female\",23,\"Giraffe\");\n giraffe.sleep();\n giraffe.walk();\n giraffe.eat();\n \n \n}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "public static void main(String[] args) {\n AnimalBp turtle = new AnimalBp(); \n AnimalBp dog = new AnimalBp();\n AnimalBp cat = new AnimalBp();\n \n \n \n turtle .setType(\"Reptile\");\n String turtleType = turtle.getType();\n \n \n System.out.println(turtleType);\n \n turtle.setnumberOfFeet(4);\n int turtlenumberOfFeet = turtle.getnumberOfFeet();\n \n System.out.println(turtlenumberOfFeet);\n \n turtle.setColor(\"Green\");\n String turtleColor = turtle.getColor();\n \n System.out.println(turtleColor);\n \n turtle.setlaysAnEgg(true);\n boolean turtlelaysAnEgg = turtle.getLaysAnEgg();\n \n System.out.println(turtlelaysAnEgg);\n \n \n dog .setType(\"Mammal\");\n String dogType = dog.getType();\n \n System.out.println(dogType);\n \n dog.setnumberOfFeet(4);\n int dognumberOfFeet = dog.getnumberOfFeet();\n \n System.out.println(dognumberOfFeet);\n \n dog.setColor(\"Brown and White\");\n String dogColor = dog.getColor();\n \n System.out.println(dogColor);\n \n dog.setlaysAnEgg(false);\n boolean doglaysAnEgg = dog.getLaysAnEgg();\n \n System.out.println(doglaysAnEgg);\n \n cat .setType(\"Mammal\");\n String catType = cat.getType();\n \n \n System.out.println(catType);\n \n cat.setnumberOfFeet(4);\n int catnumberOfFeet = cat.getnumberOfFeet();\n \n System.out.println(catnumberOfFeet);\n \n cat.setColor(\"gray\");\n String catColor = cat.getColor();\n \n System.out.println(catColor);\n \n cat.setlaysAnEgg(false);\n boolean catlaysAnEgg = cat.getLaysAnEgg();\n \n System.out.println(catlaysAnEgg);\n }", "protected Animal() {\t\r\n\t}", "public Animal(String hewan, int x, int y) {\n switch (hewan) {\n case \"Bekantan\": {\n name = \"Bekantan\";\n habitat = \"Land\";\n weight = 50;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'A';\n suara = \"Uuuuuuuu\";\n break;\n }\n case \"BurungHantu\": {\n name = \"Burung Hantu\";\n habitat = \"Air\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 2;\n content = 'B';\n suara = \"Kur kur kur\";\n break;\n }\n case \"Codot\": {\n name = \"Codot\";\n habitat = \"Air\";\n weight = (float) 0.5;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Cit cit cit\";\n break;\n }\n case \"Elang\": {\n name = \"Elang\";\n habitat = \"Air\";\n weight = 3;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 2;\n content = 'D';\n suara = \"Koak koakk koakk\";\n break;\n }\n case \"Gajah\": {\n name = \"Gajah\";\n habitat = \"Land\";\n weight = 3500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'E';\n suara = \"Ngoett\";\n break;\n }\n case \"Gorilla\": {\n name = \"Gorilla\";\n habitat = \"Land\";\n weight = 200;\n type = \"Herbivore\";\n tamed = false;\n diet = \"Fruit\";\n legs = 2;\n content = 'C';\n suara = \"Huhahuha\";\n break;\n }\n case \"Harimau\": {\n name = \"Harimau\";\n habitat = \"Land\";\n weight = 450;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'G';\n suara = \"Roarrrr\";\n break;\n }\n case \"Hiu\": {\n name = \"Hiu\";\n habitat = \"Water\";\n weight = 100;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 0;\n content = 'H';\n suara = \"Shush shush\";\n break;\n }\n case \"IkanTerbang\": {\n name = \"Ikan Terbang\";\n habitat = \"Water\";\n weight = 2;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 0;\n content = 'I';\n suara = \"Cepok cepok cepok\";\n break;\n }\n case \"Jerapah\": {\n name = \"Jerapah\";\n habitat = \"Land\";\n weight = 500;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'J';\n suara = \"Ngoet ngoet\";\n break;\n }\n case \"Kancil\": {\n name = \"Kancil\";\n habitat = \"Land\";\n weight = 60;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Leaf\";\n legs = 4;\n content = 'K';\n suara = \"Ngik ngik ngik\";\n break;\n }\n case \"Kepik\": {\n name = \"Kepik\";\n habitat = \"Air\";\n weight = (float) 0.01;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'L';\n suara = \"Krik krik krik\";\n break;\n }\n case \"Kepiting\": {\n name = \"Kepiting\";\n habitat = \"Water\";\n weight = 1;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'M';\n suara = \"Kuikk kuikk\";\n break;\n }\n case \"KumbangHutan\": {\n name = \"Kumbang Hutan\";\n habitat = \"Air\";\n weight = (float) 0.05;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'N';\n suara = \"Kruk kruk kruk\";\n break;\n }\n case \"KupuKupu\": {\n name = \"KupuKupu\";\n habitat = \"Air\";\n weight = (float) 0.03;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Nectar\";\n legs = 6;\n content = 'O';\n suara = \"Wir wir\";\n break;\n }\n case \"Lobster\": {\n name = \"Lobster\";\n habitat = \"Water\";\n weight = (float) 0.5;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 10;\n content = 'P';\n suara = \"Crek crek crek\";\n break;\n }\n case \"LumbaLumba\": {\n name = \"Lumba lumba\";\n habitat = \"Water\";\n weight = 100;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'Q';\n suara = \"Cet cet cet\";\n break;\n }\n case \"MacanTutul\": {\n name = \"Macan Tutul\";\n habitat = \"Land\";\n weight = 350;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Meat\";\n legs = 4;\n content = 'R';\n suara = \"Aummmm\";\n break;\n }\n case \"OwaOwa\": {\n name = \"OwaOwa\";\n habitat = \"Land\";\n weight = 70;\n type = \"Herbivore\";\n tamed = true;\n diet = \"Fruit\";\n legs = 2;\n content = 'S';\n suara = \"Huhuhuhu\";\n break;\n }\n case \"PausSperma\": {\n name = \"Paus Sperma\";\n habitat = \"Water\";\n weight = 7000;\n type = \"Omnivore\";\n tamed = true;\n diet = \"Plankton\";\n legs = 0;\n content = 'T';\n suara = \"Srosh srosh\";\n break;\n }\n case \"Piranha\": {\n name = \"Piranha\";\n habitat = \"Water\";\n weight = (float) 0.7;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'U';\n suara = \"Kraus kraus\";\n break;\n }\n case \"Platypus\": {\n name = \"Platypus\";\n habitat = \"Land and Water\";\n weight = 5;\n type = \"Carnivore\";\n tamed = true;\n diet = \"Insect\";\n legs = 4;\n content = 'V';\n suara = \"Krr krr\";\n break;\n }\n case \"Singa\": {\n name = \"Singa\";\n habitat = \"Land\";\n weight = 400;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 4;\n content = 'W';\n suara = \"Groarrr\";\n break;\n }\n case \"SingaLaut\": {\n name = \"Singa Laut\";\n habitat = \"Water\";\n weight = 70;\n type = \"Carnivore\";\n tamed = false;\n diet = \"Meat\";\n legs = 0;\n content = 'X';\n suara = \"Ou ou ou\";\n break;\n }\n default: {\n name = \"NULL\";\n habitat = \"NULL\";\n weight = 0;\n type = \"NULL\";\n tamed = false;\n diet = \"NULL\";\n legs = 0;\n content = '-';\n suara = \"NULL\";\n break;\n }\n }\n fodder = (float) 0.025 * weight;\n locX = x;\n locY = y;\n nAnimal++;\n consumerate += fodder;\n }", "public static void function(Animal a){\n a.eat();\n if (a instanceof Cat){//instanceof 判断指向类型\n Cat c =(Cat)a;\n c.catchMouse();\n }\n else if(a instanceof Dog){\n Dog d =(Dog) a;\n d.kanjia();\n }\n\n }", "@Override\n public void setEdibleAnimals() {\n addPrey(Rabbit.SPECIES);\n }", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "public void addAnimals() throws IOException {\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint a = 0;\n\t\tArrayList<GameObjects> animals = new ArrayList<GameObjects>();\n\t\tRandom rand = new Random();\n\t\twhile(b<bigFish) {\n\t\t\tanimals.add(new BigFish(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth/2))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tb+=1;\n\t\t}\n\t\twhile(c<crab) {\n\t\t\tanimals.add(new Crab(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\tc+=1;\n\t\t}\n\t\twhile(a<algae) {\n\t\t\tanimals.add(new Algae(frameWidth, frameHeight, (int)(frameWidth/6 + rand.nextInt((int)(frameWidth - frameWidth/3))), (int)(frameHeight/4 + frameHeight/10 + rand.nextInt((int)(frameHeight - frameHeight/2)))));\n\t\t\ta+=1;\n\t\t}\n\n\t\tanimals.add(new BigFish(frameWidth, frameHeight));\n\t\tanimals.add(new Crab(frameWidth, frameHeight));\n\t\tanimals.add(new Algae(frameWidth, frameHeight));\n\n\t\tthis.objects = animals;\n\t}", "public void createAnimalsCollection() {\n ArrayList<DataSetAnimal> animalsFetched = getDFO().getAnimalData(getFILE_NAME()).getAnimals();\n setAnimals(new ArrayList<>());\n for (DataSetAnimal animal: animalsFetched) {\n String tmpBreed = animal.getBreedOrType().substring(animal.getBreedOrType().lastIndexOf(\" \") + 1);\n switch (tmpBreed) {\n case \"dolphin\":\n getAnimals().add(new AnimalDolphin(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"duck\":\n getAnimals().add(new AnimalDuck(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"cat\":\n getAnimals().add(new AnimalCat(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"chicken\":\n getAnimals().add(new AnimalChicken(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"horse\":\n getAnimals().add(new AnimalHorse(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"shark\":\n getAnimals().add(new AnimalShark(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n case \"parakeet\":\n getAnimals().add(new AnimalParakeet(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n default:\n getAnimals().add(new AnimalDog(animal.getBreedOrType(), animal.getName(), animal.getYearOfBirth()));\n break;\n }\n }\n }", "abstract public void act(List<Animal> newAnimals);", "public void createAnimals() {\n\t\tanimals = new Animal[noAnimals];\n\n\t\tfor (int i = 0; i < noAnimals; i++) {\n\t\t\tanimals[i] = new Animal(noAnimals);\n\t\t\tanimals[i].setDiffCo(diffCo[i]);\n\t\t\tanimals[i].setDiffusionRate(diffusionRate[i]);\n animals[i].initiateDensities(getIo().getNeighbours().length,getIo().getNeighbours()[0].length);\n\t\t}\n\t\n\t\t animals[0].setName(\"Hare\"); \n\t\t animals[1].setName(\"Puma\");\n\t}", "public void updateMassageHungeyAnimal(Animal arg1) {\n\t}", "protected abstract void addMeat();", "public interface Animal {\n\n //Animal reproduce();\n\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tAnimal a1 = new Animal();\r\n\t\tDog d1 = (Dog)a1;\r\n\t\td1.eat();\r\n\t\td1.noise();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tAnimalTestOverriden animalTestOverriden=new AnimalTestOverriden();\n\t\tAnimalTestOverriden animalTestOverriden2=new horseTestOverriden();\n\t\t//animalTestOverriden2.buck(); we can't invoke buck() method because Animal class doesn't have that method \n\t\tanimalTestOverriden.eat();// invoke eat method of AnimalTestOverriden class\n\t\tanimalTestOverriden2.eat();//invoke eat method of horseTestOverriden class\n\t\t/*\n\t\t * Generic Animal Eating Generiaclly\n horse eating hay.....................\n\t\t */\n\t\t\n\t}", "@Override\npublic void resting(Animal a) {\nSystem.out.println(a.getType()+ \" is resting.\");\n}", "public boolean addAnimal(Animal animal);", "public void setAnimal(Animal animal) {\n\t\tthis.animal = animal;\r\n\t}", "@Override\n public Animal createAnimal() {\n return new Monkey();\n }", "@Test\n void shouldAddAnimalToZooPreservingPreExisting() {\n // given\n Zoo zoo = new Zoo();\n\n // when\n zoo.addAnimal(RAT_ROBERT);\n\n // then\n AnimalAssertions.assertThat(zoo.showAnimals().get(0))\n .hasName(\"Robert\")\n .isSpecies(\"rat\")\n .makes(\"Piii\")\n .weightsGrams(300);\n }", "public static void main(String[] args) {\n\t\tAnimals an = new Animals();\r\n\t\tan.eat();\r\n\t\tan.similar();\r\n\t\tan.sound();\r\n\t\t\r\n\t\t//creating object for Dog class based on Animals class\r\n\t\tAnimals d = new Dog();\r\n\t\td.sound();\r\n\t\td.eat();\r\n\t\t\r\n\t\t//creating object for CAT class based on Animals class.\r\n\t\tAnimals c = new Cat();\r\n\t\tc.sound();\r\n\t\tc.eat();\r\n\t\t\r\n\t\t\r\n\t}", "public static void main (String[] args) \n\t {\n\t Animal an1 = new Animal(\"Bobby\", \"ocean\",120,\"medium\", 12);\n\t System.out.println(an1.getName());\n\t \t an1.setName(\"Tom\");\n\t System.out.println(\" changed to: \"+ an1.getName());\n\t System.out.println(\" Energy level after sleep changed to: \" + an1.sleep());\n\t \n\t Animal an2 = new Animal(\"Bobby\", \"ocean\",120,\"medium\", 12);\n\n\t \t \n}", "public boolean getIsAnimal()\r\n/* 34: */ {\r\n/* 35:53 */ return this.isAnimal;\r\n/* 36: */ }", "@Override\n\tpublic void addAnimal(Animal animal,Integer catogory) {\n\t\tanimaldao.addAnimal(animal,catogory);\n\t}", "public void AddAnimal(int amount, float xPos, float yPos)\n {\n for (int i = 0; i < amount; i++)\n {\n Animal newAnimal = new Animal(xPos, yPos, birds.size());\n birds.add(newAnimal);\n }\n }", "public static void main(String[] args) {\n Animal myAnimal = new Animal();\n myAnimal.animalSound();\n\n myAnimal = new Dog();\n myAnimal.animalSound();\n\n myAnimal = new Cat();\n myAnimal.animalSound();\n\n }", "public void eat(){\r\n System.out.println(this.animalName + \" eats\");\r\n }", "public static void show() {\n Animal.Petdog.sleep();\n\n // The dog is going to bark.\n Animal.Petdog.bark();\n\n // Creating a new chicken and a new pig.\n Animal c= new Chicken();\n Animal g= new Pig();\n\n // The animals are going to sleep.\n c.sleep();\n g.sleep();\n\n // The animals are going to fight with dog.\n c.fightWithDog();\n g.fightWithDog();\n\n // The animals are going to exercise.\n c.exe();\n g.exe();\n\n // Chicken can also run with your set.\n c.exewithset(\"Run\");\n\n // The animals are going to breed.\n c.breed();\n g.breed();\n\n // The animals are going to do shower.\n c.shower();\n g.shower();\n\n // Let's see how many product do we have before animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // The animals are going to produce external product.\n c.producewithoutdeath();\n g.producewithoutdeath();\n\n // The animals are going to produce internal product.\n c.producewithdeath();\n g.producewithdeath();\n\n // Let's see how many product do we have after animals produce products.\n System.out.println(\"Chicken meat: \" +Chickenmeat.amount+\"\\nEggs: \"+ Eggs.amount) ;\n System.out.println(\"Pork: \" +Pork.amount) ;\n\n // Get currnet states of the animals.\n c.getstate();\n g.getstate();\n\n // The dead animals regain life.\n c.setstate();\n g.setstate();\n c.getstate();\n g.getstate();\n\n\n }", "public Animal(int theAge) {\n\t\t// TODO Auto-generated constructor stub\n\t\tage = theAge;\n\t}", "@Override\n public void mature(Farm farm, Animal animal) {\n }", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "public interface Animalable {\n public enum AnimalClass {\n VERTEBRATE,\n INVERTEBRATE\n }\n\n public enum AnimalSubClass{\n REPTILE,\n FISH,\n AMPHIBIAN,\n BIRD,\n MAMMAL\n }\n\n public interface AnimalOrders {\n enum MammalOrders implements AnimalOrders {\n RODENTIA,\n CHIROPTERA,\n INSECTIVORA,\n MARSUPIALIA,\n CARNIVORA,\n PRIMATES,\n ARTIODACTYLA,\n CETACEA,\n LAGOMORPHA,\n PINNIPEDIA,\n EDENTATA,\n PERRISSODACTYLA,\n PROBOSCIDEA\n }\n enum BirdOrders implements AnimalOrders {\n STRUTHIONIFORMES,\n CRACIFORMES,\n GALLIFORMES,\n ANSERIFORMES,\n TURNICIFORMES,\n PICIFORMES,\n GALBULIFORMES,\n BUCEROTIFORMES,\n UPUPIFORMES,\n TROGONIFORMES,\n CORACIIFORMES,\n COLIIFORMES,\n CUCULIFORMES,\n PSITTACIFORMES,\n APODIFORMES,\n TROCHILIFORMES,\n MUSOPHAGIFORMES,\n STRIGIFORMES,\n COLUMBIFORMES,\n GRUIFORMES,\n CICONIIFORMES\n }\n\n enum ReptilOrders implements AnimalOrders{\n RHYNCOCEPHALIA,\n SQUAMATA,\n CHELONIA,\n CROCODILIA\n }\n\n enum FishOrders implements AnimalOrders {\n PREHISTORIC,\n BONY,\n CARTILAGINOUS,\n JAWLESS\n }\n\n enum AmphibianOrders implements AnimalOrders {\n ANURA,\n URODELA,\n APODA\n }\n }\n\n public enum Motion{\n SWIM,\n CRAWL,\n CLIMB,\n RUN,\n WALK,\n JUMP,\n FLY,\n DIG\n }\n\n public enum FeedingBehaviour {\n AUTOTROPH,\n CARNIVORE,\n ERGIVORE,\n HERBIVORE,\n OMNIVORE,\n SCAVENGER,\n INSECTIVORE\n }\n\n public enum Media {\n AIR,\n EARTH,\n WATER\n }\n\n public enum Sex {\n MALE,\n FEMALE,\n HERMAPHRODITE\n }\n\n public AnimalClass getMyClass();\n public void setMyClass(AnimalClass animalClass);\n\n public AnimalSubClass getMySubClass();\n public void setMySubClass(AnimalSubClass animalSubClass);\n\n public AnimalOrders getMyOrder();\n public void setMyOrder(AnimalOrders myOrder);\n\n public FeedingBehaviour getMyFeedingBehaviour();\n public void setMyFeedingBehaviour(FeedingBehaviour myConsumption);\n\n public ArrayList<Media> getMyMedia();\n public void addMedia(Media aMedia);\n\n public ArrayList<Motion> getMyMotion();\n public void addMotion(Motion aMotion);\n\n public String getName();\n public void setName(String name);\n\n public String getCommonName();\n public void setCommonName(String commonName);\n\n public String getScientificName();\n public void setScientificName(String scientificName);\n\n public Boolean amIHazardous();\n public void setHazardous(boolean hazardous);\n\n public Sex getMySex();\n public void setMySex(Sex aSex);\n\n public Timestamp getLastTimeFed();\n public void feedMe(Timestamp aTime, Edible food);\n\n public int getFeedingPeriod();\n public void setFeedingPeriod(int every);\n\n public boolean timeToFeed();\n\n public int howFullIsMyBelly();\n\n public boolean isAdult();\n\n public void setAsAdult();\n\n public void setAsBaby();\n\n\n\n\n}", "public Animal getRandomAnimal() {\n //Randomize all characteristics of an animal\n int spc = (int) Math.round(rd.nextDouble() * (Animal.enumSpecies.values().length - 1));\n boolean isPet = rd.nextBoolean();\n\n //Construct an animal with random characteristic\n //Animal(int age, Gender g, BodyType b, enumSpecies espec, boolean ispet)\n A = new Animal(Animal.enumSpecies.values()[spc], isPet);\n return A;\n }", "public Animal()\n\t{\t\n\t\tgender = rng.nextBoolean();\n\t\tstrength = rng.nextFloat() * 100;\n\t}", "@Override\n\tString getName(){\n\t\treturn animalName;\n\t}", "public abstract void alimentarse();", "public void changeAnimal(Animal newAnimal){\n\t\tthis.myFlyweight = newAnimal;\n\t\tthis.maxAnimationFrame = this.myFlyweight.getMaxAnimationFrame();\n\t}", "public Dog(String Breed, String PrimaryColor, String Size, String name, int age){\r\n // setting the parent animal name\r\n super(name,age);\r\n // setting the parent animal age\r\n // System.out.println(\"Setting Breed...\");\r\n this.Breed = Breed ;\r\n // System.out.println(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = PrimaryColor;\r\n //System.out.println(\"Setting Size...\");\r\n this.Size = Size;\r\n\r\n\r\n\r\n }", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "public void animalDontEat()\n {\n if(animalHungry)\n {\n map.deadAnimalOnMap(this);\n }\n }", "public boolean isAnimal(Entity e){\r\n\t\tif(e instanceof Cow || e instanceof Chicken || e instanceof Sheep || e instanceof Horse\r\n\t\t\t\t|| e instanceof Wolf || e instanceof Ocelot ||e instanceof Pig || e instanceof Mushroom){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static com.nowcoder.Animal getAnimal(int type) {\n return new com.nowcoder.Human(\"Lei\", 22, \"CN\");\n }", "public Animal()\n {\n MOVE_RIGHT = 0;\n MOVE_LEFT = 0;\n MOVE_UP = 0;\n MOVE_DOWN = 0;\n }", "public Animal(String name){\n\n this.name = name;\n //array2.add(new String(name2));\n }", "public static void main(String[] args) {\n\n Dog dog = new Dog();\n Cat cat = new Cat();\n System.out.println(\"The dog's age is \"+ dog.getAge());\n System.out.println(\"The cat's age is \"+ cat.getAge());\n cat.meow();\n dog.ruff();\n dog.eat();\n cat.eat();\n dog.run();\n cat.prance();\n\n System.out.println();\n System.out.println();\n dog.eat();\n cat.eat();\n\n System.out.println();\n System.out.println();\n cat.sleep();\n dog.sleep();\n\n //Converting from a super to a sub\n //Animal billy = new Dog();\n\n // Casting\n Object doggie = new Dog();\n Dog realDog = (Dog) doggie;\n realDog.ruff();\n\n Object str = \"est\";\n String realS = (String) str;\n realS.getBytes();\n\n // What happens when...\n\n Dog doggy = new Dog();\n if (dog instanceof Animal){\n Animal animal = (Animal) doggy;\n animal.sleep();\n }\n doggy.sleep();\n\n }", "interface AnimalFarm<T>\n {\n T produceAnimal();\n void feedAnimal(T animal);\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public void showAnimalInfo(Player p, Entity e){\r\n\tif(this.checkifHasOwner(e.getUniqueId().toString())){\r\n\t\tAnimals a = new Animals(plugin, e.getUniqueId().toString(), p.getUniqueId().toString());\r\n\t\tint hp = (int) a.getHeartPoints();\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"+++++ Animal Info +++++\");\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Name: \" + ChatColor.GREEN+ a.getAnimalName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Animal Owner: \" + ChatColor.GREEN+ a.getOwnerName());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Heart Level: \" + ChatColor.GREEN + hp);\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Clean: \" + ChatColor.GREEN + a.getIsWashed());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is happy: \" + ChatColor.GREEN + a.isHappy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is lonely: \" + ChatColor.GREEN + a.getIsPet());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Hungry: \" + ChatColor.GREEN + a.getHunger());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Healthy: \" + ChatColor.GREEN + a.isHealthy());\r\n\t\tp.sendMessage(ChatColor.YELLOW + \"Is Weight: \" + ChatColor.GREEN + a.getWeight());\r\n\t\t}\r\n\t}", "@Override\n\tpublic void tipoAnimal() {\n\t\tSystem.out.println(super.getNome() + \" é um gato.\");\n\t}", "@Override\r\n\tpublic Animal createAnimal(Animal animal) {\n\t\treturn dao.save(animal);\r\n\t}", "protected boolean dangerAnimal() {\n return dangerAnimal(0);\n }", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public void reduceAnimalHealth() {\n\t\thealth -= 10;\n\t}", "void place(Animal animal);", "public void AddAnimal(float xPos, float yPos)\n {\n Animal newAnimal = new Animal(xPos, yPos, birds.size());\n birds.add(newAnimal);\n }", "public static int add_animal(Animal bixinho) {\n\t\tif(bixinho instanceof Mamifero)\t\tsetorM.add(bixinho);\r\n\t\tif(bixinho instanceof Ave)\t\t\tsetorAv.add(bixinho);\r\n\t\tif(bixinho instanceof Reptil)\t\tsetorR.add(bixinho);\r\n\t\tif(bixinho instanceof Anfibio)\t\tsetorAn.add(bixinho);\r\n\t\tif(bixinho instanceof Invertebrado)\tsetorI.add(bixinho);\r\n\t}", "private static void animalShout(Animal animal) {\n\t\tif(animal instanceof Cat) {\n\t\t\tCat cat = (Cat)animal;\n\t\t\tcat.sleep();\n\t\t\tcat.shout();\n\t\t} else {\n\t\t\tSystem.out.println(\"this animal is not a cat\");\n\t\t}\n\t}", "public void reduceAnimalHappiness() {\n\t\thappiness -= 10;\n\t}", "public Animal(boolean randomAge, Field field, Location location, int breeding_age, int max_age, double breeding_probability, int max_litter_size)\n {\n alive = true;\n age = 0;\n if(randomAge) {\n age = rand.nextInt(max_age);\n }\n this.field = field;\n setLocation(location);\n this.breeding_age = breeding_age;\n this.max_age = max_age;\n this.breeding_probability = breeding_probability;\n this.max_litter_size = max_litter_size;\n gender = Math.random() < 0.5;\n }", "public static void main(String[] args) {\n\t\t Animal3 a = new Animal3();\n\t\t \n\t\t a.walk();\n\t\t a.swim();\n\t\t\n \n \n\t}", "public static void main(String[] args) {\n\t\tAnimal1 d=new Dog1();\n\t\td.eat();\n\t\td.makeSound();\n\t\tAnimal1 c=new Cat();\n\t\tc.eat();\n\t\tc.makeSound();\n\t}", "@Override\n\tpublic int moveAnimal() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void laysEgg() {\n\t\t\n\t}", "public static void main(String[] args) {\n Animal animal = new Animal(\"Tigger\", \"gruel\");\n animal.eat(\"meat\");\n animal.eat(\"kibble\");\n\n }", "public static void addElementWildCardSuper( List < ? super Dog> dogs){\n dogs.add(new Kangal());\n dogs.add(new Dog());\n //dogs.add(new Animal());\n }", "public Animal build() {\n\t\t/*\n\t\t * this prevents nullPointerException, because if name is null, we\n\t\t * can't call any methods of the String class with this object and it\n\t\t * will crash our program\n\t\t */\n\t\tif(name==null)\n\t\t\tname=\"\";\n\t\tif(age<0)\n\t\t\tage=0;\n\t\t/*\n\t\t * if you are creating an object of the immutable class, the last thing\n\t\t * you do, is create that object\n\t\t */\n\t\treturn new Animal(name,age);\n\t}", "public void addAnimal(int index, Animal a) {\n\t\tanimals.add(a);\n\t}", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "@Override\n\tpublic void eats() {\n\t\t\n\t}", "private Animal criarAnimal(JTextField textNomePet, JTextField textEspecie, JTextField textRaca, JComboBox cbDonos,\n\t\t\tJTextField textPeso, JFormattedTextField textDataN) {\n\t\treturn null;\n\t}", "public static void main(String[] args) {\n llama coolAnimal = new llama();\n llama.giveName();\n llama.giveGender();\n llama.name = \"joe the llama papa\";\n llama.gender = \"male\";\n llama.giveName();\n llama.giveGender();\n unicorn.giveName();\n unicorn.giveGender();\n\n }", "@Override\npublic void tipoAnimal() {\n\tSystem.out.println(\"Tipo animal es GATO\");\n}", "public static void main(String[] args) {\n\t\tAnimal a = new Dog();\r\n\t\r\n\t\ta.move();\r\n\t\ta.eat(); \r\n\t\t\r\n\t\tAnimal b= new Cow();\r\n\t\tb.move();\r\n\t\tb.eat();\r\n\t\t\r\n\t}", "public void removeAnimal(Entity e){\r\n\t\tSet<String> farmers = plugin.getAnimalData().getConfigurationSection(\"Farmer\").getKeys(false);\r\n\t\tfor(String farmer : farmers){\r\n\t\t\tSet<String> farmeranimals = plugin.getAnimalData().getConfigurationSection(\"Farmer.\" + farmer + \".Animals\").getKeys(false);\r\n\t\t\t\r\n\t\t\tfor(String farmanimal : farmeranimals){\r\n\t\t\t\tif(farmanimal.equalsIgnoreCase(e.getUniqueId().toString())){\r\n\t\t\t\t\tLivingEntity le = (LivingEntity) e;\r\n\t\t\t\t\tplugin.getAnimalData().set(\"Farmer.\" + farmer +\".Animals.\"+ farmanimal, null);\r\n\t\t\t\t\tPlayer[] p = Bukkit.getOnlinePlayers();\r\n\t\t\t\t\tfor(Player online : p){\r\n\t\t\t\t\tif(online.getUniqueId().toString().equalsIgnoreCase(farmer)){\r\n\t\t\t\t\tonline.sendMessage(ChatColor.GRAY + \"Your \" + e.getType().toString() + \" \" + le.getCustomName() + \" has \" + ChatColor.DARK_RED + \"died.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(plugin.getAnimalData().contains(\"AnimalCoolDown.\" + farmanimal)){\r\n\t\t\t\t\t\tplugin.getAnimalData().set(\"AnimalCoolDown.\" + farmanimal, null );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tplugin.saveAnimalData();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public Animal(){\n System.out.println(\"An animal has been created...\");\n }", "public static Animal getAnimal(AnimalType type){\n switch(type){\n case TIGER:\n return new Tiger();\n case DOG:\n return new Dog();\n case CAT:\n return new Cat();\n }\n return null;\n }", "public EntityAnimal func_90011_a(EntityAgeable par1EntityAnimal) {\r\n\t\treturn new EntityGoldenChicken(this.worldObj);\r\n\t}", "public static void main(String[] args) {\n\n Animal dog = new Dog(\"Sunis\");\n Animal cat = new Cat(\"Kate\");\n\n showAnimalName(dog);\n showWalkingAction((IWalking) dog);\n showAnimalName(cat);\n showWalkingAction((IWalking) cat);\n\n }", "Animal(int age, String name, double weight){\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t\tthis.weight = weight;\n\t\t\n\t\t//make objects:\n\t\tmyHeart = new Heart();\n\t\tmyLiver = new Liver();\n\t\tmyKidney = new Kidney();\n\t\tmyLungs = new Lungs();\n\t\t\n\t\tSystem.out.println(myHeart.bpm);\n\t\tSystem.out.println(myLiver.id);\n\t\tSystem.out.println(\"end of Animal constructor\");\n\t\t\n\t\tmyKidney.alive(); //accessing the alive method from the local Beghaviour interface that this implements.\n\t\tmyLungs.alive();\n\t\t\n\t}", "public void bark(){// bark class only belongs to dog class\n System.out.println(name+\" is barking\");\n }", "@Test\n public void testGetAnimal2() {\n Color color = Color.GREEN;\n Species species = Species.LION;\n Pieces inv = new Pieces();\n Animal expResult = new Animal(species, color);\n Animal result = inv.getAnimal(color, species);\n assertEquals(expResult, result);\n }", "abstract int add(boolean highsurf, boolean foggy, String eat);", "public static void main(String[] args) {\n\t\tAnimal a = new Animal();\n\t\tDog d = new Dog();\n a.eat();\n d.eat();\n\t}", "public static void main(String... args) {\n Mammal mammal = new Mammal();\n mammal.getName();\n Bird bird = new Bird();\n bird.getName();\n\n System.out.println(\"showAnimal(AbstractAnimal abstractAnimal) \");\n showAnimal(mammal);\n showAnimal(bird);\n }", "@Override\r\n\tpublic int addAnimalFileInfo(FileInfo fileInfo) {\n\t\treturn fileInfoMapper.addAnimalFileInfo(fileInfo);\r\n\t}", "@Override\n public void eat() {\n System.out.println(\"Now doggo is eating\");\n chew();\n super.eat();\n }", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public Animal(String name, String type, String color, String date, String email, String location,\n String latitude, String longitude, String phone, String token, String description,\n String thumbUrl, String key, String status) {\n this.name = name;\n this.type = type;\n this.color = color;\n this.date = date;\n this.email = email;\n this.location = location;\n this.latitude = latitude;\n this.longitude = longitude;\n this.phone = phone;\n this.token = token;\n this.description = description;\n this.thumbUrl = thumbUrl;\n this.key = key;\n this.status = status;\n }", "private int viewAllAnimalHelper() {\n\t\tSystem.out.println(\n\t\t\t\t\"1. VIEW ALL ANIMALS 2. TIGER 3. LEOPARD \" + '\\n' + \"4. LYNX 5. MARMOSET 6. CAPUCHIN 7. QEUIRREL\");\n\t\tint choose = intKeyboardInput();\n\t\tint rst;\n\t\tswitch (choose) {\n\t\tcase 1:\n\t\t\trst = 1;\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\trst = 2;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\trst = 3;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\trst = 4;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\trst = 5;\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\trst = 6;\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\trst = 7;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\trst = viewAllAnimalHelper();\n\t\t\tbreak;\n\t\t}\n\t\treturn rst;\n\t}", "public Bird(String name,int age, double weight,String sound, int noOfLegs,boolean canFly,AnimalType type) {\n\t\t\n\t\tsuper(name,age,weight,sound,noOfLegs,AnimalCategory.BIRD,type);\n\t\tthis.canFly=canFly;\n\t}", "@Override\n public void act(List<Animal> animals) {\n super.act(animals);\n }", "public void addNewAnimalAction() {\n\t\tAnimalModel newAnimalModel = new AnimalModel(\"\", \"\");\n\n\t\teditAnimalDetail(newAnimalModel, AnimalDetailPanel.NEW_ANIMAL);\n\t}", "protected List<Animal> createCatsAndDogs() {\n \n List<Animal> tempAnimals = new ArrayList<Animal>();\n Date tempNow = new Date();\n \n tempAnimals.add(new Animal(AnimalType.DOG, \n new Date(tempNow.getTime() - 10*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 9*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 8*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 7*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 6*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.CAT, \n new Date(tempNow.getTime() - 3*DAY_IN_MILLISECONDS)));\n \n tempAnimals.add(new Animal(AnimalType.DOG, \n tempNow));\n \n return tempAnimals;\n }", "public void go() {\n Animal[] animals = {new Dog(), new Cat(), new Dog()};\n // Declare and create a Dog array, that holds only Dogs (the compiler won't let you put a Cat in)\n Dog[] dogs = {new Dog(), new Dog(), new Dog()};\n takeAnimals(animals);\n takeAnimals(dogs);\n }", "public static void main(String[] args) throws IOException {\n AnimalFactory df = new DogFactory();\n AnimalFactory cf = new CatFactory();\n AnimalFactory bf = new BirdFactory();\n \n ArrayList<Dog> dogs = new ArrayList<>();\n ArrayList<Cat> cats = new ArrayList<>();\n ArrayList<Bird> birds = new ArrayList<>();\n \n Scanner reader = new Scanner(System.in);\n String input;\n do {\n System.out.println(\"===== Animal Kennel =====\"); \n System.out.println(\"1. Add animal.\");\n System.out.println(\"2. Talk to animals.\");\n System.out.println(\"0. Exit.\");\n System.out.print(\"Select an option: \");\n input = reader.nextLine();\n \n switch (Integer.parseInt(input)) {\n case 1:\n System.out.println(\"Types of animals to add: \");\n System.out.println(\"1 Dogs\");\n System.out.println(\"2 Cats\");\n System.out.println(\"3 Birds\");\n \n System.out.print(\"Selection: \");\n input = reader.nextLine();\n switch (Integer.parseInt(input)) {\n case 1:\n System.out.println(\"You can add: \");\n System.out.println(\"Labrador\\tPomeranian\\tShepherd\");\n System.out.print(\"Select an option: \");\n input = reader.nextLine();\n Dog dog = df.createDog(input);\n if (dog != null) dogs.add(dog);\n break;\n case 2:\n System.out.println(\"You can add: \");\n System.out.println(\"Burmese\\tPersian\\tSiamese\");\n System.out.print(\"Select an option: \");\n input = reader.nextLine();\n Cat cat = cf.createCat(input);\n if (cat != null) cats.add(cat);\n break;\n case 3:\n System.out.println(\"You can add: \");\n System.out.println(\"Owl\\tParrot\\tStork\");\n System.out.print(\"Select an option: \");\n input = reader.nextLine();\n Bird bird = bf.createBird(input);\n if (bird != null) birds.add(bird);\n break;\n default:\n break;\n }\n break;\n case 2:\n System.out.println(\"And then each of the animals spoke: \");\n dogs.forEach((dog) -> {\n dog.speak();\n });\n cats.forEach((cat) -> {\n cat.speak();\n });\n birds.forEach((bird) -> {\n bird.speak();\n });\n break;\n case 0:\n System.out.println(\"Exiting...\");\n System.exit(0);\n break;\n default:\n System.out.println(\"Choose something from the menu.\");\n break; \n }\n } while (true);\n }" ]
[ "0.6710252", "0.652851", "0.64384943", "0.63633496", "0.6346294", "0.632682", "0.621854", "0.6210131", "0.6141508", "0.6124768", "0.61218554", "0.6104734", "0.60819554", "0.6056305", "0.60297686", "0.5997801", "0.59897023", "0.5988211", "0.5964773", "0.59607434", "0.59600776", "0.59468764", "0.59121335", "0.5875164", "0.58445865", "0.5802714", "0.57931274", "0.5789269", "0.5784163", "0.5776638", "0.57680035", "0.57679397", "0.57478815", "0.573141", "0.5727239", "0.57234865", "0.5721161", "0.5713245", "0.57120985", "0.56857836", "0.5676586", "0.56686443", "0.56641555", "0.5661075", "0.5659783", "0.56596917", "0.5656545", "0.56492347", "0.56476074", "0.5646617", "0.56454384", "0.5644508", "0.5639295", "0.5634356", "0.56324774", "0.5628776", "0.5622357", "0.56164205", "0.56149304", "0.5607384", "0.5602477", "0.5594257", "0.5586564", "0.5558332", "0.55579746", "0.55561125", "0.55445826", "0.5532692", "0.55203676", "0.5518206", "0.55165666", "0.5502579", "0.55013174", "0.54984874", "0.5465957", "0.5464676", "0.5464587", "0.54642576", "0.545577", "0.5454879", "0.5448069", "0.5438167", "0.5436836", "0.5433995", "0.5430159", "0.54282737", "0.54266906", "0.54240924", "0.54178554", "0.54124403", "0.538486", "0.5384163", "0.53795886", "0.53734565", "0.53718424", "0.536709", "0.5363727", "0.5355863", "0.5354277", "0.53534", "0.53507674" ]
0.0
-1
TODO here parse diaocha sort
private void parseSurveySortJson(String result) throws JSONException { Gson gson = new Gson(); DiaoChaSortBean diaoChaSortBean = gson.fromJson(result, DiaoChaSortBean.class); rowsBeans = diaoChaSortBean.getRows(); for (int i = 0; i < rowsBeans.size(); i++) { rowsBean = rowsBeans.get(i); surveyNo = rowsBean.SurveyNo; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String doSort();", "public void sort() {\n }", "void sort();", "void sort();", "public String sortBy();", "private Sort() { }", "private static void sortingMemo() {\n\t\t\n\t}", "Sort asc(QueryParameter parameter);", "public void sortMatches();", "public void sortCompetitors(){\n\t\t}", "public void radixSorting() {\n\t\t\n\t}", "private static void sortHelperMSD(String[] asciis, int start, int end, int index) {\n // Optional MSD helper method for optional MSD radix sort\n return;\n }", "private static void sort(String[] a, int lo, int hi, int d) { \n if (hi <= lo + CUTOFF) {\n insertion(a, lo, hi, d);\n return;\n }\n int lt = lo;\n int gt = hi;\n int v = charAt(a[lo], d);\n int i = lo + 1;\n while (i <= gt) {\n int t = charAt(a[i], d);\n if (t < v) {\n \texch(a, lt++, i++);\n }\n else if (t > v) {\n \texch(a, i, gt--);\n }\n else {\n \ti++;\n }\n }\n //a[lo..lt-1] < v = a[lt..gt] < a[gt+1..hi]. \n sort(a, lo, lt-1, d);\n if (v >= 0) sort(a, lt, gt, d+1);\n sort(a, gt+1, hi, d);\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "void sortV();", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "JDKSort() {\n }", "public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}", "public String getMessageSort();", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public int Sort(){\n\tint nt ;\n\tint i ;\n\tint aux02 ;\n\tint aux04 ;\n\tint aux05 ;\n\tint aux06 ;\n\tint aux07 ;\n\tint j ;\n\tint t ;\n\ti = size - 1 ;\n\taux02 = 0 - 1 ;\n\twhile (aux02 < i) {\n\t j = 1 ;\n\t //aux03 = i+1 ;\n\t while (j < (i+1)){\n\t\taux07 = j - 1 ;\n\t\taux04 = number[aux07] ;\n\t\taux05 = number[j] ;\n\t\tif (aux05 < aux04) {\n\t\t aux06 = j - 1 ;\n\t\t t = number[aux06] ;\n\t\t number[aux06] = number[j] ;\n\t\t number[j] = t;\n\t\t}\n\t\telse nt = 0 ;\n\t\tj = j + 1 ;\n\t }\n\t i = i - 1 ;\n\t}\n\treturn 0 ;\n }", "public static void main(String[] args) {\n sortGeneric list = new sortGeneric();\n list.add(100);\n list.add(7);\n list.add(6);\n list.add(20);\n list.add(1);\n list.add(15);\n System.out.print(\"trc khi sap xep : \");\n for (int i = 0; i < list.size(); i++) {\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n list.sort();\n System.out.print(\"sau khi sap xep: \");\n for (int i = 0; i < list.size(); i++) {\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n\n\n }", "public static void main(String[] args) {\n\n\t\tArrayList<Integer> unsort =new ArrayList<Integer>();\n\t\tunsort.add(21);\n\t\tunsort.add(24);\n\t\tunsort.add(42);\n\t\tunsort.add(29);\n\t\tunsort.add(23);\n\t\tunsort.add(13);\n\t\tunsort.add(8);\n\t\tunsort.add(39);\n\t\tunsort.add(38);\n\t\t\n\t\tArrayList<Card> cards = new ArrayList<Card>();\n\t\tcards.add(new Card(\"Heart\",13));\n\t\tcards.add(new Card(\"Heart\",2));\n\t\tcards.add(new Card(\"Heart\",4));\n\t\t\n\t\tArrayList<Card> sort = Sort.insertSort(cards,false);\n\t\t\n\t\tfor(Card i: sort) \n\t\t{\n\t\t\tSystem.out.println(i.getNumber());\n\t\t}\n\t\t\n\t}" ]
[ "0.7760498", "0.70305866", "0.6991132", "0.6991132", "0.69640946", "0.6853639", "0.67890114", "0.6787987", "0.66851765", "0.6670961", "0.66567814", "0.66543746", "0.6648262", "0.6645486", "0.6558256", "0.65494674", "0.6524244", "0.65065664", "0.65064543", "0.64814067", "0.6461335", "0.6456074", "0.64483327", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.6447284", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64471954", "0.64421797", "0.6430448" ]
0.0
-1
dismissWaitingDialog(); String result = response.body().string();
@Override public Object parseNetworkResponse(Response response, int i) throws Exception { return response.body().string(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResponse(String response) {\n pDialog.hide();\n Log.d(\"reponse\",response);\n }", "void CloseWaitDialog();", "@Override\n public void onResponse(JSONObject response) {\n String status= response.toString();\n txtJsonData.setText(status);\n pDialog.hide();\n }", "@Override\n public void onFailure(Call<ResponseBody> call, Throwable t) {\n dialog.dismiss();\n\n }", "@Override\n public void onHTTPResponseReceived(String tag, String response) {\n progressDialog.cancel();\n CharSequence text = \"Richiesta inviata!\";\n Toast toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);\n toast.show();\n }", "@Override\r\n public void onResponse(String ServerResponse) {\n progressDialog.dismiss();\r\n\r\n // Showing response message coming from server.\r\n Toast.makeText(appointment.this, ServerResponse, Toast.LENGTH_LONG).show();\r\n\r\n\r\n }", "@Override\n\t\tpublic void onFinished(HttpResponseResult responseResult) {\n\t\t\tint result = responseResult.getStatusCode();\n\t\t\tdismiss();\n\t\t\tif(result == 200||result==201){\n\t\t\t\tnew AlertDialog.Builder(AccountForgetPSWActivity.this)\n\t\t\t\t\t.setTitle(R.string.alert_title)\n\t\t\t\t\t.setMessage(R.string.get_psw_finish)\n\t\t\t\t\t.setPositiveButton(R.string.ok, \n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\tInputMethodManager imm = (InputMethodManager)getSystemService(\n\t\t\t\t\t\t\t\t\t\t\t \t\tContext.INPUT_METHOD_SERVICE); \n\t\t\t\t\t\t\t imm.hideSoftInputFromWindow(((EditText) findViewById(R.id.get_phone_editText))\n\t\t\t\t\t\t\t \t\t \t\t.getWindowToken(),0);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setPassword(\"\");\n\t\t\t\t\t\t\t UserManager.getInstance().getUser().setUserKey(\"\");\n\t\t\t\t\t\t\t Intent intent = new Intent(AccountForgetPSWActivity.this, AccountSettingActivity.class);\n\t\t\t\t\t\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t).show();\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n Log.d(\"Text on webpage: \", \"\" + response);\n checkResponse(response);\n }", "@Override\n protected void onPostExecute(Response<Result> resultResponse) {\n if (resultResponse.body().getCodigo()==400) {\n dialog.dismiss();\n activity.onSignupSuccess();\n } else {\n if ((dialog != null) && dialog.isShowing()) {\n dialog.dismiss();\n dialog = null;\n }\n activity.onSignupFailed();\n }\n }", "@Override\n public void onSuccess(int i, cz.msebera.android.httpclient.Header[] headers, byte[] bytes) {\n\n // Hide Progress Dialog\n prgDialog.hide();\n Toast.makeText(getApplicationContext(), \"hello\"+bytes.toString(),\n Toast.LENGTH_LONG).show();\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(MainActivity.this, s , Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\tif(progressDialog!=null)progressDialog.dismiss();\n\t\t\t}", "String getResponse();", "@Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n try {\n //Mengubah response string menjadi object\n JSONObject obj = new JSONObject(response);\n //obj.getString(\"message\") digunakan untuk mengambil pesan status dari response\n finish();\n\n\n //obj.getString(\"message\") digunakan untuk mengambil pesan message dari response\n Toast.makeText(AddKostActivity.this, obj.getString(\"message\"), Toast.LENGTH_SHORT).show();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(String response) {\n System.out.println(\"Response is: \"+ response);\n\n try {\n JSONObject jsonObj = new JSONObject(response);\n String responseResult = jsonObj.getString(\"result\");\n String err = jsonObj.getString(\"err\");\n if (responseResult.equals(\"success\")) {\n continueAfterSuccessfulResponse(jsonObj, requestCode);\n }\n else\n {\n AlertDialog alertDialog = new AlertDialog.Builder(ViewInventoryActivity.this).create();\n alertDialog.setTitle(\"Error\");\n alertDialog.setMessage(err);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n }", "java.lang.String getResponse();", "@Override\n \tprotected final void onPostExecute(final Boolean result) {\n \t\tAndGMXsms.dialogString = null;\n \t\tif (AndGMXsms.dialog != null) {\n \t\t\ttry {\n \t\t\t\tAndGMXsms.dialog.dismiss();\n \t\t\t\tAndGMXsms.dialog = null;\n \t\t\t} catch (Exception e) {\n \t\t\t\t// nothing to do\n \t\t\t}\n \t\t}\n \t}", "@Override\n public void run() {\n waitDialog.dismiss();\n\n //show an error dialog\n\n\n }", "private String getResponse(){\n\t\tString msg;\n\t\tsynchronized (this){\n\t\t\twhile(!validResponse) {\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmsg = response;\n\t\t\tvalidResponse = false;\n\t\t\tnotifyAll();\n\t\t}\n\t\treturn msg;\n\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\n\t\tmDialog.dismiss();\n\t}", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\n }", "public abstract HTTPResponse finish();", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tsuper.onPostExecute(result);\n\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tJSONObject Json = new JSONObject(response);\n\t\t\tprogress.dismiss();\n\t\t\tif (Json.has(\"success\")) {\n\n\t\t\t\tint value = Json.getInt(\"success\");\n\t\t\t\tif (value == 0) {\n\n\t\t\t\t\tthrow new JSONException(\"Failed to Update \");\n\t\t\t\t} else if (value == 1) {\n\t\t\t\t\talert.setTitle(R.string.refertitle)\n\t\t\t\t\t\t\t.setMessage(\n\t\t\t\t\t\t\t\t\tact.getResources().getString(R.string.refermessage)\n\t\t\t\t\t\t\t\t\t\t\t+ Json.getInt(\"count\")+\" \"\n\t\t\t\t\t\t\t\t\t\t\t+ act.getResources().getString(R.string.refermessagecontinue))\n\t\t\t\t\t\t\t.setNeutralButton(R.string.ok,\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}).show();\n\t\t\t\t} else if (value == 2) {\n\n\t\t\t\t\talert.setTitle(R.string.refertitle)\n\t\t\t\t\t\t\t.setMessage(R.string.refersuccessmessage)\n\t\t\t\t\t\t\t.setNeutralButton(R.string.ok,\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}).show();\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new JSONException(\n\t\t\t\t\t\t\"success keyword is missing in response\");\n\t\t\t}\n\t}\n\t\tcatch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tToast.makeText(\n\t\t\t\t\tcontext,\n\t\t\t\t\t\"Unexpected Response from Server!! Please Try after Some time\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\te.printStackTrace();\n\t\t}\n}", "@Override\n protected void onPostExecute(String temp) {\n\n progressDialog.dismiss();\n }", "@Override\n\tprotected void onPostExecute(HashMap<String, String> result) {\n\t\tsuper.onPostExecute(result);\n\t\tpleaseWait.dismiss();\n\t}", "@Override\n public void onResponse(String response) {\n if (dialog != null)\n dialog.dismiss();\n\n //On getting the response..\n try {\n\n //Parse the login response..\n HashMap<String, String> mapper = MiscellaneousParser.changePasswordParser(response);\n\n //Finish activity with desired toast message (whether success or failure)..\n if (mapper.get(\"success\").equals(\"true\")) {\n Toast.makeText(ForgotPassword.this, mapper.get(\"message\"), Toast.LENGTH_SHORT).show();\n finish();\n }else{\n Toast.makeText(ForgotPassword.this, \"Something went wrong..\\nPlease try again..\", Toast.LENGTH_SHORT).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n //Showing toast message of the response\n Toast.makeText(PreviewActivity.this, \"Correcto!\" , Toast.LENGTH_LONG).show();\n goMainScreen();\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n\n //Showing toast message of the response\n Toast.makeText(AdQuestionActivity.this, s , Toast.LENGTH_LONG).show();\n }", "void dismissProgressDialog();", "void dismissProgressDialog();", "void dismissProgressDialog();", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n e.printStackTrace();\r\n\r\n }", "@Override\n public void onCompleted(Exception e, JsonObject result) {\n System.out.println(\"Forgot Response >>>\"+result);\n System.out.println(\"Forgot Response >>>\"+e);\n loader.cancel();\n if (e != null) {\n //Toast.makeText(ForgotActivity.this, \"Forgot Error\"+e, Toast.LENGTH_LONG).show();\n Common.ShowHttpErrorMessage(ForgotActivity.this, e.getMessage());\n return;\n }\n\n try {\n JSONObject JsonRes = new JSONObject(result.toString());\n if(JsonRes.getString(\"status\").equals(\"success\")) {\n Toast.makeText(ForgotActivity.this, JsonRes.getString(\"message\").toString(), Toast.LENGTH_LONG).show();\n finish();\n }\n } catch (JSONException e1) {\n e1.printStackTrace();\n }\n\n\n }", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tif (mpProgress.isShowing())\n\t\t\t\tmpProgress.dismiss();\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result != null) {\n\n\t\t\t\t// Toast.makeText(mContext, \"Response-\"+result, 1000).show();\n\t\t\t\t// System.out.println(\"Response=\"+result);\n\t\t\t\tFragment_Tickets.imgButtonOpen.performClick();\n\n\t\t\t} else {\n//\t\t\t\tToast.makeText(mContext, \"No response from server\", 1000).show();\n//\t\t\t\tSystem.out.println(\"No response from server\");\n\t\t\t}\n\t\t}", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n e.printStackTrace();\r\n\r\n }", "public void onClick(DialogInterface dialogBox, int id) {\n completebatch();\n //showMessage(\"\",response.toString());\n\n }", "@Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n progress.dismiss();\r\n }", "void dismissAlertDialog();", "@Override\n public void onButtonClick(View view) {\n successDialog.dismiss();\n }", "void finish(String result, int resultCode);", "@Override\n protected void onPostExecute(String result) {\n loading.showProgress(UserEditActivity.this, viewLoading, false);\n\n // If returned string is success (204)\n if(result.equals(\"204\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_delete_message)\n .setTitle(R.string.text_success_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(((Dialog) dialog).getContext(), UserListActivity.class));\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n // If returned string is NetworkException\n else if(result == \"NetworkException\") {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_network,\n Toast.LENGTH_LONG)\n .show();\n }\n // If returned string is Exception\n // Or return \"401\"\n else {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_service,\n Toast.LENGTH_LONG)\n .show();\n }\n }", "@Override\n public void onResponse(String s) {\n loading.dismiss();\n try {\n //Showing toast message of the response\n Toast.makeText(UpdateQueryActivity.this, s , Toast.LENGTH_LONG).show();\n }catch (Exception e){\n Log.i(\"Volley_Response: \",e.toString());\n }\n }", "@Override\n protected void onPostExecute(String s) {\n super.onPostExecute(s);\n dialog.dismiss(); // to stop showing the progressbar After process is completed\n tvResult.setText(s);\n tvResult.setVisibility(View.VISIBLE);\n Toast.makeText(MainActivity.this, \"Process Done\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\td.dismiss();\n\t\t}", "@Override\n public void onResponse(String response) {\n if (response.equalsIgnoreCase(\"success\")) {\n //dismissing the progressbar\n //pDialog.dismiss();\n //Starting a new activity\n startActivity(new Intent(SignUpNewActivity.this, LoginActivity.class));\n\n } if (response.equalsIgnoreCase(\"failed\")){\n //Displaying a toast if the otp entered is wrong\n Toast.makeText(SignUpNewActivity.this, \"Wrong Code Please Try Again\", Toast.LENGTH_LONG).show();\n\n }\n }", "public String getResponseMessage();", "@Override\n public void onResponse(String response) {\n progressDialog.dismiss();\n try {\n //Mengubah response string menjadi object\n JSONObject obj = new JSONObject(response);\n\n //obj.getString(\"message\") digunakan untuk mengambil pesan message dari response\n Toast.makeText(EditProfile.this, obj.getString(\"message\"), Toast.LENGTH_SHORT).show();\n\n finish();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "protected void onPostExecute(final Integer signal) {\n // dismiss the dialog once done\n //pDialog.dismiss();\n\n super.onPostExecute(signal);\n switch (signal) {\n case 0:\n Toast.makeText(getApplicationContext(), getString(R.string.textSuccess), Toast.LENGTH_SHORT).show();\n break;\n case 1:\n Toast.makeText(getApplicationContext(), getString(R.string.textRequestFailed), Toast.LENGTH_SHORT).show();\n break;\n case 2:\n Toast.makeText(getApplicationContext(), getString(R.string.signal2), Toast.LENGTH_SHORT).show();\n break;\n case 3:\n Toast.makeText(getApplicationContext(), getString(R.string.signal3), Toast.LENGTH_SHORT).show();\n break;\n case 4:\n Toast.makeText(getApplicationContext(), getString(R.string.signal4), Toast.LENGTH_SHORT).show();\n break;\n }\n finish();\n }", "public String _paymentpage_pagefinished(String _url) throws Exception{\n__c.ProgressDialogHide();\n //BA.debugLineNum = 158;BA.debugLine=\"Loaded = True\";\n_loaded = __c.True;\n //BA.debugLineNum = 159;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n public void onBtnClick() {\n if(testDialog!=null){\n testDialog.dismiss();\n }\n handler.sendEmptyMessage(222);\n\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n pDialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Error. \",\n Toast.LENGTH_SHORT).show();\n if(errorResponse!=null) {\n Toast.makeText(getApplicationContext(), \"Error. \" + new String(errorResponse),\n Toast.LENGTH_SHORT).show();\n Log.e(\"Failure\", new String(errorResponse));\n }\n e.printStackTrace();\n }", "@Override\n\tpublic void postResult(boolean success, String text) {\n\t\t\n\t\tif (progressDialog.isShowing())\n\t\t\tprogressDialog.dismiss();\n\t\t\n\t\tfinish();\n\t}", "@Override\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\n \t\t\n\t\t\t//close the dialog and the activity\n\t\t\tsave.dismiss();\n \t\tfinish();\n\t\t}", "void responseReady(String response);", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "@Override\n public void onSuccess(Void unused) {\n finish();\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(TaskDueDate.this, \"Job add successfully.\"/* + jobResponse.getJobs()*/, Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n Intent intent = new Intent(TaskDueDate.this, MainPage.class);\n intent.putExtra(\"fragment_status\", \"add_task\");\n startActivity(intent);\n finish();\n\n }", "@Override\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\tprogressDialog1.dismiss();\n\t\t\t\t\n\t\t\t\tif (result.length() != 0) {\n\t\t\t\t\tprogressDialog1.dismiss();\n\t\t\t\t\tLog.e(\"http response is \", result);\n\t\t\t\t\tSystem.out.println(\"order request result -----> \" + result);\n\n\t\t\t \tcheckingStatusCode(result);\n\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\r\n protected void onPostExecute(String message) {\n this.progressDialog.dismiss();\r\n Toast.makeText(getApplicationContext(),\r\n message, Toast.LENGTH_LONG).show();\r\n }", "@Override\n protected void onPostExecute(String file_url) {\n dismissDialog(progress_bar_type);\n //pDialog.dismiss();\n }", "void requestFinish();", "@Override\n protected void onPostExecute(String respuesta) {\n progressDialog.dismiss();\n Toast.makeText(context, respuesta, Toast.LENGTH_LONG).show();\n Intent intent = new Intent(MainActivity.this, VerResultados.class);\n\n intent.putExtra(\"RespuestaDelServer\", respuesta);\n startActivity(intent);\n\n\n }", "@Override\n\t public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t builder.setTitle(\"THESSPark\").setMessage(getString(R.string.parking_spot_avail_quest))\n\t .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t //kane klhsh ston server gia na ginei apo reserved free\n\t \t //kai girna sthn kentrikh activity\n\t \t \n\t \t StringRequest cancelReservationRequest = new StringRequest(Request.Method.POST,MyNetworkRequestsSingleton.TESTING_SERVER_URL, \n\t \t \t\t\t new Response.Listener<String>() { \t\t \t\t\n\t \t \t\t \t\t@Override\n\t \t\t\t \t\t public void onResponse(String response) {\n\t \t \t\t \t\t\tLog.i(\"pantelis\",\"testVolley cancelReservationRequest response = \" + response);\n\t \t \t\t \t\t\ttry {\n\t \t\t\t\t\t\t\t\tJSONObject jsonResponse = new JSONObject(response);\t\t\t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t\t\tString status = jsonResponse.getJSONObject(\"body\").getJSONObject(\"response\").getJSONObject(\"context\").getString(\"status\");\n\t \t\t\t\t\t\t\t\tif (status.equalsIgnoreCase(\"1\")) {\n\t \t\t\t\t\t\t\t\t\n\t \t\t\t\t\n\t \t\t\t\t\t\t\t\t}\n\t \t\t\t\t\t\t\t\telse {\n\t \t\t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t \t\t\t\t\t \t\t\t//Toast.makeText(mContext, \"cancelReservationRequest error failed 3\", Toast.LENGTH_LONG).show();\n\n\t \t\t\t\t\t\t\t\t}\t\t\n\t \t \t\t \t\t\t} catch (JSONException e) {\n\t \t\t\t\t\t\t\t\te.printStackTrace();\n\t \t\t\t\t\t\t\t\t//emfanise minima lathous\n\t \t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t \t\t\t\t \t\t\t\n\t \t\t\t\t\t\t\t}\n\t \t \t\t \t\t\t\n\t \t \t\t \t\t\n\t \t\t \t\t\n\t \t\t\t \t\t }\n\t \t \t\t }, \n\t \t \t\t \n\t \t\t \t\t new Response.ErrorListener() {\n\t \t\t\t \t\t @Override\n\t \t\t\t \t\t public void onErrorResponse(VolleyError error) {\n\t \t\t\t \t\t\t Log.e(\"pantelis\",\"testVolley cancelReservationRequest response error 2\");\n\t \t\t\t \t\t\t Toast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t \t\t\t\t \t\t// Toast.makeText(mContext, \"cancelReservationRequest error 2\", Toast.LENGTH_LONG).show();\n\t \t\t\t\t \t\t\n\t \t\t \t\t\n\t \t\t\t \t\t }\n\t \t \t\t }){\n\t \t \t\t\n\t \t \t\t @Override\n\t \t \t\t protected Map<String,String> getParams(){\n\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t \t\t \t\t params.put(\"app_id\", MyNetworkRequestsSingleton.APP_ID);\n\t \t\t \t\t params.put(\"akey\", MyNetworkRequestsSingleton.A_KEY);\n\t \t\t \t\t params.put(\"app_vn\", \"api/unreserve\");\n\t \t\t \t\t params.put(\"uid\", Utilities.getUID(mContext));\n\t \t\t \t\t params.put(\"pid\",Utilities.getPID(mContext));\n\t \t\t \t\t return params;\n\t \t \t\t }\n\t \t \t\t \n\t \t \t\t @Override\n\t \t \t\t public Map<String, String> getHeaders() throws AuthFailureError {\n\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t \t\t \t\t params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n\t \t\t \t\t return params;\n\t \t \t\t \t}\n\t \t \t};\n\t \t\t\t// Access the RequestQueue through your singleton class.\n\t \t\t\tMyNetworkRequestsSingleton.getInstance(mContext).addToRequestQueue(cancelReservationRequest);\n\t \t\t\tmListener.onCloseActivity(); \t \n\t }\n\t })\n\t .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t \n\t \t StringRequest removePositionRequest = new StringRequest(Request.Method.POST,MyNetworkRequestsSingleton.TESTING_SERVER_URL, \n\t\t \t \t\t\t new Response.Listener<String>() { \t\t \t\t\n\t\t \t \t\t \t\t@Override\n\t\t \t\t\t \t\t public void onResponse(String response) {\n\t\t \t \t\t \t\t\tLog.i(\"pantelis\",\"testVolley removePositionRequest response = \" + response);\n\t\t \t \t\t \t\t\ttry {\n\t\t \t\t\t\t\t\t\t\tJSONObject jsonResponse = new JSONObject(response);\t\t\t\t\t\t\t\t\t\n\t\t \t\t\t\t\t\t\t\t\tString status = jsonResponse.getJSONObject(\"body\").getJSONObject(\"response\").getJSONObject(\"context\").getString(\"status\");\n\t\t \t\t\t\t\t\t\t\tif (status.equalsIgnoreCase(\"1\")) {\n\t\t \t\t\t\t\t\t\t\t\n\t\t \t\t\t\t\n\t\t \t\t\t\t\t\t\t\t}\n\t\t \t\t\t\t\t\t\t\telse {\n\t\t \t\t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t\t \t\t\t\t\t \t\t\t//Toast.makeText(mContext, \"removePositionRequest error failed 3\", Toast.LENGTH_LONG).show();\n\n\t\t \t\t\t\t\t\t\t\t}\t\t\n\t\t \t \t\t \t\t\t} catch (JSONException e) {\n\t\t \t\t\t\t\t\t\t\te.printStackTrace();\n\t\t \t\t\t\t\t\t\t\t//emfanise minima lathous\n\t\t \t\t\t\t \t\t\tToast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t\t \t\t\t\t \t\t\t//Toast.makeText(mContext, \"removePositionRequest error json\", Toast.LENGTH_LONG).show();\n\n\t\t \t\t\t\t\t\t\t}\n\t\t \t \t\t \t\t\t\n\t\t \t\t \t\t\n\t\t \t\t\t \t\t }\n\t\t \t \t\t }, \n\t\t \t \t\t \n\t\t \t\t \t\t new Response.ErrorListener() {\n\t\t \t\t\t \t\t @Override\n\t\t \t\t\t \t\t public void onErrorResponse(VolleyError error) {\n\t\t \t\t\t \t\t\t Log.e(\"pantelis\",\"testVolley response error 2\");\n\t\t \t\t\t \t\t\t Toast.makeText(mContext, R.string.server_error, Toast.LENGTH_LONG).show();\n\t\t \t\t\t\t \t\t \n\t\t \t\t\t\t \t\t Intent startIntent = new Intent(mContext, Activity_SearchParking.class);\n\t\t \t\t \t startActivity(startIntent);\n\t\t \t\t \t \n\t\t \t\t\t \t\t }\n\t\t \t \t\t }){\n\t\t \t \t\t\n\t\t \t \t\t @Override\n\t\t \t \t\t protected Map<String,String> getParams(){\n\t\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t\t \t\t \t\t params.put(\"app_id\", MyNetworkRequestsSingleton.APP_ID);\n\t\t \t\t \t\t params.put(\"akey\", MyNetworkRequestsSingleton.A_KEY);\n\t\t \t\t \t\t params.put(\"app_vn\", \"api/remove\");\n\t\t \t\t \t\t params.put(\"uid\", Utilities.getUID(mContext));\n\t\t \t\t \t\t params.put(\"pid\",Utilities.getPID(mContext));\n\t\t \t\t \t\t return params;\n\t\t \t \t\t }\n\t\t \t \t\t \n\t\t \t \t\t @Override\n\t\t \t \t\t public Map<String, String> getHeaders() throws AuthFailureError {\n\t\t \t\t \t\t Map<String,String> params = new HashMap<String, String>();\n\t\t \t\t \t\t params.put(\"Content-Type\",\"application/x-www-form-urlencoded\");\n\t\t \t\t \t\t return params;\n\t\t \t \t\t \t}\n\t\t \t \t};\n\t\t \t\t\t// Access the RequestQueue through your singleton class.\n\t\t \t\t\tMyNetworkRequestsSingleton.getInstance(mContext).addToRequestQueue(removePositionRequest);\n\t\t \t\t\tmListener.onCloseActivity();\n\t }\n\t \n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }", "@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e1) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n // Finish this activity in order to start properly \r\n // after redirection from Browser\r\n // Because of initializations in onCreate...\r\n AccountSettingsActivity.this.finish();\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "@Override\n public void onResponse(String response) {\n Toast.makeText(ContainerActivity.this, \"hey\", Toast.LENGTH_SHORT).show();\n Log.d(\"exito\", \"la peticion ha sido tramitada con exito\");\n }", "@Override\n public void onResponse(Call<ResponseNormal2> call, retrofit2.Response<ResponseNormal2> response) {\n if(response.isSuccessful())\n {\n String myMessage = \"\"+response.body().getreason();\n String status = \"\"+response.body().getstatus();\n if(status.equals(\"true\"))\n {\n\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"\"+myMessage,Toast.LENGTH_SHORT).show();\n }\n\n }\n else\n {\n // @M - If response from server is not success, get the message and show it in dialog\n JSONObject jObjError = null;\n String message = \"\"+getResources().getString(R.string.gagalCobaLagi);\n try {\n jObjError = new JSONObject(response.errorBody().string());\n message = \"\"+jObjError.getString(\"reason\");\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n final String myMessage = \"\"+message;\n Handler handler = new Handler();\n Runnable myRunnable = new Runnable() {\n public void run() {\n // do something\n //Toast.makeText(getActivity(),\"\"+myMessage,Toast.LENGTH_SHORT).show();\n }\n };\n handler.postDelayed(myRunnable,500);\n }\n }", "@Override\r\n\tprotected void onPostExecute(String result)\r\n\t{\r\n\t\tprogress.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "@Override\n\t\t\t\t protected void onPostExecute(Void result)\n\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t }", "@Override\n\t\t\t\t\t\t\tpublic void onFailure(int arg0, Header[] arg1, byte[] arg2, Throwable arg3) {\n\t\t\t\t\t\t\t\tLog.e(\"1111111\", \"\"+arg0);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}", "public String receiveResponse()\n\t{\n\t\t\n\t}", "@Override\n\t\t\t protected void onPostExecute(Void result)\n\t\t\t {\n\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t }", "protected void onPostExecute(Void aVoid) {\n progressDialog.dismiss();\n //Showing a success message\n Toast.makeText(context, R.string.toast_complete, Toast.LENGTH_SHORT).show();\n act.finish();\n }", "void faild_response();", "@Override\r\n public void run() {\n dialog.dismiss();\r\n }", "@Override\n public void onSuccess(Void aVoid) {\n finish();\n }", "@Override\n \t\tprotected void onPostExecute(Void result) \n \t\t{\n\t\t\t//close the progress dialog\n\t\t\tprogressDialog.dismiss();\n\t\t\tprogressDialog = null;\n \t\t}", "@Override\n\tprotected void onPostExecute(String result) {\n\t\tmDialog.dismiss();\n\t\ttry {\n\t\t\tJSONObject jsonObject = new JSONObject(result);\n\t\t\t// {\"message\":\"sukses\"}\n\t\t\tString status = jsonObject.getString(\"message\");\n\n\t\t\tif (status.equalsIgnoreCase(\"sukses\")) {\n\t\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t\t.setTitle(\"Success\")\n\t\t\t\t\t\t.setMessage(\"Edit Success \")\n\t\t\t\t\t\t.setPositiveButton(\"Ok\",\n\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t\t\t// pop to previous fragment\n\t\t\t\t\t\t\t\t\t\tmFragmentActivity\n\t\t\t\t\t\t\t\t\t\t\t\t.getSupportFragmentManager()\n\t\t\t\t\t\t\t\t\t\t\t\t.popBackStack();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}).create().show();\n\t\t\t} else {\n\t\t\t\tGeneral.showDialogError(mContext, mContext.getResources()\n\t\t\t\t\t\t.getString(R.string.failed_edit_to_server)\n\t\t\t\t\t\t+ \". Please Check Your Connection.\", \"Attention\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\tGeneral.showDialogError(mContext, mContext.getResources()\n\t\t\t\t\t.getString(R.string.failed_edit_to_server)\n\t\t\t\t\t+ \". Please Check Your Connection.\", \"Attention\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n protected String doInBackground(String... args) {\n\n int success;\n try {\n\n List<NameValuePair> delete = new ArrayList<NameValuePair>();\n delete.add(new BasicNameValuePair(\"Verify\", vuser));\n delete.add(new BasicNameValuePair(\"username\", user));\n delete.add(new BasicNameValuePair(\"Number\", Number));\n\n\n JSONObject json = jsonParser.makeHttpRequest(\n LOGIN_URL2, \"POST\", delete);\n\n // checking log for json response\n\n // success tag for json\n success = json.getInt(CHANGE_SUCCESS);\n if (success == 1) {\n Intent ii = new Intent(TabLayout.this, Login.class);\n finish();\n\n // this finish() method is used to tell android os that we are done with current //activity now! Moving to other activity\n startActivity(ii);\n return json.getString(CHANGE_MESSAGE);\n } else {\n\n return json.getString(CHANGE_MESSAGE);\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n\n return null;\n }", "public interface DialogListener {\n\n /**\n * Called when a dialog completes.\n *\n * Executed by the thread that initiated the dialog.\n *\n * @param values\n * Key-value string pairs extracted from the response.\n */\n public void onComplete(Bundle values);\n\n \n /**\n * Called when a dialog is canceled by the user.\n *\n * Executed by the thread that initiated the dialog.\n *\n */\n public void onCancel();\n}", "void dismiss();", "@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n // Hide Progress Dialog\n prgDialog.hide();\n // try {\n // JSON Object\n// String str=new String(response);\n// JSONObject obj = new JSONObject(str);\n // When the JSON response has status boolean value assigned with true\n if(statusCode==200){\n\n // Display successfully registered message using Toast\n Toast.makeText(getApplicationContext(), \"Thanks for the Donation.Our representative will contact you shortly :)\", Toast.LENGTH_LONG).show();\n navigateToHomeActivity();\n }\n\n }", "@Override\n protected void onPostExecute(String result) {\n\n try {\n // To display message after response from server\n if (!result.contains(\"ERROR\")) {\n if (responseJSON.equalsIgnoreCase(\"success\")) {\n db.open();\n db.Update_OutletExpenseIsSync();\n db.close();\n }\n if (common.isConnected()) {\n AsyncOutletSaleWSCall task = new AsyncOutletSaleWSCall();\n task.execute();\n }\n } else {\n if (result.contains(\"null\"))\n result = \"Server not responding.\";\n common.showAlert(StockAdjustmentList.this, result, false);\n common.showToast(\"Error: \" + result);\n }\n } catch (Exception e) {\n common.showAlert(StockAdjustmentList.this,\n \"Unable to fetch response from server.\", false);\n }\n\n Dialog.dismiss();\n }", "@Override\r\n protected void onPostExecute(Void result) {\n mProgressDialog.dismiss();\r\n }", "@Override\r\n\t\tpublic void onResponse(JSONObject response) {\n\t\t\tLog.d(LOG_TAG, \"response:\" + response.toString());\r\n\t\t\tdialog.cancel();\r\n\t\t\ttry {\r\n\t\t\t\tif (response.getInt(\"code\") == 0) {\r\n\t\t\t\t\tJSONObject data = response.getJSONObject(\"data\");\r\n\t\t\t\t\tremainderMoney.setNumText(Tool.toDeciDouble(data.getString(\"money\")));\r\n\t\t\t\t\tusMoney.setNumText(Tool.toDeciDouble(data.getString(\"usable_money\")));\r\n\t\t\t\t\twithMoney.setNumText(Tool.toDeciDouble(data.getString(\"withdrawing_money\")));\r\n\t\t\t\t\tremainMoney = Tool.toDeciDouble(data.getString(\"usable_money\"));\r\n\t\t\t\t if(!Tool.isBlank(remainMoney) && remainMoney.equals(\"0.00\")){\r\n\t\t\t\t \t accountRemainTitle.showRightButton(new OnClickListener() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t\t\t\tIntent intent = new Intent(AccountRemainActivity.this, WithdrawListActivity.class);\r\n\t\t\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t \t });\r\n\t\t\t\t \t accountRemainTitle.setRightTextButton(\"提现记录\");\r\n\t\t\t\t } else {\r\n\t\t\t\t \t accountRemainTitle.showRightButton(new OnClickListener() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t\t\t\t\tif (!KDLCApplication.app.checkRealStatus()) {\r\n\t\t\t\t\t\t\t\t\t\tDialog();\r\n\t\t\t\t\t\t\t\t\t} else if (!KDLCApplication.app.checkCardStatus()) {\r\n\t\t\t\t\t\t\t\t\t\tcardDialog();\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(AccountRemainActivity.this,WithdrawActivity.class);\r\n\t\t\t\t\t\t\t\t\t\tintent.putExtra(\"remainmoney\", remainMoney);\r\n\t\t\t\t\t\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t \t });\r\n\t\t\t\t \t accountRemainTitle.setRightTextButton(\"提现\");\r\n\t\t\t\t }\r\n\t\t\t\t accountRemainlayout.setVisibility(View.VISIBLE);\r\n\t\t\t\t remainShow = true;\r\n\t\t\t\t} else if(response.getInt(\"code\") == -2){\r\n \t\t\tdialog = KdlcDialog.showLoginDialog(AccountRemainActivity.this);\r\n \t\t} else {\r\n \t\t\tdialog =KdlcDialog.showInformDialog(AccountRemainActivity.this ,response.getString(\"message\"));\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tKdlcDialog.showBottomToast(\"\");\r\n\t\t\t}\r\n\t\t\tmPullRefreshScrollView.onRefreshComplete();\r\n\t\t}", "void CloseOkDialog();", "@Override\n protected void onPostExecute(Object result) {\n\n AlertDialog dialog = new AlertDialog.Builder(GubUyActivity.this).create();\n dialog.setTitle(R.string.info_title);\n\n if (result instanceof DtResponse) {\n if(((DtResponse) result).getOk())\n actualizarTokenFirebase();\n/*\n if(dtUsuario.getTokenFirebase() == null ||\n dtUsuario.getTokenFirebase().equalsIgnoreCase(\"\") ||\n !dtUsuario.getTokenFirebase().equalsIgnoreCase(firebaseToken)){\n\n }\n*/\n dialog.setMessage(((DtResponse) result).getMensaje());\n\n Log.i(\"onPostExecute\", \"response: \" + ((DtResponse) result).getMensaje());\n }else if (result instanceof String){\n dialog.setMessage((String) result);\n } else {\n dialog.setMessage(getString(R.string.err_recuperarpag));\n Log.i(TAG, getString(R.string.err_recuperarpag));\n }\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.alert_btn_neutral), new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int which) {\n //Intent iplan = new Intent(GubUyActivity.this, MainActivity.class);\n //startActivity(iplan);\n Intent iagenda = new Intent(GubUyActivity.this, PlanVacunacion.class);\n startActivity(iagenda);\n\n }\n });\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n }", "@Override\n public void onResponse(Call<Departments> call, Response<Departments> response) {\n try\n {\n if(dialog != null && dialog.isShowing())\n {\n dialog.dismiss();\n }\n\n int statusCode = response.code();\n if (statusCode == 200 || statusCode == 201) {\n\n Departments s = response.body();\n\n if(s!=null){\n\n Toast.makeText(getContext(), \"Department Creted Successfully \", Toast.LENGTH_SHORT).show();\n\n dialogs.dismiss();\n showalertbox();\n\n\n\n }\n\n\n\n\n }else {\n Toast.makeText(getActivity(), \"Failed Due to \"+response.message(), Toast.LENGTH_SHORT).show();\n }\n }\n catch (Exception ex)\n {\n\n if(dialog != null && dialog.isShowing())\n {\n dialog.dismiss();\n }\n ex.printStackTrace();\n }\n// callGetStartEnd();\n }", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "@Override\r\n\tprotected void onPostExecute(String result) {\r\n\t\tprogressDialog.setMessage(\"Finalizado!\");\r\n\t\t// fecha o dialog\r\n\t\tprogressDialog.dismiss();\r\n\t\tsuper.onPostExecute(result);\r\n\t}", "@Override\n\tpublic void onFinishRequest(HttpRequest request,int requestId) {\n\t\tprogressDialog.dismiss();\n\t}", "@Override\n protected void onPostExecute(String result){\n finish();\n }", "@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\t\tif(\"no\".equals(Flag)){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\t\t\tnew Timer().schedule(new TimerTask() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes\");\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tJSONObject response) {\n\t\t\t\t\t\t\tMessage message = new Message();\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tFlag = response.getString(\"flag\");\r\n\t\t\t\t\t\t\t\tif(\"no\".equals(Flag)){\r\n\t\t\t\t\t\t\t\t\tcRequesttype = true;\r\n\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.VISIBLE);\r\n\t\t\t\t\t\t\t\t\t\tnew Timer().schedule(new TimerTask() {\r\n\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}, 1000);\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty yes\");\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\tLoger.i(\"test5\", \"baoxiutopic is empty no\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\r\n\t\t\t\t\t\t}", "public Status waitUntilFinished();", "@Override\n protected void onPostExecute(String result) {\n try {\n // To display message after response from server\n if (!result.contains(\"ERROR\")) {\n if (responseJSON.equalsIgnoreCase(\"success\")) {\n db.open();\n db.UpdateOutletSaleIsSync();\n db.close();\n }\n if (common.isConnected()) {\n\n AsyncPendingDeliveryStatusWSCall task = new AsyncPendingDeliveryStatusWSCall();\n task.execute();\n }\n } else {\n if (result.contains(\"null\"))\n result = \"Server not responding.\";\n common.showToast(\"Error: \" + result);\n }\n\n } catch (Exception e) {\n\n }\n Dialog.dismiss();\n }", "@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\n\t\t\t\t\t\tdismissProgressDialog();\n\n\t\t\t\t\t\tString returnstr2 = arg0.result;\n\n\t\t\t\t\t\tLog.v(TAG, \"returnstr \" + returnstr2);\n\n\t\t\t\t\t}", "@Override\n protected void onPostExecute(String result) {\n loading.showProgress(UserEditActivity.this, viewLoading, false);\n\n // If returned string is success (204)\n if(result.equals(\"204\")) {\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_edit_message)\n .setTitle(R.string.text_success_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivity(new Intent(((Dialog)dialog).getContext(), UserListActivity.class));\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n // If returned string is NetworkException\n else if(result == \"NetworkException\") {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_network,\n Toast.LENGTH_LONG)\n .show();\n }\n // If returned string is Exception\n // Or return \"401\"\n else {\n //TODO: Show message about exception return\n Toast.makeText(\n getApplicationContext(),\n R.string.exception_service,\n Toast.LENGTH_LONG)\n .show();\n }\n }", "public void cancelGetResponse() {\n impl.cancelGetResponse();\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }", "protected void onPostExecute(String result) {\n pDialog.dismiss();\n\n Log.d(\"workshop onPostExecute:\",result);\n\n try {\n // Checking for SUCCESS TAG\n // Check your log cat for JSON reponse\n jObj_result = new JSONObject(result);\n v_success = jObj_result.getInt(TAG_SUCCESS);\n v_msg = jObj_result.getString(TAG_MSG);\n\n } catch (JSONException e) {\n v_success = 0;\n e.printStackTrace();\n }\n\n Log.d(\"workshop v_msg:\",v_msg);\n if (v_success == 1) {\n Toast.makeText(myContext, v_msg, Toast.LENGTH_SHORT).show();\n } //else msg Erro\n\n }" ]
[ "0.67494226", "0.6417914", "0.6344946", "0.6303712", "0.6183912", "0.61445665", "0.60936904", "0.6043701", "0.5992899", "0.5977336", "0.5941643", "0.59082335", "0.58607334", "0.5859022", "0.5856228", "0.584125", "0.5829592", "0.5823654", "0.5801686", "0.57987624", "0.57954043", "0.5753198", "0.573477", "0.5734", "0.57323897", "0.5720623", "0.5664009", "0.56472987", "0.5643629", "0.56334853", "0.56334853", "0.56334853", "0.56223613", "0.5618693", "0.5603242", "0.5590958", "0.5587029", "0.55778676", "0.5574365", "0.5560015", "0.5551084", "0.55446273", "0.55362076", "0.5528069", "0.5526873", "0.5525727", "0.55247265", "0.5509527", "0.5504471", "0.5488956", "0.5478267", "0.54765034", "0.5472577", "0.54703027", "0.5461778", "0.54617447", "0.54617447", "0.5460866", "0.5451689", "0.5443442", "0.54394656", "0.54391116", "0.5435949", "0.5427791", "0.5424909", "0.5418902", "0.54185355", "0.54177946", "0.5417663", "0.5402921", "0.54022545", "0.5399637", "0.53888524", "0.53814304", "0.53791356", "0.537367", "0.5364865", "0.5362297", "0.53545", "0.5350005", "0.5348337", "0.53450066", "0.53417814", "0.53416014", "0.53387976", "0.5336588", "0.53347284", "0.5333307", "0.5332109", "0.5325213", "0.5324706", "0.5323234", "0.5322036", "0.5322036", "0.53202146", "0.5319609", "0.5317199", "0.53147024", "0.5310094", "0.529984", "0.529984" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table city
int deleteByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "TbCities selectByPrimaryKey(Long id);", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Long getCityId() {\n return cityId;\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public String getCityId() {\n return cityId;\n }", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "List<TbCities> selectByExample(TbCitiesExample example);", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic void update(City city) {\n\t\t\n\t\tString sql = \"UPDATE city SET name = ?, countrycode = ?, district =?, population = ? WHERE id = ?\";\n\t\n\t\t\n\t\tjdbcTemplate.update(sql, city.getName(), city.getCountryCode(), city.getDistrict(), city.getPopulation(), city.getId());\n\n\t}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public Integer getCityid() {\n return cityid;\n }", "public String getCity_id() {\n return city_id;\n }", "static IdNameSelect<INameIdParent> getCitySelect(){\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn citySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tp.parentId = rs.getLong(\"municipality_id\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "CityDO selectByPrimaryKey(Integer id);", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "List<MasterZipcode> getByCity(int cityId);", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public List<Address> listAddressByCity(String city)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.city = :city order by address.id asc\").setParameter(\"city\", city).list();\n\n return result;\n }", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "@Override\r\n\tpublic List<City> getAllCitiesInCountry(String countryName) {\n\t\t\r\n\t\tSystem.out.println(\"getAllCitiesInCountry,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\t\tQuery query=session.createQuery(\"from City where country.name = :countryName\");\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn list;\r\n\t}", "@Mapper\npublic interface CityDao {\n\n /**\n * 根据名字查找城市\n * @param cityName\n * @return\n */\n City findByName(@Param(\"cityName\")String cityName);\n\n void saveCity(City city);\n}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "public void getCity(){\n }", "@Override\n\tpublic City findCity(String cityName) {\n\t\treturn cityDao.findByName(cityName);\n\t}", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "GeneralWeatherReport queryWeatherReport(String cityId);", "void addCity(City city) {\n\n\t\tdatabase.insert(\"city\", null, setCityData(city));\n\t\tdatabase.close();\n\t}", "List<City> findCities();", "@Override\r\npublic Collection<Customer> getCustomersByCity(String city) \r\n{ \r\n\tlogger.info(\"---DAO getCustomersByCity \"+city);\r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t //String qryString = \"from Customer, Address, City where City.city_id = Address.city_id and Address.address_id = Customer.address_id and LOWER(City.city) = :param\";\r\n\t\tString qryString = \"from Customer cu, Address a, City ci where ci.city_id = a.city_id and a.address_id = cu.address_id and LOWER(ci.city) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", city.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t List resultList = qry.setMaxResults(ProjectConstants.MAX_RESULTS_PAGE)\r\n\t\t\t \t\t\t .getResultList();\r\n\t \r\n\t logger.info(\"------------resultList.size() \"+resultList.size());\r\n\t \r\n\t if(resultList == null || resultList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return resultList;\t\r\n}", "public interface ICityInfoDAO {\n\n List<CityEntity> getList();\n\n List<CityEntity> getHotCities();\n\n void add(CityEntity entity);\n\n List<SuburbEntity> getSuburbsByCityID(int cityid);\n}", "public List<City> getAll() throws Exception;", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void searchAreaCity(Connection connection, String city) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getCity());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public void setCity(String city);", "public City getCity() {\n return city;\n }", "@AutoEscape\n\tpublic String getCity();", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "@Override\r\n\tpublic List<City> getAllCitiesInState(String stateName, String countryName) {\n\t\tSystem.out.println(\"getAllCitiesInCountry,stateName,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tList<City> clist=new ArrayList<City>();\r\n\t\t\r\n\t\tList<State> list=new ArrayList<State>();\r\n\t\t\r\n\t\t//List<City> clist = this.sessionFactory.getCurrentSession().createCriteria(Country.class)\r\n\t // .add(Restrictions.eq(\"name\",countryName)).list().get(0);\r\n\t\t//null pointer exception\r\n\t\tQuery query = session.createQuery(\"from City c where c.country.name=:countryName and c.district= :stateName\");\r\n\t\t\r\n\t\t//select * from city c, state p, country q where p.StateName='Andhra Pradesh' and q.name='india';\r\n\t\t\r\n\t\t//Query query = session.createQuery(\"from State p, Country q where q.name=:countryName and c.district= :p.stateName and p!=null and c.district!=null\");\r\n\t\t\r\n\t\tquery.setParameter(\"stateName\", stateName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tclist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn clist;\r\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> getCustomerByCity(String city) {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"city\",city)).list();\r\n\t}", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public String getCity() {\n return city;\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public String getCity() {\n return City;\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "@Override\n\tpublic List<String> getAdmcodeByCity(String city) {\n\t\treturn this.counDAO.selectAdmcodeByCity(city);\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}" ]
[ "0.6505853", "0.64385414", "0.6370275", "0.6367586", "0.63428843", "0.63094807", "0.62922806", "0.62898386", "0.62898386", "0.6284711", "0.62811965", "0.62771374", "0.6265", "0.62594706", "0.6248275", "0.6242902", "0.62317985", "0.62093914", "0.6169193", "0.61605567", "0.6130235", "0.61282194", "0.61156976", "0.61073554", "0.60986894", "0.60986894", "0.60986894", "0.60986894", "0.60986894", "0.60986894", "0.6094892", "0.6085282", "0.60825133", "0.60809", "0.60809", "0.60758895", "0.60747564", "0.60717577", "0.60500693", "0.60385126", "0.6035961", "0.6035961", "0.6025175", "0.60199517", "0.60034454", "0.60034454", "0.60034454", "0.60034454", "0.60029805", "0.6002091", "0.5988556", "0.59730214", "0.5957202", "0.5957202", "0.595648", "0.5941474", "0.5931337", "0.5927168", "0.59263664", "0.5919848", "0.591744", "0.5914392", "0.5906509", "0.5902382", "0.59020865", "0.59020865", "0.59020865", "0.58988446", "0.5894202", "0.58938056", "0.5891974", "0.5887243", "0.58763003", "0.58699566", "0.58672684", "0.58642554", "0.5856727", "0.5852292", "0.5844777", "0.58423567", "0.58423567", "0.58372307", "0.58263636", "0.5811361", "0.5811361", "0.5805969", "0.5801042", "0.5792561", "0.5792131", "0.5788421", "0.5777173", "0.5777173", "0.5777173", "0.5776757", "0.57744807", "0.57710856", "0.5769385", "0.57691413", "0.576677", "0.575392", "0.5745428" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table city
int insert(CityDO record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "TbCities selectByPrimaryKey(Long id);", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Long getCityId() {\n return cityId;\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public String getCityId() {\n return cityId;\n }", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "List<TbCities> selectByExample(TbCitiesExample example);", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic void update(City city) {\n\t\t\n\t\tString sql = \"UPDATE city SET name = ?, countrycode = ?, district =?, population = ? WHERE id = ?\";\n\t\n\t\t\n\t\tjdbcTemplate.update(sql, city.getName(), city.getCountryCode(), city.getDistrict(), city.getPopulation(), city.getId());\n\n\t}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public Integer getCityid() {\n return cityid;\n }", "public String getCity_id() {\n return city_id;\n }", "static IdNameSelect<INameIdParent> getCitySelect(){\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn citySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tp.parentId = rs.getLong(\"municipality_id\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "CityDO selectByPrimaryKey(Integer id);", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "List<MasterZipcode> getByCity(int cityId);", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public List<Address> listAddressByCity(String city)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.city = :city order by address.id asc\").setParameter(\"city\", city).list();\n\n return result;\n }", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "@Override\r\n\tpublic List<City> getAllCitiesInCountry(String countryName) {\n\t\t\r\n\t\tSystem.out.println(\"getAllCitiesInCountry,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\t\tQuery query=session.createQuery(\"from City where country.name = :countryName\");\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn list;\r\n\t}", "@Mapper\npublic interface CityDao {\n\n /**\n * 根据名字查找城市\n * @param cityName\n * @return\n */\n City findByName(@Param(\"cityName\")String cityName);\n\n void saveCity(City city);\n}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "public void getCity(){\n }", "@Override\n\tpublic City findCity(String cityName) {\n\t\treturn cityDao.findByName(cityName);\n\t}", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "GeneralWeatherReport queryWeatherReport(String cityId);", "void addCity(City city) {\n\n\t\tdatabase.insert(\"city\", null, setCityData(city));\n\t\tdatabase.close();\n\t}", "@Override\r\npublic Collection<Customer> getCustomersByCity(String city) \r\n{ \r\n\tlogger.info(\"---DAO getCustomersByCity \"+city);\r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t //String qryString = \"from Customer, Address, City where City.city_id = Address.city_id and Address.address_id = Customer.address_id and LOWER(City.city) = :param\";\r\n\t\tString qryString = \"from Customer cu, Address a, City ci where ci.city_id = a.city_id and a.address_id = cu.address_id and LOWER(ci.city) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", city.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t List resultList = qry.setMaxResults(ProjectConstants.MAX_RESULTS_PAGE)\r\n\t\t\t \t\t\t .getResultList();\r\n\t \r\n\t logger.info(\"------------resultList.size() \"+resultList.size());\r\n\t \r\n\t if(resultList == null || resultList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return resultList;\t\r\n}", "List<City> findCities();", "public interface ICityInfoDAO {\n\n List<CityEntity> getList();\n\n List<CityEntity> getHotCities();\n\n void add(CityEntity entity);\n\n List<SuburbEntity> getSuburbsByCityID(int cityid);\n}", "public List<City> getAll() throws Exception;", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void searchAreaCity(Connection connection, String city) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getCity());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public void setCity(String city);", "public City getCity() {\n return city;\n }", "@AutoEscape\n\tpublic String getCity();", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "@Override\r\n\tpublic List<City> getAllCitiesInState(String stateName, String countryName) {\n\t\tSystem.out.println(\"getAllCitiesInCountry,stateName,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tList<City> clist=new ArrayList<City>();\r\n\t\t\r\n\t\tList<State> list=new ArrayList<State>();\r\n\t\t\r\n\t\t//List<City> clist = this.sessionFactory.getCurrentSession().createCriteria(Country.class)\r\n\t // .add(Restrictions.eq(\"name\",countryName)).list().get(0);\r\n\t\t//null pointer exception\r\n\t\tQuery query = session.createQuery(\"from City c where c.country.name=:countryName and c.district= :stateName\");\r\n\t\t\r\n\t\t//select * from city c, state p, country q where p.StateName='Andhra Pradesh' and q.name='india';\r\n\t\t\r\n\t\t//Query query = session.createQuery(\"from State p, Country q where q.name=:countryName and c.district= :p.stateName and p!=null and c.district!=null\");\r\n\t\t\r\n\t\tquery.setParameter(\"stateName\", stateName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tclist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn clist;\r\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> getCustomerByCity(String city) {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"city\",city)).list();\r\n\t}", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public String getCity() {\n return city;\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public String getCity() {\n return City;\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "@Override\n\tpublic List<String> getAdmcodeByCity(String city) {\n\t\treturn this.counDAO.selectAdmcodeByCity(city);\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}" ]
[ "0.6503546", "0.64376485", "0.6367405", "0.63649356", "0.634075", "0.63072133", "0.62891984", "0.6287993", "0.6287993", "0.62833244", "0.62785953", "0.6273202", "0.62627476", "0.6257269", "0.62457776", "0.6241267", "0.62292033", "0.6207846", "0.61673534", "0.61591995", "0.61279964", "0.61266774", "0.61137044", "0.6105892", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6091409", "0.60817635", "0.60788226", "0.6077373", "0.6077373", "0.60738444", "0.6073543", "0.60696936", "0.60482097", "0.6034984", "0.6032586", "0.6032586", "0.60219884", "0.6016628", "0.60009825", "0.60009605", "0.60001427", "0.60001427", "0.60001427", "0.60001427", "0.59864104", "0.59704727", "0.59554225", "0.59554225", "0.59547335", "0.59394157", "0.5930214", "0.5925586", "0.5924985", "0.59169894", "0.59159386", "0.5909759", "0.5903078", "0.59008557", "0.5897958", "0.5897958", "0.5897958", "0.5896634", "0.58916146", "0.5890948", "0.58894193", "0.588511", "0.58722794", "0.58663017", "0.5864697", "0.586152", "0.58533245", "0.5848271", "0.5840741", "0.5839478", "0.5839478", "0.58344686", "0.58244574", "0.58082134", "0.58082134", "0.5803667", "0.579916", "0.5790576", "0.57894003", "0.57850397", "0.57731235", "0.57731235", "0.57731235", "0.57730556", "0.57724714", "0.57669497", "0.5766457", "0.5764866", "0.57638067", "0.5752417", "0.57404053" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table city
CityDO selectByPrimaryKey(Integer id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "TbCities selectByPrimaryKey(Long id);", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Long getCityId() {\n return cityId;\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public String getCityId() {\n return cityId;\n }", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "List<TbCities> selectByExample(TbCitiesExample example);", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic void update(City city) {\n\t\t\n\t\tString sql = \"UPDATE city SET name = ?, countrycode = ?, district =?, population = ? WHERE id = ?\";\n\t\n\t\t\n\t\tjdbcTemplate.update(sql, city.getName(), city.getCountryCode(), city.getDistrict(), city.getPopulation(), city.getId());\n\n\t}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public Integer getCityid() {\n return cityid;\n }", "public String getCity_id() {\n return city_id;\n }", "static IdNameSelect<INameIdParent> getCitySelect(){\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn citySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tp.parentId = rs.getLong(\"municipality_id\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "List<MasterZipcode> getByCity(int cityId);", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public List<Address> listAddressByCity(String city)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.city = :city order by address.id asc\").setParameter(\"city\", city).list();\n\n return result;\n }", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "@Override\r\n\tpublic List<City> getAllCitiesInCountry(String countryName) {\n\t\t\r\n\t\tSystem.out.println(\"getAllCitiesInCountry,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\t\tQuery query=session.createQuery(\"from City where country.name = :countryName\");\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn list;\r\n\t}", "@Mapper\npublic interface CityDao {\n\n /**\n * 根据名字查找城市\n * @param cityName\n * @return\n */\n City findByName(@Param(\"cityName\")String cityName);\n\n void saveCity(City city);\n}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "public void getCity(){\n }", "@Override\n\tpublic City findCity(String cityName) {\n\t\treturn cityDao.findByName(cityName);\n\t}", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "GeneralWeatherReport queryWeatherReport(String cityId);", "void addCity(City city) {\n\n\t\tdatabase.insert(\"city\", null, setCityData(city));\n\t\tdatabase.close();\n\t}", "@Override\r\npublic Collection<Customer> getCustomersByCity(String city) \r\n{ \r\n\tlogger.info(\"---DAO getCustomersByCity \"+city);\r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t //String qryString = \"from Customer, Address, City where City.city_id = Address.city_id and Address.address_id = Customer.address_id and LOWER(City.city) = :param\";\r\n\t\tString qryString = \"from Customer cu, Address a, City ci where ci.city_id = a.city_id and a.address_id = cu.address_id and LOWER(ci.city) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", city.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t List resultList = qry.setMaxResults(ProjectConstants.MAX_RESULTS_PAGE)\r\n\t\t\t \t\t\t .getResultList();\r\n\t \r\n\t logger.info(\"------------resultList.size() \"+resultList.size());\r\n\t \r\n\t if(resultList == null || resultList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return resultList;\t\r\n}", "List<City> findCities();", "public interface ICityInfoDAO {\n\n List<CityEntity> getList();\n\n List<CityEntity> getHotCities();\n\n void add(CityEntity entity);\n\n List<SuburbEntity> getSuburbsByCityID(int cityid);\n}", "public List<City> getAll() throws Exception;", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void searchAreaCity(Connection connection, String city) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getCity());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public void setCity(String city);", "public City getCity() {\n return city;\n }", "@AutoEscape\n\tpublic String getCity();", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "@Override\r\n\tpublic List<City> getAllCitiesInState(String stateName, String countryName) {\n\t\tSystem.out.println(\"getAllCitiesInCountry,stateName,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tList<City> clist=new ArrayList<City>();\r\n\t\t\r\n\t\tList<State> list=new ArrayList<State>();\r\n\t\t\r\n\t\t//List<City> clist = this.sessionFactory.getCurrentSession().createCriteria(Country.class)\r\n\t // .add(Restrictions.eq(\"name\",countryName)).list().get(0);\r\n\t\t//null pointer exception\r\n\t\tQuery query = session.createQuery(\"from City c where c.country.name=:countryName and c.district= :stateName\");\r\n\t\t\r\n\t\t//select * from city c, state p, country q where p.StateName='Andhra Pradesh' and q.name='india';\r\n\t\t\r\n\t\t//Query query = session.createQuery(\"from State p, Country q where q.name=:countryName and c.district= :p.stateName and p!=null and c.district!=null\");\r\n\t\t\r\n\t\tquery.setParameter(\"stateName\", stateName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tclist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn clist;\r\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> getCustomerByCity(String city) {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"city\",city)).list();\r\n\t}", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public String getCity() {\n return city;\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public String getCity() {\n return City;\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "@Override\n\tpublic List<String> getAdmcodeByCity(String city) {\n\t\treturn this.counDAO.selectAdmcodeByCity(city);\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}" ]
[ "0.65037996", "0.64393353", "0.6370243", "0.6366207", "0.63425434", "0.63078135", "0.62925977", "0.6289533", "0.6289533", "0.62836415", "0.62805456", "0.6275655", "0.6263473", "0.6257843", "0.62476003", "0.6241647", "0.6230317", "0.6208639", "0.6168165", "0.6158316", "0.61294043", "0.61280125", "0.611553", "0.61073416", "0.60967875", "0.60967875", "0.60967875", "0.60967875", "0.60967875", "0.60967875", "0.6092938", "0.60832834", "0.6080606", "0.60789865", "0.60789865", "0.60747033", "0.6070183", "0.60498244", "0.60365", "0.6034036", "0.6034036", "0.60233635", "0.6017977", "0.6001808", "0.60014975", "0.60014975", "0.60014975", "0.60014975", "0.6001294", "0.5987955", "0.5971536", "0.5956318", "0.5956318", "0.59550583", "0.59413826", "0.59298486", "0.5926124", "0.59247", "0.5918074", "0.5917215", "0.59114116", "0.59048617", "0.59007275", "0.59007275", "0.59007275", "0.5900398", "0.5898274", "0.589269", "0.5891562", "0.5891329", "0.58868575", "0.5874055", "0.5868311", "0.58653617", "0.5861929", "0.58549714", "0.58509475", "0.5843277", "0.58414346", "0.58414346", "0.58367413", "0.5824255", "0.5809388", "0.5809388", "0.5805437", "0.58001226", "0.5791729", "0.5790599", "0.57880557", "0.57761943", "0.5775728", "0.5775728", "0.5775728", "0.577346", "0.57696426", "0.5768688", "0.57678044", "0.5765942", "0.575221", "0.57431704" ]
0.6076348
35
This method was generated by MyBatis Generator. This method corresponds to the database table city
int updateByPrimaryKey(CityDO record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<InputData> getCityData(String city) {\n String SQL = \"SELECT * FROM world_bank WHERE city = ?\";\n List<InputData> records = jdbcTemplate.query(SQL,\n new Object[] { city }, new DataMapper());\n return records;\n }", "TbCities selectByPrimaryKey(Long id);", "@Override\r\n \tpublic List<CityMasterBean> city_type()\r\n \t\t\tthrows SpringCrunchifyException {\n \t\treturn itemDao.view_city_type();\r\n \t}", "@Override\r\n\tpublic List <City> getAllCities() {\r\n\t\tSystem.out.println(\"Looking for all cities...\");\r\n\t\tConnection con = ConnectionFactory.getConnection();\r\n\t\ttry {\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet rs = stmt.executeQuery(\"SELECT * FROM city\");\r\n\t\t\tList<City> cityList = new ArrayList<City>();\r\n\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tCity ci = new City();\r\n\t\t\t\tci.setCityId(rs.getInt(\"cityid\"));\r\n\t\t\t\tci.setName(rs.getString(\"name\"));\r\n\t\t\t\tci.setCapital(rs.getBoolean(\"iscapital\"));\r\n\t\t\t\tcityList.add(ci);\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t\treturn cityList;\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Long getCityId() {\n return cityId;\n }", "@Override\n\tpublic ArrayList getAllCities() {\n\t\tConnection conn = MySQLDAOFactory.getConnection(); \n\t\t//ResultSet rs = MySQLDAOFactory.executeStatement(conn, \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\");\n\t Statement stmt = null; \n\t ResultSet rs = null;\n\t\ttry {\n\t\t\tstmt = (Statement)conn.createStatement();\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t String sql;\n\t sql = \"SELECT * FROM world.city where world.city.CountryCode = 'AFG'\";\n\t\ttry {\n\t\t\trs = stmt.executeQuery(sql);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\n\t\tArrayList<Cities> p = new ArrayList<Cities>();\n\t try {\n\t\t\twhile(rs.next()){\n\t\t\t //Retrieve by column name\n\t\t\t int id = rs.getInt(\"id\");\t \n\t\t\t String name = rs.getString(\"name\");\n\t\t\t String district = rs.getString(\"district\");\n\t\t\t long population = rs.getLong(\"population\");\n\t\t\t Cities tmp = new Cities(); \n\t\t\t tmp.setId(id);\n\t\t\t tmp.setName(name);\n\t\t\t tmp.setDistrict(district);\n\t\t\t tmp.setPopulation(population);\n\t\t\t p.add(tmp); \n\t\t\t }\n\t\t\t//rs.close(); \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t//MySQLDAOFactory.closeConnection();\n\t return p; \n\t}", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public String getCityId() {\n return cityId;\n }", "public List<WeatherCitySummary> findAllCity(){\n return weatherCityRepository.findAllCity();\n }", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "private void fillCitiesTable() {\n try (Connection connection = this.getConnection();\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(INIT.GET_CITY.toString())) {\n if (!rs.next()) {\n try (PreparedStatement ps = connection.prepareStatement(INIT.FILL_CITIES.toString())) {\n connection.setAutoCommit(false);\n ParseSiteForCities parse = new ParseSiteForCities();\n for (City city : parse.parsePlanetologDotRu()) {\n ps.setString(1, city.getCountry());\n ps.setString(2, city.getCity());\n ps.addBatch();\n }\n ps.executeBatch();\n connection.commit();\n connection.setAutoCommit(true);\n }\n }\n\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "List<TbCities> selectByExample(TbCitiesExample example);", "public ArrayList<City> getAllCapitalContinent()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Continent \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"18. All the capital cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | Population\");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Continent = rset.getString(\"Continent\");\n System.out.println(cCountry.Continent + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"18. Failed to get capital city details by continent\");\n return null;\n }\n }", "@Override\n\tpublic void update(City city) {\n\t\t\n\t\tString sql = \"UPDATE city SET name = ?, countrycode = ?, district =?, population = ? WHERE id = ?\";\n\t\n\t\t\n\t\tjdbcTemplate.update(sql, city.getName(), city.getCountryCode(), city.getDistrict(), city.getPopulation(), city.getId());\n\n\t}", "public interface CityDao {\n\n List<City> queryAllCity() throws Exception;\n\n City queryCityByCode(String cityCode) throws Exception;\n\n List<City> queryCityByBmsCode(String code) throws Exception;\n\n List<City> insert(City city) throws Exception;\n\n}", "public Integer getCityid() {\n return cityid;\n }", "public String getCity_id() {\n return city_id;\n }", "static IdNameSelect<INameIdParent> getCitySelect(){\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn citySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tp.parentId = rs.getLong(\"municipality_id\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "CityDO selectByPrimaryKey(Integer id);", "public ArrayList<City> getRegionCapital()\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALl the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.Name AS 'CountryName', city.Population, country.Region \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \" ORDER BY country.Region, city.Population DESC \";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"19. All the capital cities in a REGION organised by largest to smallest.\");\n System.out.println(\"Region | Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n cCountry.Region = rset.getString(\"Region\");\n System.out.println(cCountry.Region + \" | \" + cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"19. Failed to get capital city details by region\");\n return null;\n }\n\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public ArrayList<City> getAllCapital() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n // ALL the capital cities in the WORLD organised by largest population to smallest\n String strSelect =\n \"SELECT city.Name, country.name AS 'CountryName', city.Population \"\n + \"FROM country JOIN city \"\n + \"ON country.Code = city.CountryCode \"\n + \"WHERE country.Capital = city.ID \"\n + \"ORDER BY city.population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new capital city if valid.\n // Check one is returned\n ArrayList<City> capCity = new ArrayList<City>();\n System.out.println(\"17. All the capital cities in the WORLD organised by largest population to smallest.\");\n System.out.println(\"Name | Country | Population\");\n while (rset.next())\n {\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n // cCty.CountryCode = rset.getString(\"CountryCode\");\n Country cCountry = new Country();\n cCountry.Name = rset.getString(\"CountryName\");\n System.out.println(cCty.Name + \" | \" + cCountry.Name +\" | \" + cCty.Population );\n capCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return capCity;\n } catch (Exception e) {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"17. Failed to get capital city details\");\n return null;\n }\n }", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "List<MasterZipcode> getByCity(int cityId);", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public List<Address> listAddressByCity(String city)\n {\n @SuppressWarnings(\"unchecked\")\n List<Address> result = this.sessionFactory.getCurrentSession().createQuery(\"from AddressImpl as address where address.city = :city order by address.id asc\").setParameter(\"city\", city).list();\n\n return result;\n }", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "@Override\r\n\tpublic List<City> getAllCitiesInCountry(String countryName) {\n\t\t\r\n\t\tSystem.out.println(\"getAllCitiesInCountry,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\t\tQuery query=session.createQuery(\"from City where country.name = :countryName\");\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn list;\r\n\t}", "@Mapper\npublic interface CityDao {\n\n /**\n * 根据名字查找城市\n * @param cityName\n * @return\n */\n City findByName(@Param(\"cityName\")String cityName);\n\n void saveCity(City city);\n}", "public ArrayList<City> getPopCityCount() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Name, (city.Name) AS cName, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Name, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> PopCityCount = new ArrayList<>();\n System.out.println(\"10. All the cities in a COUNTRY organised by largest population to smallest.\");\n System.out.println(\"Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"cName\");\n cty.Population = rset.getInt(\"Population\");\n cty.District = rset.getString(\"District\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n\n Country cnt = new Country();\n cnt.Name = rset.getString(\"Name\");\n System.out.println(cnt.Name + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n PopCityCount.add(cty);\n }\n return PopCityCount;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "@Override\r\n\tpublic City mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\r\n\t\tCity city = new City();\r\n\t\t\r\n\t\t city.setCity(rs.getString(1));\r\n\t\t \r\n\t\t return city;\r\n\t\t\r\n\t}", "public void getCity(){\n }", "@Override\n\tpublic City findCity(String cityName) {\n\t\treturn cityDao.findByName(cityName);\n\t}", "public ArrayList<City> getACityPopulation(String city)\n {\n try\n {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT DISTINCT(city.Name), city.Population \"\n + \"FROM city \"\n + \"WHERE city.Name = \" + \"'\" + city +\"'\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Check one is returned\n ArrayList<City> nCity = new ArrayList<City>();\n System.out.println(\"31. Population of a city.\");\n System.out.println(\"City | Population \");\n while (rset.next())\n {\n // Create new City (to store in database)\n City cCty = new City();\n cCty.Name = rset.getString(\"Name\");\n cCty.Population = rset.getInt(\"Population\");\n\n System.out.println(cCty.Name + \" | \" + cCty.Population);\n nCity.add(cCty);\n }\n System.out.println(\"\\n\");\n return nCity;\n }\n catch (Exception e)\n {\n // Capital City not found.\n System.out.println(e.getMessage());\n System.out.println(\"30. Failed to get district population\");\n return null;\n }\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "GeneralWeatherReport queryWeatherReport(String cityId);", "void addCity(City city) {\n\n\t\tdatabase.insert(\"city\", null, setCityData(city));\n\t\tdatabase.close();\n\t}", "@Override\r\npublic Collection<Customer> getCustomersByCity(String city) \r\n{ \r\n\tlogger.info(\"---DAO getCustomersByCity \"+city);\r\n\t //String searchClause = email.toLowerCase();\r\n\t //String qryString = \"from City where LOWER(cityName) LIKE :param\";\r\n\t //String qryString = \"from Customer, Address, City where City.city_id = Address.city_id and Address.address_id = Customer.address_id and LOWER(City.city) = :param\";\r\n\t\tString qryString = \"from Customer cu, Address a, City ci where ci.city_id = a.city_id and a.address_id = cu.address_id and LOWER(ci.city) = :param\";\r\n\t \t \r\n\t EntityManager em = emf.createEntityManager();\r\n\t Query qry = em.createQuery(qryString);\r\n\t qry.setParameter(\"param\", city.toLowerCase());//binding parameter to mitigate SQL Injection attacks\r\n\t \r\n\t List resultList = qry.setMaxResults(ProjectConstants.MAX_RESULTS_PAGE)\r\n\t\t\t \t\t\t .getResultList();\r\n\t \r\n\t logger.info(\"------------resultList.size() \"+resultList.size());\r\n\t \r\n\t if(resultList == null || resultList.size() == 0)\r\n\t {\r\n\t\t return null;\r\n\t }\t \t \r\n\t \r\n\t return resultList;\t\r\n}", "List<City> findCities();", "public interface ICityInfoDAO {\n\n List<CityEntity> getList();\n\n List<CityEntity> getHotCities();\n\n void add(CityEntity entity);\n\n List<SuburbEntity> getSuburbsByCityID(int cityid);\n}", "public List<City> getAll() throws Exception;", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void searchAreaCity(Connection connection, String city) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT hotel_name, branch_id FROM Hotel_Address WHERE city = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setCity(city);\n pStmt.setString(1, getCity());\n\n try {\n\n System.out.printf(\" Hotels in %s:\\n\", getCity());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { e.printStackTrace(); }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }", "List<City> getCityList(Integer countryId)throws EOTException;", "public void setCity(String city);", "public City getCity() {\n return city;\n }", "@AutoEscape\n\tpublic String getCity();", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "@Override\r\n\tpublic List<City> getAllCitiesInState(String stateName, String countryName) {\n\t\tSystem.out.println(\"getAllCitiesInCountry,stateName,countryName\");\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tList<City> clist=new ArrayList<City>();\r\n\t\t\r\n\t\tList<State> list=new ArrayList<State>();\r\n\t\t\r\n\t\t//List<City> clist = this.sessionFactory.getCurrentSession().createCriteria(Country.class)\r\n\t // .add(Restrictions.eq(\"name\",countryName)).list().get(0);\r\n\t\t//null pointer exception\r\n\t\tQuery query = session.createQuery(\"from City c where c.country.name=:countryName and c.district= :stateName\");\r\n\t\t\r\n\t\t//select * from city c, state p, country q where p.StateName='Andhra Pradesh' and q.name='india';\r\n\t\t\r\n\t\t//Query query = session.createQuery(\"from State p, Country q where q.name=:countryName and c.district= :p.stateName and p!=null and c.district!=null\");\r\n\t\t\r\n\t\tquery.setParameter(\"stateName\", stateName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tclist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\treturn clist;\r\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> getCustomerByCity(String city) {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"city\",city)).list();\r\n\t}", "public interface SimpleCityDao {\n\n void insertWithIdGenerate(SimpleCity simpleCity);\n\n void insert(SimpleCity simpleCity);\n\n void update(SimpleCity simpleCity);\n\n void deleteById(Long id);\n\n SimpleCity findById(Long id);\n}", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public ArrayList<City> getCityPopCon() {\n try {\n // Create an SQL statement\n Statement stmt = con.createStatement();\n // Create string for SQL statement\n String strSelect =\n \"SELECT country.Continent, city.Name, city.Population, city.District, city.CountryCode\"\n +\" FROM city\"\n +\" INNER JOIN country ON city.CountryCode = country.Code\"\n +\" ORDER BY country.Continent, city.Population DESC\";\n // Execute SQL statement\n ResultSet rset = stmt.executeQuery(strSelect);\n // Return new city if valid.\n // Check one is returned\n ArrayList<City> CityPopCon = new ArrayList<>();\n System.out.println(\"8. All the cities in a CONTINENT organised by largest population to smallest.\");\n System.out.println(\"Continent | Name | Country | District | Population\");\n while (rset.next()) {\n // Create new Country/City (to store in database)\n City cty = new City();\n cty.Name = rset.getString(\"Name\");\n cty.CountryCode = rset.getString(\"CountryCode\");\n cty.District = rset.getString(\"District\");\n cty.Population = rset.getInt(\"Population\");\n\n Country cnt = new Country();\n cnt.Continent = rset.getString(\"Continent\");\n System.out.println(cnt.Continent + \" | \" + cty.Name + \" | \" + cty.CountryCode + \" | \" + cty.District + \" | \" + cty.Population);\n CityPopCon.add(cty);\n }\n return CityPopCon;\n } catch (Exception e) {\n // City not found.\n System.out.println(e.getMessage());\n System.out.println(\"Failed to get city details\");\n return null;\n }\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public String getCity() {\n return city;\n }", "@Override\n\tpublic List<VenueCity> listVenueCity() {\n\t\treturn eventDao.listVenueCity();\n\t}", "public String getCity() {\n return City;\n }", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "@Override\n\tpublic List<String> getAdmcodeByCity(String city) {\n\t\treturn this.counDAO.selectAdmcodeByCity(city);\n\t}", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}" ]
[ "0.6503546", "0.64376485", "0.6367405", "0.63649356", "0.634075", "0.63072133", "0.62891984", "0.6287993", "0.6287993", "0.62833244", "0.62785953", "0.6273202", "0.62627476", "0.6257269", "0.62457776", "0.6241267", "0.62292033", "0.6207846", "0.61673534", "0.61591995", "0.61279964", "0.61266774", "0.61137044", "0.6105892", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6095176", "0.6091409", "0.60817635", "0.60788226", "0.6077373", "0.6077373", "0.60738444", "0.6073543", "0.60696936", "0.60482097", "0.6034984", "0.6032586", "0.6032586", "0.60219884", "0.6016628", "0.60009825", "0.60009605", "0.60001427", "0.60001427", "0.60001427", "0.60001427", "0.59864104", "0.59704727", "0.59554225", "0.59554225", "0.59547335", "0.59394157", "0.5930214", "0.5925586", "0.5924985", "0.59169894", "0.59159386", "0.5909759", "0.5903078", "0.59008557", "0.5897958", "0.5897958", "0.5897958", "0.5896634", "0.58916146", "0.5890948", "0.58894193", "0.588511", "0.58722794", "0.58663017", "0.5864697", "0.586152", "0.58533245", "0.5848271", "0.5840741", "0.5839478", "0.5839478", "0.58344686", "0.58244574", "0.58082134", "0.58082134", "0.5803667", "0.579916", "0.5790576", "0.57894003", "0.57850397", "0.57731235", "0.57731235", "0.57731235", "0.57730556", "0.57724714", "0.57669497", "0.5766457", "0.5764866", "0.57638067", "0.5752417", "0.57404053" ]
0.0
-1
Constructs an instance of TypeCheckException with the specified detail message.
public TypeCheckException(String msg) { super(msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeException(String msg) {\n super(msg);\n }", "public TypeConversionException(String message) {\n super(message);\n }", "public TypeException() {\n }", "public VerifyException(String message) {\n\t\tsuper(message);\n\t}", "public TypeException(String msg, Throwable ex) {\n super(msg,ex);\n }", "public JDBFException (String message, Object type){\r\n super(Messages.format(message, type));\r\n }", "public ValidationException(String msg) {\n\t\tsuper(msg);\n\t}", "public void testConfigurationExceptionCtor1_Detail() {\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message here.\n assertEquals(\"Equal error message expected.\", TEST_MESSAGE, test.getMessage());\n }", "public NotValidException(String message) {\r\n super(message);\r\n }", "@Test\n public void testConstructorWithMessage()\n {\n final LoaderException e = new LoaderException(\"Custom message\");\n assertEquals(\"Custom message\", e.getMessage());\n }", "public InvalidProjectTypeException (String message) {\r\n \t\tsuper(message);\r\n \t}", "public void testConstructorWithMessage() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", null, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "public UnderflowException(String message) {\n super(message);\n }", "public MyException(String message)\n { super(message); }", "public TypeConversionException(String message, Throwable cause) {\n super(message, cause);\n }", "public void testCtor2Accuracy() {\n ContestEligibilityValidatorException exception = new ContestEligibilityValidatorException(MESSAGE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Error message is not properly propagated to super class.\", MESSAGE, exception\n .getMessage());\n }", "public IncorrectType58119e() {\n }", "public CompilationException(String message) {\n\t\tsuper(message);\n\t}", "public VelocityEmailException(String msg, Throwable nested)\n {\n super(msg, nested);\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public ByteArrayConversionException(String message) {\n super(message);\n }", "public AbstractCodeGenException(final String message) {\n super(message);\n }", "public TwoDAReadException(String message) { super(message); }", "public UnknownReportTypeException(String message) {\r\n super(message);\r\n }", "public ClustererFactoryException(String msg, String classname) {\n super(msg, classname);\n }", "public TechnicalException(final String message) {\n super(message);\n }", "public void testConstructorWithMessageAndCause() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", null, exception.getProblemRejectReason());\r\n }", "public AssertionFailedException(Exception ex) {\n/* 63 */ super(Messages.getString(\"AssertionFailedException.0\") + ex.toString() + Messages.getString(\"AssertionFailedException.1\"));\n/* */ }", "public EmailException(String msg)\n {\n super(msg);\n }", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public FormatException(String message) {\r\n\t\tsuper(message);\r\n\t}", "public InvalidArtifactException(final String msg) {\r\n super(msg);\r\n }", "public DuplicateRecordException(String msg){\n\t\tsuper(msg);\n\t}", "public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }", "public TechnicalException(String message) {\r\n super(message);\r\n }", "public VelocityEmailException(String msg)\n {\n super(msg);\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public DuplicateCouponTypeException(String message)\n\t{\n\t\tsuper(message);\n\t}", "public DuplicateCouponTypeException(String message)\n\t{\n\t\tsuper(message);\n\t}", "public DataConversionException(String msg) {\n super(msg);\n }", "public ArgumentException(String msg) {\n super(msg);\n }", "public ConverterException(String message) {\n super(message);\n this.cause = null;\n }", "public ValidationException(String msgKey) {\r\n\t\tsuper(getMessageValue(msgKey));\r\n\t}", "public ItemInvalidoException(String msg) {\r\n super(msg);\r\n }", "RAMTypeException(String message) {\n super(message);\n }", "public static FailureClass of(Class<? extends Message> value) {\n return new FailureClass(checkNotNull(value));\n }", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "GitletException(String msg) {\n super(msg);\n }", "public SearchException(String msg) {\n super(msg);\n }", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}", "public static ValidationException from(BindException exception) {\n return new ValidationException(collectErrorMessages(exception.getAllErrors()));\n }", "public ValidationFailure(String message) {\n this.message = message;\n }", "public InstrumenterException(String message) {\r\n super(message);\r\n }", "public IncorrectInputException(String message) {\r\n super(message);\r\n }", "public CoderException(String message) {\n super(message);\n }", "public void testConfigurationExceptionCtor2_Error() {\n Throwable cause = new Error();\n\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE, cause);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message and cause here.\n assertNotNull(\"Error message expected.\", test.getMessage());\n assertEquals(\"Equal inner cause expected.\", cause, test.getCause());\n }", "public JavaException(@Nullable String message)\r\n\t{\r\n\t\tsuper(message);\r\n\t}", "public void testConfigurationExceptionCtor2_Exception() {\n Throwable cause = new Exception();\n\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE, cause);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message and cause here.\n assertNotNull(\"Error message expected.\", test.getMessage());\n assertEquals(\"Equal inner cause expected.\", cause, test.getCause());\n }", "public notHumanBeingException(String message){// Message parameted created\n super(message);\n \n }", "static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }", "public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }", "public TDLProException(String message)\n {\n super(message);\n }", "public MyMoneyException(String msg) {\r\n\t\tsuper(msg);\r\n\t}", "public DslException(String message) {\n\t\tsuper(message);\n\t}", "public EmployeeException(String message) {\n\t\tsuper(message);\n\t}", "public JDBFException (String message){\r\n super(Messages.message(message));\r\n }", "public MessageParseException() {\n }", "public ValidationException(String userMessage, String logMessage) {\r\n super(userMessage, logMessage);\r\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public void testCtor4Accuracy() {\n ContestEligibilityValidatorException exception =\n new ContestEligibilityValidatorException(MESSAGE, CAUSE);\n assertNotNull(\"Unable to instantiate ContestEligibilityValidatorException.\", exception);\n assertEquals(\"Error message is not properly propagated to super class.\", MESSAGE, exception\n .getMessage());\n assertEquals(\"Cause is not properly propagated to super class.\", CAUSE, exception.getCause());\n }", "public CollisionSnakeException(String message){\n\n super(message);\n }", "public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}", "public InvalidModelException(String message) {\n super(message);\n }", "public APIException(String message) {\n\t\tsuper(message, null);\n\t}", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "public OLMSException(String message) {\r\n super(message);\r\n }", "public BadArrayException(String exceptionMsg) \r\n {\r\n super(exceptionMsg); // Pass on to parent exception constructor\r\n }", "public InvalidDatumException(String message) {\n \n super(message);\n }", "public BadMessageException(final String message) {\r\n\t\tsuper(message);\r\n\t}", "public static ShieldDiagnostic build(final LogLevel level, final String message) {\r\n\t\tif (level == null || message == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"Can not build a ShieldDiagnostic with null log level or message.\");\r\n\t\t}\r\n\t\tShieldDiagnostic diag = new ShieldDiagnostic();\r\n\t\tdiag.level = level;\r\n\t\tdiag.message = message;\r\n\t\t//diag.exception = null;\r\n\t\treturn diag;\r\n\t}", "public CompilerMessage(MessageKind messageKind_, Exception exception_) {\r\n this((SourceRange)null, messageKind_, exception_); \r\n }", "protected abstract BuildFailureException newBuildFailureException(int errorCount);", "public DuplicateSensorException(String message){\n super(message);\n }", "public ShieldException(String msg) {\n super(msg);\n }", "public DukeException(String msg) {\n super(msg);\n }", "public SMSLibException() {}", "public DimensionalityMismatchException(\n String msg)\n {\n super(msg);\n }", "public InvalidFileFormatException(String message){\n super(message);\n }", "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }", "public ErrorInfo(String details) {\n this.details = details;\n this.unhandledException = true;\n this.code = ERROR.toString();\n }", "public InvalidTaskTypeException(String errorMessage) {\n super(errorMessage);\n }", "public ClustererFactoryException(String msg) {\n super(msg);\n mClassname = this.DEFAULT_NAME;\n }", "public SysException(String message) {\r\n super(message);\r\n\r\n }", "private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}", "public ParsingException(String message) {\n super(message);\n }", "public PropertyNotDefinedException(String message) {\n super(message);\n }", "public Error(String message) {\r\n \tsuper(message);\r\n \t}", "public Neo4jException(String message) {\n this(\"N/A\", message);\n }" ]
[ "0.63989216", "0.5979457", "0.58518934", "0.58037126", "0.57915723", "0.5695851", "0.55850303", "0.5578942", "0.5501505", "0.549896", "0.543954", "0.5412094", "0.5395827", "0.53681266", "0.53244555", "0.5281776", "0.52687943", "0.5250086", "0.52337915", "0.52322", "0.522473", "0.521778", "0.52116686", "0.51951224", "0.51922435", "0.5168875", "0.51650965", "0.5160518", "0.5159769", "0.5154122", "0.51440626", "0.51415175", "0.5131542", "0.5128929", "0.5128839", "0.5125985", "0.5124627", "0.5116028", "0.5107272", "0.5107272", "0.5103058", "0.5082402", "0.50745016", "0.5064531", "0.50630784", "0.5054448", "0.5048387", "0.50393826", "0.5035693", "0.5033529", "0.503099", "0.50243866", "0.5020499", "0.5018772", "0.501274", "0.5012126", "0.5011318", "0.5007668", "0.5004242", "0.50034666", "0.50004405", "0.49979958", "0.49919456", "0.49900895", "0.49816647", "0.4969491", "0.49669948", "0.4964523", "0.4963082", "0.4962794", "0.49610007", "0.4956964", "0.49519336", "0.49486777", "0.49471793", "0.49420014", "0.49386397", "0.4935968", "0.49323592", "0.49307302", "0.49259433", "0.4925206", "0.4922487", "0.49224243", "0.49182948", "0.4917402", "0.49159586", "0.4910393", "0.49082485", "0.4904496", "0.4895232", "0.48914632", "0.48885965", "0.48856467", "0.48811194", "0.48748213", "0.4858705", "0.48583513", "0.4853779", "0.48530427" ]
0.7600417
0
kwdikos paketou (Sindromi) private Subscription subscr;
public Client() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createSubscription(Subscription sub);", "private void Inscrire() {\n\t\t\r\n\t\tSystem.out.println(\"inscription\");\r\n }", "public SubscriptionId getSubscription(SubscriptionForm subscriptionForm);", "public String subscribe() throws SaaSApplicationException,\n IllegalArgumentException, IOException {\n\n String subscriptionId = model.getSubscription().getSubscriptionId();\n SubscriptionStatus status;\n String outcome = null;\n if (!isServiceAccessible(model.getService().getKey())) {\n redirectToAccessDeniedPage();\n return BaseBean.MARKETPLACE_ACCESS_DENY_PAGE;\n }\n try {\n rewriteParametersAndUdas();\n VOSubscription rc = getSubscriptionService().subscribeToService(\n model.getSubscription(), model.getService().getVO(),\n Collections.emptyList(),\n model.getSelectedPaymentInfo(),\n model.getSelectedBillingContact(),\n subscriptionsHelper.getVoUdaFromUdaRows(\n getModel().getSubscriptionUdaRows()));\n model.setDirty(false);\n menuBean.resetMenuVisibility();\n if (rc == null) {\n ui.handleProgress();\n outcome = OUTCOME_PROCESS;\n } else {\n status = rc.getStatus();\n getSessionBean()\n .setSelectedSubscriptionId(rc.getSubscriptionId());\n getSessionBean().setSelectedSubscriptionKey(rc.getKey());\n\n ui.handle(\n status.isPending() ? INFO_SUBSCRIPTION_ASYNC_CREATED\n : INFO_SUBSCRIPTION_CREATED,\n subscriptionId, rc.getSuccessInfo());\n\n // help the navigation to highlight the correct navigation item\n menuBean.setCurrentPageLink(MenuBean.LINK_SUBSCRIPTION_USERS);\n\n outcome = OUTCOME_SUCCESS;\n }\n\n conversation.end();\n\n } catch (NonUniqueBusinessKeyException e) {\n // if subscription name already existed redirect to page\n // confirmation with error message\n ui.handleError(null, SUBSCRIPTION_NAME_ALREADY_EXISTS,\n new Object[] { subscriptionId });\n outcome = SUBSCRIPTION_CONFIRMATION_PAGE;\n } catch (ObjectNotFoundException e) {\n // if service has been deleted in the meantime, give the\n // inaccessible error message\n if (e.getDomainObjectClassEnum()\n .equals(DomainObjectException.ClassEnum.SERVICE)) {\n ui.handleError(null, ERROR_SERVICE_INACCESSIBLE);\n } else {\n ConcurrentModificationException ex = new ConcurrentModificationException();\n ex.setMessageKey(ERROR_SERVICE_CHANGED);\n ExceptionHandler.execute(ex);\n }\n }\n\n return outcome;\n }", "public double getSubscription() {\n\t return subscriptions;\n\t}", "com.google.cloud.commerce.consumer.procurement.v1.Subscription getSubscription();", "public String getShopCostumerSubscription()\n\t{\n\t\treturn m_shopCostumerSubscription;\n\t}", "public ArrayList getSubscriptions(){\n\t return subscriptions;\n\t}", "@Override\n public void onSubscribe(Subscription s) {\n s.request(10);\n\n // Should not produce anymore data\n s.request(10);\n }", "public Subscription() {\n System.out.println(\"create new subscription\");\n }", "void subscribe();", "public final void setSub(final Subscriber sub)\r\n {\r\n this.sub_ = sub;\r\n }", "private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app\")\n .getReference(\"users/\"+user.getUid()+\"/subscriptions\");\n\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot dataSnapshot) {\n mSubscriptions.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n Subscription subscription = snapshot.getValue(Subscription.class);\n\n savedSubs.add(subscription);\n mSubscriptions.add(subscription);\n }\n\n adapter.notifyDataSetChanged();\n\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) {\n // TODO\n }\n });\n }", "SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);", "public String getSubscriptionDescription() {\n return this.subscriptionDescription;\n }", "public static void subscriptions() {\n\t\ttry {\n\t\t\tList<Subscription> subscriptions = PlatformClient\n\t\t\t\t\t.subscriptions(getUser());\n\t\t\trender(subscriptions);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get subscriptions : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}", "@Override\n\tpublic int getSubcount(int subAccountId) {\n\t\t\n\t\tSession session = sessionFactory.openSession();\n\t\t\n\t\tTypedQuery<Subscribe> query = session.createQuery(\"select s from Subscribe s where s.subscriber.kullaniciid= :id\");\n\t\t\n\t\tquery.setParameter(\"id\",subAccountId);\n\t\t\n\t\tList<Subscribe> list = query.getResultList();\n\t\t\n\t\n\t\t\n\t\tsession.close();\n\t\t\n\t\treturn list.isEmpty() ? 0 : list.size();\n\t}", "void addNewSubscription(Subscription newSubscription);", "String subscriptionId();", "Subscriptions() {\n // Will get filled in with set methods\n }", "public Subject getSubject(){\n\t\treturn sub;\n\t}", "Collection<Subscription> getSubscriptions();", "void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);", "public DefaultListModel getSubscribers()\r\n\t{\r\n\t\treturn subscription;\r\n\t}", "@Override\n\tpublic List<Subscribe> getSubList(int subAccountId) {\n\t\t\n\t\t\n\t\t\n\t\tList<Subscribe> subList= null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tTypedQuery<Subscribe> query = session.createQuery(\"select s from Subscribe s where s.subscriber.kullaniciid= :subId\");\n\t\t\t\n\t\t\tquery.setParameter(\"subId\", subAccountId);\n\t\t\t\n\t\t\tsubList = query.getResultList();\n\t\t\t\n\t\t\n\t\t\t\n\t\t\tsession.close();\n\t\t\t\n\t\t\treturn subList;\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\n\t\t\treturn subList;\n\t\t}\n\t\t\n\t\t\n\t\n\t}", "protected SubscriptionsStore getSubscriptions() {\n return subscriptions;\n }", "private void getSubscriptionDetails() {\n\t\t\tsubcription = db.getAllSubcription(Integer.toString(login_id),subId);\n\t\t\tfor (int i = 0; i < subcription.size(); i++) {\n\t\t\t\tsubcriptionID = subcription.get(i).getSubcriptionId();\n\t\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subcriptionID);\n\t\t\t\tcertificateKey = subcription.get(i).getCertificateKey();\n\t\t\t\tLog.d(\"certificateKey inASYNTASK******************\", \"\" + certificateKey);\n\t\t\t\tpKeyPassword = subcription.get(i).getPassword();\n\t\t\t\tLog.d(\"pKeyPassword inASYNTASK******************\", \"\" + pKeyPassword);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t}\n\t \n\t\n\t\t}", "String getSubscriptionId();", "public final Subscriber getSub()\r\n {\r\n return this.sub_;\r\n }", "void subscribe(String id);", "public SiacTRecapitoSoggetto() {\n\t}", "boolean hasSubscription();", "Subscriber getSubscriber(Service service);", "public String getSub() {\n return sub;\n }", "private void getSubscripcionesReclamo(final String id){ //private String getSubscripcionesReclamo(final String id)\n peticion = new StringRequest(Request.Method.POST, WebService.urlGetSubscripciones,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n Log.d(\"Respuesta servidor\", response);\n try {\n JSONArray jsonArray = new JSONArray(response);\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject subsJson = jsonArray.getJSONObject(i);\n int cantSubs = subsJson.getInt(\"COUNT(*)\");\n String cantidad = subsJson.getString(\"COUNT(*)\");\n Log.d(\"Cantidad de suscriptos\",String.valueOf(cantSubs));\n //textSuscriptos.setText(cantidad);\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"error_servidor\", error.toString());\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> parametros = new HashMap<>();\n parametros.put(\"id_reclamo\", id);\n parametros.put(\"subscriptores\",\"2\");\n return parametros;\n }\n };\n peticion.setRetryPolicy(new DefaultRetryPolicy(0, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n //Creación de una cola de solicitudes\n RequestQueue requestQueue = Volley.newRequestQueue(getContext()); //getActivity()\n //Agregar solicitud a la cola\n requestQueue.add(peticion);\n }", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable p1) {\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic boolean checkSubscribe(int subAccountId, int subScribeId) {\n\t\t\n\t\t\n\t\tSubscribe sub= null;\n\t\t\n\t\ttry {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tTypedQuery<Subscribe> query = session\n\t\t\t\t\t.createQuery(\" select s from Subscribe s where s.subscriber.kullaniciid= :scribe AND s.subaccount.kullaniciid= :account \");\n\t\t\tquery.setParameter(\"scribe\", subScribeId);\n\t\t\t\n\t\t\tquery.setParameter(\"account\",subAccountId);\n\t\t\tsub = query.getSingleResult();\n\t\t\t\n\t\t\tsession.close();\n\t\t\t\n\t\t\t\n\t\t\treturn sub != null;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"Hatanın kaynagı \"+e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n\n\t\t\n\t\t\n\t}", "@Override\n public String getSubscription() {\n if (this.basicLeft == 0)\n return super.getSubscription();\n else {\n this.basicLeft--;\n return \"Basic\";\n }\n }", "private void getSubscription(RoutingContext routingContext) {\n LOGGER.debug(\"Info: getSubscription method started\");\n HttpServerRequest request = routingContext.request();\n HttpServerResponse response = routingContext.response();\n String domain = request.getParam(JSON_DOMAIN);\n String usersha = request.getParam(JSON_USERSHA);\n String alias = request.getParam(JSON_ALIAS);\n String subsId = domain + \"/\" + usersha + \"/\" + alias;\n JsonObject requestJson = new JsonObject();\n String instanceID = request.getHeader(HEADER_HOST);\n requestJson.put(SUBSCRIPTION_ID, subsId);\n requestJson.put(JSON_INSTANCEID, instanceID);\n String subHeader = request.getHeader(HEADER_OPTIONS);\n String subscrtiptionType =\n subHeader != null && subHeader.contains(SubsType.STREAMING.getMessage())\n ? SubsType.STREAMING.getMessage()\n : SubsType.CALLBACK.getMessage();\n requestJson.put(SUB_TYPE, subscrtiptionType);\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n\n if (requestJson != null && requestJson.containsKey(SUB_TYPE)) {\n JsonObject jsonObj = requestJson.copy();\n jsonObj.put(JSON_CONSUMER, authInfo.getString(JSON_CONSUMER));\n Future<JsonObject> subsReq = subsService.getSubscription(jsonObj, databroker, database);\n subsReq.onComplete(subHandler -> {\n if (subHandler.succeeded()) {\n LOGGER.info(\"Success: Getting subscription\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n subHandler.result().toString());\n } else {\n LOGGER.error(\"Fail: Bad request\");\n processBackendResponse(response, subHandler.cause().getMessage());\n }\n });\n } else {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData, MSG_SUB_TYPE_NOT_FOUND);\n }\n }", "public interface Subscription {\n /**\n * Returns true if this resource's attributes have been loaded. If this\n * method returns {@code false}, calls to attribute getter methods on this\n * instance will make an implicit call to {@code load()} to retrieve the\n * value.\n */\n boolean isLoaded();\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet.\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see #load(GetSubscriptionAttributesRequest)\n */\n boolean load();\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet.\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see GetSubscriptionAttributesRequest\n */\n boolean load(GetSubscriptionAttributesRequest request);\n\n /**\n * Makes a call to the service to load this resource's attributes if they\n * are not loaded yet, and use a ResultCapture to retrieve the low-level\n * client response\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @return Returns {@code true} if the resource is not yet loaded when this\n * method was invoked, which indicates that a service call has been\n * made to retrieve the attributes.\n * @see GetSubscriptionAttributesRequest\n */\n boolean load(GetSubscriptionAttributesRequest request,\n ResultCapture<GetSubscriptionAttributesResult> extractor);\n\n /**\n * Gets the value of the Arn identifier. This method always directly returns\n * the identifier and never involves a service call.\n */\n String getArn();\n\n /**\n * Gets the value of the TopicArn identifier. This method always directly\n * returns the identifier and never involves a service call.\n */\n String getTopicArn();\n\n /**\n * Gets the value of the Attributes attribute. If this resource is not yet\n * loaded, a call to {@code load()} is made to retrieve the value of the\n * attribute.\n */\n Map<String, String> getAttributes();\n\n /**\n * Retrieves the <code>Topic</code> resource referenced by this resource.\n */\n Topic getTopic();\n\n /**\n * Performs the <code>SetAttributes</code> action.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see SetSubscriptionAttributesRequest\n */\n void setAttributes(SetSubscriptionAttributesRequest request);\n\n /**\n * Performs the <code>SetAttributes</code> action and use a ResultCapture to\n * retrieve the low-level client response.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see SetSubscriptionAttributesRequest\n */\n void setAttributes(SetSubscriptionAttributesRequest request,\n ResultCapture<Void> extractor);\n\n /**\n * The convenient method form for the <code>SetAttributes</code> action.\n *\n * @see #setAttributes(SetSubscriptionAttributesRequest)\n */\n void setAttributes(String attributeName, String attributeValue);\n\n /**\n * The convenient method form for the <code>SetAttributes</code> action.\n *\n * @see #setAttributes(SetSubscriptionAttributesRequest, ResultCapture)\n */\n void setAttributes(String attributeName, String attributeValue,\n ResultCapture<Void> extractor);\n\n /**\n * Performs the <code>Delete</code> action.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see UnsubscribeRequest\n */\n void delete(UnsubscribeRequest request);\n\n /**\n * Performs the <code>Delete</code> action and use a ResultCapture to\n * retrieve the low-level client response.\n *\n * <p>\n * The following request parameters will be populated from the data of this\n * <code>Subscription</code> resource, and any conflicting parameter value\n * set in the request will be overridden:\n * <ul>\n * <li>\n * <b><code>SubscriptionArn</code></b>\n * - mapped from the <code>Arn</code> identifier.\n * </li>\n * </ul>\n *\n * <p>\n *\n * @see UnsubscribeRequest\n */\n void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);\n\n /**\n * The convenient method form for the <code>Delete</code> action.\n *\n * @see #delete(UnsubscribeRequest)\n */\n void delete();\n\n /**\n * The convenient method form for the <code>Delete</code> action.\n *\n * @see #delete(UnsubscribeRequest, ResultCapture)\n */\n void delete(ResultCapture<Void> extractor);\n}", "messages.Facademessages.Subscribe getSubscribe();", "void unsubscribe(Subscription subscription);", "@Test\r\n\tpublic void aTestValidSubscribe() {\r\n\t\tbroker.subscribe(intSub);\r\n\t\tbroker.subscribe(unreadSub);\r\n\t\tbroker.subscribe(pIntSub);\r\n\t}", "IPolicySubscriber getSubscriber();", "public RhSubsidioBean ()\n {\n }", "public void subscribeNewsLetter()\n\t{\n\t\trefApplicationGenericUtils.checkForElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//scroll till the new letter section\n\t\trefApplicationGenericUtils.scrollToViewElement(objectRepository.get(\"TaxonomyPage.SubscribeNewsLetter\"), \"SubscribeNewsLetter\");\n\t\t\n\t\t\n\t\t//Click on the subscribe\n\t\t\n\t\t\n\t}", "public SubscriptionRecord() {\n super(Subscription.SUBSCRIPTION);\n }", "public void setShopCostumerSubscription(String shopCostumerSubscription)\n\t{\n\t\tm_shopCostumerSubscription = shopCostumerSubscription;\n\t}", "public String getSubs(List<Channel> subs)\n {\n subs.clear();\n return accessData.getSubSequential(subs);\n }", "@Override\n public Subscription getSubscription(String companyId, String topic) {\n Subscription subscription = new Subscription();\n subscription.setCallbackUrl(env.getProperty(\"subscription.callbackUrl\"));\n subscription.setSendLogisticsObjectBody(Boolean.valueOf(env.getProperty(\"subscription.sendLogisticsObjectBody\")));\n subscription.setSubscribeToStatusUpdates(Boolean.valueOf(env.getProperty(\"subscription.subscribeToStatusUpdates\")));\n subscription.setSecret(env.getProperty(\"subscription.secret\"));\n subscription.setCacheFor(Objects.requireNonNull(env.getProperty(\"subscription.cacheFor\")));\n return subscription;\n }", "public void subscribeToCovRequest() {\n try {\n DeviceService.localDevice.send(bacnetDevice, new SubscribeCOVRequest(new UnsignedInteger(1), getObjectIdentifier(), Boolean.TRUE, new UnsignedInteger(0))).get();\n LOG.info(\"Subscription @: '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n } catch (BACnetException e) {\n LOG.warn(\"Can't subscribe : '\" + getObjectIdentifier() + \"' on: \" + bacnetDevice.getObjectIdentifier());\n }\n\n }", "public Subscription toSubscription(SOAPEnvelope envelope)\n throws InvalidMessageException, InvalidExpirationTimeException {\n Subscription subscription = null;\n OMElement notifyToElem;\n if (envelope == null) {\n log.error(\"No SOAP envelope was provided.\");\n throw new BuilderException(\"No SOAP envelope was provided.\");\n }\n OMElement elem = null;\n if (envelope.getBody() != null) {\n elem = envelope.getBody().getFirstChildWithName(SUBSCRIBE_QNAME);\n }\n if (elem != null) {\n OMElement deliveryElem = elem.getFirstChildWithName(DELIVERY_QNAME);\n if (deliveryElem != null) {\n notifyToElem = deliveryElem.getFirstChildWithName(NOTIFY_TO_QNAME);\n if (notifyToElem != null) {\n String ep = BuilderUtils.getEndpointFromWSAAddress(\n notifyToElem.getFirstElement());\n if (ep != null) {\n subscription = new Subscription();\n subscription.setEventSinkURL(ep);\n }\n } else {\n log.error(\"NotifyTo element not found in the subscription message.\");\n throw new InvalidMessageException(\n \"NotifyTo element not found in the subscription message.\");\n }\n } else {\n log.error(\"Delivery element is not found in the subscription message.\");\n throw new InvalidMessageException(\n \"Delivery element is not found in the subscription message.\");\n }\n\n OMElement filterElem = elem.getFirstChildWithName(FILTER_QNAME);\n if (subscription != null && filterElem != null) {\n OMAttribute dialectAttribute = filterElem.getAttribute(ATT_DIALECT);\n if (dialectAttribute != null && dialectAttribute.getAttributeValue() != null) {\n subscription.setEventFilter(\n new EventFilter(dialectAttribute.getAttributeValue(),\n filterElem.getText().trim()));\n } else {\n log.error(\"Error in creating subscription. Filter dialect not defined.\");\n throw new BuilderException(\n \"Error in creating subscription. Filter dialect not defined.\");\n }\n } else if (subscription == null) {\n log.error(\"Error in creating subscription.\");\n throw new BuilderException(\"Error in creating subscription.\");\n }\n OMElement expiryElem = elem.getFirstChildWithName(EXPIRES);\n if (expiryElem != null) {\n Calendar calendarExpires;\n try {\n String expiryText = expiryElem.getText().trim();\n if (expiryText.startsWith(\"P\")) {\n calendarExpires = Calendar.getInstance();\n Duration duration = ConverterUtil.convertToDuration(expiryText);\n calendarExpires.add(Calendar.YEAR, duration.getYears());\n calendarExpires.add(Calendar.MONTH, duration.getMonths());\n calendarExpires.add(Calendar.DAY_OF_MONTH, duration.getDays());\n calendarExpires.add(Calendar.HOUR_OF_DAY, duration.getHours());\n calendarExpires.add(Calendar.MINUTE, duration.getMinutes());\n calendarExpires.add(Calendar.SECOND, (int)duration.getSeconds());\n } else {\n calendarExpires = ConverterUtil.convertToDateTime(expiryText);\n }\n } catch (Exception e) {\n log.error(\"Error converting the expiration date.\", e);\n throw new InvalidExpirationTimeException(\n \"Error converting the expiration date.\", e);\n }\n Calendar calendarNow = Calendar.getInstance();\n if (calendarNow.before(calendarExpires)) {\n subscription.setExpires(calendarExpires);\n } else {\n log.error(\"The expiration time has passed.\");\n throw new InvalidExpirationTimeException(\"The expiration time has passed.\");\n }\n }\n\n OMElement scriptElement = elem.getFirstChildWithName(new QName(EventingConstants.WSE_EXTENDED_EVENTING_NS, EventingConstants.EVENTING_EXECUTABLE_SCRIPT_ELEMENT));\n if (scriptElement != null) {\n subscription.getProperties().put(EventingConstants.EVENTING_EXECUTABLE_SCRIPT_ELEMENT, scriptElement.getText());\n }\n } else {\n log.error(\"Subscribe element is required as the payload of the subscription message.\");\n throw new InvalidMessageException(\n \"Subscribe element is required as the payload of the subscription message.\");\n }\n return subscription;\n }", "public abstract SubscribePolicy getIncSubscribePolicy();", "public void setSubcodigo(java.lang.String subcodigo) {\n this.subcodigo = subcodigo;\n }", "public messages.Facademessages.Subscribe getSubscribe() {\n return subscribe_;\n }", "public void mo65331a(BaseSubscribe baseSubscribe) {\n String str;\n super.mo65331a((Object) baseSubscribe);\n this.f48013a.setText(baseSubscribe.title);\n if (!CollectionUtils.m83433a(baseSubscribe.authors)) {\n this.f48014b.setText(baseSubscribe.authors.get(0).name);\n }\n TextView textView = this.f48015c;\n textView.setText(baseSubscribe.sectionCount + \" 节\");\n this.f48016h.setImageURI(ImageUrlUtils.m83727a(baseSubscribe.tabArtwork, ImageUtils.EnumC16920a.SIZE_XL));\n this.f48018j.setVisibility(4);\n this.f48019k.setVisibility(8);\n this.f48021m.setVisibility(8);\n if (baseSubscribe.isColumn() && !baseSubscribe.isManga()) {\n this.f48017i.mo70773a(mo84913v().getString(R.string.b88), baseSubscribe.mediaIcon);\n } else if (baseSubscribe.isTraining()) {\n this.f48017i.mo70773a(((TrainingSubscribe) baseSubscribe).subCategoryCn, baseSubscribe.mediaIcon);\n } else if (baseSubscribe.isMagazine()) {\n this.f48017i.setIconAndText(mo84913v().getString(R.string.b98, baseSubscribe.mediaIcon));\n } else {\n if (baseSubscribe.isManga()) {\n this.f48017i.mo70773a(mo84913v().getString(R.string.b99), baseSubscribe.mediaIcon);\n } else {\n this.f48017i.mo70773a(mo84913v().getString(R.string.b8o), baseSubscribe.mediaIcon);\n this.f48021m.setOnClickListener(new View.OnClickListener((LiteratureSubscribe) baseSubscribe, baseSubscribe) {\n /* class com.zhihu.android.app.market.p1168ui.viewholder.purchased.$$Lambda$MarketPurchasedSubscribeVH$_RMvn1GlUfrID1dwcjfRfj496rA */\n private final /* synthetic */ LiteratureSubscribe f$1;\n private final /* synthetic */ BaseSubscribe f$2;\n\n {\n this.f$1 = r2;\n this.f$2 = r3;\n }\n\n public final void onClick(View view) {\n MarketPurchasedSubscribeVH.this.m67165a(this.f$1, this.f$2, view);\n }\n });\n }\n TextView textView2 = this.f48015c;\n textView2.setText(baseSubscribe.sectionCount + \" 章\");\n if (baseSubscribe instanceof AutoPurchasable) {\n this.f48018j.setVisibility(0);\n this.f48019k.setVisibility(0);\n if (((AutoPurchasable) baseSubscribe).getAutoPurchase()) {\n str = mo84913v().getString(R.string.b8q);\n } else {\n str = mo84913v().getString(R.string.b8r);\n }\n this.f48020l.setText(str);\n this.f48019k.setOnClickListener(this);\n }\n }\n MemberIconUtils.m64761a(this.f48013a, baseSubscribe.title, Boolean.valueOf(TextUtils.isEmpty(baseSubscribe.tagBeforeTitle)), MemberIconUtils.m64759a(mo84913v(), baseSubscribe.tagBeforeTitle), 0.8f);\n this.f48023o.mo71002a(m67166b(baseSubscribe), 17);\n }", "public void removeSubscriptions(String removeSub){\n\t subscriptions.remove(removeSub);\n\t}", "public Date getSubscribetime() {\n return subscribetime;\n }", "public SubscriptionsInner(Retrofit retrofit, ApiManagementClientImpl client) {\n this.service = retrofit.create(SubscriptionsService.class);\n this.client = client;\n }", "public void subscribe() {\n Fitness.getRecordingClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .subscribe(DataType.TYPE_STEP_COUNT_CUMULATIVE)\r\n .addOnCompleteListener(\r\n new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) {\r\n if (task.isSuccessful()) {\r\n Log.i(TAGFit, \"Successfully subscribed!\");\r\n } else {\r\n Log.w(TAGFit, \"There was a problem subscribing.\", task.getException());\r\n }\r\n }\r\n });\r\n }", "public interface Subscription {\n /**\n * Calling this will send the event to the subscribed service\n * @param event the event to transmit to the subscribed service\n */\n boolean onEvent(Event event);\n\n /**\n * Returns a stream of all subscribeRequests that are transmitted by the subbed service\n * @return a stream of subscribeRequests transmitted by subbed service\n */\n Observable<SubscribeRequest> getSubscribeRequestStream();\n\n /**\n * This completable will complete when the subscription is terminated for some reason (most likely a connection termination)\n * @return a completable that will complete when the subscription is terminated\n */\n Completable getCompletable();\n}", "CustomerSmsRuleDetail getCurrentSubscription(String customerId)throws EOTException;", "IPolicySubscriber withSubscriber();", "public String getPrescriptions() {\r\n\t\treturn prescriptions;\r\n\t}", "public void addSubscriptions(String subscribeTo){\n\t subscriptions.add(subscribeTo);\n\t}", "com.flipkart.vbroker.proto.TopicSubscription getTopicSubscription();", "private String removeResourceURL(String sbSubsrequst) {\n String sbrequestString = \"\";\n try {\n JSONObject objJSONObject = new JSONObject(sbSubsrequst);\n JSONObject objSubscriptionRequest = (JSONObject) objJSONObject.get(\"subscription\");\n objSubscriptionRequest.remove(\"resourceURL\");\n\n sbrequestString = objSubscriptionRequest.toString();\n } catch (JSONException ex) {\n log.error(\"Error in removeResourceURL\" + ex.getMessage());\n throw new AxiataException(\"POL0299\", \"\", new String[]{\"Error registering subscription\"});\n }\n return \"{\\\"subscription\\\":\" + sbrequestString + \"}\";\n }", "public List<String> subscriptions() {\n return this.subscriptions;\n }", "public interface SubscriptionSession extends Session {\n\n /**\n * Closes this subscription session without closing the subscription\n * registered on the document repository.\n * The same subscription can be accessed later by another subscription session.\n */\n public void close();\n\n}", "public List<Subscription> subscriptions() {\n return this.subscriptions;\n }", "public String getSubject() {\n/* 286 */ return getCOSObject().getString(COSName.SUBJ);\n/* */ }", "boolean hasSubscribe();", "public List<Prescription> getPrescription(){\n return prescriptions;\n }", "public void llenarComboSeccion() {\t\t\n\t\tString respuesta = negocio.llenarComboSeccion(\"\");\n\t\tSystem.out.println(respuesta);\t\t\n\t}", "private void readCardForSubStation() {\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"Il seggio ausiliario \"+ip.getHostAddress()+\" non ha inviato il numero della card.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tMessage request, response = new Message();\n\t\tString card;\n\t\tPerson voter = null;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"seggio ausiliario\");\n\t\t\t\n\t\t\tString[] required = {\"card\"};\n\t\t\tClass<?>[] types = {String.class};\n\t\t\trequest.verifyMessage(Protocol.processCardReq, required, types, \"seggio ausiliario\");\n\t\t\tcard = request.getElement(\"card\");\n\t\t\t\n\t\t\t//Si recupera la postazione associata alla card, se esiste\n\t\t\tint postIdx = ((Controller) controller).getPostIdx(card);\n\t\t\t\n\t\t\t//Si verifica se il badge era già associato ad una postazione o se sta venendo usato per crearne una nuova\n\t\t\tif (postIdx == -1) {\n\t\t\t\trequired = new String[]{\"card\", \"voter\"};\n\t\t\t\ttypes = new Class<?>[]{String.class, Person.class};\n\t\t\t\t\n\t\t\t\trequest.verifyMessage(Protocol.processCardReq, required, types, \"seggio ausiliario\");\n\t\t\t\tvoter = request.getElement(\"voter\");\n\t\t\t}\n\t\t\t\n\t\t\tresponse = ((Controller) controller).readCardForSubStation(card, voter);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tresponse.setValue(Protocol.processCardNack);\n\t\t\tresponse.addError(e.getMessage());\n\t\t}\n\t\t\n\t\tlink.write(response.toB64());\n\t}", "void subscribe(Player player);", "public void setSubject(String subj) {\n/* 296 */ getCOSObject().setString(COSName.SUBJ, subj);\n/* */ }", "public interface MovieSubscription {\n\n void subscribe(double amount);\n}", "int getSubscriptionCount();", "public void setPrescriptions(String prescriptions) {\r\n\t\tthis.prescriptions = prescriptions;\r\n\t}", "@Override\n \tpublic URI getSubscriberURI() {\n \t\treturn null;\n \t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}", "@Override\n public void onUnsubscribe(String s, int i) {\n }", "@Override\n\tpublic void onSubscribe(String arg0, int arg1) {\n\t\t\n\t}", "public String toString() {\n\t return \"Number of Subscriptions: \"+ subscriptions;\n\t}", "@Override\r\n public void setSubject(ISubject sub) {\n this.topic=sub;\r\n\r\n }", "public SOAPEnvelope fromSubscription(Subscription subscription) {\n SOAPEnvelope message = factory.getDefaultEnvelope();\n EndpointReference subscriptionManagerEPR =\n new EndpointReference(subscription.getEventSinkURL());\n subscriptionManagerEPR.addReferenceParameter(new QName(EventingConstants.WSE_EVENTING_NS,\n EventingConstants.WSE_EN_IDENTIFIER, EventingConstants.WSE_EVENTING_PREFIX),\n subscription.getId());\n OMNamespace eventingNamespace = factory.createOMNamespace(EventingConstants.WSE_EVENTING_NS,\n EventingConstants.WSE_EVENTING_PREFIX);\n OMElement subscribeResponseElement = factory.createOMElement(\n EventingConstants.WSE_EN_SUBSCRIBE_RESPONSE, eventingNamespace);\n try {\n OMElement subscriptionManagerElement = EndpointReferenceHelper.toOM(\n subscribeResponseElement.getOMFactory(),\n subscriptionManagerEPR,\n new QName(EventingConstants.WSE_EVENTING_NS,\n EventingConstants.WSE_EN_SUBSCRIPTION_MANAGER,\n EventingConstants.WSE_EVENTING_PREFIX),\n AddressingConstants.Submission.WSA_NAMESPACE);\n subscribeResponseElement.addChild(subscriptionManagerElement);\n OMElement expiresElement =\n factory.createOMElement(EventingConstants.WSE_EN_EXPIRES, eventingNamespace);\n if (subscription.getExpires() != null) {\n factory.createOMText(expiresElement,\n ConverterUtil.convertToString(subscription.getExpires()));\n } else {\n factory.createOMText(expiresElement, \"*\");\n }\n subscribeResponseElement.addChild(expiresElement);\n message.getBody().addChild(subscribeResponseElement);\n } catch (AxisFault axisFault) {\n log.error(\"Unable to create subscription response\", axisFault);\n throw new BuilderException(\"Unable to create subscription response\", axisFault);\n }\n return message;\n }", "@Override\n public String getSubscriber(String subscriptionId) throws APIManagementException {\n return apiMgtDAO.getSubscriberName(subscriptionId);\n }", "public TWxSubs(String id, String appid, String openid, Date subscribetime, String nickname, String userLoginName, String deptCode, String sex, String cityCode, String countryCode, String provinceCode, String language, String headimgurl, String unionid, Date createTime, Date updateTime, String parentId) {\n this.id = id;\n this.appid = appid;\n this.openid = openid;\n this.subscribetime = subscribetime;\n this.nickname = nickname;\n this.userLoginName = userLoginName;\n this.deptCode = deptCode;\n this.sex = sex;\n this.cityCode = cityCode;\n this.countryCode = countryCode;\n this.provinceCode = provinceCode;\n this.language = language;\n this.headimgurl = headimgurl;\n this.unionid = unionid;\n this.createTime = createTime;\n this.updateTime = updateTime;\n this.parentId = parentId;\n }", "@Override\n public void onSubscribe(String s, int i) {\n }", "private void doSubscribe(IoSession session, MessageProtocol request) throws Exception {\n \tbyte[] msg = request.getMessage();\n \t\n \tif (msg == null) {\n \t\t// 用户名不能为空: 06 ff 01 00 01 00 00\n \t\tLOGGER.warn(\"username required.\");\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{1}, (short) 0));\n \t\treturn;\n \t} \n\n\t\tString user = new String(msg, MessageConstants.CHARSET_UTF8);\n\t\t\n\t\t// step 2\n\t\tint channel = request.getChannel();\n\t\tSet<IoSession> receivers = channels.get(channel);\n\t\t\n\t\tif (receivers == null) {\n\t\t\t// 订阅频道不存在: 06 ff 01 00 02 00 00\n\t\t\tLOGGER.warn(\"channel not found: \" + channel);\n\t\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{2}, (short) 0));\n\t\t\treturn;\n\t\t}\n \t\n\t\t// step 3\n\t\tsynchronized (users) {\n \tif (users.contains(user)) {\n \t\t// 用户名已存在: 06 ff 01 00 03 00 00\n \t\tLOGGER.warn(\"user found: \" + user);\n \t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{3}, (short) 0));\n \t\treturn;\n \t} else {\n \t\tusers.add(user);\n \t}\n\t\t}\n\t\t\n\t\t// step 4\n\t\tsession.setAttribute(MessageConstants.KEY_USERNAME, user);\n\t\tsession.setAttribute(MessageConstants.KEY_CHANNEL, channel);\n\t\treceivers.add(session);\n\t\t\n\t\tLOGGER.info(\"doSubscribe: user = \" + user + \", users = \"+ users.size() + \", channel = \" + channel + \", receivers = \" + receivers.size());\n\t\t// 返回订阅成功命令: 06 ff 01 00 00 00 00\n\t\tdoResponse(session, new MessageProtocol((byte) 0x06, MessageConstants.MESSAGE_VERSION, MessageConstants.MESSAGE_SUBSCRIBE, (byte) 0, new byte[]{0}, (short) 0));\n }", "public String[] getSubscribedLines() {// otan patas unsubscribe sto menu , print lista me ta lines pou eisai subscribed\n int length = subscribedLists.size();\n\n if (length == 0) {\n return null;\n } else {\n String[] array = new String[length];\n\n int i = 0;\n\n for (Map.Entry<Integer, String> pair : databaseLineIDToTitle.entrySet()) {\n if (subscribedLists.contains(pair.getKey())) {\n array[i++] = String.format(\"%03d - %s \\n \", pair.getKey(), pair.getValue());\n }\n }\n\n return array;\n }\n }", "private void subscribeHandler(MqttSubscribeMessage subscribe) {\n\n final int messageId = subscribe.messageId();\n LOG.info(\"SUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_SUBSCRIBE\n\n List<AmqpTopicSubscription> topicSubscriptions =\n subscribe.topicSubscriptions().stream().map(topicSubscription -> {\n return new AmqpTopicSubscription(topicSubscription.topicName(), topicSubscription.qualityOfService());\n }).collect(Collectors.toList());\n\n AmqpSubscribeMessage amqpSubscribeMessage =\n new AmqpSubscribeMessage(this.mqttEndpoint.clientIdentifier(),\n topicSubscriptions);\n\n this.ssEndpoint.sendSubscribe(amqpSubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n\n List<MqttQoS> grantedQoSLevels = null;\n if (delivery.getRemoteState() == Accepted.getInstance()) {\n\n // QoS levels requested are granted\n grantedQoSLevels = amqpSubscribeMessage.topicSubscriptions().stream().map(topicSubscription -> {\n return topicSubscription.qos();\n }).collect(Collectors.toList());\n\n // add accepted topic subscriptions to the local collection\n amqpSubscribeMessage.topicSubscriptions().stream().forEach(amqpTopicSubscription -> {\n this.grantedQoSLevels.put(amqpTopicSubscription.topic(), amqpTopicSubscription.qos());\n });\n\n } else {\n\n // failure for all QoS levels requested\n grantedQoSLevels = new ArrayList<>(Collections.nCopies(amqpSubscribeMessage.topicSubscriptions().size(), MqttQoS.FAILURE));\n }\n\n this.mqttEndpoint.subscribeAcknowledge(messageId, grantedQoSLevels);\n\n LOG.info(\"SUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }", "List<Subscription> findActiveSubscriptions(User user);", "@Test\r\n public void testAdminSaveSubscriptionAuthorized() throws Exception {\r\n saveJoePublisher();\r\n saveSamSyndicator();\r\n DatatypeFactory fac = DatatypeFactory.newInstance();\r\n List<Subscription> subs = new ArrayList<Subscription>();\r\n Subscription s = new Subscription();\r\n\r\n s.setMaxEntities(10);\r\n s.setBrief(false);\r\n GregorianCalendar gcal = new GregorianCalendar();\r\n gcal.setTimeInMillis(System.currentTimeMillis());\r\n gcal.add(Calendar.HOUR, 1);\r\n s.setExpiresAfter(fac.newXMLGregorianCalendar(gcal));\r\n s.setSubscriptionFilter(new SubscriptionFilter());\r\n s.getSubscriptionFilter().setFindBusiness(new FindBusiness());\r\n s.getSubscriptionFilter().getFindBusiness().setFindQualifiers(new FindQualifiers());\r\n s.getSubscriptionFilter().getFindBusiness().getFindQualifiers().getFindQualifier().add(UDDIConstants.APPROXIMATE_MATCH);\r\n s.getSubscriptionFilter().getFindBusiness().getName().add(new Name(UDDIConstants.WILDCARD, null));\r\n subs.add(s);\r\n Holder<List<Subscription>> items = new Holder<List<Subscription>>();\r\n items.value = subs;\r\n publisher.adminSaveSubscription(authInfoJoe(), TckPublisher.getSamPublisherId(), items);\r\n for (int i = 0; i < items.value.size(); i++) {\r\n tckSubscription.deleteSubscription(authInfoSam(), items.value.get(i).getSubscriptionKey());\r\n }\r\n\r\n deleteJoePublisher();\r\n deleteSamSyndicator();\r\n\r\n }" ]
[ "0.62940985", "0.6116114", "0.6078219", "0.60343593", "0.6004265", "0.59684765", "0.5950392", "0.59151286", "0.58611053", "0.5829165", "0.5770954", "0.5752774", "0.5747134", "0.57449394", "0.5697824", "0.5677087", "0.56691724", "0.5635211", "0.5624634", "0.5619354", "0.5615731", "0.56055313", "0.56000227", "0.55984336", "0.5576093", "0.55606544", "0.55363864", "0.5529176", "0.55208004", "0.55205643", "0.55183804", "0.5514469", "0.55086654", "0.55007976", "0.54995704", "0.54864514", "0.548528", "0.547017", "0.5438593", "0.54275864", "0.54213405", "0.54102874", "0.5408365", "0.5396013", "0.5379384", "0.53756547", "0.5374129", "0.53695697", "0.5363178", "0.53630185", "0.5352457", "0.5344274", "0.53290075", "0.5318128", "0.53156984", "0.5313113", "0.53089315", "0.5307015", "0.5300347", "0.52991444", "0.52856123", "0.5285523", "0.52852327", "0.52701455", "0.52699375", "0.5268922", "0.526553", "0.52614266", "0.52595246", "0.5238636", "0.52376235", "0.5233732", "0.5227215", "0.52202624", "0.52168775", "0.5216212", "0.5212472", "0.5207716", "0.5207639", "0.5205066", "0.520234", "0.519598", "0.5188466", "0.5188466", "0.5188466", "0.5188466", "0.5188466", "0.5188466", "0.51879793", "0.518236", "0.51722574", "0.51710355", "0.5169686", "0.516582", "0.51634973", "0.5162665", "0.5155188", "0.51535535", "0.51523066", "0.51398045", "0.51324767" ]
0.0
-1
should not happen if (node == null) return;
private int visit(TreeNode node, Map<Integer, Integer> map, int maxCount) { int newCount = map.getOrDefault(node.val,0) + 1; map.put(node.val, newCount); return Math.max(newCount, maxCount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "static int nullNode() {\n\t\treturn -1;\n\t}", "@Test\n\tpublic void takingNullNodeTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeNode(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}", "@Override\n public boolean isMissingNode() { return false; }", "private static void checkNode(Node node){\n if(node != null){\n if(node.getSnames() == null || node.getSnames().isEmpty()){\n if(node.getName() != null){\n node.addSearchName(node.getName());\n }\n }\n }\n }", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "private boolean checkHaveThisNode(int index) {\n\t\treturn this.array[index] == null;\n\t}", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "@Override\r\n public Object getValueFromNode(Node node_p) throws Exception\r\n {\n return null;\r\n }", "@Test(enabled = true, dependsOnMethods = {\"remove\"}, expectedExceptions = NullPointerException.class)\n\tpublic void getNullOnNull() {\n\t\tassert stack.getLast().getNext() == node5;\n\t}", "@Test\n\t public void testGetNode() {\n\t\tDGraph g1 = null;\n\t\tDGraph g = initFactory(g1);\n\t\tg.removeNode(1);\n\t\tg.removeNode(2);\n\t\t//g.removeNode(4);\n\t\tassertTrue(g.getNode(1)==null);\n\t\tassertTrue(g.getNode(2)==null);\n\t\tassertTrue(g.getNode(3)!=null);\n\t}", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "protected boolean traverseThisNode(iNamedObject node)\n\t{\n\t\treturn true;\n\t}", "private BSTNode<E> successor(BSTNode<E> node) {\n\t\treturn null;\n\t}", "void clickOnEmptyNode(Node node);", "@Override\n public Node getNode() throws ItemNotFoundException, ValueFormatException,\n RepositoryException {\n return null;\n }", "boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "private int size(Node node) {\n if (node == null) return 0;\n else return node.size;\n }", "static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}", "boolean hasNode();", "boolean hasNode();", "Node getNode();", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public ParseTreeNode visit(MemberNode memberNode) {\n return null;\n }", "@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "@Override\r\n public Node getNodeFromValue(Object value_p, Document doc_p) throws Exception\r\n {\n return null;\r\n }", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "@Override\n public Node getParentNode() {\n return null;\n }", "private BinaryNode<E> _findNode(BinaryNode<E> node, E e) {\n\t\tif (node == null)\n\t\t\treturn null;\n\t\telse if (comparator.compare(e, node.getData()) < 0) // *****CHANGE THIS for HW#4*****\n\t\t\treturn _findNode(node.getLeftChild(), e);\n\t\telse if (comparator.compare(e, node.getData()) > 0) // *****CHANGE THIS for HW#4*****\n\t\t\treturn _findNode(node.getRightChild(), e);\n\t\telse // found it!\n\t\t\treturn node;\n\t}", "boolean treeFinished(treeNode root){\n\t\treturn (root.parent == null && root.lc == null && root.rc == null);\n\t}", "boolean getTreeNodeIdNull();", "public Node getNode() {\n\t\treturn null;\n\t}", "@Override\n public String visit(BlockStmt n, Object arg) {\n return null;\n }", "public static boolean isPlaceHolder(BinaryTreeNode node) {\n\n\t\tif (node == null){\n\t\t return true;}\n\n\t\telse {\n\t\t return false;\n\t\t}\n\n\n\n}", "public static boolean isValidNode(Node node) {\r\n\t\tif (node == null ||\r\n\t\t\t\tnode.getCreatedByPrincipalId() == null ||\r\n\t\t\t\tnode.getCreatedOn() == null ||\r\n\t\t\t\tnode.getETag() == null ||\r\n\t\t\t\tnode.getId() == null ||\r\n\t\t\t\tnode.getModifiedByPrincipalId() == null ||\r\n\t\t\t\tnode.getModifiedOn() == null ||\r\n\t\t\t\tnode.getName() == null ||\r\n\t\t\t\tnode.getNodeType() == null) \r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "public ParseTreeNode visit(LevelNode levelNode) {\n return null;\n }", "private BinaryNode<E> _delete(BinaryNode<E> node, E e) {\n\t\tif (node == null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (comparator.compare(e, node.getData()) < 0) // <, so go left\n\t\t\tnode.setLeftChild(_delete(node.getLeftChild(), e));// recursive call\n\t\telse if (comparator.compare(e, node.getData()) > 0) // >, so go right\n\t\t\tnode.setRightChild(_delete(node.getRightChild(), e));// recursive call\n\t\telse { // FOUND THE NODE\n\t\t\tfoundNode = true;\n\t\t\tnode = _deleteNode(node);\n\t\t}\n\t\treturn node;\n\t}", "private Node() {\n // Start empty.\n element = null;\n }", "public void checkNodes() {\n // Don't do anything when you check the nodes. This nodes is built by\n // when the setTarget method is called.\n }", "@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}", "private boolean removeLastReturned(Node node) {\n if (node == null) {\n return false;\n }\n if (removeLastReturned(node.rightChild)) {\n return true;\n }\n if (!queue.contains(node.value)) {\n return AVLTree.this.remove(node.value);\n }\n return removeLastReturned(node.leftChild);\n }", "public ParseTreeNode visit(AxisNode axis) {\n return null;\n }", "@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}", "private boolean isLeafNode() {\r\n return (this.left == null && this.right == null);\r\n }", "@Override\r\n\t\tpublic boolean isSameNode(Node other)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "boolean isEmpty(){\n return root == null;\n }", "protected SearchNode<T> getSearchNode( Node<T> node ) {\n\t\treturn node == null ? null : searchNodes.get( node.getNodeId() );\n\t}", "private Position<E> position(Node<E> node) {\n\t\tif (node == header || node == trailer)\n\t\t\treturn null;\n\t\treturn node;\n\t}", "public abstract Node getNode();", "private void traverse(Node<T> node) {\r\n\t\tif (null == node.next) {\r\n\t\t\tSystem.out.println(String.valueOf(node.data) + \"--->END\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tSystem.out.print(String.valueOf(node.data) + \"--->\");\r\n\t\t\ttraverse(node.next);\r\n\t\t}\r\n\t}", "public Node getRootNode() throws Exception;", "private int height(Node node) {\n return node == null ? 0 : node.height;\n }", "@Override\n public String visit(ReturnStmt n, Object arg) {\n return null;\n }", "public boolean dumpNode ()\r\n {\r\n return dumpNode(0);\r\n }", "private static boolean isLeaf(Node node)\n\t{\n\t\treturn node.leftChild == null && node.rightChild == null;\n\t}", "@Override\n public NodeList getChildNodes() {\n return null;\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "private Node<E> validate(Position<E> p) throws IllegalArgumentException {\n\t\tif (!(p instanceof Node)) throw new IllegalArgumentException(\"Invalid p\");\n\t\tNode<E> node = (Node<E>) p;\n\t\tif (node.getNext() == null)\n\t\t\tthrow new IllegalArgumentException(\"p is no longer in the list\");\n\t\treturn node;\n\t}", "@Test\n public void test1() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(576,\"org.apache.commons.collections4.iterators.NodeListIteratorEvoSuiteTest.test1\");\n NodeListIterator nodeListIterator0 = null;\n try {\n nodeListIterator0 = new NodeListIterator((Node) null);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // node must not be null!\n //\n }\n }", "protected void notifyChildRemoval(FONode node) {\n //nop\n }", "@Test\n public void whenTreeIsBlankThanHasNextIsFalse() {\n assertThat(this.tree.iterator().hasNext(), is(false));\n }", "@Override\n public String visit(ThisExpr n, Object arg) {\n return null;\n }", "void traverse(BTNode node) {\n if (node == null){\n return;\n }\n traverse(node.left);\n traverse(node.right);\n }", "@Override\r\n public void nodeActivity() {\n }", "@Override\r\n\t\tpublic String getNodeValue() throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "private boolean ifLeaf(Node myT) {\r\n return myT != null && myT.left == null && myT.right == null;\r\n }", "Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}", "private T remove(Node<T> node) {\n if (node == sentinel) {\n return null;\n }\n\n Node<T> next = node.next;\n Node<T> prev = node.prev;\n\n prev.next = next;\n next.prev = prev;\n size--;\n\n return node.value;\n }", "@Test\n void shouldNotSeeNonExistingNode() throws Exception\n {\n try ( KernelTransaction tx = beginTransaction() )\n {\n assertFalse( tx.dataRead().nodeExists( 1337L ) );\n }\n }", "static int nodeCount(Node node) {\n\t\tNode current = node;\n\t\tif(current == null) {\n\t\t\treturn 0;\n\t\t} else if(current.next == null) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 1 + nodeCount(current.next);\n\t\t}\n\t}", "@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }", "@Override\n\tpublic boolean tryAdvance(Consumer<? super Node> action) {\n\t\tif(root!=null) {\n\t\t\taction.accept(root);\n\t\t\tif (list.size()!=0)\n\t\t\t\tthis.root = this.list.remove(0);\n\t\t\telse this.root = null;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected T nextUnvisited() {\r\n\t\tfor (T node: getNodes()) {\r\n\t\t\tif (!visited.contains(node)) {\r\n\t\t\t\treturn node;\r\n\t\t\t}\r\n\t\t} \r\n\t\t\treturn null;\r\n\t}", "boolean isEmpty(){\r\n\t\t\r\n\t\treturn root == null;\r\n\t}", "@Override\n\tpublic ContentNodeMetadata getNodeMetadata() {\n\t\treturn null;\n\t}", "private void checkValidTree(Node node) {\n node.walk(store::updateObject);\n assertTrue(service.validateTree(node));\n }", "public boolean isRealNode();", "public boolean isRealNode();", "Node currentNode();", "public boolean isEmpty(){\n return firstNode == null;\n }", "public boolean isEmpty(){\n return firstNode == null;\n }", "@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}", "private Node caseNoChildren(Node deleteThis) {\r\n\r\n Node parent = deleteThis.getParent();\r\n\r\n if (parent == null) {\r\n this.root = null; // Kyseessä on juuri\r\n return deleteThis;\r\n }\r\n if (deleteThis == parent.getLeft()) {\r\n parent.setLeft(null);\r\n } else {\r\n parent.setRight(null);\r\n }\r\n return deleteThis;\r\n }", "private List<Node> returnAllNodes(Node node) {\n List<Node> listOfNodes = new ArrayList<Node>();\n if (node != null) {\n listOfNodes.add(node);\n for (int i = 0; i < listOfNodes.size(); ++i) {\n Node n = listOfNodes.get(i);\n List<Node> children = n.children;\n if (children != null) {\n for (Node child : children) {\n if (!listOfNodes.contains(child)) {\n listOfNodes.add(child);\n }\n }\n }\n }\n }\n return listOfNodes;\n }", "public Node getNode(int position)throws ListExeption;", "public N getInternalizedNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\t/*\n\t\t\t * This is using a slow method (array search) when it would be nice\n\t\t\t * to be able to get the reference from the Map. However, that would\n\t\t\t * require the use of Jakarta Common Collections and extending their\n\t\t\t * HashMap in order to do that... because it's normally impossible\n\t\t\t * to get a Key back out of a Map without iterating over the Entries\n\t\t\t * :/\n\t\t\t */\n\t\t\treturn nodeList.get(nodeList.indexOf(node));\n\t\t}\n\t\t// TODO Consider whether to return null or v... ?\n\t\treturn null;\n\t}", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "TMNodeModel nodeContaining(TMNode node) {\n if (this.node == node) {\n return this;\n } else {\n return null;\n }\n }", "@Override\n public Node override(Node node) {\n if (node instanceof Loop) return node;\n if (node instanceof Switch) return node;\n return null;\n }", "@Override\n\tpublic Object visit(ASTRoot node, Object data)\n\t{\n\t\treturn singleChildValid(node, data);\n\t}", "@Override\n public String visit(ExpressionStmt n, Object arg) {\n return null;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}" ]
[ "0.73564625", "0.7187139", "0.68702066", "0.6676758", "0.66342604", "0.6565972", "0.65025574", "0.64698297", "0.6401242", "0.63511723", "0.6335728", "0.6335728", "0.63315785", "0.6307236", "0.6301931", "0.62940615", "0.62869924", "0.62812406", "0.6276375", "0.62763464", "0.62304676", "0.61858827", "0.6178218", "0.6154321", "0.60885346", "0.6086715", "0.6086715", "0.6086292", "0.6067076", "0.6063238", "0.6051963", "0.6031971", "0.6031971", "0.6025221", "0.6022941", "0.60169154", "0.60085315", "0.6001215", "0.5988254", "0.59778625", "0.5971017", "0.5954353", "0.5935825", "0.59206504", "0.5917332", "0.5906143", "0.5894501", "0.5882359", "0.5866393", "0.5865909", "0.58605486", "0.58521825", "0.5850527", "0.58438015", "0.5840356", "0.58371", "0.583645", "0.58330566", "0.58323014", "0.5830896", "0.5824989", "0.5821054", "0.58202773", "0.5817096", "0.5811774", "0.58080596", "0.5795474", "0.5774412", "0.5772947", "0.57709616", "0.5768031", "0.5754529", "0.57532454", "0.574993", "0.5746912", "0.5742708", "0.57360744", "0.5734969", "0.57344276", "0.5732945", "0.57319105", "0.5726975", "0.57256186", "0.57221794", "0.57219946", "0.5718959", "0.5718959", "0.571789", "0.57178813", "0.57178813", "0.5715543", "0.5706577", "0.57024664", "0.5701595", "0.57001036", "0.5690864", "0.56906426", "0.56905603", "0.56780404", "0.5677451", "0.56761825" ]
0.0
-1
Created by ashish on 16052017.
public interface IAccountsView { void onGetDriverStatistics(GetDriverStatisticsResponseModel getDriverStatisticsResponseModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo6081a() {\n }", "@Override\n public void init() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "public void mo55254a() {\n }", "private Rekenhulp()\n\t{\n\t}", "private void initialize() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void init() {\n\t\t\n\t}" ]
[ "0.589207", "0.57918215", "0.5772923", "0.5760965", "0.57458353", "0.569839", "0.5681037", "0.5681037", "0.56756806", "0.56632626", "0.5653282", "0.563914", "0.5603166", "0.5601383", "0.5601383", "0.5601383", "0.5601383", "0.5601383", "0.5598915", "0.5595271", "0.55878866", "0.5566444", "0.5558133", "0.5558107", "0.5552257", "0.5548919", "0.5546272", "0.5519552", "0.55119854", "0.55019224", "0.54980636", "0.5494482", "0.5490548", "0.5487426", "0.5483952", "0.54711646", "0.5468477", "0.54611695", "0.5458103", "0.5458103", "0.5458103", "0.5447005", "0.5447005", "0.5447005", "0.5446355", "0.5442534", "0.5442534", "0.5442534", "0.54316837", "0.54316837", "0.54284483", "0.5419764", "0.5410895", "0.5410895", "0.5408444", "0.5404279", "0.5397991", "0.53926444", "0.5386783", "0.5382593", "0.5382373", "0.5382373", "0.5382373", "0.5382373", "0.5382373", "0.5382373", "0.5382373", "0.5381979", "0.53812397", "0.53774434", "0.53774434", "0.5375974", "0.536258", "0.5361094", "0.53453106", "0.5322034", "0.5313863", "0.5310418", "0.5310418", "0.5310418", "0.5310418", "0.5310418", "0.5310418", "0.5308492", "0.5296914", "0.5283396", "0.5281958", "0.5280804", "0.528014", "0.527146", "0.52674705", "0.526178", "0.5258091", "0.5256545", "0.5256312", "0.5254936", "0.5253755", "0.5253121", "0.5242968", "0.5237738", "0.52374685" ]
0.0
-1
TODO Autogenerated method stub
@Override public void start() { }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void printMenuHeader() { System.out.println("***** CHECKOUT *****"); System.out.print("Enter your credit card number without spaces and press enter if you confirm purchase: "); }
{ "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 getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
String containing either domain name or IP (most likely) string host = 1;
java.lang.String getHost();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "public boolean getGuessHostname();", "String getHostname();", "String getHostname();", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "void host(String host);", "void host(String host);", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "public String getHostname() {\n return this.hostname;\n }", "abstract String getRemoteAddress();", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "public String hostname() {\n return this.hostname;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "Builder hostName(String hostName);", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.69461715", "0.6836255", "0.6815788", "0.66154885", "0.6589264", "0.6589264", "0.64800084", "0.64560264", "0.64560264", "0.6382199", "0.63597417", "0.6359637", "0.6359637", "0.6331934", "0.6331374", "0.6331374", "0.63097495", "0.62707305", "0.62669635", "0.6253718", "0.6234271", "0.62087905", "0.6161785", "0.61171764", "0.6097092", "0.6097016", "0.6075782", "0.6071011", "0.6064612", "0.6036367", "0.60181296", "0.60118556", "0.5999793", "0.5994404", "0.59900147", "0.59878963", "0.5972701", "0.59713984", "0.5970743", "0.59666157", "0.5954111", "0.5942208", "0.59151727", "0.58945876", "0.5886798", "0.58861107", "0.58861107", "0.58638805", "0.58631486", "0.58631486", "0.5841704", "0.58381367", "0.5832858", "0.58266526", "0.582558", "0.5821063", "0.5796068", "0.57846224", "0.57839966", "0.577669", "0.5774017", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57672685", "0.57525235", "0.57381445", "0.57381445", "0.5734428", "0.57238996", "0.5716477", "0.56897086", "0.5676111", "0.56511426", "0.5649555", "0.56328756", "0.5630777", "0.5622164", "0.56201863", "0.56012475", "0.56002456", "0.5596874", "0.559348", "0.5587428", "0.5586158", "0.5580974", "0.5580496", "0.5576496", "0.5574544", "0.5566744", "0.55558604", "0.5544309", "0.5543789", "0.55432457", "0.55336833", "0.55225646" ]
0.7342382
1
String containing either domain name or IP (most likely) string host = 1;
com.google.protobuf.ByteString getHostBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "String getHostname();", "String getHostname();", "public boolean getGuessHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7344322", "0.7344322", "0.69481945", "0.68382776", "0.681766", "0.6616979", "0.6591407", "0.6591407", "0.6481483", "0.64567304", "0.64567304", "0.6384434", "0.6360145", "0.6360145", "0.635989", "0.6334468", "0.6334468", "0.633292", "0.6311417", "0.6271739", "0.6268125", "0.6255035", "0.623566", "0.62108445", "0.6162497", "0.61188453", "0.6098583", "0.60971534", "0.60765725", "0.6073335", "0.6065919", "0.6036549", "0.6020448", "0.60119563", "0.60006666", "0.59960157", "0.5991749", "0.59880984", "0.5974053", "0.59728336", "0.5972558", "0.596962", "0.59558505", "0.59435993", "0.59154916", "0.5896428", "0.58881485", "0.588797", "0.588797", "0.5865161", "0.5864685", "0.5864685", "0.58423674", "0.5840428", "0.58342576", "0.5827358", "0.58254606", "0.582278", "0.57959867", "0.5786117", "0.57856876", "0.5778678", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.57745486", "0.57705724", "0.5753347", "0.5739926", "0.5739926", "0.57360846", "0.5723837", "0.57176906", "0.56918114", "0.5676715", "0.56522596", "0.565113", "0.5633721", "0.56319976", "0.56239605", "0.56197685", "0.5602492", "0.56018573", "0.55973816", "0.55940413", "0.5589139", "0.5588154", "0.55821866", "0.5581378", "0.5578704", "0.5575533", "0.55695266", "0.5557656", "0.5546113", "0.55460715", "0.5545353", "0.5533612", "0.5522993" ]
0.0
-1
int32 port = 2;
int getPort();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "int localPort();", "int getIntegPort();", "public int getPort();", "public int getPort();", "public int getPort();", "Integer destinationPort();", "int getInPort();", "int getInPort();", "void port(int port);", "void port(int port);", "int getS1Port();", "int getPort()\n {\n return port;\n }", "Port getPort1();", "Port getPort2();", "int getSnPort();", "int getSnPort();", "int serverPort ();", "public int getPort(){\n\treturn port;\n }", "int getPort() {\n return port;\n }", "public int getPort() { return port; }", "Integer listeningPort();", "public int getPort(){\n return port;\n }", "int getServicePort();", "String getPort();", "public int getPort()\n {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int getSourcePort();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}", "abstract protected int PortToRunOn();", "public int getPort ()\n {\n return thisPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public int getStandardPort();", "public int getStandardPort();", "public int getPort() {\n return m_port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public int getPort()\n {\n return port;\n }", "int getUdpServerPort();", "public int getPort () {\n return port;\n }", "int getDestinationPort();", "int getDestinationPort();", "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "Port createPort();", "Port createPort();", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public Integer getPort() {\n return port;\n }", "public int getPort()\n {\n return _nodeVRL.getPort(); \n }", "public void setPort(int port);", "public void setPort(int port);", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return this.port;\n }", "public void testSetPort() {\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "@Override\n public int getPortNumber() {\n return 0;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort() {\n return m_Port;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getGnutellaPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "int getResponsePort();", "public Integer getPort() {\n return this.port;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public String getPort(){\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }" ]
[ "0.7981694", "0.7981694", "0.77948284", "0.7770943", "0.7692514", "0.7692514", "0.7692514", "0.75826126", "0.7569563", "0.7569563", "0.7567182", "0.7567182", "0.75252926", "0.74752915", "0.7473951", "0.74195915", "0.73965806", "0.73965806", "0.73914224", "0.7320347", "0.72784877", "0.72714484", "0.72361135", "0.72090876", "0.7186204", "0.71813244", "0.7149996", "0.71437603", "0.7082205", "0.7071852", "0.70631737", "0.7032283", "0.6969328", "0.69563794", "0.6953449", "0.6953449", "0.6939013", "0.69145447", "0.69059056", "0.6898782", "0.68903077", "0.6887411", "0.6887411", "0.6869613", "0.68690664", "0.68690664", "0.6865923", "0.68532807", "0.68532807", "0.6844629", "0.6825677", "0.68231434", "0.68231434", "0.6797127", "0.6797127", "0.6795106", "0.6792747", "0.6782476", "0.67777574", "0.67777437", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6764128", "0.6764128", "0.6764128", "0.6746456", "0.67413306", "0.67125416", "0.6711117", "0.6711117", "0.6703415", "0.6703415", "0.67002505", "0.6694334", "0.6693813", "0.6691582", "0.6691582", "0.6688595", "0.66446584", "0.6642788", "0.6642788", "0.66346264", "0.66250694", "0.66250694", "0.66250694" ]
0.78664035
13
Short alias or acronym of the owner of the node string owner = 3;
java.lang.String getOwner();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.73674804", "0.73674804", "0.73136836", "0.7259146", "0.7220521", "0.7220521", "0.7220521", "0.7220521", "0.7185323", "0.71083075", "0.7072737", "0.7039423", "0.69744754", "0.6971893", "0.6957213", "0.6947755", "0.6937133", "0.6929309", "0.6927399", "0.6927399", "0.69143045", "0.68881726", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68419725", "0.6824368", "0.67927843", "0.6750983", "0.6738466", "0.67257255", "0.67227286", "0.6686221", "0.66321576", "0.6623421", "0.66138047", "0.66060346", "0.6590261", "0.6564375", "0.65506536", "0.65207595", "0.6515069", "0.65148365", "0.6510088", "0.64808685", "0.6471555", "0.6420794", "0.64142746", "0.6379207", "0.63787246", "0.6364156", "0.633916", "0.6337005", "0.63253", "0.6316144", "0.6309129", "0.6296309", "0.62412983", "0.62391937", "0.62391937", "0.6225114", "0.6225114", "0.62173665", "0.6217366", "0.6201546", "0.6201546", "0.61881673", "0.61881673", "0.6187381", "0.6180664", "0.61677676", "0.61544555", "0.61385417", "0.6135294", "0.61343515", "0.6130647", "0.61196953", "0.61196953", "0.6102559", "0.6096309", "0.60936755", "0.60790503", "0.6074482", "0.6068689", "0.605883", "0.602708", "0.601626", "0.6005355", "0.59687734", "0.5962886", "0.59405917", "0.59394646", "0.59394646", "0.58824176", "0.58470654", "0.58470654" ]
0.7562618
1
Short alias or acronym of the owner of the node string owner = 3;
com.google.protobuf.ByteString getOwnerBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.75624436", "0.75624436", "0.73674685", "0.73674685", "0.73135114", "0.7259155", "0.7220412", "0.7220412", "0.7220412", "0.7220412", "0.71854275", "0.7107385", "0.7072446", "0.7039855", "0.69745", "0.6971663", "0.6957016", "0.6947957", "0.6937133", "0.6928899", "0.6927421", "0.6927421", "0.69137985", "0.6887813", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.68416864", "0.68240774", "0.6792147", "0.6751142", "0.67381907", "0.672538", "0.6722452", "0.66857594", "0.66316885", "0.6623537", "0.6614015", "0.6605507", "0.6590815", "0.6564129", "0.6550798", "0.6520697", "0.65148014", "0.65145665", "0.65100604", "0.6480648", "0.6471432", "0.6421095", "0.64133656", "0.637903", "0.6378542", "0.6364204", "0.63390285", "0.63366956", "0.63240486", "0.63162243", "0.6308998", "0.6295335", "0.62413436", "0.6238665", "0.6238665", "0.62245935", "0.62245935", "0.6216607", "0.62165606", "0.62014997", "0.62014997", "0.61874545", "0.61874545", "0.6186491", "0.6179746", "0.61673445", "0.61553425", "0.61389625", "0.6134611", "0.6133012", "0.61305034", "0.6119369", "0.6119369", "0.6101602", "0.60959566", "0.6093224", "0.60790044", "0.6073736", "0.6068137", "0.6057442", "0.60264784", "0.60157347", "0.6004882", "0.5967669", "0.59619635", "0.5939953", "0.59390306", "0.59390306", "0.58816564", "0.58463395", "0.58463395" ]
0.0
-1
Node index within the owner's nodes. Must be 1, 2, or 3 int32 index = 4;
int getIndex();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "entities.Torrent.NodeId getNodes(int index);", "public int getNodeIndexAt(int index)\n {\n if (index < 0 || index > 1)\n {\n throw new IllegalArgumentException();\n }\n \n return this.nodeList[index];\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public abstract int getNeighboursNumber(int index);", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public int getIndex(\n )\n {return index;}", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getIndexNumber(){\n return id;\r\n }", "public final int getIndex(){\n return index_;\n }", "entities.Torrent.NodeIdOrBuilder getNodesOrBuilder(\n int index);", "public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }", "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "int getIndex() {\n\t\treturn index;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n {\n return index;\n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public int getIndex() { return this.index; }", "public int getIndex() {\n return index;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "protected final int getIndex() {\n return index;\n }", "public abstract TreeNode getNode(int i);", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int\ngetNodeIndexMin();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex() {\n return index;\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public int index();", "public int Node() { return this.Node; }", "public int index() {\n\t\treturn this.index;\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "protected abstract int applyGetIndex(CControlManager mgr, CDasherNode node);", "@Override\n\tpublic IOptiuniMeniu getNode(int index) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public Integer getIndex() {\n return index;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "public Integer index() {\n return this.index;\n }", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public int\ngetNodeIndexMax();", "public abstract int getIndex();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "int getParentMonsterIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();" ]
[ "0.75339246", "0.68445903", "0.68303066", "0.676724", "0.66543865", "0.66210306", "0.64914465", "0.6423338", "0.6398588", "0.63719094", "0.6351207", "0.6351207", "0.6348588", "0.6296071", "0.62769955", "0.62769955", "0.62769955", "0.6272955", "0.6239762", "0.6239367", "0.6239367", "0.6237542", "0.6236976", "0.6225267", "0.620879", "0.6204497", "0.6204455", "0.6202584", "0.62021476", "0.6193972", "0.6182871", "0.6173766", "0.6172671", "0.61365", "0.61341333", "0.6133866", "0.61259997", "0.61106217", "0.61102843", "0.6107731", "0.60991114", "0.6094627", "0.60891247", "0.6084035", "0.60780245", "0.6068358", "0.6068358", "0.60576403", "0.60566366", "0.60536134", "0.60536134", "0.60536134", "0.6053457", "0.6045399", "0.60348386", "0.6010429", "0.6010429", "0.6010429", "0.6010429", "0.6010429", "0.6006775", "0.6001797", "0.5998192", "0.5993129", "0.5992057", "0.59877217", "0.59824806", "0.5971198", "0.5958511", "0.5957772", "0.5951139", "0.5946246", "0.5944951", "0.59315735", "0.5920786", "0.59157807", "0.59113544", "0.5908216", "0.5899338", "0.58989716", "0.5898183", "0.5897064", "0.58967406", "0.58916813", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.5887482", "0.588151", "0.5881135", "0.5879728", "0.5879252", "0.5877959", "0.58696955", "0.5863969", "0.586215", "0.586215", "0.586215" ]
0.0
-1
Use NodeId.newBuilder() to construct.
private NodeId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void nodeCreate( long id );", "public String generateNodeId(Node node, String remoteHost, String remoteAddress);", "public Node(final String id) {\n super();\n this.id = id;\n }", "NodeId getNodeId();", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "public UUID originatingNodeId();", "public NodeKey createNodeKey();", "Node(int newId)\n {\n connectedNodes = new ArrayList<Node>();\n id = newId;\n weight = 0;\n }", "public NonceHelperImpl(Node node) {\n\t\tthis.node = node;\n\t}", "public UUID nodeId();", "public Node( String id )\r\n {\r\n initialize(id);\r\n lbl = id;\r\n }", "public NetworkNode(String id, String title, String label, String name, String type, String participant) {\n super();\n this.id = id;\n this.title = title;\n this.label = label;\n this.name = name;\n this.group = type;\n this.type = type;\n this.participant = participant;\n }", "public NodeKey createNodeKeyWithIdentifier( String identifier );", "protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}", "public String myNodeId() {\n\t\tif (nodeId == null) {\n\t\t\tnodeId = UUID.randomUUID();\n\t\t\tLOG.debug(\"My node id=\" + nodeId.toString());\n\t\t}\n\n\t\treturn nodeId.toString();\n\t}", "public Builder setNodeCharacteristicId(\n io.dstore.values.IntegerValue.Builder builderForValue) {\n if (nodeCharacteristicIdBuilder_ == null) {\n nodeCharacteristicId_ = builderForValue.build();\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setNodeCharacteristicId(\n io.dstore.values.IntegerValue.Builder builderForValue) {\n if (nodeCharacteristicIdBuilder_ == null) {\n nodeCharacteristicId_ = builderForValue.build();\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Node(Character charId) {\n this.charId = charId;\n }", "public Builder setNodeCharacteristicId(io.dstore.values.IntegerValue value) {\n if (nodeCharacteristicIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n nodeCharacteristicId_ = value;\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setNodeCharacteristicId(io.dstore.values.IntegerValue value) {\n if (nodeCharacteristicIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n nodeCharacteristicId_ = value;\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Node()\r\n {\r\n initialize(null);\r\n lbl = id;\r\n }", "@Nullable public UUID otherNodeId();", "public entities.Torrent.NodeId.Builder addNodesBuilder() {\n return getNodesFieldBuilder().addBuilder(\n entities.Torrent.NodeId.getDefaultInstance());\n }", "public entities.Torrent.NodeId.Builder getNodeBuilder() {\n\n onChanged();\n return getNodeFieldBuilder().getBuilder();\n }", "public entities.Torrent.NodeId.Builder getNodeBuilder() {\n\n onChanged();\n return getNodeFieldBuilder().getBuilder();\n }", "public Builder setNode(entities.Torrent.NodeId value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n node_ = value;\n onChanged();\n } else {\n nodeBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setNode(entities.Torrent.NodeId value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n node_ = value;\n onChanged();\n } else {\n nodeBuilder_.setMessage(value);\n }\n\n return this;\n }", "private Node(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Node(String name, int port, KeyId id) {\n this(new TNode(name, port, id));\n }", "public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n if (nodeBuilder_ != null) {\n return nodeBuilder_.getMessageOrBuilder();\n } else {\n return node_ == null ?\n entities.Torrent.NodeId.getDefaultInstance() : node_;\n }\n }", "public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n if (nodeBuilder_ != null) {\n return nodeBuilder_.getMessageOrBuilder();\n } else {\n return node_ == null ?\n entities.Torrent.NodeId.getDefaultInstance() : node_;\n }\n }", "Node(long id, String label) {\n this.id = id;\n this.label = label;\n\n inEdges = new HashMap<>();\n outEdges = new HashMap<>();\n }", "void createNode(NodeKey key);", "public io.dstore.values.IntegerValue.Builder getNodeCharacteristicIdBuilder() {\n \n onChanged();\n return getNodeCharacteristicIdFieldBuilder().getBuilder();\n }", "public io.dstore.values.IntegerValue.Builder getNodeCharacteristicIdBuilder() {\n \n onChanged();\n return getNodeCharacteristicIdFieldBuilder().getBuilder();\n }", "public static Node buildBNode(final String id) {\n\t\treturn NodeFactory.createAnon(AnonId.create(id));\n\t}", "public String getId() {\n return _node_id;\n }", "public Builder mergeNode(entities.Torrent.NodeId value) {\n if (nodeBuilder_ == null) {\n if (node_ != null) {\n node_ =\n entities.Torrent.NodeId.newBuilder(node_).mergeFrom(value).buildPartial();\n } else {\n node_ = value;\n }\n onChanged();\n } else {\n nodeBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public Builder mergeNode(entities.Torrent.NodeId value) {\n if (nodeBuilder_ == null) {\n if (node_ != null) {\n node_ =\n entities.Torrent.NodeId.newBuilder(node_).mergeFrom(value).buildPartial();\n } else {\n node_ = value;\n }\n onChanged();\n } else {\n nodeBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public static LabelToNode createScopeByDocumentHash(UUID seed)\n { return new LabelToNode(new FixedScopePolicy(), nodeAllocatorHash(seed)); }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public NetworkNode(String id, String title, String label, String name, String type) {\n super();\n this.id = id;\n this.title = title;\n this.label = label;\n this.name = name;\n this.group = type;\n this.type = type;\n }", "public Builder mergeNodeCharacteristicId(io.dstore.values.IntegerValue value) {\n if (nodeCharacteristicIdBuilder_ == null) {\n if (nodeCharacteristicId_ != null) {\n nodeCharacteristicId_ =\n io.dstore.values.IntegerValue.newBuilder(nodeCharacteristicId_).mergeFrom(value).buildPartial();\n } else {\n nodeCharacteristicId_ = value;\n }\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public Builder mergeNodeCharacteristicId(io.dstore.values.IntegerValue value) {\n if (nodeCharacteristicIdBuilder_ == null) {\n if (nodeCharacteristicId_ != null) {\n nodeCharacteristicId_ =\n io.dstore.values.IntegerValue.newBuilder(nodeCharacteristicId_).mergeFrom(value).buildPartial();\n } else {\n nodeCharacteristicId_ = value;\n }\n onChanged();\n } else {\n nodeCharacteristicIdBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public IdNode(int lineNum, int charNum, String strVal) {\n myLineNum = lineNum;\n myCharNum = charNum;\n myStrVal = strVal;\n \n }", "public io.dstore.values.IntegerValue.Builder getTreeNodeIdBuilder() {\n \n onChanged();\n return getTreeNodeIdFieldBuilder().getBuilder();\n }", "public Builder setTxnid(long value) {\n \n txnid_ = value;\n onChanged();\n return this;\n }", "public Node(){\n this(9);\n }", "public NodeId toNodeId(ExpandedNodeId expandedNodeId)\r\n\t\t\tthrows ServiceResultException {\r\n\t\t// TODO: serverIndex==0 is valid reference to the local server, so it\r\n\t\t// should be accepted as well // jaro\r\n\t\tif (ExpandedNodeId.isNull(expandedNodeId))\r\n\t\t\treturn NodeId.NULL;\r\n\t\tif (!expandedNodeId.isLocal())\r\n\t\t\tthrow new ServiceResultException(\r\n\t\t\t\t\t\"Cannot convert ExpandedNodeId with server index to NodeId\");\r\n\t\tString uri = expandedNodeId.getNamespaceUri();\r\n\t\tif (uri == null)\r\n\t\t\treturn NodeId.get(expandedNodeId.getIdType(), expandedNodeId\r\n\t\t\t\t\t.getNamespaceIndex(), expandedNodeId.getValue());\r\n\t\tint index = this.getIndex(uri);\r\n\t\tif (index < 0)\r\n\t\t\tthrow new ServiceResultException(\r\n\t\t\t\t\t\"Index for uri \\\"\"+uri+\"\\\" not found in NamespaceTable\");\r\n\t\treturn NodeId.get(expandedNodeId.getIdType(), index, expandedNodeId\r\n\t\t\t\t.getValue());\r\n\t}", "public CassandraNode() {\r\n\t\tthis(null, 0);\r\n\t}", "public NodeId getNodeId() {\n return nodeId;\n }", "public String getId() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"n=\");\n\t\tif ( nodeId != null ) {\n\t\t\tbuilder.append(nodeId);\n\t\t}\n\t\tbuilder.append(\";c=\");\n\t\tif ( created != null ) {\n\t\t\tbuilder.append(created);\n\t\t}\n\t\tbuilder.append(\";s=\");\n\t\tif ( sourceId != null ) {\n\t\t\tbuilder.append(sourceId);\n\t\t}\n\t\treturn DigestUtils.sha1Hex(builder.toString());\n\t}", "public String selectNodeId(Node node, String remoteHost, String remoteAddress);", "public String getNodeId() {\r\n return nodeId;\r\n }", "Version create(Identity nodeId);", "public long get_node_id(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0]));\n }", "public entities.Torrent.NodeId getNode() {\n if (nodeBuilder_ == null) {\n return node_ == null ? entities.Torrent.NodeId.getDefaultInstance() : node_;\n } else {\n return nodeBuilder_.getMessage();\n }\n }", "public entities.Torrent.NodeId getNode() {\n if (nodeBuilder_ == null) {\n return node_ == null ? entities.Torrent.NodeId.getDefaultInstance() : node_;\n } else {\n return nodeBuilder_.getMessage();\n }\n }", "public Depot (String id, int node){\r\n this.id=id;\r\n this.node=node;\r\n }", "public String getNodeId() {\n return nodeId;\n }", "public String getNodeId() {\n return nodeId;\n }", "public Long getNodeId() {\n return nodeId;\n }", "public NodeId getId() {\n return id;\n }", "public void createNewId(String id)\n { \n IDNode node=new IDNode(id);\n idReferences.put(id,node);\n }", "Node(int value, String name) {\n this.value = value;\n this.name = name;\n }", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");\n\t\treturn ctx.createChild(ICarrierSet.ELEMENT_TYPE, null, null);\n\t}", "private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }", "NodeId getLeaderId();", "public Node( String id, String label )\r\n {\r\n initialize(id);\r\n if ( label == null ) lbl = id;\r\n else lbl = label;\r\n }", "Node(int ID) {\r\n if (ID < 0)\r\n throw new IllegalArgumentException(ExceptionMessages.NodeWithNegativeIndex.getMessage());\r\n this.ID = ID;\r\n }", "public NetworkNode getNetworkNode(Integer id);", "public node(String ID) {\n\t\t// TODO Auto-generated constructor stub\n\t\tname = ID;\n\t\tcomment_centrality = -1;\n\t\tlike_centrality = -1;\n\t}", "public Node() {\n this.nodeMap = new HashMap<>();\n }", "void addId(String root);", "public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}", "Node(int newId, int newWeight)\n {\n connectedNodes = new ArrayList<Node>();\n id = newId;\n weight = newWeight;\n }", "public String getNodeIdString()\r\n\t{\r\n\t\treturn nodeIdString;\r\n\t}", "public String getNodeId() {\r\n\t\treturn nodeId;\r\n\t}", "public Builder setTreeNodeId(io.dstore.values.IntegerValue value) {\n if (treeNodeIdBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n treeNodeId_ = value;\n onChanged();\n } else {\n treeNodeIdBuilder_.setMessage(value);\n }\n\n return this;\n }", "public DiscoveryPacket(BigInteger networkId) {\n this.networkId = networkId;\n }", "public Node(){}", "public static Node forId(int object) {\n\t\t\treturn nodes.get(object);\n\t\t}", "public NodeKey createNodeKey( String sourceName,\n String identifier );", "io.dstore.values.IntegerValueOrBuilder getTreeNodeIdOrBuilder();", "public String getNodeId() {\n\t\treturn nodeId;\n\t}", "Id createId();", "public SubscriptionId() {\n super();\n }", "public SocketRemoteIdentifier(InetSocketAddress addr) {\n this.addr = addr;\n }", "static String makeNode(String id,\n String function,\n String label) {\n label = label.replace(\"&\", \"&amp;\");\n label = label.replace(\"\\\"\", \"&quot;\");\n label = label.replace(\"'\", \"&apos;\");\n return format(NODE_FMT, id, function, label);\n }", "N getNode(int id);", "public static void setPeerId(){\n Random ran = new Random();\n int rand_id = ran.nextInt(5555555 - 1000000 + 1) + 1000000;\n String peer_id_string = \"GROUP4AREL33t\" + rand_id;\n PEER_ID = peer_id_string.getBytes();\n }", "AtomID ID();", "public DataNodeId getDataNodeId(String hostname, int port);", "public abstract GraphNode<N, E> createNode(N value);" ]
[ "0.66084945", "0.63555783", "0.63201606", "0.6097128", "0.606605", "0.606605", "0.60174537", "0.5995937", "0.59799004", "0.5969441", "0.5938397", "0.5850597", "0.583102", "0.58078367", "0.5800381", "0.5787422", "0.5784763", "0.5784763", "0.5732355", "0.57108355", "0.57108355", "0.5701157", "0.5692704", "0.56910366", "0.5678857", "0.5678857", "0.5663862", "0.5663862", "0.5638567", "0.56259763", "0.55907315", "0.55907315", "0.5588213", "0.55275154", "0.5527042", "0.5527042", "0.55165845", "0.55133635", "0.5509617", "0.5509617", "0.54772204", "0.5467469", "0.5467469", "0.5452473", "0.54358524", "0.54358524", "0.54205656", "0.54205656", "0.54205656", "0.54205656", "0.5401957", "0.54001004", "0.53967214", "0.5381258", "0.5376134", "0.5371491", "0.5362793", "0.534743", "0.534729", "0.5345382", "0.53184396", "0.5313787", "0.5307749", "0.5307749", "0.5306345", "0.52913797", "0.52913797", "0.5288096", "0.5284142", "0.52756226", "0.5261429", "0.52578515", "0.5248462", "0.5244359", "0.52392143", "0.5235509", "0.5234808", "0.52332944", "0.52329063", "0.52303404", "0.52209496", "0.52160776", "0.5211594", "0.5205974", "0.5205573", "0.52002424", "0.5192716", "0.5182095", "0.5171056", "0.5165796", "0.5163269", "0.515677", "0.51515526", "0.5151314", "0.5144385", "0.5139883", "0.51394254", "0.5139074", "0.5137469", "0.51312554" ]
0.6981314
0
String containing either domain name or IP (most likely) string host = 1;
@java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "String getHostname();", "String getHostname();", "public boolean getGuessHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7344322", "0.7344322", "0.69481945", "0.68382776", "0.681766", "0.6616979", "0.6591407", "0.6591407", "0.6481483", "0.64567304", "0.64567304", "0.6384434", "0.6360145", "0.6360145", "0.635989", "0.6334468", "0.6334468", "0.633292", "0.6311417", "0.6271739", "0.6268125", "0.6255035", "0.623566", "0.62108445", "0.6162497", "0.61188453", "0.6098583", "0.60971534", "0.60765725", "0.6073335", "0.6065919", "0.6036549", "0.6020448", "0.60119563", "0.60006666", "0.59960157", "0.5991749", "0.59880984", "0.5974053", "0.59728336", "0.596962", "0.59558505", "0.59435993", "0.59154916", "0.5896428", "0.58881485", "0.588797", "0.588797", "0.5865161", "0.5864685", "0.5864685", "0.58423674", "0.5840428", "0.58342576", "0.5827358", "0.58254606", "0.582278", "0.57959867", "0.5786117", "0.57856876", "0.5778678", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.57745486", "0.57705724", "0.5753347", "0.5739926", "0.5739926", "0.57360846", "0.5723837", "0.57176906", "0.56918114", "0.5676715", "0.56522596", "0.565113", "0.5633721", "0.56319976", "0.56239605", "0.56197685", "0.5602492", "0.56018573", "0.55973816", "0.55940413", "0.5589139", "0.5588154", "0.55821866", "0.5581378", "0.5578704", "0.5575533", "0.55695266", "0.5557656", "0.5546113", "0.55460715", "0.5545353", "0.5533612", "0.5522993" ]
0.5972558
40
String containing either domain name or IP (most likely) string host = 1;
@java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "public boolean getGuessHostname();", "String getHostname();", "String getHostname();", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "void host(String host);", "void host(String host);", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "public String getHostname() {\n return this.hostname;\n }", "abstract String getRemoteAddress();", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "public String hostname() {\n return this.hostname;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "Builder hostName(String hostName);", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7342382", "0.7342382", "0.69461715", "0.6836255", "0.6815788", "0.66154885", "0.6589264", "0.6589264", "0.64800084", "0.64560264", "0.64560264", "0.6382199", "0.63597417", "0.6359637", "0.6359637", "0.6331934", "0.6331374", "0.6331374", "0.63097495", "0.62707305", "0.62669635", "0.6253718", "0.6234271", "0.62087905", "0.6161785", "0.61171764", "0.6097092", "0.6097016", "0.6075782", "0.6071011", "0.6064612", "0.6036367", "0.60181296", "0.60118556", "0.5999793", "0.5994404", "0.59900147", "0.59878963", "0.5972701", "0.59713984", "0.5970743", "0.59666157", "0.5954111", "0.5942208", "0.59151727", "0.58945876", "0.5886798", "0.58861107", "0.58861107", "0.58638805", "0.58631486", "0.58631486", "0.5841704", "0.58381367", "0.5832858", "0.58266526", "0.582558", "0.5821063", "0.5796068", "0.57846224", "0.57839966", "0.577669", "0.5774017", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57672685", "0.57525235", "0.57381445", "0.57381445", "0.5734428", "0.57238996", "0.5716477", "0.56897086", "0.5676111", "0.56511426", "0.5649555", "0.56328756", "0.5630777", "0.5622164", "0.56201863", "0.56012475", "0.56002456", "0.5596874", "0.559348", "0.5587428", "0.5586158", "0.5580974", "0.5580496", "0.5576496", "0.5574544", "0.5566744", "0.55558604", "0.5544309", "0.5543789", "0.55432457", "0.55336833", "0.55225646" ]
0.0
-1
int32 port = 2;
@java.lang.Override public int getPort() { return port_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int localPort();", "int getIntegPort();", "public int getPort();", "public int getPort();", "public int getPort();", "Integer destinationPort();", "int getInPort();", "int getInPort();", "void port(int port);", "void port(int port);", "int getS1Port();", "int getPort()\n {\n return port;\n }", "Port getPort1();", "Port getPort2();", "int getSnPort();", "int getSnPort();", "int serverPort ();", "public int getPort(){\n\treturn port;\n }", "int getPort() {\n return port;\n }", "public int getPort() { return port; }", "Integer listeningPort();", "public int getPort(){\n return port;\n }", "int getServicePort();", "String getPort();", "public int getPort()\n {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int getSourcePort();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}", "abstract protected int PortToRunOn();", "public int getPort ()\n {\n return thisPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public int getStandardPort();", "public int getStandardPort();", "public int getPort() {\n return m_port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public int getPort()\n {\n return port;\n }", "int getUdpServerPort();", "public int getPort () {\n return port;\n }", "int getDestinationPort();", "int getDestinationPort();", "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "Port createPort();", "Port createPort();", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public Integer getPort() {\n return port;\n }", "public int getPort()\n {\n return _nodeVRL.getPort(); \n }", "public void setPort(int port);", "public void setPort(int port);", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return this.port;\n }", "public void testSetPort() {\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "@Override\n public int getPortNumber() {\n return 0;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort() {\n return m_Port;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getGnutellaPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "int getResponsePort();", "public Integer getPort() {\n return this.port;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public String getPort(){\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }" ]
[ "0.7981694", "0.7981694", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.77948284", "0.7770943", "0.7692514", "0.7692514", "0.7692514", "0.75826126", "0.7569563", "0.7569563", "0.7567182", "0.7567182", "0.75252926", "0.74752915", "0.7473951", "0.74195915", "0.73965806", "0.73965806", "0.73914224", "0.7320347", "0.72784877", "0.72714484", "0.72361135", "0.72090876", "0.7186204", "0.71813244", "0.7149996", "0.71437603", "0.7082205", "0.7071852", "0.70631737", "0.7032283", "0.6969328", "0.69563794", "0.6953449", "0.6953449", "0.6939013", "0.69145447", "0.69059056", "0.6898782", "0.68903077", "0.6887411", "0.6887411", "0.6869613", "0.68690664", "0.68690664", "0.6865923", "0.68532807", "0.68532807", "0.6844629", "0.6825677", "0.68231434", "0.68231434", "0.6797127", "0.6797127", "0.6795106", "0.6792747", "0.6782476", "0.67777574", "0.67777437", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6764128", "0.6764128", "0.6764128", "0.6746456", "0.67413306", "0.67125416", "0.6711117", "0.6711117", "0.6703415", "0.6703415", "0.67002505", "0.6694334", "0.6693813", "0.6691582", "0.6691582", "0.6688595", "0.66446584", "0.6642788", "0.6642788", "0.66346264", "0.66250694", "0.66250694", "0.66250694" ]
0.0
-1
Short alias or acronym of the owner of the node string owner = 3;
@java.lang.Override public java.lang.String getOwner() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public String getOwnerId() {\n return ownerId;\n }", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7563581", "0.7563581", "0.73686033", "0.73686033", "0.7315174", "0.7259939", "0.7222075", "0.7222075", "0.7222075", "0.7222075", "0.71859455", "0.7108346", "0.7073358", "0.70409316", "0.697494", "0.69727683", "0.6958616", "0.6948956", "0.69386625", "0.6929878", "0.69289345", "0.69289345", "0.6914799", "0.68892497", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.6842932", "0.6824996", "0.6793122", "0.67519087", "0.6739161", "0.67258835", "0.6724045", "0.66866577", "0.6632561", "0.66244906", "0.66145444", "0.6606917", "0.65919435", "0.656529", "0.65518874", "0.65226084", "0.65151733", "0.65149355", "0.6511406", "0.6481792", "0.64724636", "0.64223313", "0.64149296", "0.6366122", "0.6340156", "0.6339037", "0.6324979", "0.6316812", "0.63103", "0.6296737", "0.6241721", "0.6239333", "0.6239333", "0.62251014", "0.62251014", "0.6217267", "0.6217265", "0.62023795", "0.62023795", "0.61881953", "0.6187929", "0.6187929", "0.61801183", "0.6168139", "0.6156156", "0.6139639", "0.61348665", "0.61343443", "0.6131452", "0.6121562", "0.6121562", "0.6102676", "0.6095575", "0.6094757", "0.607974", "0.6074822", "0.60685515", "0.60590625", "0.6027683", "0.6017003", "0.6006689", "0.5969143", "0.5963918", "0.5941095", "0.59395003", "0.59395003", "0.58828586", "0.58468884", "0.58468884" ]
0.6379253
53
Short alias or acronym of the owner of the node string owner = 3;
@java.lang.Override public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7562618", "0.7562618", "0.73674804", "0.73674804", "0.73136836", "0.7259146", "0.7220521", "0.7220521", "0.7220521", "0.7220521", "0.7185323", "0.71083075", "0.7072737", "0.7039423", "0.69744754", "0.6971893", "0.6957213", "0.6947755", "0.6937133", "0.6929309", "0.6927399", "0.6927399", "0.69143045", "0.68881726", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68419725", "0.6824368", "0.67927843", "0.6750983", "0.6738466", "0.67257255", "0.67227286", "0.6686221", "0.66321576", "0.6623421", "0.66138047", "0.66060346", "0.6590261", "0.6564375", "0.65506536", "0.65207595", "0.6515069", "0.65148365", "0.6510088", "0.64808685", "0.6471555", "0.6420794", "0.64142746", "0.6379207", "0.63787246", "0.6364156", "0.633916", "0.6337005", "0.63253", "0.6316144", "0.6309129", "0.6296309", "0.62412983", "0.62391937", "0.62391937", "0.6225114", "0.6225114", "0.62173665", "0.6217366", "0.6201546", "0.6201546", "0.61881673", "0.61881673", "0.6187381", "0.6180664", "0.61677676", "0.61544555", "0.61385417", "0.6135294", "0.61343515", "0.6130647", "0.61196953", "0.61196953", "0.6102559", "0.6096309", "0.60936755", "0.60790503", "0.6074482", "0.6068689", "0.605883", "0.602708", "0.601626", "0.6005355", "0.59687734", "0.5962886", "0.59405917", "0.58824176", "0.58470654", "0.58470654" ]
0.59394646
96
Node index within the owner's nodes. Must be 1, 2, or 3 int32 index = 4;
@java.lang.Override public int getIndex() { return index_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "entities.Torrent.NodeId getNodes(int index);", "public int getNodeIndexAt(int index)\n {\n if (index < 0 || index > 1)\n {\n throw new IllegalArgumentException();\n }\n \n return this.nodeList[index];\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public abstract int getNeighboursNumber(int index);", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public int getIndex(\n )\n {return index;}", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getIndexNumber(){\n return id;\r\n }", "entities.Torrent.NodeIdOrBuilder getNodesOrBuilder(\n int index);", "public final int getIndex(){\n return index_;\n }", "public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }", "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "int getIndex() {\n\t\treturn index;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n {\n return index;\n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public int getIndex() { return this.index; }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return index;\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "protected final int getIndex() {\n return index;\n }", "public abstract TreeNode getNode(int i);", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int\ngetNodeIndexMin();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex() {\n return index;\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public int index();", "public int Node() { return this.Node; }", "public int index() {\n\t\treturn this.index;\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "protected abstract int applyGetIndex(CControlManager mgr, CDasherNode node);", "@Override\n\tpublic IOptiuniMeniu getNode(int index) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public Integer getIndex() {\n return index;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "public Integer index() {\n return this.index;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public int\ngetNodeIndexMax();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public abstract int getIndex();", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "int getParentMonsterIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();" ]
[ "0.75322187", "0.6845312", "0.6829977", "0.67661256", "0.6654919", "0.66221094", "0.64901483", "0.6422686", "0.63986397", "0.6372339", "0.6352405", "0.6352405", "0.6349292", "0.62964416", "0.6277176", "0.6277176", "0.6277176", "0.6272882", "0.62398905", "0.62398905", "0.6239787", "0.62386876", "0.6237546", "0.62245506", "0.6209324", "0.62052506", "0.62045395", "0.6199797", "0.6199417", "0.6194185", "0.618368", "0.61738753", "0.61734575", "0.613717", "0.61346096", "0.6134171", "0.61262137", "0.6111207", "0.61111856", "0.61092126", "0.60989606", "0.60946935", "0.6089081", "0.60844487", "0.60772955", "0.6068579", "0.6068579", "0.60592324", "0.6057135", "0.60542625", "0.60534424", "0.60534424", "0.60534424", "0.60456073", "0.6033769", "0.601034", "0.601034", "0.601034", "0.601034", "0.601034", "0.6006779", "0.60017985", "0.59987813", "0.5993468", "0.59919566", "0.5988722", "0.59818417", "0.59699154", "0.5959191", "0.59578043", "0.59499586", "0.594634", "0.5945238", "0.5932924", "0.59211516", "0.5915407", "0.5910998", "0.590913", "0.590019", "0.58993345", "0.5899231", "0.58975977", "0.58965296", "0.589312", "0.5889189", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.5882352", "0.58805794", "0.5879896", "0.58794236", "0.587941", "0.5870672", "0.58637846", "0.5861444", "0.5861444", "0.5861444" ]
0.0
-1
String containing either domain name or IP (most likely) string host = 1;
public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "String getHostname();", "String getHostname();", "public boolean getGuessHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7344322", "0.7344322", "0.69481945", "0.68382776", "0.681766", "0.6616979", "0.6591407", "0.6591407", "0.6481483", "0.64567304", "0.64567304", "0.6384434", "0.6360145", "0.6360145", "0.635989", "0.6334468", "0.6334468", "0.633292", "0.6311417", "0.6271739", "0.6268125", "0.6255035", "0.623566", "0.62108445", "0.6162497", "0.6098583", "0.60971534", "0.60765725", "0.6073335", "0.6065919", "0.6036549", "0.6020448", "0.60119563", "0.60006666", "0.59960157", "0.5991749", "0.59880984", "0.5974053", "0.59728336", "0.5972558", "0.596962", "0.59558505", "0.59435993", "0.59154916", "0.5896428", "0.58881485", "0.588797", "0.588797", "0.5865161", "0.5864685", "0.5864685", "0.58423674", "0.5840428", "0.58342576", "0.5827358", "0.58254606", "0.582278", "0.57959867", "0.5786117", "0.57856876", "0.5778678", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.57745486", "0.57705724", "0.5753347", "0.5739926", "0.5739926", "0.57360846", "0.5723837", "0.57176906", "0.56918114", "0.5676715", "0.56522596", "0.565113", "0.5633721", "0.56319976", "0.56239605", "0.56197685", "0.5602492", "0.56018573", "0.55973816", "0.55940413", "0.5589139", "0.5588154", "0.55821866", "0.5581378", "0.5578704", "0.5575533", "0.55695266", "0.5557656", "0.5546113", "0.55460715", "0.5545353", "0.5533612", "0.5522993" ]
0.61188453
25
String containing either domain name or IP (most likely) string host = 1;
public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "public boolean getGuessHostname();", "String getHostname();", "String getHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "HostInfo getHostInfo();", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public interface IHost {\n String getHost();\n}", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "void setHostname(String hostname);", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7340533", "0.7340533", "0.6944681", "0.6834995", "0.6813677", "0.66146517", "0.65878314", "0.65878314", "0.6478353", "0.6453507", "0.6453507", "0.6381183", "0.63583523", "0.63575196", "0.63575196", "0.6331358", "0.6331358", "0.6329913", "0.63087463", "0.6268141", "0.6264586", "0.6252355", "0.6232477", "0.6207578", "0.61595446", "0.611536", "0.60953647", "0.60932094", "0.60742193", "0.6070476", "0.6063492", "0.6034113", "0.6016295", "0.6009914", "0.5997539", "0.59928733", "0.5987841", "0.59852797", "0.59711367", "0.5969701", "0.5969282", "0.5965449", "0.59518546", "0.59411484", "0.59136516", "0.58929104", "0.58852565", "0.5884466", "0.5884466", "0.5861346", "0.5861346", "0.5861086", "0.58398116", "0.5838985", "0.5830787", "0.58258116", "0.5824584", "0.58188105", "0.5792229", "0.5783551", "0.5782699", "0.57766485", "0.5771837", "0.5771837", "0.5771837", "0.5771837", "0.5771837", "0.5771837", "0.577155", "0.57679415", "0.57499206", "0.5736333", "0.5736333", "0.5732341", "0.5723875", "0.57161945", "0.5689713", "0.5673656", "0.56521493", "0.56490344", "0.5630138", "0.5629946", "0.5620306", "0.56160074", "0.5600225", "0.5598852", "0.5592884", "0.5591188", "0.55866337", "0.55859584", "0.55795205", "0.5579028", "0.55770093", "0.55740964", "0.5566588", "0.5555143", "0.5543375", "0.5542355", "0.5541634", "0.55324477", "0.5519371" ]
0.0
-1
String containing either domain name or IP (most likely) string host = 1;
public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "String getHostname();", "String getHostname();", "public boolean getGuessHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7344322", "0.7344322", "0.69481945", "0.68382776", "0.681766", "0.6616979", "0.6591407", "0.6591407", "0.6481483", "0.64567304", "0.64567304", "0.6384434", "0.6360145", "0.6360145", "0.635989", "0.6334468", "0.6334468", "0.633292", "0.6311417", "0.6271739", "0.6268125", "0.6255035", "0.623566", "0.62108445", "0.6162497", "0.61188453", "0.6098583", "0.60971534", "0.60765725", "0.6073335", "0.6065919", "0.6036549", "0.6020448", "0.60119563", "0.60006666", "0.59960157", "0.5991749", "0.59880984", "0.5974053", "0.59728336", "0.5972558", "0.596962", "0.59558505", "0.59435993", "0.59154916", "0.5896428", "0.58881485", "0.588797", "0.588797", "0.5865161", "0.5864685", "0.5864685", "0.58423674", "0.58342576", "0.5827358", "0.58254606", "0.582278", "0.57959867", "0.5786117", "0.57856876", "0.5778678", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.57745486", "0.57705724", "0.5753347", "0.5739926", "0.5739926", "0.57360846", "0.5723837", "0.57176906", "0.56918114", "0.5676715", "0.56522596", "0.565113", "0.5633721", "0.56319976", "0.56239605", "0.56197685", "0.5602492", "0.56018573", "0.55973816", "0.55940413", "0.5589139", "0.5588154", "0.55821866", "0.5581378", "0.5578704", "0.5575533", "0.55695266", "0.5557656", "0.5546113", "0.55460715", "0.5545353", "0.5533612", "0.5522993" ]
0.5840428
53
String containing either domain name or IP (most likely) string host = 1;
public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "public boolean getGuessHostname();", "String getHostname();", "String getHostname();", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "void host(String host);", "void host(String host);", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "public String getHostname() {\n return this.hostname;\n }", "abstract String getRemoteAddress();", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "public String hostname() {\n return this.hostname;\n }", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "Builder hostName(String hostName);", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7342382", "0.7342382", "0.69461715", "0.6836255", "0.6815788", "0.66154885", "0.6589264", "0.6589264", "0.64800084", "0.64560264", "0.64560264", "0.6382199", "0.63597417", "0.6359637", "0.6359637", "0.6331934", "0.6331374", "0.6331374", "0.63097495", "0.62707305", "0.62669635", "0.6253718", "0.6234271", "0.62087905", "0.6161785", "0.61171764", "0.6097092", "0.6097016", "0.6075782", "0.6071011", "0.6064612", "0.6036367", "0.60181296", "0.60118556", "0.5999793", "0.5994404", "0.59900147", "0.59878963", "0.5972701", "0.59713984", "0.5970743", "0.59666157", "0.5954111", "0.5942208", "0.59151727", "0.58945876", "0.5886798", "0.58861107", "0.58861107", "0.58638805", "0.58631486", "0.58631486", "0.5841704", "0.58381367", "0.5832858", "0.58266526", "0.582558", "0.5821063", "0.5796068", "0.57846224", "0.57839966", "0.577669", "0.5774017", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57735544", "0.57672685", "0.57525235", "0.57381445", "0.57381445", "0.5734428", "0.57238996", "0.5716477", "0.56897086", "0.5676111", "0.56511426", "0.5649555", "0.56328756", "0.5630777", "0.5622164", "0.56201863", "0.56012475", "0.56002456", "0.5596874", "0.559348", "0.5587428", "0.5586158", "0.5580974", "0.5580496", "0.5576496", "0.5574544", "0.5566744", "0.55558604", "0.5544309", "0.5543789", "0.55432457", "0.55336833", "0.55225646" ]
0.0
-1
String containing either domain name or IP (most likely) string host = 1;
public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getHost();", "java.lang.String getHost();", "String getHost();", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "String host();", "default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }", "public String getHost();", "public String getHost();", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "String getHostName();", "String getHostName();", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "String getHostname();", "String getHostname();", "public boolean getGuessHostname();", "void host(String host);", "void host(String host);", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "String getHost()\n {\n return host;\n }", "public String getHostName();", "public InetAddress getHost();", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}", "public String getHost() { return host; }", "public String getHostname();", "public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getHost() {\n \t\treturn host;\n \t}", "public String getHost() {\n\t\ttry {\n\t\t\treturn InetAddress.getLocalHost().getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\treturn \"unknown\";\n\t\t}\n\t}", "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public void testParseHost() throws UnknownHostException {\n InetAddress host = PortParser.parseHost(PARAMETERS);\n assertEquals(\"InetAddress\", HOST, host);\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "private static String getHostNameImpl() {\n String bindAddr = System.getProperty(\"jboss.bind.address\");\n if (bindAddr != null && !bindAddr.trim().equals(\"0.0.0.0\")) {\n return bindAddr;\n }\n\n // Fallback to qualified name\n String qualifiedHostName = System.getProperty(\"jboss.qualified.host.name\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // If not on jboss env, let's try other possible fallbacks\n // POSIX-like OSes including Mac should have this set\n qualifiedHostName = System.getenv(\"HOSTNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n // Certain versions of Windows\n qualifiedHostName = System.getenv(\"COMPUTERNAME\");\n if (qualifiedHostName != null) {\n return qualifiedHostName;\n }\n\n try {\n return NetworkUtils.canonize(getLocalHost().getHostName());\n } catch (UnknownHostException uhe) {\n uhe.printStackTrace();\n return \"unknown-host.unknown-domain\";\n }\n }", "java.lang.String getRemoteHost();", "String getPreferredHost() {\n return preferredHost;\n }", "private String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public String getHost(){\n\t\treturn this.host;\n\t}", "String getRemoteHostName();", "public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}", "String getIntegHost();", "public String getHost( ) {\n\t\treturn host;\n\t}", "@java.lang.Override\n public java.lang.String getHost() {\n java.lang.Object ref = host_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n host_ = s;\n return s;\n }\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "Host getHost();", "private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }", "Object getMailhost();", "public String getHost() {\r\n return host;\r\n }", "@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "HostInfo getHostInfo();", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHost() {\n\t\treturn host;\n\t}", "public String getHostName(String connectionString)\n {\n String[] tokens = connectionString.split(\";\");\n for (String token: tokens)\n {\n if (token.contains(\"HostName\"))\n {\n String[] hName = token.split(\"=\");\n return hName[1];\n }\n }\n\n return null;\n }", "public Builder setHost(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n host_ = value;\n onChanged();\n return this;\n }", "public String getHostName (){\n return hostName;\n }", "protected synchronized InetAddress getHostAddress(URL paramURL) {\n/* 434 */ if (paramURL.hostAddress != null) {\n/* 435 */ return paramURL.hostAddress;\n/* */ }\n/* 437 */ String str = paramURL.getHost();\n/* 438 */ if (str == null || str.equals(\"\")) {\n/* 439 */ return null;\n/* */ }\n/* */ try {\n/* 442 */ paramURL.hostAddress = InetAddress.getByName(str);\n/* 443 */ } catch (UnknownHostException unknownHostException) {\n/* 444 */ return null;\n/* 445 */ } catch (SecurityException securityException) {\n/* 446 */ return null;\n/* */ } \n/* */ \n/* 449 */ return paramURL.hostAddress;\n/* */ }", "String getDomain();", "public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }", "static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }", "public String getHost() {\n return m_host;\n }", "java.lang.String getServerAddress();", "String getAddr();", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHostAddress()\n {\n return (addr != null ? addr.getHostAddress() : \"\");\n }", "public void setHost(String host);", "public String getHost() {\n\t\treturn url.getHost();\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host;\n }", "public String getHost() {\n return host.getText();\n }", "private static String type(String arg) {\n if ( arg.contains(\".\") )\n return \"ip\";\n try {\n Integer.parseInt(arg);\n return \"port\";\n } catch (NumberFormatException ignored) {\n return arg;\n }\n }", "abstract boolean fakeHostname();", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "public String getHostname() {\r\n return hostname;\r\n }", "public void setGuessHostname(boolean val);", "default String getHost() {\n return \"localhost\";\n }", "public String getHostName()\n\t{\n\t\treturn hostName;\n\t}", "public interface IHost {\n String getHost();\n}", "public String host() {\n return host;\n }", "public static String getHostname()\n {\n String host = \"unknown\";\n try\n {\n return InetAddress.getLocalHost().getHostName();\n }\n catch ( UnknownHostException e )\n {\n // ignore\n }\n return host;\n }", "abstract String getRemoteAddress();", "public String getHostname() {\n return this.hostname;\n }", "private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().getHostName();\n }", "public String getHostname () {\n return hostname;\n }", "public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }", "void setHostname(String hostname);", "public String getHostProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_HOST);\n }", "io.envoyproxy.envoy.type.metadata.v3.MetadataKind.Host getHost();", "T setHostName(String hostName);", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "@Test\n public void testHostnamne() throws org.antlr.runtime.RecognitionException {\n // simple\n CommonTree t = null;\n t = FlumeBuilder.parseHost(\"localhost\");\n System.out.println(t);\n\n // fqdn\n t = FlumeBuilder.parseHost(\"localhost.localdomain.com\");\n System.out.println(t);\n\n // ip adder\n t = FlumeBuilder.parseHost(\"1.2.3.4\");\n System.out.println(t);\n\n }", "Builder hostName(String hostName);", "public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }", "public String hostname() {\n return this.hostname;\n }", "public static boolean isWellFormedAddress(String address) {\n if (address == null) {\n return false;\n }\n \n int addrLength = address.length();\n if (addrLength == 0) {\n return false;\n }\n \n // Check if the host is a valid IPv6reference.\n if (address.startsWith(\"[\")) {\n return isWellFormedIPv6Reference(address);\n }\n \n // Cannot start with a '.', '-', or end with a '-'.\n if (address.startsWith(\".\") || \n address.startsWith(\"-\") || \n address.endsWith(\"-\")) {\n return false;\n }\n \n // rightmost domain label starting with digit indicates IP address\n // since top level domain label can only start with an alpha\n // see RFC 2396 Section 3.2.2\n int index = address.lastIndexOf('.');\n if (address.endsWith(\".\")) {\n index = address.substring(0, index).lastIndexOf('.');\n }\n \n if (index+1 < addrLength && isDigit(address.charAt(index+1))) {\n return isWellFormedIPv4Address(address);\n }\n else {\n // hostname = *( domainlabel \".\" ) toplabel [ \".\" ]\n // domainlabel = alphanum | alphanum *( alphanum | \"-\" ) alphanum\n // toplabel = alpha | alpha *( alphanum | \"-\" ) alphanum\n \n // RFC 2396 states that hostnames take the form described in \n // RFC 1034 (Section 3) and RFC 1123 (Section 2.1). According\n // to RFC 1034, hostnames are limited to 255 characters.\n if (addrLength > 255) {\n return false;\n }\n \n // domain labels can contain alphanumerics and '-\"\n // but must start and end with an alphanumeric\n char testChar;\n int labelCharCount = 0;\n \n for (int i = 0; i < addrLength; i++) {\n testChar = address.charAt(i);\n if (testChar == '.') {\n if (!isAlphanum(address.charAt(i-1))) {\n return false;\n }\n if (i+1 < addrLength && !isAlphanum(address.charAt(i+1))) {\n return false;\n }\n labelCharCount = 0;\n }\n else if (!isAlphanum(testChar) && testChar != '-') {\n return false;\n }\n // RFC 1034: Labels must be 63 characters or less.\n else if (++labelCharCount > 63) {\n return false;\n }\n }\n }\n return true;\n }", "@Override\n public String getHostByAddr(byte[] bytes) throws UnknownHostException {\n // Can we use DNSChain for reverse lookups, should we?\n // For now, throw UnknownHostException which should cause a fallback to doing\n // reverse lookup with the next resolver in the chain.\n throw new UnknownHostException();\n }" ]
[ "0.7344322", "0.7344322", "0.69481945", "0.68382776", "0.681766", "0.6616979", "0.6591407", "0.6591407", "0.6481483", "0.64567304", "0.64567304", "0.6384434", "0.6360145", "0.6360145", "0.635989", "0.6334468", "0.6334468", "0.633292", "0.6311417", "0.6271739", "0.6268125", "0.6255035", "0.623566", "0.62108445", "0.6162497", "0.61188453", "0.6098583", "0.60971534", "0.60765725", "0.6073335", "0.6065919", "0.6036549", "0.6020448", "0.60119563", "0.60006666", "0.59960157", "0.5991749", "0.59880984", "0.5974053", "0.59728336", "0.5972558", "0.596962", "0.59558505", "0.59435993", "0.59154916", "0.5896428", "0.58881485", "0.588797", "0.588797", "0.5865161", "0.5864685", "0.5864685", "0.58423674", "0.5840428", "0.58342576", "0.5827358", "0.58254606", "0.582278", "0.57959867", "0.5786117", "0.57856876", "0.5778678", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.5775356", "0.57745486", "0.57705724", "0.5753347", "0.5739926", "0.5739926", "0.57360846", "0.5723837", "0.57176906", "0.56918114", "0.5676715", "0.56522596", "0.565113", "0.5633721", "0.56319976", "0.56239605", "0.56197685", "0.5602492", "0.56018573", "0.55973816", "0.55940413", "0.5589139", "0.5588154", "0.55821866", "0.5581378", "0.5578704", "0.5575533", "0.55695266", "0.5557656", "0.5546113", "0.55460715", "0.5545353", "0.5533612", "0.5522993" ]
0.0
-1
int32 port = 2;
@java.lang.Override public int getPort() { return port_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int localPort();", "int getIntegPort();", "public int getPort();", "public int getPort();", "public int getPort();", "Integer destinationPort();", "int getInPort();", "int getInPort();", "void port(int port);", "void port(int port);", "int getS1Port();", "int getPort()\n {\n return port;\n }", "Port getPort1();", "Port getPort2();", "int getSnPort();", "int getSnPort();", "int serverPort ();", "public int getPort(){\n\treturn port;\n }", "int getPort() {\n return port;\n }", "public int getPort() { return port; }", "Integer listeningPort();", "public int getPort(){\n return port;\n }", "int getServicePort();", "String getPort();", "public int getPort()\n {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int getSourcePort();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}", "abstract protected int PortToRunOn();", "public int getPort ()\n {\n return thisPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public int getStandardPort();", "public int getStandardPort();", "public int getPort() {\n return m_port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public int getPort()\n {\n return port;\n }", "int getUdpServerPort();", "public int getPort () {\n return port;\n }", "int getDestinationPort();", "int getDestinationPort();", "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "Port createPort();", "Port createPort();", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public Integer getPort() {\n return port;\n }", "public int getPort()\n {\n return _nodeVRL.getPort(); \n }", "public void setPort(int port);", "public void setPort(int port);", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return this.port;\n }", "public void testSetPort() {\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "@Override\n public int getPortNumber() {\n return 0;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort() {\n return m_Port;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getGnutellaPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "int getResponsePort();", "public Integer getPort() {\n return this.port;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public String getPort(){\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }" ]
[ "0.7981694", "0.7981694", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.77948284", "0.7770943", "0.7692514", "0.7692514", "0.7692514", "0.75826126", "0.7569563", "0.7569563", "0.7567182", "0.7567182", "0.75252926", "0.74752915", "0.7473951", "0.74195915", "0.73965806", "0.73965806", "0.73914224", "0.7320347", "0.72784877", "0.72714484", "0.72361135", "0.72090876", "0.7186204", "0.71813244", "0.7149996", "0.71437603", "0.7082205", "0.7071852", "0.70631737", "0.7032283", "0.6969328", "0.69563794", "0.6953449", "0.6953449", "0.6939013", "0.69145447", "0.69059056", "0.6898782", "0.68903077", "0.6887411", "0.6887411", "0.6869613", "0.68690664", "0.68690664", "0.6865923", "0.68532807", "0.68532807", "0.6844629", "0.6825677", "0.68231434", "0.68231434", "0.6797127", "0.6797127", "0.6795106", "0.6792747", "0.6782476", "0.67777574", "0.67777437", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6764128", "0.6764128", "0.6764128", "0.6746456", "0.67413306", "0.67125416", "0.6711117", "0.6711117", "0.6703415", "0.6703415", "0.67002505", "0.6694334", "0.6693813", "0.6691582", "0.6691582", "0.6688595", "0.66446584", "0.6642788", "0.6642788", "0.66346264", "0.66250694", "0.66250694", "0.66250694" ]
0.0
-1
int32 port = 2;
public Builder setPort(int value) { port_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int localPort();", "int getIntegPort();", "public int getPort();", "public int getPort();", "public int getPort();", "Integer destinationPort();", "int getInPort();", "int getInPort();", "void port(int port);", "void port(int port);", "int getS1Port();", "int getPort()\n {\n return port;\n }", "Port getPort1();", "Port getPort2();", "int getSnPort();", "int getSnPort();", "int serverPort ();", "public int getPort(){\n\treturn port;\n }", "int getPort() {\n return port;\n }", "public int getPort() { return port; }", "Integer listeningPort();", "public int getPort(){\n return port;\n }", "int getServicePort();", "String getPort();", "public int getPort()\n {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int getSourcePort();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}", "abstract protected int PortToRunOn();", "public int getPort ()\n {\n return thisPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public int getStandardPort();", "public int getStandardPort();", "public int getPort() {\n return m_port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public int getPort()\n {\n return port;\n }", "int getUdpServerPort();", "public int getPort () {\n return port;\n }", "int getDestinationPort();", "int getDestinationPort();", "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "Port createPort();", "Port createPort();", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public Integer getPort() {\n return port;\n }", "public int getPort()\n {\n return _nodeVRL.getPort(); \n }", "public void setPort(int port);", "public void setPort(int port);", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return this.port;\n }", "public void testSetPort() {\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "@Override\n public int getPortNumber() {\n return 0;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort() {\n return m_Port;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getGnutellaPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "int getResponsePort();", "public Integer getPort() {\n return this.port;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public String getPort(){\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }" ]
[ "0.7981694", "0.7981694", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.77948284", "0.7770943", "0.7692514", "0.7692514", "0.7692514", "0.75826126", "0.7569563", "0.7569563", "0.7567182", "0.7567182", "0.75252926", "0.74752915", "0.7473951", "0.74195915", "0.73965806", "0.73965806", "0.73914224", "0.7320347", "0.72784877", "0.72714484", "0.72361135", "0.72090876", "0.7186204", "0.71813244", "0.7149996", "0.71437603", "0.7082205", "0.7071852", "0.70631737", "0.7032283", "0.6969328", "0.69563794", "0.6953449", "0.6953449", "0.6939013", "0.69145447", "0.69059056", "0.6898782", "0.68903077", "0.6887411", "0.6887411", "0.6869613", "0.68690664", "0.68690664", "0.6865923", "0.68532807", "0.68532807", "0.6844629", "0.6825677", "0.68231434", "0.68231434", "0.6797127", "0.6797127", "0.6795106", "0.6792747", "0.6782476", "0.67777574", "0.67777437", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6764128", "0.6764128", "0.6764128", "0.6746456", "0.67413306", "0.67125416", "0.6711117", "0.6711117", "0.6703415", "0.6703415", "0.67002505", "0.6694334", "0.6693813", "0.6691582", "0.6691582", "0.6688595", "0.66446584", "0.6642788", "0.6642788", "0.66346264", "0.66250694", "0.66250694", "0.66250694" ]
0.0
-1
int32 port = 2;
public Builder clearPort() { port_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int localPort();", "int getIntegPort();", "public int getPort();", "public int getPort();", "public int getPort();", "Integer destinationPort();", "int getInPort();", "int getInPort();", "void port(int port);", "void port(int port);", "int getS1Port();", "int getPort()\n {\n return port;\n }", "Port getPort1();", "Port getPort2();", "int getSnPort();", "int getSnPort();", "int serverPort ();", "public int getPort(){\n\treturn port;\n }", "int getPort() {\n return port;\n }", "public int getPort() { return port; }", "Integer listeningPort();", "public int getPort(){\n return port;\n }", "int getServicePort();", "String getPort();", "public int getPort()\n {\n return port;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "int getSourcePort();", "private void run()throws IOException{\r\n Port = portNumb(); \r\n}", "static int lanPort(String xxx) {\n\t\treturn 20000 + Integer.parseInt(xxx);\n\t}", "abstract protected int PortToRunOn();", "public int getPort ()\n {\n return thisPort;\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "public int getStandardPort();", "public int getStandardPort();", "public int getPort() {\n return m_port;\n }", "public int getPort(){\n\t\treturn this.port;\n\t}", "public int getPort()\n {\n return port;\n }", "int getUdpServerPort();", "public int getPort () {\n return port;\n }", "int getDestinationPort();", "int getDestinationPort();", "@Nullable\n @Generated\n @Selector(\"localPort\")\n public native NSNumber localPort();", "Port createPort();", "Port createPort();", "public int getPortNumber (){\r\n\t\treturn portNumber;\r\n\t}", "java.lang.String getPort();", "java.lang.String getPort();", "public Integer getPort() {\n return port;\n }", "public int getPort()\n {\n return _nodeVRL.getPort(); \n }", "public void setPort(int port);", "public void setPort(int port);", "public int getPort() {\n \t\treturn port;\n \t}", "public int getPort() {\n \t\treturn port;\n \t}", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return this.port;\n }", "public void testSetPort() {\n }", "public native int getRemotePort() throws IOException,IllegalArgumentException;", "@Override\n public int getPortNumber() {\n return 0;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getsPort()\n\t{\n\t\treturn sPort;\n\t}", "public int getPort() {\n return m_Port;\n }", "default public int getStatusFromDevicePort()\t\t\t{ return 2223; }", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public int getPort()\n\t{\n\t\treturn port;\n\t}", "public Integer getPort() {\n return port;\n }", "public Integer getPort() {\n return port;\n }", "public int getGnutellaPort();", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "public void setPort(int value) {\n this.port = value;\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "public void setPort(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n localPortTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.localPort=param;\r\n \r\n\r\n }", "int getResponsePort();", "public Integer getPort() {\n return this.port;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "private void setPort(int value) {\n \n port_ = value;\n }", "public String getPort(){\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }" ]
[ "0.7981694", "0.7981694", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.78664035", "0.77948284", "0.7770943", "0.7692514", "0.7692514", "0.7692514", "0.75826126", "0.7569563", "0.7569563", "0.7567182", "0.7567182", "0.75252926", "0.74752915", "0.7473951", "0.74195915", "0.73965806", "0.73965806", "0.73914224", "0.7320347", "0.72784877", "0.72714484", "0.72361135", "0.72090876", "0.7186204", "0.71813244", "0.7149996", "0.71437603", "0.7082205", "0.7071852", "0.70631737", "0.7032283", "0.6969328", "0.69563794", "0.6953449", "0.6953449", "0.6939013", "0.69145447", "0.69059056", "0.6898782", "0.68903077", "0.6887411", "0.6887411", "0.6869613", "0.68690664", "0.68690664", "0.6865923", "0.68532807", "0.68532807", "0.6844629", "0.6825677", "0.68231434", "0.68231434", "0.6797127", "0.6797127", "0.6795106", "0.6792747", "0.6782476", "0.67777574", "0.67777437", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6776433", "0.6764128", "0.6764128", "0.6764128", "0.6746456", "0.67413306", "0.67125416", "0.6711117", "0.6711117", "0.6703415", "0.6703415", "0.67002505", "0.6694334", "0.6693813", "0.6691582", "0.6691582", "0.6688595", "0.66446584", "0.6642788", "0.6642788", "0.66346264", "0.66250694", "0.66250694", "0.66250694" ]
0.0
-1
Short alias or acronym of the owner of the node string owner = 3;
public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7562618", "0.7562618", "0.73674804", "0.73674804", "0.73136836", "0.7259146", "0.7220521", "0.7220521", "0.7220521", "0.7220521", "0.7185323", "0.71083075", "0.7072737", "0.7039423", "0.69744754", "0.6971893", "0.6957213", "0.6947755", "0.6937133", "0.6929309", "0.6927399", "0.6927399", "0.69143045", "0.68881726", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68419725", "0.6824368", "0.67927843", "0.6750983", "0.6738466", "0.67257255", "0.67227286", "0.6686221", "0.66321576", "0.6623421", "0.66138047", "0.66060346", "0.6590261", "0.6564375", "0.65506536", "0.65207595", "0.6510088", "0.64808685", "0.6471555", "0.6420794", "0.64142746", "0.6379207", "0.63787246", "0.6364156", "0.633916", "0.6337005", "0.63253", "0.6316144", "0.6309129", "0.6296309", "0.62412983", "0.62391937", "0.62391937", "0.6225114", "0.6225114", "0.62173665", "0.6217366", "0.6201546", "0.6201546", "0.61881673", "0.61881673", "0.6187381", "0.6180664", "0.61677676", "0.61544555", "0.61385417", "0.6135294", "0.61343515", "0.6130647", "0.61196953", "0.61196953", "0.6102559", "0.6096309", "0.60936755", "0.60790503", "0.6074482", "0.6068689", "0.605883", "0.602708", "0.601626", "0.6005355", "0.59687734", "0.5962886", "0.59405917", "0.59394646", "0.59394646", "0.58824176", "0.58470654", "0.58470654" ]
0.6515069
46
Short alias or acronym of the owner of the node string owner = 3;
public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public String getOwnerId() {\n return ownerId;\n }", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7563581", "0.7563581", "0.73686033", "0.73686033", "0.7315174", "0.7259939", "0.7222075", "0.7222075", "0.7222075", "0.7222075", "0.71859455", "0.7108346", "0.7073358", "0.70409316", "0.697494", "0.69727683", "0.6958616", "0.6948956", "0.69386625", "0.6929878", "0.69289345", "0.69289345", "0.6914799", "0.68892497", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.68601716", "0.6842932", "0.6824996", "0.6793122", "0.67519087", "0.6739161", "0.67258835", "0.6724045", "0.66866577", "0.6632561", "0.66244906", "0.66145444", "0.6606917", "0.65919435", "0.656529", "0.65518874", "0.65226084", "0.65151733", "0.65149355", "0.6511406", "0.6481792", "0.64724636", "0.64223313", "0.64149296", "0.6379253", "0.6378771", "0.6366122", "0.6340156", "0.6339037", "0.6324979", "0.6316812", "0.63103", "0.6296737", "0.6241721", "0.62251014", "0.62251014", "0.6217267", "0.6217265", "0.62023795", "0.62023795", "0.61881953", "0.6187929", "0.6187929", "0.61801183", "0.6168139", "0.6156156", "0.6139639", "0.61348665", "0.61343443", "0.6131452", "0.6121562", "0.6121562", "0.6102676", "0.6095575", "0.6094757", "0.607974", "0.6074822", "0.60685515", "0.60590625", "0.6027683", "0.6017003", "0.6006689", "0.5969143", "0.5963918", "0.5941095", "0.59395003", "0.59395003", "0.58828586", "0.58468884", "0.58468884" ]
0.6239333
64
Short alias or acronym of the owner of the node string owner = 3;
public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7562618", "0.7562618", "0.73674804", "0.73674804", "0.73136836", "0.7259146", "0.7220521", "0.7220521", "0.7220521", "0.7220521", "0.7185323", "0.71083075", "0.7072737", "0.7039423", "0.69744754", "0.6971893", "0.6957213", "0.6947755", "0.6937133", "0.6929309", "0.6927399", "0.6927399", "0.69143045", "0.68881726", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68419725", "0.6824368", "0.67927843", "0.6750983", "0.6738466", "0.67257255", "0.67227286", "0.6686221", "0.66321576", "0.6623421", "0.66138047", "0.66060346", "0.6590261", "0.6564375", "0.65506536", "0.65207595", "0.6515069", "0.65148365", "0.6510088", "0.64808685", "0.6471555", "0.6420794", "0.64142746", "0.6379207", "0.63787246", "0.6364156", "0.633916", "0.6337005", "0.63253", "0.6316144", "0.6309129", "0.6296309", "0.62412983", "0.62391937", "0.62391937", "0.6225114", "0.6225114", "0.62173665", "0.6217366", "0.61881673", "0.61881673", "0.6187381", "0.6180664", "0.61677676", "0.61544555", "0.61385417", "0.6135294", "0.61343515", "0.6130647", "0.61196953", "0.61196953", "0.6102559", "0.6096309", "0.60936755", "0.60790503", "0.6074482", "0.6068689", "0.605883", "0.602708", "0.601626", "0.6005355", "0.59687734", "0.5962886", "0.59405917", "0.59394646", "0.59394646", "0.58824176", "0.58470654", "0.58470654" ]
0.6201546
69
Short alias or acronym of the owner of the node string owner = 3;
public Builder clearOwner() { owner_ = getDefaultInstance().getOwner(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.75624436", "0.75624436", "0.73674685", "0.73674685", "0.73135114", "0.7259155", "0.7220412", "0.7220412", "0.7220412", "0.7220412", "0.71854275", "0.7107385", "0.7072446", "0.7039855", "0.69745", "0.6971663", "0.6957016", "0.6947957", "0.6937133", "0.6928899", "0.6927421", "0.6927421", "0.69137985", "0.6887813", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.6859247", "0.68416864", "0.68240774", "0.6792147", "0.6751142", "0.67381907", "0.672538", "0.6722452", "0.66857594", "0.66316885", "0.6623537", "0.6614015", "0.6605507", "0.6590815", "0.6564129", "0.6550798", "0.6520697", "0.65148014", "0.65145665", "0.65100604", "0.6480648", "0.6471432", "0.6421095", "0.64133656", "0.637903", "0.6378542", "0.6364204", "0.63390285", "0.63366956", "0.63240486", "0.63162243", "0.6308998", "0.6295335", "0.62413436", "0.6238665", "0.6238665", "0.62245935", "0.62245935", "0.6216607", "0.62165606", "0.62014997", "0.62014997", "0.61874545", "0.61874545", "0.6186491", "0.6179746", "0.61673445", "0.61553425", "0.61389625", "0.6134611", "0.6133012", "0.61305034", "0.6119369", "0.6119369", "0.6101602", "0.60959566", "0.6093224", "0.60790044", "0.6073736", "0.6068137", "0.6057442", "0.60264784", "0.60157347", "0.6004882", "0.5967669", "0.59619635", "0.5939953", "0.59390306", "0.59390306", "0.58816564", "0.58463395", "0.58463395" ]
0.0
-1
Short alias or acronym of the owner of the node string owner = 3;
public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); owner_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getOwner();", "java.lang.String getOwner();", "String getOwner();", "String getOwner();", "public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}", "public String getOwner();", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "public void setOwner(String owner) {\n this.owner = owner;\n }", "@DISPID(33)\r\n\t// = 0x21. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tjava.lang.String owner();", "public String getOwner() {\r\n if (mOwner==null) {\r\n return \"n/a\";\r\n }\r\n return mOwner;\r\n }", "public String getOwner() { return owner; }", "void setOwner(String owner);", "@DISPID(75)\r\n\t// = 0x4b. The runtime will prefer the VTID if present\r\n\t@VTID(73)\r\n\tjava.lang.String owner();", "public String getOwner(){\n return owner;\r\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Cat Owner\";\n\t\t}", "public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }", "public String getOwner() {\r\n return owner;\r\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }", "public String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getownerName() {\n\t return this.ownerName;\n\t}", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwner() {\n return owner;\n }", "public String getOwnerName() {\r\n return this.ownerName;\r\n }", "public String getOwner() {\n\n return owner;\n\n }", "@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Tiger Owner\";\n\t\t}", "public String owner() {\n return this.owner;\n }", "Optional<String> getOwner();", "public void changeOwner(String o){\n owner = o;\r\n }", "public String getOwner() {\n return mOwner;\n }", "public String getOwner() {\n\n return Owner;\n }", "@Override\n\t\tpublic String ownerName() {\n\t\t\treturn \"Dog Owner\";\n\t\t}", "public String ownerName() {\n\t\t\treturn null;\n\t\t}", "public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }", "public final String getOwnerName() {\n return ElementUtils.getDeclaringClassName(node);\n }", "public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}", "public java.lang.String getOwnername() {\n\treturn ownername;\n}", "public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void setOwnerString(String s) {\n ownerString = s;\r\n }", "public String getOwnerName() {\n\t\treturn ownerName;\n\t}", "public String getOwnerName() {\n\n return ownerName;\n }", "public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}", "public void setOwner(int owner) { this.owner = owner; }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getOwner() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n owner_ = s;\n return s;\n }\n }", "public void setOwnerName( String name ) {\n\n ownerName = name;\n }", "public interface Owner {\n\n /**\n * Returns the unique owner ID of this object. This ID is used to separate\n * different owners from each other.\n * \n * @return the unique owner ID\n */\n int getOwnerID();\n\n /**\n * @return a descriptive name of the owner (for printing, debugging, etc.)\n */\n String getName();\n\n}", "public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}", "public long getOwner() {\n\t\treturn owner;\n\t}", "public String getOwner(){\n\t\treturn new SmartAPIModel().getCpOwner(cp.getLocalName());\n\t}", "public synchronized void setOwner(String s) {\n owner = s;\n }", "@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}", "public String getOwnerString() {\n return String.valueOf(enteredBy);\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString getOwner();", "com.google.protobuf.ByteString getOwner();", "public java.lang.String getOwnerId() {\r\n return ownerId;\r\n }", "public String getOwnerId() {\n return ownerId;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }", "public UUID getOwner() {\n return owner;\n }", "public UUID getOwner() {\n return owner;\n }", "public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }", "default String getOwnerId()\n {\n return Long.toUnsignedString(getOwnerIdLong());\n }", "@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }", "public final String getOwnerNameWithoutPackage() {\n return ElementUtils.getDeclaringClassNameWithoutPackage(node);\n }", "String getHandOwner();", "@JsonGetter(\"owner\")\r\n public String getOwner() {\r\n return owner;\r\n }", "User getOwner();", "public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}", "@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();", "public String getOwnerHref() {\n return ownerHref;\n }", "public void setOwner(Owner owner) {\n this.owner = owner;\n }", "public String getDataOwner();", "public synchronized static String getOwner() {\n return owner;\n }", "public OwnerReference getOwnerReference() {\n return new OwnerReferenceBuilder()\n .withController(true)\n .withApiVersion(getApiVersion())\n .withKind(getKind())\n .withName(getMetaName())\n .withUid(getMetadata().getUid())\n .build();\n }", "final int GetOwner() {\n return owner;\n }", "public Owner getOwner() {\n return owner;\n }", "public Owner getOwner()\n {\n return owner;\n }", "public void setOwner(Person owner)\n {\n this.owner = owner;\n }", "public void setOwner(User owner) {\n this.owner = owner;\n }", "public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }", "int getOwnerID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getOwnerBytes() {\n java.lang.Object ref = owner_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n owner_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getOwner(){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t\treturn _owner;\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }", "public com.google.protobuf.ByteString getOwner() {\n return owner_;\n }" ]
[ "0.7562618", "0.7562618", "0.73674804", "0.73674804", "0.73136836", "0.7259146", "0.7220521", "0.7220521", "0.7220521", "0.7220521", "0.7185323", "0.71083075", "0.7072737", "0.7039423", "0.69744754", "0.6971893", "0.6957213", "0.6947755", "0.6937133", "0.6929309", "0.6927399", "0.6927399", "0.69143045", "0.68881726", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68596107", "0.68419725", "0.6824368", "0.67927843", "0.6750983", "0.6738466", "0.67257255", "0.67227286", "0.6686221", "0.66321576", "0.6623421", "0.66138047", "0.66060346", "0.6590261", "0.6564375", "0.65506536", "0.65207595", "0.6515069", "0.65148365", "0.6510088", "0.64808685", "0.6471555", "0.6420794", "0.64142746", "0.6379207", "0.63787246", "0.6364156", "0.633916", "0.6337005", "0.63253", "0.6316144", "0.6309129", "0.6296309", "0.62412983", "0.62391937", "0.62391937", "0.6225114", "0.6225114", "0.62173665", "0.6217366", "0.6201546", "0.6201546", "0.61881673", "0.61881673", "0.6187381", "0.6180664", "0.61677676", "0.61544555", "0.61385417", "0.6135294", "0.61343515", "0.6130647", "0.61196953", "0.61196953", "0.6102559", "0.6096309", "0.60936755", "0.60790503", "0.6074482", "0.6068689", "0.605883", "0.602708", "0.601626", "0.6005355", "0.59687734", "0.5962886", "0.59405917", "0.59394646", "0.59394646", "0.58824176", "0.58470654", "0.58470654" ]
0.0
-1
Node index within the owner's nodes. Must be 1, 2, or 3 int32 index = 4;
@java.lang.Override public int getIndex() { return index_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "entities.Torrent.NodeId getNodes(int index);", "public int getNodeIndexAt(int index)\n {\n if (index < 0 || index > 1)\n {\n throw new IllegalArgumentException();\n }\n \n return this.nodeList[index];\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public abstract int getNeighboursNumber(int index);", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex(\n )\n {return index;}", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getIndexNumber(){\n return id;\r\n }", "public final int getIndex(){\n return index_;\n }", "entities.Torrent.NodeIdOrBuilder getNodesOrBuilder(\n int index);", "public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }", "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "int getIndex() {\n\t\treturn index;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n {\n return index;\n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public int getIndex() { return this.index; }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return index;\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "protected final int getIndex() {\n return index;\n }", "public abstract TreeNode getNode(int i);", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int\ngetNodeIndexMin();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex() {\n return index;\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "public int index();", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public int Node() { return this.Node; }", "public int index() {\n\t\treturn this.index;\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "protected abstract int applyGetIndex(CControlManager mgr, CDasherNode node);", "@Override\n\tpublic IOptiuniMeniu getNode(int index) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public Integer getIndex() {\n return index;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "public Integer index() {\n return this.index;\n }", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public abstract int getIndex();", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public int\ngetNodeIndexMax();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "public int getIndex();", "public int getIndex();", "public int getIndex();", "int getParentMonsterIndex();" ]
[ "0.75340146", "0.68450826", "0.6830545", "0.67676276", "0.6655433", "0.6620533", "0.6493807", "0.6424797", "0.6400534", "0.63750625", "0.6353311", "0.6353311", "0.63511366", "0.6297896", "0.62800235", "0.62800235", "0.62800235", "0.62760466", "0.6242755", "0.6242733", "0.6242733", "0.62403435", "0.62390465", "0.622504", "0.6212046", "0.6207405", "0.6204319", "0.62039816", "0.62036", "0.6197148", "0.6184484", "0.61768246", "0.6174424", "0.6139428", "0.6137468", "0.6137052", "0.61286914", "0.61138684", "0.61127096", "0.61108065", "0.6101823", "0.60976666", "0.6091908", "0.60841054", "0.60781854", "0.6071197", "0.6071197", "0.60588443", "0.60585874", "0.6056302", "0.6056302", "0.6056302", "0.6054304", "0.6048407", "0.60340947", "0.60132307", "0.60132307", "0.60132307", "0.60132307", "0.60132307", "0.6009759", "0.60024315", "0.6000552", "0.59960973", "0.5994742", "0.5988097", "0.59854233", "0.5972754", "0.5961279", "0.59595954", "0.5949558", "0.59486854", "0.59476155", "0.5934177", "0.5920558", "0.59182113", "0.5912986", "0.59104735", "0.5901712", "0.5900243", "0.5899416", "0.5898377", "0.58973134", "0.5893661", "0.58908325", "0.58908325", "0.58908325", "0.58908325", "0.58908325", "0.58908325", "0.5888705", "0.5883086", "0.5882678", "0.5881169", "0.5880844", "0.5880124", "0.5870312", "0.5865622", "0.5865622", "0.5865622", "0.5865527" ]
0.0
-1
Node index within the owner's nodes. Must be 1, 2, or 3 int32 index = 4;
public Builder setIndex(int value) { index_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "entities.Torrent.NodeId getNodes(int index);", "public int getNodeIndexAt(int index)\n {\n if (index < 0 || index > 1)\n {\n throw new IllegalArgumentException();\n }\n \n return this.nodeList[index];\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public abstract int getNeighboursNumber(int index);", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex() {\n \t\treturn index;\n \t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public int getIndex(\n )\n {return index;}", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getIndexNumber(){\n return id;\r\n }", "public final int getIndex(){\n return index_;\n }", "entities.Torrent.NodeIdOrBuilder getNodesOrBuilder(\n int index);", "public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }", "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "int getIndex() {\n\t\treturn index;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n {\n return index;\n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public int getIndex() { return this.index; }", "public int getIndex() {\n return index;\n }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "protected final int getIndex() {\n return index;\n }", "public abstract TreeNode getNode(int i);", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int\ngetNodeIndexMin();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex() {\n return index;\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public int index();", "public int Node() { return this.Node; }", "public int index() {\n\t\treturn this.index;\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "protected abstract int applyGetIndex(CControlManager mgr, CDasherNode node);", "@Override\n\tpublic IOptiuniMeniu getNode(int index) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public Integer getIndex() {\n return index;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "public Integer index() {\n return this.index;\n }", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public int\ngetNodeIndexMax();", "public abstract int getIndex();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "int getParentMonsterIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();" ]
[ "0.75339246", "0.68445903", "0.68303066", "0.676724", "0.66543865", "0.66210306", "0.64914465", "0.6423338", "0.6398588", "0.63719094", "0.6351207", "0.6351207", "0.6348588", "0.6296071", "0.62769955", "0.62769955", "0.62769955", "0.6272955", "0.6239762", "0.6239367", "0.6239367", "0.6237542", "0.6236976", "0.6225267", "0.620879", "0.6204497", "0.6204455", "0.6202584", "0.62021476", "0.6193972", "0.6182871", "0.6173766", "0.6172671", "0.61365", "0.61341333", "0.6133866", "0.61259997", "0.61106217", "0.61102843", "0.6107731", "0.60991114", "0.6094627", "0.60891247", "0.6084035", "0.60780245", "0.6068358", "0.6068358", "0.60576403", "0.60566366", "0.60536134", "0.60536134", "0.60536134", "0.6053457", "0.6045399", "0.60348386", "0.6010429", "0.6010429", "0.6010429", "0.6010429", "0.6010429", "0.6006775", "0.6001797", "0.5998192", "0.5993129", "0.5992057", "0.59877217", "0.59824806", "0.5971198", "0.5958511", "0.5957772", "0.5951139", "0.5946246", "0.5944951", "0.59315735", "0.5920786", "0.59157807", "0.59113544", "0.5908216", "0.5899338", "0.58989716", "0.5898183", "0.5897064", "0.58967406", "0.58916813", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.58881605", "0.5887482", "0.588151", "0.5881135", "0.5879728", "0.5879252", "0.5877959", "0.58696955", "0.5863969", "0.586215", "0.586215", "0.586215" ]
0.0
-1
Node index within the owner's nodes. Must be 1, 2, or 3 int32 index = 4;
public Builder clearIndex() { index_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "entities.Torrent.NodeId getNodes(int index);", "public int getNodeIndexAt(int index)\n {\n if (index < 0 || index > 1)\n {\n throw new IllegalArgumentException();\n }\n \n return this.nodeList[index];\n }", "public NodeExpr index()\n\t{\n\t\treturn _index;\n\t}", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "io.netifi.proteus.admin.om.Node getNodes(int index);", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private static String findNode(int index){\n return indexTable.get(index);\n }", "public int getIndex(){\r\n \treturn index;\r\n }", "private int parent(int index) {\n return index / 2;\n }", "private int parent(int index) {\n return index / 2;\n }", "public abstract int getNeighboursNumber(int index);", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex(){\n\t\treturn index;\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "public int getIndex(){\n return index;\n }", "public int getIndex(){\n return index;\n }", "public int getIndex() {\n \t\treturn index;\n \t}", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "public int getIndex(\n )\n {return index;}", "@Override public long nodeIndex() {\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getIndexNumber(){\n return id;\r\n }", "entities.Torrent.NodeIdOrBuilder getNodesOrBuilder(\n int index);", "public final int getIndex(){\n return index_;\n }", "public int indexNode(Node node) {\n if (!isEdge()) {\n return -1;\n }\n for (int i = 0; i < nbNode(); i++) {\n if (node.same(getNode(i))) {\n return i;\n }\n }\n return -1;\n }", "public int getIndex(TreeNode node) { \n for (int i=0; i<data.length; i++) \n if (data[i].equals(node)) return i; \n return -1; \n }", "int getIndex() {\n\t\treturn index;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public int getIndex()\n {\n return index;\n }", "private int parentIdx(int idx) {\r\n // TODO\r\n return -1;\r\n }", "public int getIndex() { return this.index; }", "int getIndex(){\r\n\t\treturn index;\r\n\t}", "public int getIndex() {\n return index;\n }", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "public int getOwnIndex() throws RemoteException {\r\n return ownIndex;\r\n }", "private int getIndex() {\n\t\treturn this.index;\r\n\t}", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "public int getIndex() {\r\n\t\treturn index;\r\n\t}", "public int getIndex()\n {\n return index;\n }", "public int getIndex() {\r\n return index;\r\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "@Override public int getNodeId(String name) {\n\t\tint id = node_index_.tryGet(name);\n\t\tif (id == -1) System.err.println(\"Unknown node name=\" + name);\n\t\treturn id;\n\t}", "public int getIndex() {\r\n return _index;\r\n }", "public int getIndex() {\r\n return _index;\r\n }", "private ListNode nodeAt(int index) {\n\t\tListNode current = front;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tcurrent = current.next;\n\t\t}\n\t\treturn current;\n\t}", "public int getPlayerIndexOfOwner() {\n\t\tif (this.settlement == null) {\n\t\t\tif (this.city == null) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn this.city.getPlayerIndex();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn this.settlement.getPlayerIndex();\n\t\t}\n\t}", "private int parent(int index) {\n // Formula to calculate the index of the parent node\n return Math.floorDiv(index - 1, d);\n }", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "public int getIndex() {\n\t\treturn index;\n\t}", "protected final int getIndex() {\n return index;\n }", "public abstract TreeNode getNode(int i);", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex() {\n return index;\n }", "public int getIndex()\n {\n return m_index;\n }", "public int\ngetNodeIndexMin();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getIndex() {\n return index;\n }", "private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }", "private int getIndex(int u) {\n int ind = -1;\n for (int i = 0; i < getGraphRep().size(); i++) {\n ArrayList subList = getGraphRep().get(i);\n String temp = (String) subList.get(0);\n int vert = Integer.parseInt(temp);\n if (vert == u) {\n ind = i;\n }\n }\n return ind;\n }", "private int getIndex(T target) {\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] == target) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "public int index();", "public int Node() { return this.Node; }", "public int index() {\n\t\treturn this.index;\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "protected abstract int applyGetIndex(CControlManager mgr, CDasherNode node);", "@Override\n\tpublic IOptiuniMeniu getNode(int index) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public Integer getIndex() {\n return index;\n }", "public final Integer indexInParent() {\n Container p = getParent();\n return p==null ? null : p.indexOf(this);\n }", "private static int parentIndex(int index) {\n\t\treturn (index - 1) / 2;\n\t}", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "public Integer index() {\n return this.index;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "private int vertexIndex(T obj){\n for (int i = 0; i < n; i++){\n if (obj.equals(vertices[i])){\n return i;\n }\n }\n return NOT_FOUND;\n }", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "public int getIndex() {\n return index_;\n }", "private int parent(int index) {\n return (index - 1) / 2; // 2 = binary heap\n }", "public int\ngetNodeIndexMax();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public abstract int getIndex();", "private int getParent(int index) {\r\n return (index - 1) / 2;\r\n }", "public int get(int index) {\n if(index>-1 && index<len) {\n SingleNode iSingleNode = head;\n for(int i=0; i<index; i++) {\n\n iSingleNode = iSingleNode.next;\n }\n return iSingleNode.data;\n }\n return 0;\n }", "int getParentMonsterIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();" ]
[ "0.75322187", "0.6845312", "0.6829977", "0.67661256", "0.6654919", "0.66221094", "0.64901483", "0.6422686", "0.63986397", "0.6372339", "0.6352405", "0.6352405", "0.6349292", "0.62964416", "0.6277176", "0.6277176", "0.6277176", "0.6272882", "0.62398905", "0.62398905", "0.6239787", "0.62386876", "0.6237546", "0.62245506", "0.6209324", "0.62052506", "0.62045395", "0.6199797", "0.6199417", "0.6194185", "0.618368", "0.61738753", "0.61734575", "0.613717", "0.61346096", "0.6134171", "0.61262137", "0.6111207", "0.61111856", "0.61092126", "0.60989606", "0.60946935", "0.6089081", "0.60844487", "0.60772955", "0.6068579", "0.6068579", "0.60592324", "0.6057135", "0.60542625", "0.60534424", "0.60534424", "0.60534424", "0.60456073", "0.6033769", "0.601034", "0.601034", "0.601034", "0.601034", "0.601034", "0.6006779", "0.60017985", "0.59987813", "0.5993468", "0.59919566", "0.5988722", "0.59818417", "0.59699154", "0.5959191", "0.59578043", "0.59499586", "0.594634", "0.5945238", "0.5932924", "0.59211516", "0.5915407", "0.5910998", "0.590913", "0.590019", "0.58993345", "0.5899231", "0.58975977", "0.58965296", "0.589312", "0.5889189", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.58880776", "0.5882352", "0.58805794", "0.5879896", "0.58794236", "0.587941", "0.5870672", "0.58637846", "0.5861444", "0.5861444", "0.5861444" ]
0.0
-1
Chunk order number starting from 0 uint32 index = 1;
int getIndex();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public static int offsetBits_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return offset;\n }", "public static int offset_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return (offset / 8);\n }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getHighestChunk() {\n return highestChunk_;\n }", "com.google.protobuf.ByteString getN();", "List<DownloadChunk> mo54445j(int i);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getHighestChunk() {\n return highestChunk_;\n }", "protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }", "protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "String getChunkType();", "public short getIndex()\n {\n return index;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "int getChunksLocationCount();", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }", "public Integer getOrderIndex() {\n return orderIndex;\n }", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int calculate(int index) {\n return (head + index) % data.length;\n }", "public int order()\n {\n return numVertices;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "int getBlockNumbers(int index);", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getSplitIndex();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "public abstract int parse(byte bc[], int index);", "public int getIndex0 () {\r\n\t\treturn _index0;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "int getNumOfChunks();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "PACKET getIndex(int index);", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }", "public int getIndex() {\r\n return ordinal();\r\n }", "ByteArrayIndex createByteArrayIndex();", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "public final int getIndex(){\n return index_;\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "private int getRow(int index) {\n return index >> divShift;\n }", "public int getIndexNumber(){\n return id;\r\n }", "int getBlockNumber();", "int getBlockNumber();" ]
[ "0.78498846", "0.78498846", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.6560351", "0.6560351", "0.6539877", "0.6539877", "0.65290433", "0.65290433", "0.6437121", "0.63151425", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6182982", "0.6091172", "0.5966917", "0.5964838", "0.5949013", "0.5876683", "0.5806812", "0.5806459", "0.5778764", "0.5765947", "0.575312", "0.5735305", "0.5732035", "0.5665055", "0.56635803", "0.5622215", "0.56119925", "0.55948836", "0.55748355", "0.55589175", "0.5537258", "0.55280715", "0.55229694", "0.5520557", "0.5511085", "0.5503322", "0.5493629", "0.54753435", "0.546384", "0.54491866", "0.54147506", "0.539289", "0.53731054", "0.53716886", "0.53523934", "0.5346266", "0.53424877", "0.5336024", "0.53349954", "0.5331339", "0.5319496", "0.53181803", "0.5309685", "0.5309336", "0.5306981", "0.5306628", "0.5302169", "0.5293584", "0.5289367", "0.5280434", "0.527537", "0.527537", "0.5272753", "0.52658445", "0.526561", "0.5264213", "0.5259757", "0.52585125", "0.5255519", "0.5247433", "0.5215752", "0.5213452", "0.5199854", "0.5194442", "0.51851577", "0.5175815", "0.51742303", "0.51726705", "0.5172021", "0.5169978", "0.51678306", "0.5167171", "0.5167171" ]
0.0
-1
The standard chunk size is 1024. Last chunks will be smaller. uint32 size = 2;
int getSize();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getChunkSize() {\n return chunkSize;\n }", "public int getChunkWidth() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkHeight() {\n return 256;\n }", "int getNumOfChunks();", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "long getSize();", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "long getSize() throws IOException;", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "int getBufferSize();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "public abstract long getSize();", "public long getSize();", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "static int fetchChunkSize(String value) {\n Integer chSize;\n try {\n chSize = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Chunksize needs to be a whole number!\", e);\n }\n if (chSize > MAX_CHUNK_SIZE || chSize < MIN_CHUNK_SIZE) {\n throw new IllegalArgumentException(\"Chunksize [\" + chSize\n + \"] cannot be less than \" + MIN_CHUNK_SIZE\n + \"MB or larger than \" + MAX_CHUNK_SIZE + \"MB\");\n }\n chunkSize = 1000 * 1000 * chSize; // MB to bytes\n return chunkSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static long getChunks() {\n return chunks;\n }", "public Vector2i getSizeInChunks() {\n return new Vector2i(getWidthInChunks(), getHeightInChunks());\n }", "public int getSize() {return size;}", "@Override\n public int getSize() {\n return 64;\n }", "private List<byte[]> split(InputStream inStream, long size) throws IOException {\r\n\t\tList<byte[]> chunkList = new ArrayList<byte[]>();\r\n\t\tint totalBytesRead = 0;\r\n\t\ttry {\r\n\t\t\twhile (totalBytesRead < size) {\r\n\t\t\t\tbyte[] buffer = splitNextChunk(inStream, size, totalBytesRead);\r\n\t\t\t\ttotalBytesRead += buffer.length;\r\n\t\t\t\tchunkList.add(buffer);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t\treturn chunkList;\r\n\t}", "public int getChunksCount() {\n return chunksCount_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public final long getSize() { return size; }", "boolean hasChunkSize();", "public int getSize() { return size; }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public int getSize(){return _size;}", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public final AstValidator.chunksize_clause_return chunksize_clause() throws RecognitionException {\n AstValidator.chunksize_clause_return retval = new AstValidator.chunksize_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CHUNKSIZE127=null;\n CommonTree INTEGER128=null;\n\n CommonTree CHUNKSIZE127_tree=null;\n CommonTree INTEGER128_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:5: ( ^( CHUNKSIZE INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:7: ^( CHUNKSIZE INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CHUNKSIZE127=(CommonTree)match(input,CHUNKSIZE,FOLLOW_CHUNKSIZE_in_chunksize_clause1353); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CHUNKSIZE127_tree = (CommonTree)adaptor.dupNode(CHUNKSIZE127);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CHUNKSIZE127_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER128=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_chunksize_clause1355); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER128_tree = (CommonTree)adaptor.dupNode(INTEGER128);\n\n\n adaptor.addChild(root_1, INTEGER128_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public abstract long size() throws IOException;", "int getLocalSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "public abstract int getMaxIntermediateSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "default int getPackedArraySizeFast(int inputLength) {\n return (int) Math.ceil((double) inputLength * ( (double) maxBitLength() / 8.000 ) );\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getChunksLocationCount();", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "int getBlockSize();", "@Override public long getSimulatedSize() {\n return 1;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "int fixedSize();", "public int getLocalSize();", "int getSize ();", "int getServerPayloadSizeBytes();", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "@Override\n public int getSize() { return size; }" ]
[ "0.77679664", "0.766589", "0.766589", "0.766589", "0.766589", "0.70439804", "0.68225527", "0.67184824", "0.67105126", "0.66936415", "0.66936415", "0.6589024", "0.65888137", "0.6565171", "0.65532076", "0.6549472", "0.6541413", "0.64730096", "0.6471363", "0.6471363", "0.6471363", "0.6471363", "0.6465017", "0.6425808", "0.6340919", "0.6340919", "0.6340919", "0.6340919", "0.6297392", "0.62867844", "0.62463", "0.6232538", "0.61718655", "0.6168568", "0.6166892", "0.6166167", "0.61532027", "0.6150535", "0.6145961", "0.6121263", "0.6098675", "0.6078665", "0.6078342", "0.6077947", "0.60775554", "0.6076753", "0.60713285", "0.6061044", "0.6035118", "0.6030376", "0.6007486", "0.59884214", "0.59743094", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59716487", "0.59613544", "0.5946868", "0.5942413", "0.59379625", "0.5929765", "0.59111047", "0.59087926", "0.5896936", "0.5896334", "0.5896334", "0.5896334", "0.5896334", "0.5894937", "0.5889437", "0.5887424", "0.58820003", "0.58816594", "0.5876143", "0.58745533", "0.58717054", "0.58632445", "0.5852644", "0.58506465", "0.5827118" ]
0.6097439
52
MD5 of the chunk content (1024 bytes or less) bytes hash = 3;
com.google.protobuf.ByteString getHash();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMD5() {\n return hash;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "byte[] getDigest();", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "public byte[] getMD5() {\n return MD5;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "int getClientHashLength();", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "java.lang.String getChecksum();", "long hash(Block block, int position);", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static byte[][] computeContentDigestsPer1MbChunk(int[] digestAlgorithms, DataSource[] contents) throws DigestException {\n int[] iArr = digestAlgorithms;\n DataSource[] dataSourceArr = contents;\n int i = 0;\n long totalChunkCountLong = 0;\n for (DataSource input : dataSourceArr) {\n totalChunkCountLong += getChunkCount(input.size());\n }\n if (totalChunkCountLong < 2097151) {\n int totalChunkCount = (int) totalChunkCountLong;\n byte[][] digestsOfChunks = new byte[iArr.length][];\n for (int i2 = 0; i2 < iArr.length; i2++) {\n byte[] concatenationOfChunkCountAndChunkDigests = new byte[((totalChunkCount * getContentDigestAlgorithmOutputSizeBytes(iArr[i2])) + 5)];\n concatenationOfChunkCountAndChunkDigests[0] = 90;\n setUnsignedInt32LittleEndian(totalChunkCount, concatenationOfChunkCountAndChunkDigests, 1);\n digestsOfChunks[i2] = concatenationOfChunkCountAndChunkDigests;\n }\n byte[] chunkContentPrefix = new byte[5];\n chunkContentPrefix[0] = -91;\n int chunkIndex = 0;\n MessageDigest[] mds = new MessageDigest[iArr.length];\n for (int i3 = 0; i3 < iArr.length; i3++) {\n String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(iArr[i3]);\n try {\n mds[i3] = MessageDigest.getInstance(jcaAlgorithmName);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(jcaAlgorithmName + \" digest not supported\", e);\n }\n }\n DataDigester digester = new MultipleDigestDataDigester(mds);\n int chunkIndex2 = dataSourceArr.length;\n int dataSourceIndex = 0;\n while (i < chunkIndex2) {\n DataSource input2 = dataSourceArr[i];\n long inputOffset = 0;\n int chunkIndex3 = chunkIndex;\n long inputRemaining = input2.size();\n while (inputRemaining > 0) {\n int chunkSize = (int) Math.min(inputRemaining, 1048576L);\n setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1);\n int i4 = 0;\n while (i4 < mds.length) {\n mds[i4].update(chunkContentPrefix);\n i4++;\n totalChunkCountLong = totalChunkCountLong;\n }\n try {\n input2.feedIntoDataDigester(digester, inputOffset, chunkSize);\n int i5 = 0;\n while (i5 < digestAlgorithms.length) {\n int digestAlgorithm = digestAlgorithms[i5];\n byte[] concatenationOfChunkCountAndChunkDigests2 = digestsOfChunks[i5];\n int expectedDigestSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm);\n MessageDigest md = mds[i5];\n int actualDigestSizeBytes = md.digest(concatenationOfChunkCountAndChunkDigests2, (chunkIndex3 * expectedDigestSizeBytes) + 5, expectedDigestSizeBytes);\n if (actualDigestSizeBytes == expectedDigestSizeBytes) {\n i5++;\n chunkContentPrefix = chunkContentPrefix;\n input2 = input2;\n mds = mds;\n } else {\n throw new RuntimeException(\"Unexpected output size of \" + md.getAlgorithm() + \" digest: \" + actualDigestSizeBytes);\n }\n }\n inputOffset += (long) chunkSize;\n inputRemaining -= (long) chunkSize;\n chunkIndex3++;\n iArr = digestAlgorithms;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n } catch (IOException e2) {\n throw new DigestException(\"Failed to digest chunk #\" + chunkIndex3 + \" of section #\" + dataSourceIndex, e2);\n }\n }\n dataSourceIndex++;\n i++;\n dataSourceArr = contents;\n chunkIndex = chunkIndex3;\n totalChunkCount = totalChunkCount;\n chunkIndex2 = chunkIndex2;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n }\n byte[][] result = new byte[iArr.length][];\n for (int i6 = 0; i6 < iArr.length; i6++) {\n int digestAlgorithm2 = iArr[i6];\n byte[] input3 = digestsOfChunks[i6];\n String jcaAlgorithmName2 = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm2);\n try {\n result[i6] = MessageDigest.getInstance(jcaAlgorithmName2).digest(input3);\n } catch (NoSuchAlgorithmException e3) {\n throw new RuntimeException(jcaAlgorithmName2 + \" digest not supported\", e3);\n }\n }\n return result;\n }\n throw new DigestException(\"Too many chunks: \" + totalChunkCountLong);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "java.lang.String getHashData();", "int getHash();", "public final MessageDigest mo32304a() {\n synchronized (this.f29524b) {\n if (f29523a != null) {\n MessageDigest messageDigest = f29523a;\n return messageDigest;\n }\n for (int i = 0; i < 2; i++) {\n try {\n f29523a = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n }\n }\n MessageDigest messageDigest2 = f29523a;\n return messageDigest2;\n }\n }", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "private byte[] digestMsg(byte[][] parsedMsg) {\n\n int a, b, c, d, e, f, g, h;\n int[] hashValues = new int[8];\n\n // Initialize hash values for the first iteration, as per section 5.3.3\n System.arraycopy(H, 0, hashValues, 0, 8);\n\n // Iterate through the input message blocks\n for (int i = 0; i < parsedMsg.length; i++) {\n // 1. Prepare message schedule\n fillWords(parsedMsg[i]);\n\n // 2. Initialize working variables with hash values of previous iteration\n a = hashValues[0];\n b = hashValues[1];\n c = hashValues[2];\n d = hashValues[3];\n e = hashValues[4];\n f = hashValues[5];\n g = hashValues[6];\n h = hashValues[7];\n\n // 3. Compute updated working variables\n for (int t = 0; t < 64; t++) {\n int T1 = h + Sum1(e) + Ch(e, f, g) + K[t] + words[t];\n int T2 = Sum0(a) + Maj(a, b, c);\n h = g;\n g = f;\n f = e;\n e = d + T1;\n d = c;\n c = b;\n b = a;\n a = T1 + T2;\n }\n\n // 4. Update hash values\n hashValues[0] = a + hashValues[0];\n hashValues[1] = b + hashValues[1];\n hashValues[2] = c + hashValues[2];\n hashValues[3] = d + hashValues[3];\n hashValues[4] = e + hashValues[4];\n hashValues[5] = f + hashValues[5];\n hashValues[6] = g + hashValues[6];\n hashValues[7] = h + hashValues[7];\n }\n\n\n // Finalize the hash value\n // Concatenate the hash values to one 256-bit output byte[]\n byte[] digest = new byte[32];\n for (int i = 0; i < 8; i++) {\n System.arraycopy(intToBytes(hashValues[i]), 0, digest, 4 * i, 4);\n }\n\n return digest;\n }", "public abstract int getHash();", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public String getMetaDigest ()\n {\n return _metaDigest;\n }", "String getHash();", "String getHash();", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public String get_Md5_Hash(String sStringToEncode) throws Exception {\n String sRetval = \"\";\n StringBuffer sb = new StringBuffer();\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest = md.digest(sStringToEncode.getBytes(\"UTF-8\"));\n BigInteger number = new BigInteger(1, messageDigest);\n String hashtext = number.toString(16);\n sRetval = hashtext;\n } catch (Exception e) {\n throw new Exception(\"get_Md5_Hash : \" + e);\n }\n return sRetval;\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }" ]
[ "0.69080025", "0.675877", "0.6714178", "0.66375774", "0.6440513", "0.6350388", "0.62879944", "0.62833184", "0.62466013", "0.6210247", "0.6199277", "0.61927915", "0.61905885", "0.6161571", "0.6152501", "0.6129389", "0.61098826", "0.610888", "0.6091407", "0.6086834", "0.60803723", "0.6067552", "0.60597", "0.60414183", "0.60414183", "0.59769785", "0.5975609", "0.5965042", "0.59451795", "0.59293216", "0.5928838", "0.5927346", "0.5912926", "0.59038436", "0.59020334", "0.58982205", "0.5896437", "0.589628", "0.5892141", "0.588519", "0.5868952", "0.5838761", "0.5829923", "0.58238167", "0.58221644", "0.58216375", "0.5814627", "0.5807485", "0.5791644", "0.57775235", "0.5770979", "0.57625365", "0.5753192", "0.5750851", "0.5742538", "0.5741913", "0.5735255", "0.5733149", "0.57221264", "0.5719681", "0.5700796", "0.5698604", "0.568975", "0.5668654", "0.56567967", "0.5634023", "0.5626694", "0.5625322", "0.5623003", "0.5616034", "0.5604194", "0.5598044", "0.5589727", "0.55833596", "0.5573331", "0.5571993", "0.5567301", "0.5564902", "0.5556855", "0.55557495", "0.5553095", "0.55526173", "0.5536754", "0.5532043", "0.5529633", "0.5510254", "0.55072623", "0.54841393", "0.5480052", "0.5480052", "0.54781395", "0.54323846", "0.5430723", "0.54254115", "0.5424467", "0.54094464", "0.5400123", "0.53871", "0.5379468" ]
0.5687686
63
Use ChunkInfo.newBuilder() to construct.
private ChunkInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Chunk() {\n }", "private ChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ChunkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.ChunkInfo.Builder addChunksBuilder() {\n return getChunksFieldBuilder().addBuilder(\n entities.Torrent.ChunkInfo.getDefaultInstance());\n }", "public ChunkFiler() {}", "private StoreChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private StoreChunkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private StoreChunkLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public entities.Torrent.ChunkInfo.Builder addChunksBuilder(\n int index) {\n return getChunksFieldBuilder().addBuilder(\n index, entities.Torrent.ChunkInfo.getDefaultInstance());\n }", "public entities.Torrent.ChunkInfo.Builder getChunksBuilder(\n int index) {\n return getChunksFieldBuilder().getBuilder(index);\n }", "entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder();", "public Builder addChunks(entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.add(value);\n onChanged();\n } else {\n chunksBuilder_.addMessage(value);\n }\n return this;\n }", "private HealMyChunk(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public SmallChunkData(Chunk c){\n\t\t\tx = c.getX();\n\t\t\tz = c.getZ();\n\t\t\tworldName = c.getWorld().getName();\n\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\tbiomes[x][z] = c.getBlock(x, 0, z).getBiome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t/*for(int y = 0; y < 256; y ++){\n\t\t\t\tfor(int x = 0; x < 16; x ++){\n\t\t\t\t\tfor(int z = 0; z < 16; z ++){\n\t\t\t\t\t\tdata[y][x][z] = new MaterialData(c.getBlock(x, y, z).getType(), c.getBlock(x, y, z).getData());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}*/\n\t\t}", "public Builder addChunks(\n int index, entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.add(index, value);\n onChanged();\n } else {\n chunksBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder setChunks(\n int index, entities.Torrent.ChunkInfo value) {\n if (chunksBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksIsMutable();\n chunks_.set(index, value);\n onChanged();\n } else {\n chunksBuilder_.setMessage(index, value);\n }\n return this;\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder getChunksLocationBuilder(\n int index) {\n return getChunksLocationFieldBuilder().getBuilder(index);\n }", "entities.Torrent.ChunkResponseOrBuilder getChunkResponseOrBuilder();", "protected ContainerChunk(String type, String name) {\r\n this(type, name, new ArrayList());\r\n }", "public static StoreChunkOperation create(\n\t\tString collection,\n\t\tObject id,\n\t\tbyte[] chunk\n\t)\n\t{\n\t\treturn new StoreChunkOperation(collection, id, chunk);\n\t}", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "private void cacheMappingInfoChunk (int chunkIndex) {\n this.cachedTMIChunk = new TagMappingInfoV3[this.getMappingNum()][this.getChunkSize()];\n for (int i = 0; i < mappingNum; i++) {\n cachedTMIChunk[i] = myHDF5.compounds().readArrayBlock(mapNames[i], tmiType, this.getChunkSize(), chunkIndex);\n }\n this.cachedChunkIndex = chunkIndex;\n this.chunkStartTagIndex = chunkIndex*this.getChunkSize();\n this.chunkEndTagIndex = chunkStartTagIndex+this.getChunkSize();\n if (chunkEndTagIndex > this.getTagCount()) chunkEndTagIndex = this.getTagCount();\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder addChunksLocationBuilder() {\n return getChunksLocationFieldBuilder().addBuilder(\n edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.getDefaultInstance());\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.Builder addChunksLocationBuilder(\n int index) {\n return getChunksLocationFieldBuilder().addBuilder(\n index, edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation.getDefaultInstance());\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkId(int value) {\n \n chunkId_ = value;\n onChanged();\n return this;\n }", "public interface Chunk extends PersistentDataHolder {\r\n\r\n /**\r\n * Gets the X-coordinate of this chunk\r\n *\r\n * @return X-coordinate\r\n */\r\n int getX();\r\n\r\n /**\r\n * Gets the Z-coordinate of this chunk\r\n *\r\n * @return Z-coordinate\r\n */\r\n int getZ();\r\n\r\n /**\r\n * Gets the world containing this chunk\r\n *\r\n * @return Parent World\r\n */\r\n @NotNull\r\n World getWorld();\r\n\r\n /**\r\n * Gets a block from this chunk\r\n *\r\n * @param x 0-15\r\n * @param y 0-255\r\n * @param z 0-15\r\n * @return the Block\r\n */\r\n @NotNull\r\n Block getBlock(int x, int y, int z);\r\n\r\n /**\r\n * Capture thread-safe read-only snapshot of chunk data\r\n *\r\n * @return ChunkSnapshot\r\n */\r\n @NotNull\r\n ChunkSnapshot getChunkSnapshot();\r\n\r\n /**\r\n * Capture thread-safe read-only snapshot of chunk data\r\n *\r\n * @param includeMaxblocky - if true, snapshot includes per-coordinate\r\n * maximum Y values\r\n * @param includeBiome - if true, snapshot includes per-coordinate biome\r\n * type\r\n * @param includeBiomeTempRain - if true, snapshot includes per-coordinate\r\n * raw biome temperature and rainfall\r\n * @return ChunkSnapshot\r\n */\r\n @NotNull\r\n ChunkSnapshot getChunkSnapshot(boolean includeMaxblocky, boolean includeBiome, boolean includeBiomeTempRain);\r\n\r\n /**\r\n * Get a list of all entities in the chunk.\r\n *\r\n * @return The entities.\r\n */\r\n @NotNull\r\n Entity[] getEntities();\r\n\r\n /**\r\n * Get a list of all tile entities in the chunk.\r\n *\r\n * @return The tile entities.\r\n */\r\n @NotNull\r\n BlockState[] getTileEntities();\r\n\r\n /**\r\n * Checks if the chunk is loaded.\r\n *\r\n * @return True if it is loaded.\r\n */\r\n boolean isLoaded();\r\n\r\n /**\r\n * Loads the chunk.\r\n *\r\n * @param generate Whether or not to generate a chunk if it doesn't\r\n * already exist\r\n * @return true if the chunk has loaded successfully, otherwise false\r\n */\r\n boolean load(boolean generate);\r\n\r\n /**\r\n * Loads the chunk.\r\n *\r\n * @return true if the chunk has loaded successfully, otherwise false\r\n */\r\n boolean load();\r\n\r\n /**\r\n * Unloads and optionally saves the Chunk\r\n *\r\n * @param save Controls whether the chunk is saved\r\n * @return true if the chunk has unloaded successfully, otherwise false\r\n */\r\n boolean unload(boolean save);\r\n\r\n /**\r\n * Unloads and optionally saves the Chunk\r\n *\r\n * @return true if the chunk has unloaded successfully, otherwise false\r\n */\r\n boolean unload();\r\n\r\n /**\r\n * Checks if this chunk can spawn slimes without being a swamp biome.\r\n *\r\n * @return true if slimes are able to spawn in this chunk\r\n */\r\n boolean isSlimeChunk();\r\n\r\n /**\r\n * Gets whether the chunk at the specified chunk coordinates is force\r\n * loaded.\r\n * <p>\r\n * A force loaded chunk will not be unloaded due to lack of player activity.\r\n *\r\n * @return force load status\r\n * @see World#isChunkForceLoaded(int, int)\r\n */\r\n boolean isForceLoaded();\r\n\r\n /**\r\n * Sets whether the chunk at the specified chunk coordinates is force\r\n * loaded.\r\n * <p>\r\n * A force loaded chunk will not be unloaded due to lack of player activity.\r\n *\r\n * @param forced force load status\r\n * @see World#setChunkForceLoaded(int, int, boolean)\r\n */\r\n void setForceLoaded(boolean forced);\r\n\r\n /**\r\n * Adds a plugin ticket for this chunk, loading this chunk if it is not\r\n * already loaded.\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @param plugin Plugin which owns the ticket\r\n * @return {@code true} if a plugin ticket was added, {@code false} if the\r\n * ticket already exists for the plugin\r\n * @throws IllegalStateException If the specified plugin is not enabled\r\n * @see World#addPluginChunkTicket(int, int, Plugin)\r\n */\r\n boolean addPluginChunkTicket(@NotNull Plugin plugin);\r\n\r\n /**\r\n * Removes the specified plugin's ticket for this chunk\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @param plugin Plugin which owns the ticket\r\n * @return {@code true} if the plugin ticket was removed, {@code false} if\r\n * there is no plugin ticket for the chunk\r\n * @see World#removePluginChunkTicket(int, int, Plugin)\r\n */\r\n boolean removePluginChunkTicket(@NotNull Plugin plugin);\r\n\r\n /**\r\n * Retrieves a collection specifying which plugins have tickets for this\r\n * chunk. This collection is not updated when plugin tickets are added or\r\n * removed to this chunk.\r\n * <p>\r\n * A plugin ticket will prevent a chunk from unloading until it is\r\n * explicitly removed. A plugin instance may only have one ticket per chunk,\r\n * but each chunk can have multiple plugin tickets.\r\n * </p>\r\n *\r\n * @return unmodifiable collection containing which plugins have tickets for\r\n * this chunk\r\n * @see World#getPluginChunkTickets(int, int)\r\n */\r\n @NotNull\r\n Collection<Plugin> getPluginChunkTickets();\r\n\r\n /**\r\n * Gets the amount of time in ticks that this chunk has been inhabited.\r\n *\r\n * Note that the time is incremented once per tick per player in the chunk.\r\n *\r\n * @return inhabited time\r\n */\r\n long getInhabitedTime();\r\n\r\n /**\r\n * Sets the amount of time in ticks that this chunk has been inhabited.\r\n *\r\n * @param ticks new inhabited time\r\n */\r\n void setInhabitedTime(long ticks);\r\n\r\n /**\r\n * Tests if this chunk contains the specified block.\r\n *\r\n * @param block block to test\r\n * @return if the block is contained within\r\n */\r\n boolean contains(@NotNull BlockData block);\r\n}", "entities.Torrent.ChunkInfo getChunks(int index);", "public entities.Torrent.ChunkResponse.Builder getChunkResponseBuilder() {\n\n onChanged();\n return getChunkResponseFieldBuilder().getBuilder();\n }", "private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder addAllChunks(\n java.lang.Iterable<? extends entities.Torrent.ChunkInfo> values) {\n if (chunksBuilder_ == null) {\n ensureChunksIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, chunks_);\n onChanged();\n } else {\n chunksBuilder_.addAllMessages(values);\n }\n return this;\n }", "private LeafNodeObject getChunk(long chunkStart, long chunkEnd) throws IOException {\n if (chunkEnd <= chunkStart || (chunkEnd - chunkStart > this.maxChunkSize) ||\n chunkStart > Integer.MAX_VALUE) {\n throw new IOException(\"ChunkStart out of range\");\n }\n\n byte[] temp = Arrays.copyOfRange(this.fileContent, (int) chunkStart,\n (int) (chunkEnd - chunkStart));\n\n\n SignatureObject signature = new SignatureObject();\n signature.signatureData = new BinaryItem(ByteUtil.toListOfByte(temp));\n\n// RDCSignatureGenerator generator = new RDCSignatureGenerator();\n// signatureBytes = generator.ComputeHash(temp);\n//\n// SignatureObject signature = new SignatureObject();\n// signature.SignatureData = new BinaryItem(signatureBytes);\n\n return new LeafNodeObject.IntermediateNodeObjectBuilder().Build(temp, signature);\n }", "Chunk(ByteBuffer minKey, Chunk<K, V> creator, OakComparator<K> comparator, MemoryManager memoryManager,\n int maxItems, AtomicInteger externalSize, OakSerializer<K> keySerializer, OakSerializer<V> valueSerializer,\n ValueUtils valueOperator) {\n this.memoryManager = memoryManager;\n this.maxItems = maxItems;\n this.entries = new int[maxItems * FIELDS + FIRST_ITEM];\n this.entryIndex = new AtomicInteger(FIRST_ITEM);\n\n this.sortedCount = new AtomicInteger(0);\n this.minKey = minKey;\n this.creator = new AtomicReference<>(creator);\n if (creator == null) {\n this.state = new AtomicReference<>(State.NORMAL);\n } else {\n this.state = new AtomicReference<>(State.INFANT);\n }\n this.next = new AtomicMarkableReference<>(null, false);\n this.pendingOps = new AtomicInteger();\n this.rebalancer = new AtomicReference<>(null); // to be updated on rebalance\n this.statistics = new Statistics();\n this.comparator = comparator;\n this.externalSize = externalSize;\n\n this.keySerializer = keySerializer;\n this.valueSerializer = valueSerializer;\n this.valueOperator = valueOperator;\n }", "entities.Torrent.ChunkRequest getChunkRequest();", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "@java.lang.Override\n public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n return chunks_.get(index);\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private MyDataInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "void setChunkType(String aChunkType);", "@java.lang.Override\n public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n return getChunkRequest();\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "public entities.Torrent.ChunkRequestOrBuilder getChunkRequestOrBuilder() {\n if (chunkRequestBuilder_ != null) {\n return chunkRequestBuilder_.getMessageOrBuilder();\n } else {\n return chunkRequest_ == null ?\n entities.Torrent.ChunkRequest.getDefaultInstance() : chunkRequest_;\n }\n }", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "protected Version putChunks(long startByte,\n byte chunkPrefix[],\n Version metadataVersion)\n throws IOException {\n\n if (((chunkPrefix == null) != ((startByte % chunkSize) == 0))) {\n throw new IllegalStateException(\"start byte:\" + startByte +\n \" chunk size:\" + chunkSize +\n \" inconsistent with prefix chunk:\" +\n chunkPrefix);\n }\n\n if ((lobSize < 0) || (numChunks < 0)) {\n throw new IllegalStateException(\"lobSize:\" + lobSize +\n \" numChunks:\" + numChunks);\n }\n\n byte chunk[] = new byte[chunkSize];\n boolean initialReplacePut = false;\n\n int currentSize = 0;\n if (chunkPrefix != null) {\n currentSize = chunkPrefix.length;\n lobSize -= currentSize;\n /* Back up over the chunk, so we can overwrite it. */\n numChunks--;\n System.arraycopy(chunkPrefix, 0, chunk, 0, currentSize);\n initialReplacePut = true;\n }\n\n final ChunkKeysIterator chunkKeys =\n getChunkKeysByteRangeIterator(startByte, Long.MAX_VALUE);\n\n readLoop:\n while (true) {\n int readBytes = -1;\n\n /* Fill up a chunk. */\n while (currentSize < chunkSize) {\n readBytes = lobStream.read(chunk, currentSize,\n (chunkSize - currentSize));\n if (readBytes == -1) {\n if (currentSize > 0) {\n break;\n }\n break readLoop;\n }\n currentSize += readBytes;\n }\n\n final Key chunkKey = chunkKeys.next();\n\n /* Write it, vary the durability based upon the chunk. */\n final Durability chunkDurability = (readBytes == -1) ||\n (chunkKeys.getChunkId() == chunksPerPartition) ?\n lobDurability : CHUNK_DURABILITY;\n\n putChunk(chunkKey, chunk, currentSize,\n initialReplacePut, chunkDurability);\n numChunks++;\n if (chunkKeys.getChunkId() == 1) {\n metadataVersion =\n checkpointSuperChunkId(chunkKeys.getSuperChunkId(),\n metadataVersion);\n }\n lobSize += currentSize;\n currentSize = 0;\n initialReplacePut = false;\n }\n\n return metadataVersion;\n }", "public void setType(ChunkType type);", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder getChunksLocationOrBuilder(\n int index);", "private CompressionInfo(long bytesRead, long blocksRead, long superblocksRead, long compressedBytes,\n\t\t\t\t long compressedBlocks, long actualBytes, Map<String, Long> hashes) {\n\t\t\tthis.bytesRead = bytesRead;\n\t\t\tthis.blocksRead = blocksRead;\n\t\t\tthis.superblocksRead = superblocksRead;\n\t\t\tthis.compressedBytes = compressedBytes;\n\t\t\tthis.compressedBlocks = compressedBlocks;\n\t\t\tthis.actualBytes = actualBytes;\n\t\t\tthis.hashes = hashes;\n\t\t\tuniqueHashes = hashes.size();\n\t\t}", "public Builder setChunkRequest(entities.Torrent.ChunkRequest value) {\n if (chunkRequestBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n chunkRequest_ = value;\n onChanged();\n } else {\n chunkRequestBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder addChunksLocation(\n int index, edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation value) {\n if (chunksLocationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksLocationIsMutable();\n chunksLocation_.add(index, value);\n onChanged();\n } else {\n chunksLocationBuilder_.addMessage(index, value);\n }\n return this;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkResponseOrBuilder getStoreChunkResponseOrBuilder();", "private FileMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public String initializeChunk() {\n\t\ttry {\n\t\t\t// request \n\t\t\t// write payload size (2 ints, 4 + 4)\n\t\t\toos.writeInt(8);\n\t\t\t// write command identifier \n\t\t\toos.writeInt(ChunkServer.InitializeChunk);\n\t\t\toos.flush();\n\t\t\t// parse response \n\t\t\tint chunkHandleSize = getPayloadInt(ois);\n\t\t\t// reduce size by payload size int \n\t\t\tchunkHandleSize -= 4; \n\t\t\tbyte[] handle = getPayload(ois, chunkHandleSize);\n\t\t\treturn (new String(handle).toString());\n\t\t\t\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"ioe in initialize chunk \" + ioe.getMessage());\n\t\t}\n\t\treturn null; \n\t}", "public Builder setChunksLocation(\n int index, edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation value) {\n if (chunksLocationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChunksLocationIsMutable();\n chunksLocation_.set(index, value);\n onChanged();\n } else {\n chunksLocationBuilder_.setMessage(index, value);\n }\n return this;\n }", "public RDCAnalysisChunking(byte[] fileContent) {\n super(fileContent);\n }", "Builder spikesPerChunk(VariableAmount count);", "private CompressionInfo(long bytesRead, long compressedBytes, Map<String, Long> hashes) throws BufferLengthException {\n\t\t\tthis.bytesRead = bytesRead;\n\t\t\tthis.compressedBytes = compressedBytes;\n\t\t\t\n\t\t\tblocksRead = bytesRead / blockSize;\n\t\t\tsuperblocksRead = bytesRead / superblockSize;\n\t\t\t\n\t\t\tcompressedBlocks = (compressedBytes % blockSize == 0 ?\n\t\t\t\t\tcompressedBytes / blockSize : compressedBytes / blockSize + 1);\n\t\t\tactualBytes = compressedBlocks * blockSize;\n\t\t\tthis.hashes = hashes;\n\t\t\tuniqueHashes = hashes.size();\n\t\t}", "public void map( Chunk c ) { }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "public Builder setChunkSize(int value) {\n bitField0_ |= 0x00000004;\n chunkSize_ = value;\n onChanged();\n return this;\n }", "public entities.Torrent.ChunkRequest.Builder getChunkRequestBuilder() {\n\n onChanged();\n return getChunkRequestFieldBuilder().getBuilder();\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkSize(long value) {\n \n chunkSize_ = value;\n onChanged();\n return this;\n }", "private ExpandInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public IChunkProvider createChunkGenerator()\n {\n return new ChunkProviderXirk(this.worldObj, this.worldObj.getSeed(), false);\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public Builder clearChunksLocation() {\n if (chunksLocationBuilder_ == null) {\n chunksLocation_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n chunksLocationBuilder_.clear();\n }\n return this;\n }", "public StorageChunk() {\n\t\tsizeX = 0;\n\t\tsizeY = 0;\n\t\tsizeZ = 0;\n\t\ttileEntities = new ArrayList<TileEntity>();\n\t\tinventoryTiles = new ArrayList<TileEntity>();\n\t\tliquidTiles = new ArrayList<TileEntity>();\n\n\t\tworld = new WorldDummy(AdvancedRocketry.proxy.getProfiler(), this);\n\t}", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder getChunksLocationOrBuilder(\n int index) {\n if (chunksLocationBuilder_ == null) {\n return chunksLocation_.get(index); } else {\n return chunksLocationBuilder_.getMessageOrBuilder(index);\n }\n }", "String getChunkType();", "public CellFile(ArrayInfo ai, Transaction tx, int chunknum, String attributeName, int numBlocks, int numChunks) {\n\t\tthis.ai = ai;\n\t\tthis.tx = tx;\n\t\tthis.attributeName = attributeName;\n\t\tthis.numBlocks = numBlocks;\n\t\tthis.numChunks = numChunks;\n\t\t\n\t\tList<String> dimensions = new ArrayList<String>(ai.schema().dimensions());\n\t\tnumDimensions = dimensions.size();\n\t\tthis.currentChunk = new ArrayList<>(numDimensions);\n\t\t\n\t\tfor(int i = 0; i< numDimensions; i++) {\n\t\t\ttotalChunkNum *= ai.schema().getNumOfChunk(dimensions.get(i));\n\t\t\tnumCellsInChunk *= ai.schema().chunkSize(dimensions.get(i));\n\t\t}\n\n\t\t// move to the specified chunk, updates itself\n\t\tmoveTo(chunknum);\n\t}", "public MegaChunk(int chunkX, int chunkZ) {\n this(chunkX*16,0,chunkZ*16);\n \t//this((chunkX << 4) | 15, 0, (chunkZ << 4) | 15);\n \t\n \t//this.x = chunkX >> TConfigOption.STRUCTURES_MEGACHUNK_BITSHIFTS.getInt();\n //this.z = chunkZ >> TConfigOption.STRUCTURES_MEGACHUNK_BITSHIFTS.getInt();\n }", "public edu.usfca.cs.dfs.StorageMessages.StoreChunkLocationOrBuilder getChunksLocationOrBuilder(\n int index) {\n return chunksLocation_.get(index);\n }", "public static br.unb.cic.bionimbus.avro.gen.JobInfo.Builder newBuilder() {\n return new br.unb.cic.bionimbus.avro.gen.JobInfo.Builder();\n }" ]
[ "0.6727227", "0.64789206", "0.64665794", "0.64581233", "0.6435053", "0.6380004", "0.6353853", "0.6136448", "0.61183524", "0.6104443", "0.6074805", "0.6011596", "0.59525275", "0.59522986", "0.59335494", "0.5850256", "0.5830848", "0.56900305", "0.56566125", "0.5651069", "0.56334907", "0.56145453", "0.5598117", "0.55648345", "0.5541446", "0.55219996", "0.5517723", "0.5517723", "0.5517723", "0.5517723", "0.5517723", "0.5517723", "0.55153364", "0.54914063", "0.545379", "0.5416411", "0.54017663", "0.5368133", "0.5362576", "0.5356188", "0.53548664", "0.53429246", "0.533151", "0.53288823", "0.5296023", "0.5296023", "0.5296023", "0.5296023", "0.5296023", "0.5296023", "0.52544546", "0.5237243", "0.5233655", "0.52218145", "0.5188978", "0.5178217", "0.51746917", "0.5161723", "0.514233", "0.51418966", "0.51371", "0.51306367", "0.5128476", "0.5121879", "0.51216495", "0.51190925", "0.5114741", "0.51144207", "0.51128733", "0.5109871", "0.5107144", "0.5095342", "0.50868016", "0.50852174", "0.50829905", "0.50807023", "0.5072367", "0.5072367", "0.5072367", "0.5072367", "0.5069314", "0.5047999", "0.5047658", "0.5047658", "0.5047658", "0.5047658", "0.5047658", "0.5047658", "0.50406533", "0.5030143", "0.50300175", "0.50300175", "0.50300175", "0.50300175", "0.5028286", "0.50173", "0.50139093", "0.50120014", "0.4992908", "0.4991056" ]
0.7779073
0
Chunk order number starting from 0 uint32 index = 1;
@java.lang.Override public int getIndex() { return index_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public static int offsetBits_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return offset;\n }", "public static int offset_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return (offset / 8);\n }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getHighestChunk() {\n return highestChunk_;\n }", "com.google.protobuf.ByteString getN();", "List<DownloadChunk> mo54445j(int i);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getHighestChunk() {\n return highestChunk_;\n }", "protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }", "protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "String getChunkType();", "public short getIndex()\n {\n return index;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "int getChunksLocationCount();", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }", "public Integer getOrderIndex() {\n return orderIndex;\n }", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int calculate(int index) {\n return (head + index) % data.length;\n }", "public int order()\n {\n return numVertices;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "int getBlockNumbers(int index);", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getSplitIndex();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "public abstract int parse(byte bc[], int index);", "public int getIndex0 () {\r\n\t\treturn _index0;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "int getNumOfChunks();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "PACKET getIndex(int index);", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }", "public int getIndex() {\r\n return ordinal();\r\n }", "ByteArrayIndex createByteArrayIndex();", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "public final int getIndex(){\n return index_;\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "private int getRow(int index) {\n return index >> divShift;\n }", "public int getIndexNumber(){\n return id;\r\n }", "int getBlockNumber();", "int getBlockNumber();" ]
[ "0.78498846", "0.78498846", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.6560351", "0.6560351", "0.6539877", "0.6539877", "0.65290433", "0.65290433", "0.6437121", "0.63151425", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6182982", "0.6091172", "0.5966917", "0.5964838", "0.5949013", "0.5876683", "0.5806812", "0.5806459", "0.5778764", "0.5765947", "0.575312", "0.5735305", "0.5732035", "0.5665055", "0.56635803", "0.5622215", "0.56119925", "0.55948836", "0.55748355", "0.55589175", "0.5537258", "0.55280715", "0.55229694", "0.5520557", "0.5511085", "0.5503322", "0.5493629", "0.54753435", "0.546384", "0.54491866", "0.54147506", "0.539289", "0.53731054", "0.53716886", "0.53523934", "0.5346266", "0.53424877", "0.5336024", "0.53349954", "0.5331339", "0.5319496", "0.53181803", "0.5309685", "0.5309336", "0.5306981", "0.5306628", "0.5302169", "0.5293584", "0.5289367", "0.5280434", "0.527537", "0.527537", "0.5272753", "0.52658445", "0.526561", "0.5264213", "0.5259757", "0.52585125", "0.5255519", "0.5247433", "0.5215752", "0.5213452", "0.5199854", "0.5194442", "0.51851577", "0.5175815", "0.51742303", "0.51726705", "0.5172021", "0.5169978", "0.51678306", "0.5167171", "0.5167171" ]
0.0
-1
The standard chunk size is 1024. Last chunks will be smaller. uint32 size = 2;
@java.lang.Override public int getSize() { return size_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getChunkSize() {\n return chunkSize;\n }", "public int getChunkWidth() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkHeight() {\n return 256;\n }", "int getNumOfChunks();", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "long getSize();", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "long getSize() throws IOException;", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "int getBufferSize();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "public abstract long getSize();", "public long getSize();", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "static int fetchChunkSize(String value) {\n Integer chSize;\n try {\n chSize = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Chunksize needs to be a whole number!\", e);\n }\n if (chSize > MAX_CHUNK_SIZE || chSize < MIN_CHUNK_SIZE) {\n throw new IllegalArgumentException(\"Chunksize [\" + chSize\n + \"] cannot be less than \" + MIN_CHUNK_SIZE\n + \"MB or larger than \" + MAX_CHUNK_SIZE + \"MB\");\n }\n chunkSize = 1000 * 1000 * chSize; // MB to bytes\n return chunkSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static long getChunks() {\n return chunks;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public Vector2i getSizeInChunks() {\n return new Vector2i(getWidthInChunks(), getHeightInChunks());\n }", "public int getSize() {return size;}", "@Override\n public int getSize() {\n return 64;\n }", "private List<byte[]> split(InputStream inStream, long size) throws IOException {\r\n\t\tList<byte[]> chunkList = new ArrayList<byte[]>();\r\n\t\tint totalBytesRead = 0;\r\n\t\ttry {\r\n\t\t\twhile (totalBytesRead < size) {\r\n\t\t\t\tbyte[] buffer = splitNextChunk(inStream, size, totalBytesRead);\r\n\t\t\t\ttotalBytesRead += buffer.length;\r\n\t\t\t\tchunkList.add(buffer);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t\treturn chunkList;\r\n\t}", "public int getChunksCount() {\n return chunksCount_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public final long getSize() { return size; }", "boolean hasChunkSize();", "public int getSize() { return size; }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public int getSize(){return _size;}", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public final AstValidator.chunksize_clause_return chunksize_clause() throws RecognitionException {\n AstValidator.chunksize_clause_return retval = new AstValidator.chunksize_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CHUNKSIZE127=null;\n CommonTree INTEGER128=null;\n\n CommonTree CHUNKSIZE127_tree=null;\n CommonTree INTEGER128_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:5: ( ^( CHUNKSIZE INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:7: ^( CHUNKSIZE INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CHUNKSIZE127=(CommonTree)match(input,CHUNKSIZE,FOLLOW_CHUNKSIZE_in_chunksize_clause1353); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CHUNKSIZE127_tree = (CommonTree)adaptor.dupNode(CHUNKSIZE127);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CHUNKSIZE127_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER128=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_chunksize_clause1355); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER128_tree = (CommonTree)adaptor.dupNode(INTEGER128);\n\n\n adaptor.addChild(root_1, INTEGER128_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public abstract long size() throws IOException;", "int getLocalSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "public abstract int getMaxIntermediateSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "default int getPackedArraySizeFast(int inputLength) {\n return (int) Math.ceil((double) inputLength * ( (double) maxBitLength() / 8.000 ) );\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getChunksLocationCount();", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "int getBlockSize();", "@Override public long getSimulatedSize() {\n return 1;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "int fixedSize();", "public int getLocalSize();", "int getSize ();", "int getServerPayloadSizeBytes();", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "@Override\n public int getSize() { return size; }" ]
[ "0.77679664", "0.766589", "0.766589", "0.766589", "0.766589", "0.70439804", "0.68225527", "0.67184824", "0.67105126", "0.66936415", "0.66936415", "0.6589024", "0.65888137", "0.6565171", "0.65532076", "0.6549472", "0.6541413", "0.64730096", "0.6471363", "0.6471363", "0.6471363", "0.6471363", "0.6465017", "0.6425808", "0.6340919", "0.6340919", "0.6340919", "0.6340919", "0.6297392", "0.62867844", "0.62463", "0.6232538", "0.61718655", "0.6168568", "0.6166892", "0.6166167", "0.61532027", "0.6150535", "0.6145961", "0.6121263", "0.6098675", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6097439", "0.6078665", "0.6078342", "0.6077947", "0.60775554", "0.6076753", "0.60713285", "0.6061044", "0.6035118", "0.6030376", "0.6007486", "0.59884214", "0.59743094", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59740484", "0.59716487", "0.59613544", "0.5946868", "0.5942413", "0.59379625", "0.5929765", "0.59111047", "0.59087926", "0.5896936", "0.5896334", "0.5896334", "0.5896334", "0.5896334", "0.5894937", "0.5889437", "0.5887424", "0.58820003", "0.58816594", "0.5876143", "0.58745533", "0.58717054", "0.58632445", "0.5852644", "0.58506465", "0.5827118" ]
0.0
-1
MD5 of the chunk content (1024 bytes or less) bytes hash = 3;
@java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMD5() {\n return hash;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "byte[] getDigest();", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "public byte[] getMD5() {\n return MD5;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "int getClientHashLength();", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "java.lang.String getChecksum();", "long hash(Block block, int position);", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static byte[][] computeContentDigestsPer1MbChunk(int[] digestAlgorithms, DataSource[] contents) throws DigestException {\n int[] iArr = digestAlgorithms;\n DataSource[] dataSourceArr = contents;\n int i = 0;\n long totalChunkCountLong = 0;\n for (DataSource input : dataSourceArr) {\n totalChunkCountLong += getChunkCount(input.size());\n }\n if (totalChunkCountLong < 2097151) {\n int totalChunkCount = (int) totalChunkCountLong;\n byte[][] digestsOfChunks = new byte[iArr.length][];\n for (int i2 = 0; i2 < iArr.length; i2++) {\n byte[] concatenationOfChunkCountAndChunkDigests = new byte[((totalChunkCount * getContentDigestAlgorithmOutputSizeBytes(iArr[i2])) + 5)];\n concatenationOfChunkCountAndChunkDigests[0] = 90;\n setUnsignedInt32LittleEndian(totalChunkCount, concatenationOfChunkCountAndChunkDigests, 1);\n digestsOfChunks[i2] = concatenationOfChunkCountAndChunkDigests;\n }\n byte[] chunkContentPrefix = new byte[5];\n chunkContentPrefix[0] = -91;\n int chunkIndex = 0;\n MessageDigest[] mds = new MessageDigest[iArr.length];\n for (int i3 = 0; i3 < iArr.length; i3++) {\n String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(iArr[i3]);\n try {\n mds[i3] = MessageDigest.getInstance(jcaAlgorithmName);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(jcaAlgorithmName + \" digest not supported\", e);\n }\n }\n DataDigester digester = new MultipleDigestDataDigester(mds);\n int chunkIndex2 = dataSourceArr.length;\n int dataSourceIndex = 0;\n while (i < chunkIndex2) {\n DataSource input2 = dataSourceArr[i];\n long inputOffset = 0;\n int chunkIndex3 = chunkIndex;\n long inputRemaining = input2.size();\n while (inputRemaining > 0) {\n int chunkSize = (int) Math.min(inputRemaining, 1048576L);\n setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1);\n int i4 = 0;\n while (i4 < mds.length) {\n mds[i4].update(chunkContentPrefix);\n i4++;\n totalChunkCountLong = totalChunkCountLong;\n }\n try {\n input2.feedIntoDataDigester(digester, inputOffset, chunkSize);\n int i5 = 0;\n while (i5 < digestAlgorithms.length) {\n int digestAlgorithm = digestAlgorithms[i5];\n byte[] concatenationOfChunkCountAndChunkDigests2 = digestsOfChunks[i5];\n int expectedDigestSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm);\n MessageDigest md = mds[i5];\n int actualDigestSizeBytes = md.digest(concatenationOfChunkCountAndChunkDigests2, (chunkIndex3 * expectedDigestSizeBytes) + 5, expectedDigestSizeBytes);\n if (actualDigestSizeBytes == expectedDigestSizeBytes) {\n i5++;\n chunkContentPrefix = chunkContentPrefix;\n input2 = input2;\n mds = mds;\n } else {\n throw new RuntimeException(\"Unexpected output size of \" + md.getAlgorithm() + \" digest: \" + actualDigestSizeBytes);\n }\n }\n inputOffset += (long) chunkSize;\n inputRemaining -= (long) chunkSize;\n chunkIndex3++;\n iArr = digestAlgorithms;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n } catch (IOException e2) {\n throw new DigestException(\"Failed to digest chunk #\" + chunkIndex3 + \" of section #\" + dataSourceIndex, e2);\n }\n }\n dataSourceIndex++;\n i++;\n dataSourceArr = contents;\n chunkIndex = chunkIndex3;\n totalChunkCount = totalChunkCount;\n chunkIndex2 = chunkIndex2;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n }\n byte[][] result = new byte[iArr.length][];\n for (int i6 = 0; i6 < iArr.length; i6++) {\n int digestAlgorithm2 = iArr[i6];\n byte[] input3 = digestsOfChunks[i6];\n String jcaAlgorithmName2 = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm2);\n try {\n result[i6] = MessageDigest.getInstance(jcaAlgorithmName2).digest(input3);\n } catch (NoSuchAlgorithmException e3) {\n throw new RuntimeException(jcaAlgorithmName2 + \" digest not supported\", e3);\n }\n }\n return result;\n }\n throw new DigestException(\"Too many chunks: \" + totalChunkCountLong);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "java.lang.String getHashData();", "int getHash();", "public final MessageDigest mo32304a() {\n synchronized (this.f29524b) {\n if (f29523a != null) {\n MessageDigest messageDigest = f29523a;\n return messageDigest;\n }\n for (int i = 0; i < 2; i++) {\n try {\n f29523a = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n }\n }\n MessageDigest messageDigest2 = f29523a;\n return messageDigest2;\n }\n }", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "private byte[] digestMsg(byte[][] parsedMsg) {\n\n int a, b, c, d, e, f, g, h;\n int[] hashValues = new int[8];\n\n // Initialize hash values for the first iteration, as per section 5.3.3\n System.arraycopy(H, 0, hashValues, 0, 8);\n\n // Iterate through the input message blocks\n for (int i = 0; i < parsedMsg.length; i++) {\n // 1. Prepare message schedule\n fillWords(parsedMsg[i]);\n\n // 2. Initialize working variables with hash values of previous iteration\n a = hashValues[0];\n b = hashValues[1];\n c = hashValues[2];\n d = hashValues[3];\n e = hashValues[4];\n f = hashValues[5];\n g = hashValues[6];\n h = hashValues[7];\n\n // 3. Compute updated working variables\n for (int t = 0; t < 64; t++) {\n int T1 = h + Sum1(e) + Ch(e, f, g) + K[t] + words[t];\n int T2 = Sum0(a) + Maj(a, b, c);\n h = g;\n g = f;\n f = e;\n e = d + T1;\n d = c;\n c = b;\n b = a;\n a = T1 + T2;\n }\n\n // 4. Update hash values\n hashValues[0] = a + hashValues[0];\n hashValues[1] = b + hashValues[1];\n hashValues[2] = c + hashValues[2];\n hashValues[3] = d + hashValues[3];\n hashValues[4] = e + hashValues[4];\n hashValues[5] = f + hashValues[5];\n hashValues[6] = g + hashValues[6];\n hashValues[7] = h + hashValues[7];\n }\n\n\n // Finalize the hash value\n // Concatenate the hash values to one 256-bit output byte[]\n byte[] digest = new byte[32];\n for (int i = 0; i < 8; i++) {\n System.arraycopy(intToBytes(hashValues[i]), 0, digest, 4 * i, 4);\n }\n\n return digest;\n }", "public abstract int getHash();", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public String getMetaDigest ()\n {\n return _metaDigest;\n }", "String getHash();", "String getHash();", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public String get_Md5_Hash(String sStringToEncode) throws Exception {\n String sRetval = \"\";\n StringBuffer sb = new StringBuffer();\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest = md.digest(sStringToEncode.getBytes(\"UTF-8\"));\n BigInteger number = new BigInteger(1, messageDigest);\n String hashtext = number.toString(16);\n sRetval = hashtext;\n } catch (Exception e) {\n throw new Exception(\"get_Md5_Hash : \" + e);\n }\n return sRetval;\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }" ]
[ "0.69080025", "0.675877", "0.6714178", "0.66375774", "0.6440513", "0.6350388", "0.62879944", "0.62833184", "0.62466013", "0.6210247", "0.6199277", "0.61927915", "0.61905885", "0.6161571", "0.6152501", "0.6129389", "0.61098826", "0.610888", "0.6091407", "0.6086834", "0.60803723", "0.6067552", "0.60597", "0.60414183", "0.60414183", "0.59769785", "0.5975609", "0.5965042", "0.59451795", "0.59293216", "0.5928838", "0.5927346", "0.5912926", "0.59038436", "0.59020334", "0.58982205", "0.5896437", "0.589628", "0.5892141", "0.588519", "0.5868952", "0.5838761", "0.5829923", "0.58238167", "0.58221644", "0.58216375", "0.5814627", "0.5807485", "0.5791644", "0.57775235", "0.5770979", "0.57625365", "0.5753192", "0.5750851", "0.5742538", "0.5741913", "0.5735255", "0.5733149", "0.57221264", "0.5719681", "0.5700796", "0.5698604", "0.568975", "0.5687686", "0.5687686", "0.5668654", "0.56567967", "0.5634023", "0.5626694", "0.5625322", "0.5623003", "0.5616034", "0.5604194", "0.5598044", "0.5589727", "0.55833596", "0.5573331", "0.5571993", "0.5567301", "0.5564902", "0.5556855", "0.55557495", "0.5553095", "0.55526173", "0.5536754", "0.5532043", "0.5529633", "0.5510254", "0.55072623", "0.54841393", "0.5480052", "0.5480052", "0.54781395", "0.54323846", "0.5430723", "0.54254115", "0.5424467", "0.54094464", "0.5400123", "0.53871", "0.5379468" ]
0.0
-1
Chunk order number starting from 0 uint32 index = 1;
@java.lang.Override public int getIndex() { return index_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public static int offsetBits_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return offset;\n }", "public static int offset_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return (offset / 8);\n }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getHighestChunk() {\n return highestChunk_;\n }", "com.google.protobuf.ByteString getN();", "List<DownloadChunk> mo54445j(int i);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getHighestChunk() {\n return highestChunk_;\n }", "protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }", "protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "String getChunkType();", "public short getIndex()\n {\n return index;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "int getChunksLocationCount();", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }", "public Integer getOrderIndex() {\n return orderIndex;\n }", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int calculate(int index) {\n return (head + index) % data.length;\n }", "public int order()\n {\n return numVertices;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "int getBlockNumbers(int index);", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getSplitIndex();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "public abstract int parse(byte bc[], int index);", "public int getIndex0 () {\r\n\t\treturn _index0;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "int getNumOfChunks();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "PACKET getIndex(int index);", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }", "public int getIndex() {\r\n return ordinal();\r\n }", "ByteArrayIndex createByteArrayIndex();", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "public final int getIndex(){\n return index_;\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "private int getRow(int index) {\n return index >> divShift;\n }", "int getBlockNumber();", "int getBlockNumber();", "public int getIndexNumber(){\n return id;\r\n }" ]
[ "0.78513604", "0.78513604", "0.70242095", "0.70242095", "0.70242095", "0.70242095", "0.70242095", "0.70242095", "0.6562278", "0.6562278", "0.6541646", "0.6541646", "0.6531115", "0.6531115", "0.6437964", "0.6316011", "0.6228273", "0.6228273", "0.6228273", "0.6228273", "0.6228273", "0.6228273", "0.61926466", "0.61926466", "0.61926466", "0.61926466", "0.61926466", "0.61926466", "0.6184365", "0.60941833", "0.5969191", "0.59671134", "0.5950936", "0.5876945", "0.58078843", "0.5807234", "0.57819295", "0.5767886", "0.57529646", "0.57357347", "0.57349855", "0.5666033", "0.5665005", "0.5622209", "0.56138146", "0.5594351", "0.55755484", "0.55596036", "0.5538262", "0.5528907", "0.55250186", "0.5520346", "0.55101657", "0.5506036", "0.54955626", "0.5475471", "0.54668266", "0.54492027", "0.5414235", "0.53896725", "0.53732294", "0.53715295", "0.53523904", "0.5344688", "0.5343641", "0.5337437", "0.53370637", "0.5330582", "0.5320409", "0.53187317", "0.53087234", "0.5308428", "0.53070545", "0.53065026", "0.53022933", "0.5296966", "0.5288639", "0.52847093", "0.52781284", "0.52781284", "0.52719", "0.52654976", "0.5264978", "0.52644604", "0.52599883", "0.5258312", "0.5254996", "0.5247387", "0.5215358", "0.5213695", "0.51997316", "0.51934785", "0.51852053", "0.51750565", "0.5174091", "0.51718605", "0.5171642", "0.5169769", "0.5169176", "0.5169176", "0.5167821" ]
0.0
-1
Chunk order number starting from 0 uint32 index = 1;
public Builder setIndex(int value) { index_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public static int offsetBits_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return offset;\n }", "public static int offset_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return (offset / 8);\n }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getHighestChunk() {\n return highestChunk_;\n }", "com.google.protobuf.ByteString getN();", "List<DownloadChunk> mo54445j(int i);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getHighestChunk() {\n return highestChunk_;\n }", "protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }", "protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "String getChunkType();", "public short getIndex()\n {\n return index;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "int getChunksLocationCount();", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }", "public Integer getOrderIndex() {\n return orderIndex;\n }", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int calculate(int index) {\n return (head + index) % data.length;\n }", "public int order()\n {\n return numVertices;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "int getBlockNumbers(int index);", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getSplitIndex();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "public abstract int parse(byte bc[], int index);", "public int getIndex0 () {\r\n\t\treturn _index0;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "int getNumOfChunks();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "PACKET getIndex(int index);", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }", "public int getIndex() {\r\n return ordinal();\r\n }", "ByteArrayIndex createByteArrayIndex();", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "public final int getIndex(){\n return index_;\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "private int getRow(int index) {\n return index >> divShift;\n }", "public int getIndexNumber(){\n return id;\r\n }", "int getBlockNumber();", "int getBlockNumber();" ]
[ "0.78498846", "0.78498846", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.702188", "0.6560351", "0.6560351", "0.6539877", "0.6539877", "0.65290433", "0.65290433", "0.6437121", "0.63151425", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6225323", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6189694", "0.6182982", "0.6091172", "0.5966917", "0.5964838", "0.5949013", "0.5876683", "0.5806812", "0.5806459", "0.5778764", "0.5765947", "0.575312", "0.5735305", "0.5732035", "0.5665055", "0.56635803", "0.5622215", "0.56119925", "0.55948836", "0.55748355", "0.55589175", "0.5537258", "0.55280715", "0.55229694", "0.5520557", "0.5511085", "0.5503322", "0.5493629", "0.54753435", "0.546384", "0.54491866", "0.54147506", "0.539289", "0.53731054", "0.53716886", "0.53523934", "0.5346266", "0.53424877", "0.5336024", "0.53349954", "0.5331339", "0.5319496", "0.53181803", "0.5309685", "0.5309336", "0.5306981", "0.5306628", "0.5302169", "0.5293584", "0.5289367", "0.5280434", "0.527537", "0.527537", "0.5272753", "0.52658445", "0.526561", "0.5264213", "0.5259757", "0.52585125", "0.5255519", "0.5247433", "0.5215752", "0.5213452", "0.5199854", "0.5194442", "0.51851577", "0.5175815", "0.51742303", "0.51726705", "0.5172021", "0.5169978", "0.51678306", "0.5167171", "0.5167171" ]
0.0
-1
Chunk order number starting from 0 uint32 index = 1;
public Builder clearIndex() { index_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "entities.Torrent.ChunkInfo getChunks(int index);", "protected String _getChunkId(String id, int index) {\n\t\treturn id + \"[\" + index + \"]\";\n\t}", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public Builder setChunkIndex(int value) {\n\n chunkIndex_ = value;\n onChanged();\n return this;\n }", "public int currentChunkNum() {\n\t\treturn cp.chunk().getChunkNum();\n\t}", "public int getIndex() {\n\t\treturn index & 0xffff;\n\t}", "public static int offsetBits_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return offset;\n }", "public static int offset_entries_id(int index1) {\n int offset = 0;\n if (index1 < 0 || index1 >= 11) throw new ArrayIndexOutOfBoundsException();\n offset += 80 + index1 * 16;\n return (offset / 8);\n }", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "public int getHighestChunk() {\n return highestChunk_;\n }", "com.google.protobuf.ByteString getN();", "List<DownloadChunk> mo54445j(int i);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "protected int realIndex(int index) {\n return index & (buf.length -1);\n }", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getHighestChunk() {\n return highestChunk_;\n }", "protected short _getShort(int index)\r\n/* 334: */ {\r\n/* 335:348 */ return HeapByteBufUtil.getShort(this.array, index);\r\n/* 336: */ }", "protected int arrayIndex(long windowIndex) {\n return (int) (windowIndex % length());\n }", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "private int getImageBufferStartIndex(int trackNumber, FloppyDriveSide side) {\n return BYTES_PER_SECTOR * (SECTORS_PER_TRACK * (trackNumber * 2 + side.ordinal())\n + sectorIndex);\n }", "String getChunkType();", "public short getIndex()\n {\n return index;\n }", "public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "private byte getIndex(int n) {\r\n\t\tint originalN = n;\r\n\t\tif (n < Constants.DIMENSION - 1) {\r\n\t\t\tdo {\r\n\t\t\t\tn = Constants.getRandom().nextInt(Constants.DIMENSION);\r\n\t\t\t//} while (n > Constants.FIELD_DIMENSION - 1);\r\n\t\t\t//} while ((n < originalN) || (n > Constants.FIELD_DIMENSION - 1));\r\n\t\t\t} while ((n == originalN) || (n > Constants.DIMENSION - 1));\r\n\t\t}\r\n\t\treturn (byte) n;\r\n\t}", "int getReceivingMinorFragmentId(int index);", "int getChunksLocationCount();", "public int getIndexGegenueber(int index) {\n\t\tindex -= 13;\n\t\tif(index < 0)\n\t\t\tindex*= (-1);\n\t\treturn index;\n\t}", "protected short _getShortLE(int index)\r\n/* 345: */ {\r\n/* 346:359 */ return HeapByteBufUtil.getShortLE(this.array, index);\r\n/* 347: */ }", "public Integer getOrderIndex() {\n return orderIndex;\n }", "@java.lang.Override\n public entities.Torrent.ChunkInfo getChunks(int index) {\n return chunks_.get(index);\n }", "public int getIndex()\n/* */ {\n/* 46 */ return this.index;\n/* */ }", "private int calculate(int index) {\n return (head + index) % data.length;\n }", "public int order()\n {\n return numVertices;\n }", "public long get_next_index(long number) {\n return ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].getLong((int) (number * POINTER_LENGTH % ptr_parts_size[0] + 13));\n }", "int getBlockNumbers(int index);", "private int getCol(int index) {\n return index & (chunkSize - 1);\n }", "int getSplitIndex();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "public abstract int parse(byte bc[], int index);", "byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }", "public int getIndex0 () {\r\n\t\treturn _index0;\r\n\t}", "public int getIndex() {\n\t\treturn 0;\n\t}", "public int getSeekIndex() {\n return getIntegerProperty(\"Index\");\n }", "private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }", "int getNumOfChunks();", "private int next(int index) {\n return (index + 2) & mask;\n }", "public void setChunkNumber(int chunkNumber) {\r\n\t\tthis.chunkNumber = chunkNumber;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "private int getParentIndex(int index){\n return (index-1) >> 1;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "PACKET getIndex(int index);", "private static int getNodeIndex(int index, int depth) {\n return (index >>> depth) & 0x1F;\n }", "public entities.Torrent.ChunkInfo getChunks(int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index);\n } else {\n return chunksBuilder_.getMessage(index);\n }\n }", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_INDEX;\n\t\t}\n\t\treturn -1;\n\t}", "public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }", "public int getIndex() {\r\n return ordinal();\r\n }", "ByteArrayIndex createByteArrayIndex();", "private int getNumberBufAsInt(ByteOrder byteOrder, int nrReadBytes,\n int firstBytePos) {\n\n int result = 0;\n int bytePortion = 0;\n for (int i = 0; i < nrReadBytes; i++) {\n bytePortion = 0xFF & (byteBuffer.get(firstBytePos++));\n\n if (byteOrder == ByteOrder.LittleEndian)\n // reshift bytes\n result = result | bytePortion << (i << 3);\n else\n result = bytePortion << ((nrReadBytes - i - 1) << 3) | result;\n }\n\n return result;\n }", "public int getBlockNumbers(int index) {\n return blockNumbers_.get(index);\n }", "public final int getIndex(){\n return index_;\n }", "private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}", "private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}", "public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}", "@Override\n\tpublic int getOrderLineIndex(int parseInt) {\n\t\treturn 0;\n\t}", "private int getEthIdx() {\n return this.colStartOffset + 3;\n }", "private int getRow(int index) {\n return index >> divShift;\n }", "int getBlockNumber();", "int getBlockNumber();", "public int getIndexNumber(){\n return id;\r\n }" ]
[ "0.78516495", "0.78516495", "0.7024464", "0.7024464", "0.7024464", "0.7024464", "0.7024464", "0.7024464", "0.65617007", "0.65617007", "0.6541263", "0.6541263", "0.6532396", "0.6532396", "0.64392924", "0.6315612", "0.6227738", "0.6227738", "0.6227738", "0.6227738", "0.6227738", "0.6227738", "0.6192091", "0.6192091", "0.6192091", "0.6192091", "0.6192091", "0.6192091", "0.6184372", "0.60935473", "0.59691536", "0.5967077", "0.59515524", "0.58745366", "0.58055884", "0.58049715", "0.5780643", "0.5768781", "0.57549113", "0.5735624", "0.5734709", "0.56651545", "0.56632614", "0.5624562", "0.5614736", "0.5593918", "0.55728644", "0.5558973", "0.55374336", "0.55283344", "0.55260116", "0.55186194", "0.5511172", "0.5506933", "0.54931545", "0.5475131", "0.54672295", "0.5447809", "0.5413584", "0.53901255", "0.5374249", "0.53695554", "0.53516775", "0.53458416", "0.53421557", "0.53368485", "0.53354025", "0.5330868", "0.53198683", "0.5317932", "0.5307527", "0.5307038", "0.5306412", "0.5305644", "0.530145", "0.5297991", "0.5286958", "0.5283439", "0.52797043", "0.52797043", "0.5271802", "0.5265311", "0.52634174", "0.52625453", "0.5260086", "0.5257931", "0.525444", "0.5245452", "0.52141035", "0.52136743", "0.51995355", "0.51915294", "0.51829845", "0.51734906", "0.51730835", "0.5171834", "0.517179", "0.51690555", "0.51688194", "0.51688194", "0.5165973" ]
0.0
-1
The standard chunk size is 1024. Last chunks will be smaller. uint32 size = 2;
@java.lang.Override public int getSize() { return size_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getChunkSize() {\n return chunkSize;\n }", "public int getChunkWidth() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "public int getChunkHeight() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "int getNumOfChunks();", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "long getSize();", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "long getSize() throws IOException;", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "int getBufferSize();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "public abstract long getSize();", "public long getSize();", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "static int fetchChunkSize(String value) {\n Integer chSize;\n try {\n chSize = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Chunksize needs to be a whole number!\", e);\n }\n if (chSize > MAX_CHUNK_SIZE || chSize < MIN_CHUNK_SIZE) {\n throw new IllegalArgumentException(\"Chunksize [\" + chSize\n + \"] cannot be less than \" + MIN_CHUNK_SIZE\n + \"MB or larger than \" + MAX_CHUNK_SIZE + \"MB\");\n }\n chunkSize = 1000 * 1000 * chSize; // MB to bytes\n return chunkSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static long getChunks() {\n return chunks;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public Vector2i getSizeInChunks() {\n return new Vector2i(getWidthInChunks(), getHeightInChunks());\n }", "public int getSize() {return size;}", "@Override\n public int getSize() {\n return 64;\n }", "private List<byte[]> split(InputStream inStream, long size) throws IOException {\r\n\t\tList<byte[]> chunkList = new ArrayList<byte[]>();\r\n\t\tint totalBytesRead = 0;\r\n\t\ttry {\r\n\t\t\twhile (totalBytesRead < size) {\r\n\t\t\t\tbyte[] buffer = splitNextChunk(inStream, size, totalBytesRead);\r\n\t\t\t\ttotalBytesRead += buffer.length;\r\n\t\t\t\tchunkList.add(buffer);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t\treturn chunkList;\r\n\t}", "public int getChunksCount() {\n return chunksCount_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public final long getSize() { return size; }", "boolean hasChunkSize();", "public int getSize() { return size; }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public int getSize(){return _size;}", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public final AstValidator.chunksize_clause_return chunksize_clause() throws RecognitionException {\n AstValidator.chunksize_clause_return retval = new AstValidator.chunksize_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CHUNKSIZE127=null;\n CommonTree INTEGER128=null;\n\n CommonTree CHUNKSIZE127_tree=null;\n CommonTree INTEGER128_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:5: ( ^( CHUNKSIZE INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:7: ^( CHUNKSIZE INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CHUNKSIZE127=(CommonTree)match(input,CHUNKSIZE,FOLLOW_CHUNKSIZE_in_chunksize_clause1353); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CHUNKSIZE127_tree = (CommonTree)adaptor.dupNode(CHUNKSIZE127);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CHUNKSIZE127_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER128=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_chunksize_clause1355); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER128_tree = (CommonTree)adaptor.dupNode(INTEGER128);\n\n\n adaptor.addChild(root_1, INTEGER128_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public abstract long size() throws IOException;", "int getLocalSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "public abstract int getMaxIntermediateSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "default int getPackedArraySizeFast(int inputLength) {\n return (int) Math.ceil((double) inputLength * ( (double) maxBitLength() / 8.000 ) );\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getChunksLocationCount();", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "int getBlockSize();", "@Override public long getSimulatedSize() {\n return 1;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "int fixedSize();", "public int getLocalSize();", "int getSize ();", "int getServerPayloadSizeBytes();", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "int getSampleSize();" ]
[ "0.77672553", "0.7665053", "0.7665053", "0.7665053", "0.7665053", "0.70434403", "0.6823302", "0.6718034", "0.6709958", "0.66931564", "0.66931564", "0.6588866", "0.65885633", "0.65651536", "0.6552774", "0.6549481", "0.6541563", "0.6472662", "0.647093", "0.647093", "0.647093", "0.647093", "0.64651936", "0.64256316", "0.6340459", "0.6340459", "0.6340459", "0.6340459", "0.6297112", "0.6286201", "0.6244172", "0.6233136", "0.61710083", "0.6168383", "0.6166613", "0.6165876", "0.61527264", "0.61496305", "0.6145343", "0.6122809", "0.6098555", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6078847", "0.6077672", "0.607715", "0.60767305", "0.6076047", "0.60707325", "0.6060674", "0.6033868", "0.6029757", "0.6007404", "0.59870213", "0.59738076", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5971923", "0.59616965", "0.5946418", "0.5943564", "0.5937219", "0.5929318", "0.5911478", "0.5909222", "0.5899086", "0.5896081", "0.5896081", "0.5896081", "0.5896081", "0.58942324", "0.5889079", "0.58879477", "0.5881666", "0.5881502", "0.5877095", "0.5875556", "0.58715445", "0.58638304", "0.58526105", "0.5849519", "0.58274674" ]
0.0
-1
The standard chunk size is 1024. Last chunks will be smaller. uint32 size = 2;
public Builder setSize(int value) { size_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getChunkSize() {\n return chunkSize;\n }", "public int getChunkWidth() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "public int getChunkHeight() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "int getNumOfChunks();", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "long getSize();", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "long getSize() throws IOException;", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "int getBufferSize();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "public abstract long getSize();", "public long getSize();", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "static int fetchChunkSize(String value) {\n Integer chSize;\n try {\n chSize = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Chunksize needs to be a whole number!\", e);\n }\n if (chSize > MAX_CHUNK_SIZE || chSize < MIN_CHUNK_SIZE) {\n throw new IllegalArgumentException(\"Chunksize [\" + chSize\n + \"] cannot be less than \" + MIN_CHUNK_SIZE\n + \"MB or larger than \" + MAX_CHUNK_SIZE + \"MB\");\n }\n chunkSize = 1000 * 1000 * chSize; // MB to bytes\n return chunkSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static long getChunks() {\n return chunks;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public Vector2i getSizeInChunks() {\n return new Vector2i(getWidthInChunks(), getHeightInChunks());\n }", "public int getSize() {return size;}", "@Override\n public int getSize() {\n return 64;\n }", "private List<byte[]> split(InputStream inStream, long size) throws IOException {\r\n\t\tList<byte[]> chunkList = new ArrayList<byte[]>();\r\n\t\tint totalBytesRead = 0;\r\n\t\ttry {\r\n\t\t\twhile (totalBytesRead < size) {\r\n\t\t\t\tbyte[] buffer = splitNextChunk(inStream, size, totalBytesRead);\r\n\t\t\t\ttotalBytesRead += buffer.length;\r\n\t\t\t\tchunkList.add(buffer);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t\treturn chunkList;\r\n\t}", "public int getChunksCount() {\n return chunksCount_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public final long getSize() { return size; }", "boolean hasChunkSize();", "public int getSize() { return size; }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize(){return _size;}", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public final AstValidator.chunksize_clause_return chunksize_clause() throws RecognitionException {\n AstValidator.chunksize_clause_return retval = new AstValidator.chunksize_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CHUNKSIZE127=null;\n CommonTree INTEGER128=null;\n\n CommonTree CHUNKSIZE127_tree=null;\n CommonTree INTEGER128_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:5: ( ^( CHUNKSIZE INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:7: ^( CHUNKSIZE INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CHUNKSIZE127=(CommonTree)match(input,CHUNKSIZE,FOLLOW_CHUNKSIZE_in_chunksize_clause1353); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CHUNKSIZE127_tree = (CommonTree)adaptor.dupNode(CHUNKSIZE127);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CHUNKSIZE127_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER128=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_chunksize_clause1355); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER128_tree = (CommonTree)adaptor.dupNode(INTEGER128);\n\n\n adaptor.addChild(root_1, INTEGER128_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public abstract long size() throws IOException;", "int getLocalSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "public abstract int getMaxIntermediateSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "default int getPackedArraySizeFast(int inputLength) {\n return (int) Math.ceil((double) inputLength * ( (double) maxBitLength() / 8.000 ) );\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getChunksLocationCount();", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "int getBlockSize();", "@Override public long getSimulatedSize() {\n return 1;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "int fixedSize();", "public int getLocalSize();", "int getSize ();", "int getServerPayloadSizeBytes();", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "int getSampleSize();" ]
[ "0.7766904", "0.7664714", "0.7664714", "0.7664714", "0.7664714", "0.7042876", "0.6824101", "0.67174554", "0.67095006", "0.66943115", "0.66943115", "0.65898174", "0.6588015", "0.6566169", "0.6552256", "0.6548519", "0.65409833", "0.647336", "0.64703065", "0.64703065", "0.64703065", "0.64703065", "0.6465334", "0.6426195", "0.6339852", "0.6339852", "0.6339852", "0.6339852", "0.62974125", "0.6287348", "0.6245277", "0.62327385", "0.61715513", "0.61686856", "0.6167043", "0.6166514", "0.6153053", "0.6149649", "0.6146551", "0.6123543", "0.6098968", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.6097524", "0.60801995", "0.60779524", "0.6077891", "0.6076879", "0.60768735", "0.60701245", "0.60610217", "0.6033919", "0.6030119", "0.6007555", "0.5987448", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.5974086", "0.597371", "0.5972863", "0.5962257", "0.59462315", "0.59431964", "0.5938104", "0.59303993", "0.5910982", "0.590977", "0.5899858", "0.5896257", "0.5896257", "0.5896257", "0.5896257", "0.58953404", "0.5888763", "0.58878076", "0.5882326", "0.5882198", "0.587729", "0.58750415", "0.58717734", "0.58640295", "0.58530664", "0.5849959", "0.582802" ]
0.0
-1
The standard chunk size is 1024. Last chunks will be smaller. uint32 size = 2;
public Builder clearSize() { size_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "public int getChunkSize() {\n return chunkSize;\n }", "public int getChunkWidth() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "int getChunksCount();", "int getChunksCount();", "public int getChunkHeight() {\n return 256;\n }", "public int getChunkSize() {\n return chunkSize_;\n }", "int getNumOfChunks();", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private int readChunkSize(int desired) {\n return Math.min(availableFirst(), desired);\n }", "public Vector2i getChunkSize() {\n return new Vector2i(getChunkWidth(), getChunkHeight());\n }", "public long getSize() {\n long size = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n size += encoder.size();\n }\n }\n \n return size;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "long getSize();", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "public long getChunkSize() {\n return chunkSize_;\n }", "long getSize() throws IOException;", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "int getBufferSize();", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "public abstract long getSize();", "public long getSize();", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "static int fetchChunkSize(String value) {\n Integer chSize;\n try {\n chSize = Integer.parseInt(value);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"Chunksize needs to be a whole number!\", e);\n }\n if (chSize > MAX_CHUNK_SIZE || chSize < MIN_CHUNK_SIZE) {\n throw new IllegalArgumentException(\"Chunksize [\" + chSize\n + \"] cannot be less than \" + MIN_CHUNK_SIZE\n + \"MB or larger than \" + MAX_CHUNK_SIZE + \"MB\");\n }\n chunkSize = 1000 * 1000 * chSize; // MB to bytes\n return chunkSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static long getChunks() {\n return chunks;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public Vector2i getSizeInChunks() {\n return new Vector2i(getWidthInChunks(), getHeightInChunks());\n }", "public int getSize() {return size;}", "@Override\n public int getSize() {\n return 64;\n }", "private List<byte[]> split(InputStream inStream, long size) throws IOException {\r\n\t\tList<byte[]> chunkList = new ArrayList<byte[]>();\r\n\t\tint totalBytesRead = 0;\r\n\t\ttry {\r\n\t\t\twhile (totalBytesRead < size) {\r\n\t\t\t\tbyte[] buffer = splitNextChunk(inStream, size, totalBytesRead);\r\n\t\t\t\ttotalBytesRead += buffer.length;\r\n\t\t\t\tchunkList.add(buffer);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tinStream.close();\r\n\t\t}\r\n\t\treturn chunkList;\r\n\t}", "public int getChunksCount() {\n return chunksCount_;\n }", "public final int cacheNodeChunkSize() {\n return -1;\r\n }", "public final long getSize() { return size; }", "boolean hasChunkSize();", "public int getSize() { return size; }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "public int getSize(){return _size;}", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public final AstValidator.chunksize_clause_return chunksize_clause() throws RecognitionException {\n AstValidator.chunksize_clause_return retval = new AstValidator.chunksize_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree CHUNKSIZE127=null;\n CommonTree INTEGER128=null;\n\n CommonTree CHUNKSIZE127_tree=null;\n CommonTree INTEGER128_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:5: ( ^( CHUNKSIZE INTEGER ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:312:7: ^( CHUNKSIZE INTEGER )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n CHUNKSIZE127=(CommonTree)match(input,CHUNKSIZE,FOLLOW_CHUNKSIZE_in_chunksize_clause1353); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n CHUNKSIZE127_tree = (CommonTree)adaptor.dupNode(CHUNKSIZE127);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(CHUNKSIZE127_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INTEGER128=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_chunksize_clause1355); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER128_tree = (CommonTree)adaptor.dupNode(INTEGER128);\n\n\n adaptor.addChild(root_1, INTEGER128_tree);\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public abstract long size() throws IOException;", "int getLocalSize();", "public int getChunksCount() {\n return chunksCount_;\n }", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "public abstract int getMaxIntermediateSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "default int getPackedArraySizeFast(int inputLength) {\n return (int) Math.ceil((double) inputLength * ( (double) maxBitLength() / 8.000 ) );\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getChunksLocationCount();", "@Override\n\tpublic void setBufferSize(int size) {\n\t}", "int getBlockSize();", "@Override public long getSimulatedSize() {\n return 1;\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "int fixedSize();", "public int getLocalSize();", "int getSize ();", "int getServerPayloadSizeBytes();", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "int getSampleSize();" ]
[ "0.77672553", "0.7665053", "0.7665053", "0.7665053", "0.7665053", "0.70434403", "0.6823302", "0.6718034", "0.6709958", "0.66931564", "0.66931564", "0.6588866", "0.65885633", "0.65651536", "0.6552774", "0.6549481", "0.6541563", "0.6472662", "0.647093", "0.647093", "0.647093", "0.647093", "0.64651936", "0.64256316", "0.6340459", "0.6340459", "0.6340459", "0.6340459", "0.6297112", "0.6286201", "0.6244172", "0.6233136", "0.61710083", "0.6168383", "0.6166613", "0.6165876", "0.61527264", "0.61496305", "0.6145343", "0.6122809", "0.6098555", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6097126", "0.6078847", "0.6077672", "0.607715", "0.60767305", "0.6076047", "0.60707325", "0.6060674", "0.6033868", "0.6029757", "0.6007404", "0.59870213", "0.59738076", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5973723", "0.5971923", "0.59616965", "0.5946418", "0.5943564", "0.5937219", "0.5929318", "0.5911478", "0.5909222", "0.5899086", "0.5896081", "0.5896081", "0.5896081", "0.5896081", "0.58942324", "0.5889079", "0.58879477", "0.5881666", "0.5881502", "0.5877095", "0.5875556", "0.58715445", "0.58638304", "0.58526105", "0.5849519", "0.58274674" ]
0.0
-1
MD5 of the chunk content (1024 bytes or less) bytes hash = 3;
@java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMD5() {\n return hash;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "byte[] getDigest();", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "public byte[] getMD5() {\n return MD5;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "int getClientHashLength();", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "java.lang.String getChecksum();", "long hash(Block block, int position);", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "String saveData(MultipartFile md5File) throws IOException;", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static byte[][] computeContentDigestsPer1MbChunk(int[] digestAlgorithms, DataSource[] contents) throws DigestException {\n int[] iArr = digestAlgorithms;\n DataSource[] dataSourceArr = contents;\n int i = 0;\n long totalChunkCountLong = 0;\n for (DataSource input : dataSourceArr) {\n totalChunkCountLong += getChunkCount(input.size());\n }\n if (totalChunkCountLong < 2097151) {\n int totalChunkCount = (int) totalChunkCountLong;\n byte[][] digestsOfChunks = new byte[iArr.length][];\n for (int i2 = 0; i2 < iArr.length; i2++) {\n byte[] concatenationOfChunkCountAndChunkDigests = new byte[((totalChunkCount * getContentDigestAlgorithmOutputSizeBytes(iArr[i2])) + 5)];\n concatenationOfChunkCountAndChunkDigests[0] = 90;\n setUnsignedInt32LittleEndian(totalChunkCount, concatenationOfChunkCountAndChunkDigests, 1);\n digestsOfChunks[i2] = concatenationOfChunkCountAndChunkDigests;\n }\n byte[] chunkContentPrefix = new byte[5];\n chunkContentPrefix[0] = -91;\n int chunkIndex = 0;\n MessageDigest[] mds = new MessageDigest[iArr.length];\n for (int i3 = 0; i3 < iArr.length; i3++) {\n String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(iArr[i3]);\n try {\n mds[i3] = MessageDigest.getInstance(jcaAlgorithmName);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(jcaAlgorithmName + \" digest not supported\", e);\n }\n }\n DataDigester digester = new MultipleDigestDataDigester(mds);\n int chunkIndex2 = dataSourceArr.length;\n int dataSourceIndex = 0;\n while (i < chunkIndex2) {\n DataSource input2 = dataSourceArr[i];\n long inputOffset = 0;\n int chunkIndex3 = chunkIndex;\n long inputRemaining = input2.size();\n while (inputRemaining > 0) {\n int chunkSize = (int) Math.min(inputRemaining, 1048576L);\n setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1);\n int i4 = 0;\n while (i4 < mds.length) {\n mds[i4].update(chunkContentPrefix);\n i4++;\n totalChunkCountLong = totalChunkCountLong;\n }\n try {\n input2.feedIntoDataDigester(digester, inputOffset, chunkSize);\n int i5 = 0;\n while (i5 < digestAlgorithms.length) {\n int digestAlgorithm = digestAlgorithms[i5];\n byte[] concatenationOfChunkCountAndChunkDigests2 = digestsOfChunks[i5];\n int expectedDigestSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm);\n MessageDigest md = mds[i5];\n int actualDigestSizeBytes = md.digest(concatenationOfChunkCountAndChunkDigests2, (chunkIndex3 * expectedDigestSizeBytes) + 5, expectedDigestSizeBytes);\n if (actualDigestSizeBytes == expectedDigestSizeBytes) {\n i5++;\n chunkContentPrefix = chunkContentPrefix;\n input2 = input2;\n mds = mds;\n } else {\n throw new RuntimeException(\"Unexpected output size of \" + md.getAlgorithm() + \" digest: \" + actualDigestSizeBytes);\n }\n }\n inputOffset += (long) chunkSize;\n inputRemaining -= (long) chunkSize;\n chunkIndex3++;\n iArr = digestAlgorithms;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n } catch (IOException e2) {\n throw new DigestException(\"Failed to digest chunk #\" + chunkIndex3 + \" of section #\" + dataSourceIndex, e2);\n }\n }\n dataSourceIndex++;\n i++;\n dataSourceArr = contents;\n chunkIndex = chunkIndex3;\n totalChunkCount = totalChunkCount;\n chunkIndex2 = chunkIndex2;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n }\n byte[][] result = new byte[iArr.length][];\n for (int i6 = 0; i6 < iArr.length; i6++) {\n int digestAlgorithm2 = iArr[i6];\n byte[] input3 = digestsOfChunks[i6];\n String jcaAlgorithmName2 = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm2);\n try {\n result[i6] = MessageDigest.getInstance(jcaAlgorithmName2).digest(input3);\n } catch (NoSuchAlgorithmException e3) {\n throw new RuntimeException(jcaAlgorithmName2 + \" digest not supported\", e3);\n }\n }\n return result;\n }\n throw new DigestException(\"Too many chunks: \" + totalChunkCountLong);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "java.lang.String getHashData();", "int getHash();", "public final MessageDigest mo32304a() {\n synchronized (this.f29524b) {\n if (f29523a != null) {\n MessageDigest messageDigest = f29523a;\n return messageDigest;\n }\n for (int i = 0; i < 2; i++) {\n try {\n f29523a = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n }\n }\n MessageDigest messageDigest2 = f29523a;\n return messageDigest2;\n }\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public abstract int getHash();", "private byte[] digestMsg(byte[][] parsedMsg) {\n\n int a, b, c, d, e, f, g, h;\n int[] hashValues = new int[8];\n\n // Initialize hash values for the first iteration, as per section 5.3.3\n System.arraycopy(H, 0, hashValues, 0, 8);\n\n // Iterate through the input message blocks\n for (int i = 0; i < parsedMsg.length; i++) {\n // 1. Prepare message schedule\n fillWords(parsedMsg[i]);\n\n // 2. Initialize working variables with hash values of previous iteration\n a = hashValues[0];\n b = hashValues[1];\n c = hashValues[2];\n d = hashValues[3];\n e = hashValues[4];\n f = hashValues[5];\n g = hashValues[6];\n h = hashValues[7];\n\n // 3. Compute updated working variables\n for (int t = 0; t < 64; t++) {\n int T1 = h + Sum1(e) + Ch(e, f, g) + K[t] + words[t];\n int T2 = Sum0(a) + Maj(a, b, c);\n h = g;\n g = f;\n f = e;\n e = d + T1;\n d = c;\n c = b;\n b = a;\n a = T1 + T2;\n }\n\n // 4. Update hash values\n hashValues[0] = a + hashValues[0];\n hashValues[1] = b + hashValues[1];\n hashValues[2] = c + hashValues[2];\n hashValues[3] = d + hashValues[3];\n hashValues[4] = e + hashValues[4];\n hashValues[5] = f + hashValues[5];\n hashValues[6] = g + hashValues[6];\n hashValues[7] = h + hashValues[7];\n }\n\n\n // Finalize the hash value\n // Concatenate the hash values to one 256-bit output byte[]\n byte[] digest = new byte[32];\n for (int i = 0; i < 8; i++) {\n System.arraycopy(intToBytes(hashValues[i]), 0, digest, 4 * i, 4);\n }\n\n return digest;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public String getMetaDigest ()\n {\n return _metaDigest;\n }", "String getHash();", "String getHash();", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public String get_Md5_Hash(String sStringToEncode) throws Exception {\n String sRetval = \"\";\n StringBuffer sb = new StringBuffer();\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest = md.digest(sStringToEncode.getBytes(\"UTF-8\"));\n BigInteger number = new BigInteger(1, messageDigest);\n String hashtext = number.toString(16);\n sRetval = hashtext;\n } catch (Exception e) {\n throw new Exception(\"get_Md5_Hash : \" + e);\n }\n return sRetval;\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }" ]
[ "0.6909216", "0.67599255", "0.6715248", "0.6638646", "0.644247", "0.6351662", "0.6290111", "0.6284938", "0.6247746", "0.62120414", "0.61987436", "0.61935306", "0.6191908", "0.6163334", "0.6154344", "0.6129951", "0.6110919", "0.61094207", "0.6092525", "0.60879964", "0.60824996", "0.6068131", "0.60602653", "0.6042908", "0.6042908", "0.59779924", "0.59769803", "0.5966302", "0.5946751", "0.5931403", "0.593106", "0.59292424", "0.5914073", "0.59042704", "0.5903667", "0.58993286", "0.58980566", "0.58973444", "0.58945763", "0.5886183", "0.5869002", "0.5840616", "0.5831435", "0.5824707", "0.5823677", "0.5823601", "0.5816086", "0.5809568", "0.57932484", "0.5778533", "0.57724273", "0.57646817", "0.57545084", "0.57519037", "0.5743759", "0.574334", "0.573693", "0.57343316", "0.5724102", "0.57216626", "0.57009745", "0.5700178", "0.5690609", "0.56896", "0.56896", "0.56701976", "0.5658685", "0.5635214", "0.5627889", "0.5626595", "0.562511", "0.5616511", "0.56042576", "0.5599413", "0.5592442", "0.5584841", "0.5574062", "0.55739534", "0.55691326", "0.5566576", "0.5557961", "0.5557277", "0.555423", "0.55541337", "0.5538163", "0.553367", "0.5531491", "0.55114657", "0.55096203", "0.5485049", "0.5482094", "0.5482094", "0.54784536", "0.5433866", "0.54323477", "0.54268193", "0.5426673", "0.5410218", "0.5399346", "0.5388172", "0.5380184" ]
0.0
-1
MD5 of the chunk content (1024 bytes or less) bytes hash = 3;
public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMD5() {\n return hash;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "byte[] getDigest();", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "public byte[] getMD5() {\n return MD5;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "int getClientHashLength();", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "java.lang.String getChecksum();", "long hash(Block block, int position);", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static byte[][] computeContentDigestsPer1MbChunk(int[] digestAlgorithms, DataSource[] contents) throws DigestException {\n int[] iArr = digestAlgorithms;\n DataSource[] dataSourceArr = contents;\n int i = 0;\n long totalChunkCountLong = 0;\n for (DataSource input : dataSourceArr) {\n totalChunkCountLong += getChunkCount(input.size());\n }\n if (totalChunkCountLong < 2097151) {\n int totalChunkCount = (int) totalChunkCountLong;\n byte[][] digestsOfChunks = new byte[iArr.length][];\n for (int i2 = 0; i2 < iArr.length; i2++) {\n byte[] concatenationOfChunkCountAndChunkDigests = new byte[((totalChunkCount * getContentDigestAlgorithmOutputSizeBytes(iArr[i2])) + 5)];\n concatenationOfChunkCountAndChunkDigests[0] = 90;\n setUnsignedInt32LittleEndian(totalChunkCount, concatenationOfChunkCountAndChunkDigests, 1);\n digestsOfChunks[i2] = concatenationOfChunkCountAndChunkDigests;\n }\n byte[] chunkContentPrefix = new byte[5];\n chunkContentPrefix[0] = -91;\n int chunkIndex = 0;\n MessageDigest[] mds = new MessageDigest[iArr.length];\n for (int i3 = 0; i3 < iArr.length; i3++) {\n String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(iArr[i3]);\n try {\n mds[i3] = MessageDigest.getInstance(jcaAlgorithmName);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(jcaAlgorithmName + \" digest not supported\", e);\n }\n }\n DataDigester digester = new MultipleDigestDataDigester(mds);\n int chunkIndex2 = dataSourceArr.length;\n int dataSourceIndex = 0;\n while (i < chunkIndex2) {\n DataSource input2 = dataSourceArr[i];\n long inputOffset = 0;\n int chunkIndex3 = chunkIndex;\n long inputRemaining = input2.size();\n while (inputRemaining > 0) {\n int chunkSize = (int) Math.min(inputRemaining, 1048576L);\n setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1);\n int i4 = 0;\n while (i4 < mds.length) {\n mds[i4].update(chunkContentPrefix);\n i4++;\n totalChunkCountLong = totalChunkCountLong;\n }\n try {\n input2.feedIntoDataDigester(digester, inputOffset, chunkSize);\n int i5 = 0;\n while (i5 < digestAlgorithms.length) {\n int digestAlgorithm = digestAlgorithms[i5];\n byte[] concatenationOfChunkCountAndChunkDigests2 = digestsOfChunks[i5];\n int expectedDigestSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm);\n MessageDigest md = mds[i5];\n int actualDigestSizeBytes = md.digest(concatenationOfChunkCountAndChunkDigests2, (chunkIndex3 * expectedDigestSizeBytes) + 5, expectedDigestSizeBytes);\n if (actualDigestSizeBytes == expectedDigestSizeBytes) {\n i5++;\n chunkContentPrefix = chunkContentPrefix;\n input2 = input2;\n mds = mds;\n } else {\n throw new RuntimeException(\"Unexpected output size of \" + md.getAlgorithm() + \" digest: \" + actualDigestSizeBytes);\n }\n }\n inputOffset += (long) chunkSize;\n inputRemaining -= (long) chunkSize;\n chunkIndex3++;\n iArr = digestAlgorithms;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n } catch (IOException e2) {\n throw new DigestException(\"Failed to digest chunk #\" + chunkIndex3 + \" of section #\" + dataSourceIndex, e2);\n }\n }\n dataSourceIndex++;\n i++;\n dataSourceArr = contents;\n chunkIndex = chunkIndex3;\n totalChunkCount = totalChunkCount;\n chunkIndex2 = chunkIndex2;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n }\n byte[][] result = new byte[iArr.length][];\n for (int i6 = 0; i6 < iArr.length; i6++) {\n int digestAlgorithm2 = iArr[i6];\n byte[] input3 = digestsOfChunks[i6];\n String jcaAlgorithmName2 = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm2);\n try {\n result[i6] = MessageDigest.getInstance(jcaAlgorithmName2).digest(input3);\n } catch (NoSuchAlgorithmException e3) {\n throw new RuntimeException(jcaAlgorithmName2 + \" digest not supported\", e3);\n }\n }\n return result;\n }\n throw new DigestException(\"Too many chunks: \" + totalChunkCountLong);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "java.lang.String getHashData();", "int getHash();", "public final MessageDigest mo32304a() {\n synchronized (this.f29524b) {\n if (f29523a != null) {\n MessageDigest messageDigest = f29523a;\n return messageDigest;\n }\n for (int i = 0; i < 2; i++) {\n try {\n f29523a = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n }\n }\n MessageDigest messageDigest2 = f29523a;\n return messageDigest2;\n }\n }", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "private byte[] digestMsg(byte[][] parsedMsg) {\n\n int a, b, c, d, e, f, g, h;\n int[] hashValues = new int[8];\n\n // Initialize hash values for the first iteration, as per section 5.3.3\n System.arraycopy(H, 0, hashValues, 0, 8);\n\n // Iterate through the input message blocks\n for (int i = 0; i < parsedMsg.length; i++) {\n // 1. Prepare message schedule\n fillWords(parsedMsg[i]);\n\n // 2. Initialize working variables with hash values of previous iteration\n a = hashValues[0];\n b = hashValues[1];\n c = hashValues[2];\n d = hashValues[3];\n e = hashValues[4];\n f = hashValues[5];\n g = hashValues[6];\n h = hashValues[7];\n\n // 3. Compute updated working variables\n for (int t = 0; t < 64; t++) {\n int T1 = h + Sum1(e) + Ch(e, f, g) + K[t] + words[t];\n int T2 = Sum0(a) + Maj(a, b, c);\n h = g;\n g = f;\n f = e;\n e = d + T1;\n d = c;\n c = b;\n b = a;\n a = T1 + T2;\n }\n\n // 4. Update hash values\n hashValues[0] = a + hashValues[0];\n hashValues[1] = b + hashValues[1];\n hashValues[2] = c + hashValues[2];\n hashValues[3] = d + hashValues[3];\n hashValues[4] = e + hashValues[4];\n hashValues[5] = f + hashValues[5];\n hashValues[6] = g + hashValues[6];\n hashValues[7] = h + hashValues[7];\n }\n\n\n // Finalize the hash value\n // Concatenate the hash values to one 256-bit output byte[]\n byte[] digest = new byte[32];\n for (int i = 0; i < 8; i++) {\n System.arraycopy(intToBytes(hashValues[i]), 0, digest, 4 * i, 4);\n }\n\n return digest;\n }", "public abstract int getHash();", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public String getMetaDigest ()\n {\n return _metaDigest;\n }", "String getHash();", "String getHash();", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public String get_Md5_Hash(String sStringToEncode) throws Exception {\n String sRetval = \"\";\n StringBuffer sb = new StringBuffer();\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest = md.digest(sStringToEncode.getBytes(\"UTF-8\"));\n BigInteger number = new BigInteger(1, messageDigest);\n String hashtext = number.toString(16);\n sRetval = hashtext;\n } catch (Exception e) {\n throw new Exception(\"get_Md5_Hash : \" + e);\n }\n return sRetval;\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }" ]
[ "0.69080025", "0.675877", "0.6714178", "0.66375774", "0.6440513", "0.6350388", "0.62879944", "0.62833184", "0.62466013", "0.6210247", "0.6199277", "0.61927915", "0.61905885", "0.6161571", "0.6152501", "0.6129389", "0.61098826", "0.610888", "0.6091407", "0.6086834", "0.60803723", "0.6067552", "0.60597", "0.60414183", "0.60414183", "0.59769785", "0.5975609", "0.5965042", "0.59451795", "0.59293216", "0.5928838", "0.5927346", "0.5912926", "0.59038436", "0.59020334", "0.58982205", "0.5896437", "0.589628", "0.5892141", "0.588519", "0.5868952", "0.5838761", "0.5829923", "0.58238167", "0.58221644", "0.58216375", "0.5814627", "0.5807485", "0.5791644", "0.57775235", "0.5770979", "0.57625365", "0.5753192", "0.5750851", "0.5742538", "0.5741913", "0.5735255", "0.5733149", "0.57221264", "0.5719681", "0.5700796", "0.5698604", "0.568975", "0.5687686", "0.5687686", "0.5668654", "0.56567967", "0.5634023", "0.5626694", "0.5625322", "0.5623003", "0.5616034", "0.5604194", "0.5598044", "0.5589727", "0.55833596", "0.5573331", "0.5571993", "0.5567301", "0.5564902", "0.5556855", "0.55557495", "0.5553095", "0.55526173", "0.5536754", "0.5532043", "0.5529633", "0.5510254", "0.55072623", "0.54841393", "0.5480052", "0.5480052", "0.54781395", "0.54323846", "0.5430723", "0.54254115", "0.5424467", "0.54094464", "0.5400123", "0.53871", "0.5379468" ]
0.0
-1
MD5 of the chunk content (1024 bytes or less) bytes hash = 3;
public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMD5() {\n return hash;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "byte[] getDigest();", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "public byte[] getMD5() {\n return MD5;\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "int getClientHashLength();", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "java.lang.String getChecksum();", "long hash(Block block, int position);", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static byte[][] computeContentDigestsPer1MbChunk(int[] digestAlgorithms, DataSource[] contents) throws DigestException {\n int[] iArr = digestAlgorithms;\n DataSource[] dataSourceArr = contents;\n int i = 0;\n long totalChunkCountLong = 0;\n for (DataSource input : dataSourceArr) {\n totalChunkCountLong += getChunkCount(input.size());\n }\n if (totalChunkCountLong < 2097151) {\n int totalChunkCount = (int) totalChunkCountLong;\n byte[][] digestsOfChunks = new byte[iArr.length][];\n for (int i2 = 0; i2 < iArr.length; i2++) {\n byte[] concatenationOfChunkCountAndChunkDigests = new byte[((totalChunkCount * getContentDigestAlgorithmOutputSizeBytes(iArr[i2])) + 5)];\n concatenationOfChunkCountAndChunkDigests[0] = 90;\n setUnsignedInt32LittleEndian(totalChunkCount, concatenationOfChunkCountAndChunkDigests, 1);\n digestsOfChunks[i2] = concatenationOfChunkCountAndChunkDigests;\n }\n byte[] chunkContentPrefix = new byte[5];\n chunkContentPrefix[0] = -91;\n int chunkIndex = 0;\n MessageDigest[] mds = new MessageDigest[iArr.length];\n for (int i3 = 0; i3 < iArr.length; i3++) {\n String jcaAlgorithmName = getContentDigestAlgorithmJcaDigestAlgorithm(iArr[i3]);\n try {\n mds[i3] = MessageDigest.getInstance(jcaAlgorithmName);\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(jcaAlgorithmName + \" digest not supported\", e);\n }\n }\n DataDigester digester = new MultipleDigestDataDigester(mds);\n int chunkIndex2 = dataSourceArr.length;\n int dataSourceIndex = 0;\n while (i < chunkIndex2) {\n DataSource input2 = dataSourceArr[i];\n long inputOffset = 0;\n int chunkIndex3 = chunkIndex;\n long inputRemaining = input2.size();\n while (inputRemaining > 0) {\n int chunkSize = (int) Math.min(inputRemaining, 1048576L);\n setUnsignedInt32LittleEndian(chunkSize, chunkContentPrefix, 1);\n int i4 = 0;\n while (i4 < mds.length) {\n mds[i4].update(chunkContentPrefix);\n i4++;\n totalChunkCountLong = totalChunkCountLong;\n }\n try {\n input2.feedIntoDataDigester(digester, inputOffset, chunkSize);\n int i5 = 0;\n while (i5 < digestAlgorithms.length) {\n int digestAlgorithm = digestAlgorithms[i5];\n byte[] concatenationOfChunkCountAndChunkDigests2 = digestsOfChunks[i5];\n int expectedDigestSizeBytes = getContentDigestAlgorithmOutputSizeBytes(digestAlgorithm);\n MessageDigest md = mds[i5];\n int actualDigestSizeBytes = md.digest(concatenationOfChunkCountAndChunkDigests2, (chunkIndex3 * expectedDigestSizeBytes) + 5, expectedDigestSizeBytes);\n if (actualDigestSizeBytes == expectedDigestSizeBytes) {\n i5++;\n chunkContentPrefix = chunkContentPrefix;\n input2 = input2;\n mds = mds;\n } else {\n throw new RuntimeException(\"Unexpected output size of \" + md.getAlgorithm() + \" digest: \" + actualDigestSizeBytes);\n }\n }\n inputOffset += (long) chunkSize;\n inputRemaining -= (long) chunkSize;\n chunkIndex3++;\n iArr = digestAlgorithms;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n } catch (IOException e2) {\n throw new DigestException(\"Failed to digest chunk #\" + chunkIndex3 + \" of section #\" + dataSourceIndex, e2);\n }\n }\n dataSourceIndex++;\n i++;\n dataSourceArr = contents;\n chunkIndex = chunkIndex3;\n totalChunkCount = totalChunkCount;\n chunkIndex2 = chunkIndex2;\n chunkContentPrefix = chunkContentPrefix;\n totalChunkCountLong = totalChunkCountLong;\n }\n byte[][] result = new byte[iArr.length][];\n for (int i6 = 0; i6 < iArr.length; i6++) {\n int digestAlgorithm2 = iArr[i6];\n byte[] input3 = digestsOfChunks[i6];\n String jcaAlgorithmName2 = getContentDigestAlgorithmJcaDigestAlgorithm(digestAlgorithm2);\n try {\n result[i6] = MessageDigest.getInstance(jcaAlgorithmName2).digest(input3);\n } catch (NoSuchAlgorithmException e3) {\n throw new RuntimeException(jcaAlgorithmName2 + \" digest not supported\", e3);\n }\n }\n return result;\n }\n throw new DigestException(\"Too many chunks: \" + totalChunkCountLong);\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "java.lang.String getHashData();", "int getHash();", "public final MessageDigest mo32304a() {\n synchronized (this.f29524b) {\n if (f29523a != null) {\n MessageDigest messageDigest = f29523a;\n return messageDigest;\n }\n for (int i = 0; i < 2; i++) {\n try {\n f29523a = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException e) {\n }\n }\n MessageDigest messageDigest2 = f29523a;\n return messageDigest2;\n }\n }", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "private byte[] digestMsg(byte[][] parsedMsg) {\n\n int a, b, c, d, e, f, g, h;\n int[] hashValues = new int[8];\n\n // Initialize hash values for the first iteration, as per section 5.3.3\n System.arraycopy(H, 0, hashValues, 0, 8);\n\n // Iterate through the input message blocks\n for (int i = 0; i < parsedMsg.length; i++) {\n // 1. Prepare message schedule\n fillWords(parsedMsg[i]);\n\n // 2. Initialize working variables with hash values of previous iteration\n a = hashValues[0];\n b = hashValues[1];\n c = hashValues[2];\n d = hashValues[3];\n e = hashValues[4];\n f = hashValues[5];\n g = hashValues[6];\n h = hashValues[7];\n\n // 3. Compute updated working variables\n for (int t = 0; t < 64; t++) {\n int T1 = h + Sum1(e) + Ch(e, f, g) + K[t] + words[t];\n int T2 = Sum0(a) + Maj(a, b, c);\n h = g;\n g = f;\n f = e;\n e = d + T1;\n d = c;\n c = b;\n b = a;\n a = T1 + T2;\n }\n\n // 4. Update hash values\n hashValues[0] = a + hashValues[0];\n hashValues[1] = b + hashValues[1];\n hashValues[2] = c + hashValues[2];\n hashValues[3] = d + hashValues[3];\n hashValues[4] = e + hashValues[4];\n hashValues[5] = f + hashValues[5];\n hashValues[6] = g + hashValues[6];\n hashValues[7] = h + hashValues[7];\n }\n\n\n // Finalize the hash value\n // Concatenate the hash values to one 256-bit output byte[]\n byte[] digest = new byte[32];\n for (int i = 0; i < 8; i++) {\n System.arraycopy(intToBytes(hashValues[i]), 0, digest, 4 * i, 4);\n }\n\n return digest;\n }", "public abstract int getHash();", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private int checksum()\n {\n byte[] data = new byte[size];\n buf.mark();\n buf.seek(offset);\n buf.read(data);\n buf.reset();\n return Checksum.crc32(data);\n }", "protected String hashBuffer(Buffer buffer) {\n\t\treturn FileUtils.generateSha512Sum(buffer);\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public String getMetaDigest ()\n {\n return _metaDigest;\n }", "String getHash();", "String getHash();", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "public HashChunk getHashChunk(byte[] hash) throws IOException, DataArchivedException {\n\t\tHashChunk hs = null;\n\t\t// String hStr = StringUtils.getHexString(hash);\n\t\t/*\n\t\t * hs = this.cacheBuffers.get(hStr); if (hs != null) { return hs; }\n\t\t * \n\t\t * \n\t\t * if (this.readingBuffers.containsKey(hStr)) { int t = 0; while (t <\n\t\t * Main.chunkStoreDirtyCacheTimeout) { try { Thread.sleep(1); hs =\n\t\t * this.cacheBuffers.get(hStr); if (hs != null) { return hs; } } catch\n\t\t * (Exception e) {\n\t\t * \n\t\t * } t++; } } else { if(this.readingBuffers.size() < mapSize)\n\t\t * this.readingBuffers.put(hStr, hs); }\n\t\t */\n\t\t\tbyte[] data = bdb.getData(hash);\n\t\t\tif (data == null && Arrays.equals(hash, blankHash)) {\n\t\t\t\ths = new HashChunk(hash, new byte[blankData.length], false);\n\t\t\t}\n\t\t\ths = new HashChunk(hash, data, false);\n\t\t\t// this.cacheBuffers.put(hStr, hs);\n\n\t\treturn hs;\n\t}", "public String get_Md5_Hash(String sStringToEncode) throws Exception {\n String sRetval = \"\";\n StringBuffer sb = new StringBuffer();\n\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest = md.digest(sStringToEncode.getBytes(\"UTF-8\"));\n BigInteger number = new BigInteger(1, messageDigest);\n String hashtext = number.toString(16);\n sRetval = hashtext;\n } catch (Exception e) {\n throw new Exception(\"get_Md5_Hash : \" + e);\n }\n return sRetval;\n }", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }" ]
[ "0.6907548", "0.67588276", "0.67139244", "0.6637966", "0.6440344", "0.6350604", "0.62883955", "0.6283282", "0.6246835", "0.6209992", "0.6198277", "0.6192865", "0.6191173", "0.6161614", "0.61523956", "0.6128981", "0.61099416", "0.61083007", "0.60917705", "0.60873544", "0.6080645", "0.6067166", "0.60593575", "0.60413677", "0.60413677", "0.59765315", "0.59751695", "0.59648645", "0.59453887", "0.59294456", "0.5929386", "0.5927144", "0.5912743", "0.5903814", "0.5901911", "0.5897879", "0.5896188", "0.5895875", "0.5891956", "0.58848876", "0.5868988", "0.58387226", "0.583057", "0.5823252", "0.5822528", "0.58216184", "0.5814196", "0.5807276", "0.5791653", "0.5776792", "0.5770777", "0.57628417", "0.5753484", "0.5750708", "0.57428634", "0.5741815", "0.5735408", "0.57334524", "0.5722754", "0.5719393", "0.5700488", "0.5699695", "0.56894267", "0.56878555", "0.56878555", "0.5668491", "0.5656897", "0.56335455", "0.5626985", "0.56258166", "0.5622845", "0.56163824", "0.5603745", "0.559813", "0.5590389", "0.5583303", "0.5572975", "0.55727106", "0.5567244", "0.556525", "0.55567974", "0.5556311", "0.5553172", "0.55525744", "0.5537722", "0.5531864", "0.55296427", "0.5510519", "0.55090284", "0.5484584", "0.54799813", "0.54799813", "0.5477952", "0.54322225", "0.5430776", "0.54250723", "0.5424989", "0.540932", "0.54000485", "0.5387219", "0.5379145" ]
0.0
-1
MD5 of the file content bytes hash = 1;
com.google.protobuf.ByteString getHash();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public String getMD5() {\n return hash;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "byte[] getDigest();", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String getMd5Hash() {\n return md5Hash;\n }", "String saveData(MultipartFile md5File) throws IOException;", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "java.lang.String getChecksum();", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "byte[] getFile(String sha) throws Exception;", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "public static void main(String args[]) throws IOException {\n final InputStream is01 = new URL(\n \"http://www.fi.muni.cz/~xklinec/java/file_a.bin\"\n ).openStream();\n \n // 2. Obtain MessageDigest instances. \n // YOUR-CODE-GOES-HERE\n \n // 3. Read InputStream iterativelly.\n // In each iteration update the internal state of the MessageDigest\n // Allocate a temporary buffer to read data to.\n byte[] buffer = new byte[1024];\n\n // Read input stream by chunks.\n int bytesRead = -1;\n while ((bytesRead = is01.read(buffer)) >= 0){\n // buffer now contains bytesRead bytes of data, process it.\t\n // Pay attention to a fact that read() call does not necessarily \n // have to fill the whole buffer with a valid data!\n\n // TODO: do some work here.\n // e.g., update digest state, process with cipher, etc...\n }\n\n // Stream reading finished here.\n // Since bytesRead contains negative value it means there is no more data\n // in the stream.\n \n // 4. Compute final message digest and print it.\n // YOUR-CODE-GOES-HERE\n \n // 5. Find a difference between provided digests and computed.\n // YOUR-CODE-GOES-HERE or do manually ;)\n byte[] expectedMd5 = Hex.decode(\"e64db39c582fe33b35df742e8c23bd55\");\n }" ]
[ "0.79427654", "0.76599485", "0.7403539", "0.73576635", "0.73522145", "0.72415394", "0.7218439", "0.7167121", "0.7067042", "0.70509934", "0.70412713", "0.6981765", "0.69726527", "0.6925382", "0.6925382", "0.68762726", "0.6843925", "0.6785746", "0.67459846", "0.6745074", "0.6594066", "0.65808344", "0.6553983", "0.6533495", "0.6520057", "0.65084237", "0.64866966", "0.6470143", "0.6429851", "0.63922787", "0.6361835", "0.63510495", "0.6348742", "0.62954295", "0.628644", "0.62805134", "0.6263657", "0.62514275", "0.62488043", "0.6242079", "0.6212593", "0.6209875", "0.6198776", "0.61928904", "0.6174463", "0.615806", "0.6155446", "0.61439687", "0.6140073", "0.6137697", "0.6121228", "0.6112116", "0.6111953", "0.6105151", "0.60956514", "0.6093787", "0.6090942", "0.60855275", "0.60798043", "0.60726607", "0.60517424", "0.6044513", "0.6028576", "0.6019481", "0.5998766", "0.59947026", "0.5993227", "0.59807754", "0.5972822", "0.59719574", "0.59659064", "0.5946609", "0.59248674", "0.59172565", "0.58917063", "0.58913016", "0.5890949", "0.58810014", "0.5878357", "0.58718723", "0.58186215", "0.58054745", "0.58022034", "0.5801956", "0.579245", "0.5784504", "0.5784283", "0.5783049", "0.5781184", "0.5773598", "0.57721275", "0.57653296", "0.57626945", "0.5745875", "0.5738198", "0.5737843", "0.5725134", "0.5723553", "0.5721694", "0.5721516", "0.5718874" ]
0.0
-1
uint32 size = 2;
int getSize();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int fixedSize();", "long getSize();", "public abstract int getBitSize();", "godot.wire.Wire.Vector2 getSize();", "public static int size_counter() {\n return (32 / 8);\n }", "int getSize ();", "int getTribeSize();", "com.google.protobuf.Int32Value getSize();", "public static int sizeOf()\n {\n return 4;\n }", "IntegerLiteral getSize();", "public int getSize(){return _size;}", "public static int sizeBits_counter() {\n return 32;\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "godot.wire.Wire.Vector3 getSize();", "public int Size(){\n \treturn size;\n\t}", "godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();", "int getLocalSize();", "public static int size_reading() {\n return (16 / 8);\n }", "public int getSize() {return size;}", "private static int sizeof(int i) {\n\t\treturn i;\r\n\t}", "public int getSize(){\n return size;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public int getSize() {\n\treturn sizeNumber;\r\n}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "@Override\n public long sizeInBytes() {\n return STATIC_SIZE + (2 * normalizedValue.length());\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public abstract long getSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public int getSize() { return size; }", "public abstract int GetSize();", "public interface IPrimitiveSize {\r\n /**\r\n * The number of bits in byte.\r\n */\r\n int NumberOfBitsInByte = 8;\r\n\r\n interface InBytes {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = 1;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = 2;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = 4;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = 8;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = 4;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = 8;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = 2;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = 8;\r\n }\r\n\r\n interface InBits {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = InBytes.ByteSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = InBytes.ShortSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = InBytes.IntegerSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = InBytes.LongSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = InBytes.FloatSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = InBytes.DoubleSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = InBytes.CharacterSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = InBytes.ReferenceSize * NumberOfBitsInByte;\r\n }\r\n}", "Uint32 getType();", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "int getHighBitLength();", "float getSize(float[] sizes);", "public int getSize(){return this.size;}", "public long getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getSize()\n {\n\t return size;\n }", "long getOccupiedSize();", "public static int sizeBits_sum_e() {\n return 32;\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size(){return n;}", "int getSpriteArraySize();", "int getSize() {\n return size;\n }", "@Override\n public int variableSize() {\n return CONSTANT.wordSize;\n }", "public int getType1Size(){\n\t\treturn type1Size;\n\t}", "long storageSize();", "int getBlockSize();", "public static byte getSize() {\n return SIZE;\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "public int getSize() { \n return size;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int getSize() {\n\treturn size;\n }", "public int getSize() {\n return size;\n }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "double getSize();", "public static int size_amtype() {\n return (8 / 8);\n }", "public Vector2ic getSize(){\n return size.toImmutable();\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int size_dataType() {\n return (8 / 8);\n }", "int getTotalSize();", "Integer size();", "Integer size();", "public int getSize() {\r\n return size;\r\n }", "public int getSize() {\n\n return size;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int size ();", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getLocalSize();" ]
[ "0.68845004", "0.64285177", "0.6403865", "0.6399972", "0.6356698", "0.63357437", "0.6333697", "0.63133764", "0.6279272", "0.62197286", "0.62064797", "0.6170445", "0.6163017", "0.6159229", "0.612001", "0.60839915", "0.6059871", "0.6052288", "0.60459584", "0.6040687", "0.60403687", "0.6039652", "0.60199845", "0.601743", "0.6012745", "0.6012745", "0.6012745", "0.6012046", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60045266", "0.5997216", "0.5979237", "0.59786296", "0.5975514", "0.5971771", "0.5962529", "0.5955047", "0.59458065", "0.5945656", "0.5936081", "0.59334373", "0.59334373", "0.59334373", "0.59334373", "0.5932642", "0.5927146", "0.5906818", "0.58998287", "0.58958274", "0.5892255", "0.58839124", "0.5875914", "0.58693665", "0.58581007", "0.5847329", "0.58453345", "0.5839611", "0.582548", "0.58241516", "0.5821397", "0.581913", "0.5813284", "0.5808644", "0.58040327", "0.57948864", "0.5786895", "0.57846546", "0.57807714", "0.57799894", "0.5772446", "0.5772203", "0.5771451", "0.5771451", "0.57703257", "0.5769282", "0.5767165", "0.5756738", "0.5756137", "0.5754535" ]
0.6277018
18
string filename = 3;
java.lang.String getFilename();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.64821243
7
string filename = 3;
com.google.protobuf.ByteString getFilenameBytes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
java.util.List<entities.Torrent.ChunkInfo> getChunksList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
entities.Torrent.ChunkInfo getChunks(int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.6313464
15
repeated .ChunkInfo chunks = 4;
int getChunksCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.67930806
1
repeated .ChunkInfo chunks = 4;
java.util.List<? extends entities.Torrent.ChunkInfoOrBuilder> getChunksOrBuilderList();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder( int index);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.56923115
55
Use FileInfo.newBuilder() to construct.
private FileInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileInfo(FileInfo v)\n \t{\n \t\ttitle = v.title;\n \t\tauthors = v.authors;\n \t\tseries = v.series;\n \t\tseriesNumber = v.seriesNumber;\n \t\tpath = v.path;\n \t\tfilename = v.filename;\n \t\tpathname = v.pathname;\n \t\tarcname = v.arcname;\n \t\tformat = v.format;\n \t\tsize = v.size;\n \t\tarcsize = v.arcsize;\n \t\tisArchive = v.isArchive;\n \t\tisDirectory = v.isDirectory;\n \t\tcreateTime = v.createTime;\n \t\tlastAccessTime = v.lastAccessTime;\n \t}", "FileInfo create(FileInfo fileInfo);", "public entities.Torrent.FileInfo.Builder getFileInfoBuilder() {\n\n onChanged();\n return getFileInfoFieldBuilder().getBuilder();\n }", "public entities.Torrent.FileInfo.Builder getFileInfoBuilder() {\n\n onChanged();\n return getFileInfoFieldBuilder().getBuilder();\n }", "public FileInfo(File file) {\n this.file = file;\n }", "public Builder setFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fileInfo_ = value;\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fileInfo_ = value;\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(value);\n }\n\n return this;\n }", "public entities.Torrent.FileInfo.Builder addFileInfoBuilder() {\n return getFileInfoFieldBuilder().addBuilder(\n entities.Torrent.FileInfo.getDefaultInstance());\n }", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();", "entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder();", "public Builder addFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.add(value);\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(value);\n }\n return this;\n }", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilder();\n } else {\n return fileInfo_ == null ?\n entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }\n }", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilder();\n } else {\n return fileInfo_ == null ?\n entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>\n getFileInfoFieldBuilder() {\n if (fileInfoBuilder_ == null) {\n fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>(\n getFileInfo(),\n getParentForChildren(),\n isClean());\n fileInfo_ = null;\n }\n return fileInfoBuilder_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>\n getFileInfoFieldBuilder() {\n if (fileInfoBuilder_ == null) {\n fileInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n entities.Torrent.FileInfo, entities.Torrent.FileInfo.Builder, entities.Torrent.FileInfoOrBuilder>(\n getFileInfo(),\n getParentForChildren(),\n isClean());\n fileInfo_ = null;\n }\n return fileInfoBuilder_;\n }", "public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }", "public entities.Torrent.FileInfo getFileInfo() {\n if (fileInfoBuilder_ == null) {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n } else {\n return fileInfoBuilder_.getMessage();\n }\n }", "public entities.Torrent.FileInfo.Builder getFileInfoBuilder(\n int index) {\n return getFileInfoFieldBuilder().getBuilder(index);\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n fileInfoBuilder_.clear();\n }\n return this;\n }", "public Builder setFileInfo(\n int index, entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.set(index, value);\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(index, value);\n }\n return this;\n }", "public FileInfo(\r\n String _absolutePath,\r\n String _name,\r\n long _length )\r\n {\r\n this();\r\n absolutePath = _absolutePath;\r\n name = _name;\r\n length = _length;\r\n\r\n }", "public void constructWith(LzzFileInfo pro) {\n\t\tthis.id = pro.getId ();\n\n\t\tthis.fname = pro.getFname ();\n\n\t\tthis.ftype = pro.getFtype ();\n\n\t\tthis.fsavepath = pro.getFsavepath ();\n\n\t\tthis.furlpath = pro.getFurlpath ();\n\n\t\tthis.createTime = pro.getCreateTime ();\n\n\t\tthis.modifyTime = pro.getModifyTime ();\n\n\t\tthis.def1 = pro.getDef1 ();\n\n\t\tthis.def2 = pro.getDef2 ();\n\n\t\tthis.def3 = pro.getDef3 ();\n\n\t\tthis.def4 = pro.getDef4 ();\n\n\t\tthis.def5 = pro.getDef5 ();\n\n\t\tthis.def6 = pro.getDef6 ();\n\n\t\tthis.def7 = pro.getDef7 ();\n\n\t\tthis.def8 = pro.getDef8 ();\n\n\t\tthis.def9 = pro.getDef9 ();\n\n\t\tthis.def10 = pro.getDef10 ();\n\n\t\tthis.dr = pro.getDr ();\n\n\t}", "public Builder mergeFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (fileInfo_ != null) {\n fileInfo_ =\n entities.Torrent.FileInfo.newBuilder(fileInfo_).mergeFrom(value).buildPartial();\n } else {\n fileInfo_ = value;\n }\n onChanged();\n } else {\n fileInfoBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public Builder mergeFileInfo(entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (fileInfo_ != null) {\n fileInfo_ =\n entities.Torrent.FileInfo.newBuilder(fileInfo_).mergeFrom(value).buildPartial();\n } else {\n fileInfo_ = value;\n }\n onChanged();\n } else {\n fileInfoBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public FileInfo getFileInfo() {\n return fileInfo;\n }", "public void fileInfo(String info);", "public com.opentext.bn.converters.avro.entity.PayloadRef.Builder getFileInfoBuilder() {\n if (fileInfoBuilder == null) {\n if (hasFileInfo()) {\n setFileInfoBuilder(com.opentext.bn.converters.avro.entity.PayloadRef.newBuilder(fileInfo));\n } else {\n setFileInfoBuilder(com.opentext.bn.converters.avro.entity.PayloadRef.newBuilder());\n }\n }\n return fileInfoBuilder;\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder() {\n return getFileInfo();\n }", "public Builder addFileInfo(\n int index, entities.Torrent.FileInfo value) {\n if (fileInfoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileInfoIsMutable();\n fileInfo_.add(index, value);\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder setFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = builderForValue.build();\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = builderForValue.build();\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public entities.Torrent.FileInfo.Builder addFileInfoBuilder(\n int index) {\n return getFileInfoFieldBuilder().addBuilder(\n index, entities.Torrent.FileInfo.getDefaultInstance());\n }", "public final FileInfoBase getFileInfo() {\r\n return fileInfo;\r\n }", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo() {\n return fileInfo_ == null ? entities.Torrent.FileInfo.getDefaultInstance() : fileInfo_;\n }", "public FileInvitationInfo(String contact, long filesize,\n String filename, String sessionId) {\n mContact = contact;\n mFileSize = filesize;\n mLastFileName = filename;\n mLastSessionId = sessionId;\n }", "private FileMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfo.Builder addEntryBuilder() {\n return getEntryFieldBuilder().addBuilder(\n com.google.devtools.kythe.proto.Analysis.FileInfo.getDefaultInstance());\n }", "public Builder addEntry(com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.add(value);\n onChanged();\n } else {\n entryBuilder_.addMessage(value);\n }\n return this;\n }", "public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index); } else {\n return fileInfoBuilder_.getMessageOrBuilder(index);\n }\n }", "entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index);", "public FileInfo(NXTComm nxt, String fileName){\r\n\t\tthis.comm = nxt;\r\n\t\tthis.fileName = fileName;\r\n\t}", "protected final void setFileInformation( FileInfo fInfo) {\n\t\tm_info = fInfo;\n\t}", "public Builder addFileInfo(\n entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n ensureFileInfoIsMutable();\n fileInfo_.add(builderForValue.build());\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index) {\n return fileInfo_.get(index);\n }", "public FSInfo createFSInfo() {\n return new CommandLineVcsFileSystemInfo(FileUtil.normalizeFile(new File(\"\")), null, null);\n }", "private FileLocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder addAllFileInfo(\n java.lang.Iterable<? extends entities.Torrent.FileInfo> values) {\n if (fileInfoBuilder_ == null) {\n ensureFileInfoIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, fileInfo_);\n onChanged();\n } else {\n fileInfoBuilder_.addAllMessages(values);\n }\n return this;\n }", "public FileInfoICS(String name, String directory, int format) {\r\n super(name, directory, format);\r\n }", "entities.Torrent.FileInfo getFileInfo();", "entities.Torrent.FileInfo getFileInfo();", "private FileEntry() {\n // intentionally empty\n }", "public Builder setEntry(\n int index, com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.set(index, value);\n onChanged();\n } else {\n entryBuilder_.setMessage(index, value);\n }\n return this;\n }", "public Builder addEntry(\n int index, com.google.devtools.kythe.proto.Analysis.FileInfo value) {\n if (entryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEntryIsMutable();\n entry_.add(index, value);\n onChanged();\n } else {\n entryBuilder_.addMessage(index, value);\n }\n return this;\n }", "public FileInfoMinc(final String name, final String directory, final int format) {\r\n super(name, directory, format);\r\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = null;\n onChanged();\n } else {\n fileInfo_ = null;\n fileInfoBuilder_ = null;\n }\n\n return this;\n }", "public Builder clearFileInfo() {\n if (fileInfoBuilder_ == null) {\n fileInfo_ = null;\n onChanged();\n } else {\n fileInfo_ = null;\n fileInfoBuilder_ = null;\n }\n\n return this;\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfoBuilder(com.opentext.bn.converters.avro.entity.PayloadRef.Builder value) {\n clearFileInfo();\n fileInfoBuilder = value;\n return this;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfo.Builder addEntryBuilder(\n int index) {\n return getEntryFieldBuilder().addBuilder(\n index, com.google.devtools.kythe.proto.Analysis.FileInfo.getDefaultInstance());\n }", "public entities.Torrent.FileInfo getFileInfo(int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index);\n } else {\n return fileInfoBuilder_.getMessage(index);\n }\n }", "public entities.Torrent.FileInfo.Builder addFilesBuilder() {\n return getFilesFieldBuilder().addBuilder(\n entities.Torrent.FileInfo.getDefaultInstance());\n }", "public Builder setFileInfo(\n int index, entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n ensureFileInfoIsMutable();\n fileInfo_.set(index, builderForValue.build());\n onChanged();\n } else {\n fileInfoBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "DiscFileInfo getFileInfo(String path) throws IOException;", "com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index);", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setFileInfo(com.opentext.bn.converters.avro.entity.PayloadRef value) {\n validate(fields()[15], value);\n this.fileInfoBuilder = null;\n this.fileInfo = value;\n fieldSetFlags()[15] = true;\n return this;\n }", "@Test\n\tpublic void testSetFileInfo() {\n\n\t}", "public Checksum(String account, FileInfo file) {\r\n\t\tthis.account = account;\r\n\t\tthis.id = file.getId();\r\n\t\tthis.path = file.getPath();\r\n\t\tthis.name = file.getName();\r\n\t\tthis.size = file.getSize();\r\n\t\tthis.checksum = file.getChecksum();\r\n\t\tthis.created = file.getCreated();\r\n\t\tthis.modified = file.getModified();\r\n\t}", "@java.lang.Override\n public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n return fileInfo_;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfo.Builder getEntryBuilder(\n int index) {\n return getEntryFieldBuilder().getBuilder(index);\n }", "public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fileInfo_);\n }\n }", "java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList();", "public synchronized FileInfo getOrAddFileInfo(FileInfo alphaFileInfo) {\n String app = alphaFileInfo.getApp();\n String caption = alphaFileInfo.getCaption();\n AppAndCaptionKey key = new AppAndCaptionKey(app, caption);\n String fileId = appAndCaptionToId.get(key);\n if(fileId==null){\n fileId = getNextFileId();\n appAndCaptionToId.put(key, fileId);\n }\n\n //2. Creating file info\n FileInfo sigmaFileInfo = fileCache.getFileInfo(app,fileId);\n if(sigmaFileInfo==null){\n sigmaFileInfo = (FileInfo) alphaFileInfo.clone();\n }\n sigmaFileInfo.setId(fileId);\n return sigmaFileInfo;\n }", "public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }", "public com.opentext.bn.converters.avro.entity.PayloadRef getFileInfo() {\n return fileInfo;\n }", "public Builder addFiles(entities.Torrent.FileInfo value) {\n if (filesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFilesIsMutable();\n files_.add(value);\n onChanged();\n } else {\n filesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addFileInfo(\n int index, entities.Torrent.FileInfo.Builder builderForValue) {\n if (fileInfoBuilder_ == null) {\n ensureFileInfoIsMutable();\n fileInfo_.add(index, builderForValue.build());\n onChanged();\n } else {\n fileInfoBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "void update(FileInfo fileInfo);", "public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n if (fileInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fileInfo_);\n } else {\n return fileInfoBuilder_.getMessageList();\n }\n }", "public Builder setFileLocBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n fileLoc_ = value;\n onChanged();\n return this;\n }", "entities.Torrent.FileInfo getFileInfo(int index);", "public AccountInfo(GenericEntry entry) { \n completedDate = checkDateAndParse(entry.getProperty(\"completedDate\"));\n requestDate = checkDateAndParse(entry.getProperty(\"requestDate\"));\n expiredDate = checkDateAndParse(entry.getProperty(\"expiredDate\"));\n requestId = entry.getProperty(\"requestId\");\n userEmailAddress = entry.getProperty(\"userEmailAddress\");\n adminEmailAddress = entry.getProperty(\"adminEmailAddress\");\n status = entry.getProperty(\"status\");\n \n numberOfFiles =\n entry.getProperty(\"numberOfFiles\") != null ? Integer.parseInt(entry\n .getProperty(\"numberOfFiles\")) : numberOfFiles;\n\n if (numberOfFiles > 0) {\n fileUrls = new String[numberOfFiles];\n for (int fileIndex = 0; fileIndex < numberOfFiles; fileIndex++) {\n fileUrls[fileIndex] = entry.getProperty(\"fileUrl\" + fileIndex);\n }\n }\n }", "protected abstract FileInfo getFileInfoFromInputDataImpl(T inputData);", "@Override\n public void addSingleFile(FileInfo file) {\n }", "public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}", "@java.lang.Override\n public entities.Torrent.FileInfo getFileInfo(int index) {\n return fileInfo_.get(index);\n }", "private FileMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearFileInfo() {\n fileInfo = null;\n fileInfoBuilder = null;\n fieldSetFlags()[15] = false;\n return this;\n }", "private OpenFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RetrieveFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private SCSyncMemberInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index) {\n return entry_.get(index);\n }", "@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }", "protected String makeFileInfoTable(ImageFileInformation finfo) {\n table = new StringTable(null, Languages.message(\"ImageFileInformation\"));\n File file = finfo.getFile();\n table.add(Arrays.asList(Languages.message(\"FilesPath\"), file.getParent()));\n table.add(Arrays.asList(Languages.message(\"FileName\"), file.getName()));\n table.add(Arrays.asList(Languages.message(\"FileSize\"), FileTools.showFileSize(finfo.getFileSize())));\n table.add(Arrays.asList(Languages.message(\"CreateTime\"), DateTools.datetimeToString(finfo.getCreateTime())));\n table.add(Arrays.asList(Languages.message(\"ModifyTime\"), DateTools.datetimeToString(finfo.getModifyTime())));\n table.add(Arrays.asList(Languages.message(\"Format\"), finfo.getImageFormat()));\n table.add(Arrays.asList(Languages.message(\"NumberOfImagesInFile\"), finfo.getNumberOfImages() + \"\"));\n return StringTable.tableDiv(table);\n }", "com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index);", "public WorkingFolderInfo(FilePath localPath) { this(Status.Active, localPath, \"\"); }", "public entities.Torrent.FileInfo.Builder getFilesBuilder(\n int index) {\n return getFilesFieldBuilder().getBuilder(index);\n }", "public Builder setFiles(\n int index, entities.Torrent.FileInfo value) {\n if (filesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFilesIsMutable();\n files_.set(index, value);\n onChanged();\n } else {\n filesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index) {\n if (entryBuilder_ == null) {\n return entry_.get(index); } else {\n return entryBuilder_.getMessageOrBuilder(index);\n }\n }" ]
[ "0.73630756", "0.7335492", "0.7151471", "0.7148096", "0.7089408", "0.70517117", "0.7051205", "0.7049594", "0.6841119", "0.6812086", "0.6812086", "0.68063825", "0.67556137", "0.67556137", "0.6720752", "0.6720105", "0.6642621", "0.6642621", "0.6558966", "0.65360343", "0.64897645", "0.6436892", "0.64359146", "0.64239925", "0.64235425", "0.64192975", "0.6418787", "0.6390651", "0.63753945", "0.63753945", "0.63556314", "0.6313174", "0.6313174", "0.6276862", "0.6268954", "0.62517923", "0.62517923", "0.6172148", "0.61437684", "0.614359", "0.6141376", "0.61366475", "0.6129049", "0.61201155", "0.61042523", "0.5978193", "0.5944766", "0.59324443", "0.592739", "0.5924611", "0.59180754", "0.5899203", "0.5899203", "0.5885686", "0.58342946", "0.5832581", "0.58170545", "0.5772782", "0.5772782", "0.57695293", "0.5761087", "0.5728675", "0.5718601", "0.5693939", "0.5690076", "0.56594545", "0.5653844", "0.56483614", "0.56223315", "0.56189513", "0.56112945", "0.56038034", "0.5580311", "0.5577196", "0.55678034", "0.5567695", "0.5564621", "0.5551061", "0.5521797", "0.5509488", "0.5487685", "0.5477699", "0.54368913", "0.54306906", "0.54195535", "0.54174703", "0.5395908", "0.5383788", "0.5346192", "0.534076", "0.5304169", "0.528996", "0.5273164", "0.52681786", "0.52675414", "0.5257056", "0.52570057", "0.5248677", "0.524355", "0.52336216" ]
0.7638374
0
MD5 of the file content bytes hash = 1;
@java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public String getMD5() {\n return hash;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "byte[] getDigest();", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String getMd5Hash() {\n return md5Hash;\n }", "String saveData(MultipartFile md5File) throws IOException;", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "java.lang.String getChecksum();", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "byte[] getFile(String sha) throws Exception;", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "public static void main(String args[]) throws IOException {\n final InputStream is01 = new URL(\n \"http://www.fi.muni.cz/~xklinec/java/file_a.bin\"\n ).openStream();\n \n // 2. Obtain MessageDigest instances. \n // YOUR-CODE-GOES-HERE\n \n // 3. Read InputStream iterativelly.\n // In each iteration update the internal state of the MessageDigest\n // Allocate a temporary buffer to read data to.\n byte[] buffer = new byte[1024];\n\n // Read input stream by chunks.\n int bytesRead = -1;\n while ((bytesRead = is01.read(buffer)) >= 0){\n // buffer now contains bytesRead bytes of data, process it.\t\n // Pay attention to a fact that read() call does not necessarily \n // have to fill the whole buffer with a valid data!\n\n // TODO: do some work here.\n // e.g., update digest state, process with cipher, etc...\n }\n\n // Stream reading finished here.\n // Since bytesRead contains negative value it means there is no more data\n // in the stream.\n \n // 4. Compute final message digest and print it.\n // YOUR-CODE-GOES-HERE\n \n // 5. Find a difference between provided digests and computed.\n // YOUR-CODE-GOES-HERE or do manually ;)\n byte[] expectedMd5 = Hex.decode(\"e64db39c582fe33b35df742e8c23bd55\");\n }" ]
[ "0.79427654", "0.76599485", "0.7403539", "0.73576635", "0.73522145", "0.72415394", "0.7218439", "0.7167121", "0.7067042", "0.70509934", "0.70412713", "0.6981765", "0.69726527", "0.6925382", "0.6925382", "0.68762726", "0.6843925", "0.6785746", "0.67459846", "0.6745074", "0.6594066", "0.65808344", "0.6553983", "0.6533495", "0.6520057", "0.65084237", "0.64866966", "0.6470143", "0.6429851", "0.63922787", "0.6361835", "0.63510495", "0.6348742", "0.62954295", "0.628644", "0.62805134", "0.6263657", "0.62514275", "0.62488043", "0.6242079", "0.6212593", "0.6209875", "0.6198776", "0.61928904", "0.6174463", "0.615806", "0.6155446", "0.61439687", "0.6140073", "0.6137697", "0.6121228", "0.6112116", "0.6111953", "0.6105151", "0.60956514", "0.6093787", "0.6090942", "0.60855275", "0.60798043", "0.60726607", "0.60517424", "0.6044513", "0.6028576", "0.6019481", "0.5998766", "0.59947026", "0.5993227", "0.59807754", "0.5972822", "0.59719574", "0.59659064", "0.5946609", "0.59248674", "0.59172565", "0.58917063", "0.58913016", "0.5890949", "0.58810014", "0.5878357", "0.58718723", "0.58186215", "0.58054745", "0.58022034", "0.5801956", "0.579245", "0.5784504", "0.5784283", "0.5783049", "0.5781184", "0.5773598", "0.57721275", "0.57653296", "0.57626945", "0.5745875", "0.5738198", "0.5737843", "0.5725134", "0.5723553", "0.5721694", "0.5721516", "0.5718874" ]
0.0
-1
uint32 size = 2;
@java.lang.Override public int getSize() { return size_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int fixedSize();", "long getSize();", "public abstract int getBitSize();", "godot.wire.Wire.Vector2 getSize();", "public static int size_counter() {\n return (32 / 8);\n }", "int getSize ();", "int getTribeSize();", "com.google.protobuf.Int32Value getSize();", "public static int sizeOf()\n {\n return 4;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "IntegerLiteral getSize();", "public int getSize(){return _size;}", "public static int sizeBits_counter() {\n return 32;\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "godot.wire.Wire.Vector3 getSize();", "public int Size(){\n \treturn size;\n\t}", "godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();", "int getLocalSize();", "public static int size_reading() {\n return (16 / 8);\n }", "public int getSize() {return size;}", "private static int sizeof(int i) {\n\t\treturn i;\r\n\t}", "public int getSize(){\n return size;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public int getSize() {\n\treturn sizeNumber;\r\n}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "@Override\n public long sizeInBytes() {\n return STATIC_SIZE + (2 * normalizedValue.length());\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public abstract long getSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public int getSize() { return size; }", "public abstract int GetSize();", "public interface IPrimitiveSize {\r\n /**\r\n * The number of bits in byte.\r\n */\r\n int NumberOfBitsInByte = 8;\r\n\r\n interface InBytes {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = 1;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = 2;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = 4;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = 8;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = 4;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = 8;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = 2;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = 8;\r\n }\r\n\r\n interface InBits {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = InBytes.ByteSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = InBytes.ShortSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = InBytes.IntegerSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = InBytes.LongSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = InBytes.FloatSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = InBytes.DoubleSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = InBytes.CharacterSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = InBytes.ReferenceSize * NumberOfBitsInByte;\r\n }\r\n}", "Uint32 getType();", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "int getHighBitLength();", "float getSize(float[] sizes);", "public int getSize(){return this.size;}", "public long getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getSize()\n {\n\t return size;\n }", "long getOccupiedSize();", "public static int sizeBits_sum_e() {\n return 32;\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size(){return n;}", "int getSpriteArraySize();", "int getSize() {\n return size;\n }", "@Override\n public int variableSize() {\n return CONSTANT.wordSize;\n }", "public int getType1Size(){\n\t\treturn type1Size;\n\t}", "long storageSize();", "int getBlockSize();", "public static byte getSize() {\n return SIZE;\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "public int getSize() { \n return size;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int getSize() {\n\treturn size;\n }", "public int getSize() {\n return size;\n }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "double getSize();", "public static int size_amtype() {\n return (8 / 8);\n }", "public Vector2ic getSize(){\n return size.toImmutable();\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int size_dataType() {\n return (8 / 8);\n }", "int getTotalSize();", "Integer size();", "Integer size();", "public int getSize() {\r\n return size;\r\n }", "public int getSize() {\n\n return size;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int size ();", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getLocalSize();" ]
[ "0.68845004", "0.64285177", "0.6403865", "0.6399972", "0.6356698", "0.63357437", "0.6333697", "0.63133764", "0.6279272", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.62197286", "0.62064797", "0.6170445", "0.6163017", "0.6159229", "0.612001", "0.60839915", "0.6059871", "0.6052288", "0.60459584", "0.6040687", "0.60403687", "0.6039652", "0.60199845", "0.601743", "0.6012745", "0.6012745", "0.6012745", "0.6012046", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60045266", "0.5997216", "0.5979237", "0.59786296", "0.5975514", "0.5971771", "0.5962529", "0.5955047", "0.59458065", "0.5945656", "0.5936081", "0.59334373", "0.59334373", "0.59334373", "0.59334373", "0.5932642", "0.5927146", "0.5906818", "0.58998287", "0.58958274", "0.5892255", "0.58839124", "0.5875914", "0.58693665", "0.58581007", "0.5847329", "0.58453345", "0.5839611", "0.582548", "0.58241516", "0.5821397", "0.581913", "0.5813284", "0.5808644", "0.58040327", "0.57948864", "0.5786895", "0.57846546", "0.57807714", "0.57799894", "0.5772446", "0.5772203", "0.5771451", "0.5771451", "0.57703257", "0.5769282", "0.5767165", "0.5756738", "0.5756137", "0.5754535" ]
0.0
-1
string filename = 3;
@java.lang.Override public java.lang.String getFilename() { java.lang.Object ref = filename_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filename_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
string filename = 3;
@java.lang.Override public com.google.protobuf.ByteString getFilenameBytes() { java.lang.Object ref = filename_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
@java.lang.Override public java.util.List<entities.Torrent.ChunkInfo> getChunksList() { return chunks_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
@java.lang.Override public java.util.List<? extends entities.Torrent.ChunkInfoOrBuilder> getChunksOrBuilderList() { return chunks_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
@java.lang.Override public int getChunksCount() { return chunks_.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.6011079
35
repeated .ChunkInfo chunks = 4;
@java.lang.Override public entities.Torrent.ChunkInfo getChunks(int index) { return chunks_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
@java.lang.Override public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder( int index) { return chunks_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
MD5 of the file content bytes hash = 1;
@java.lang.Override public com.google.protobuf.ByteString getHash() { return hash_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public String getMD5() {\n return hash;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "byte[] getDigest();", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String getMd5Hash() {\n return md5Hash;\n }", "String saveData(MultipartFile md5File) throws IOException;", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "java.lang.String getChecksum();", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "byte[] getFile(String sha) throws Exception;", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "private String m34493b(String str) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(str.getBytes(\"UTF-8\"));\n return m34494b(a.digest());\n }" ]
[ "0.7945153", "0.7661768", "0.74050814", "0.7359544", "0.735271", "0.72430146", "0.72205085", "0.71678907", "0.70686764", "0.7053072", "0.7042714", "0.6983657", "0.6973328", "0.69245076", "0.69245076", "0.6878592", "0.68433243", "0.67876023", "0.67461133", "0.67443544", "0.6595563", "0.6583012", "0.6552502", "0.6535083", "0.65218836", "0.65097237", "0.6485318", "0.647248", "0.6432498", "0.6395222", "0.6363891", "0.63530195", "0.63498926", "0.62966543", "0.62881094", "0.62821895", "0.62655354", "0.62517756", "0.62509817", "0.62432635", "0.6211603", "0.62115633", "0.6200447", "0.61944395", "0.6173948", "0.6159691", "0.6155072", "0.6144942", "0.6139168", "0.6137153", "0.61228883", "0.61138415", "0.6112864", "0.61074764", "0.6097433", "0.6093298", "0.6092774", "0.6086655", "0.60810363", "0.6072487", "0.6053847", "0.60458887", "0.60286593", "0.60209864", "0.6000772", "0.5997083", "0.5993498", "0.59825915", "0.59748024", "0.5974744", "0.59656966", "0.5948662", "0.5924621", "0.59179854", "0.5892881", "0.5892134", "0.58913654", "0.5880925", "0.58796376", "0.5874592", "0.58198285", "0.58064836", "0.5802099", "0.58018506", "0.57929647", "0.5787105", "0.5785677", "0.578347", "0.5781954", "0.5773982", "0.5772734", "0.5765268", "0.57635117", "0.5745734", "0.573811", "0.5737758", "0.57259953", "0.5725858", "0.5723351", "0.5722662", "0.5718943" ]
0.0
-1
MD5 of the file content bytes hash = 1;
public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public String getMD5() {\n return hash;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "byte[] getDigest();", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String getMd5Hash() {\n return md5Hash;\n }", "String saveData(MultipartFile md5File) throws IOException;", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "java.lang.String getChecksum();", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "byte[] getFile(String sha) throws Exception;", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "public static void main(String args[]) throws IOException {\n final InputStream is01 = new URL(\n \"http://www.fi.muni.cz/~xklinec/java/file_a.bin\"\n ).openStream();\n \n // 2. Obtain MessageDigest instances. \n // YOUR-CODE-GOES-HERE\n \n // 3. Read InputStream iterativelly.\n // In each iteration update the internal state of the MessageDigest\n // Allocate a temporary buffer to read data to.\n byte[] buffer = new byte[1024];\n\n // Read input stream by chunks.\n int bytesRead = -1;\n while ((bytesRead = is01.read(buffer)) >= 0){\n // buffer now contains bytesRead bytes of data, process it.\t\n // Pay attention to a fact that read() call does not necessarily \n // have to fill the whole buffer with a valid data!\n\n // TODO: do some work here.\n // e.g., update digest state, process with cipher, etc...\n }\n\n // Stream reading finished here.\n // Since bytesRead contains negative value it means there is no more data\n // in the stream.\n \n // 4. Compute final message digest and print it.\n // YOUR-CODE-GOES-HERE\n \n // 5. Find a difference between provided digests and computed.\n // YOUR-CODE-GOES-HERE or do manually ;)\n byte[] expectedMd5 = Hex.decode(\"e64db39c582fe33b35df742e8c23bd55\");\n }" ]
[ "0.79427654", "0.76599485", "0.7403539", "0.73576635", "0.73522145", "0.72415394", "0.7218439", "0.7167121", "0.7067042", "0.70509934", "0.70412713", "0.6981765", "0.69726527", "0.6925382", "0.6925382", "0.68762726", "0.6843925", "0.6785746", "0.67459846", "0.6745074", "0.6594066", "0.65808344", "0.6553983", "0.6533495", "0.6520057", "0.65084237", "0.64866966", "0.6470143", "0.6429851", "0.63922787", "0.6361835", "0.63510495", "0.6348742", "0.62954295", "0.628644", "0.62805134", "0.6263657", "0.62514275", "0.62488043", "0.6242079", "0.6212593", "0.6209875", "0.6198776", "0.61928904", "0.6174463", "0.615806", "0.6155446", "0.61439687", "0.6140073", "0.6137697", "0.6121228", "0.6112116", "0.6111953", "0.6105151", "0.60956514", "0.6093787", "0.6090942", "0.60855275", "0.60798043", "0.60726607", "0.60517424", "0.6044513", "0.6028576", "0.6019481", "0.5998766", "0.59947026", "0.5993227", "0.59807754", "0.5972822", "0.59719574", "0.59659064", "0.5946609", "0.59248674", "0.59172565", "0.58917063", "0.58913016", "0.5890949", "0.58810014", "0.5878357", "0.58718723", "0.58186215", "0.58054745", "0.58022034", "0.5801956", "0.579245", "0.5784504", "0.5784283", "0.5783049", "0.5781184", "0.5773598", "0.57721275", "0.57653296", "0.57626945", "0.5745875", "0.5738198", "0.5737843", "0.5725134", "0.5723553", "0.5721694", "0.5721516", "0.5718874" ]
0.0
-1
MD5 of the file content bytes hash = 1;
public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "private static String getFileChecksum(File file) throws IOException, NoSuchAlgorithmException {\n FileInputStream fis = new FileInputStream(file);\n\n // Use MD5 algorithm\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\n // Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n // Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n ;\n\n // close the stream; We don't need it now.\n fis.close();\n\n // Get the hash's bytes\n byte[] bytes = digest.digest();\n\n // This bytes[] has bytes in decimal format;\n // Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n // return complete hash\n return sb.toString();\n }", "public String getMD5() {\n return hash;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "public static byte[] createCheckSum(String filename) throws Exception {\n InputStream fis = new FileInputStream(filename);\n\n byte[] buffer = new byte[1024];\n MessageDigest complete = MessageDigest.getInstance(\"MD5\");\n int numRead;\n\n do {\n numRead = fis.read(buffer);\n if (numRead > 0) {\n complete.update(buffer, 0, numRead);\n }\n } while (numRead != -1);\n\n fis.close();\n // Return MD5 Hash\n return complete.digest();\n }", "com.google.protobuf.ByteString getFileHash();", "com.google.protobuf.ByteString getFileHash();", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException\n\t {\n\t FileInputStream fis = new FileInputStream(file);\n\t \n\t //Create byte array to read data in chunks\n\t byte[] byteArray = new byte[1024];\n\t int bytesCount = 0;\n\t \n\t //Read file data and update in message digest\n\t while ((bytesCount = fis.read(byteArray)) != -1) {\n\t digest.update(byteArray, 0, bytesCount);\n\t };\n\t \n\t //close the stream; We don't need it now.\n\t fis.close();\n\t \n\t //Get the hash's bytes\n\t byte[] bytes = digest.digest();\n\t \n\t //This bytes[] has bytes in decimal format;\n\t //Convert it to hexadecimal format\n\t StringBuilder sb = new StringBuilder();\n\t for(int i=0; i< bytes.length ;i++)\n\t {\n\t sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t }\n\t \n\t //return complete hash\n\t return sb.toString();\n\t }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException {\n BufferedInputStream bis = new BufferedInputStream(is);\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n byte[] buffer = new byte[16384];\n int bytesRead = -1;\n while ((bytesRead = bis.read(buffer, 0, buffer.length)) != -1) {\n messageDigest.update(buffer, 0, bytesRead);\n }\n return messageDigest.digest();\n } finally {\n try {\n bis.close();\n } catch (Exception e) {\n System.err.println(\"Unable to close input stream of hash candidate: \" + e);\n }\n }\n }", "private static String getFileChecksum(MessageDigest digest, File file) throws IOException {\n FileInputStream fis = new FileInputStream(file);\n\n //Create byte array to read data in chunks\n byte[] byteArray = new byte[1024];\n int bytesCount = 0;\n\n //Read file data and update in message digest\n while ((bytesCount = fis.read(byteArray)) != -1) {\n digest.update(byteArray, 0, bytesCount);\n }\n\n //close the stream; We don't need it now.\n fis.close();\n\n //Get the hash's bytes\n byte[] bytes = digest.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n\n //return complete hash\n return sb.toString();\n }", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "byte[] getDigest();", "public byte[] getContentMd5() {\n return CoreUtils.clone(this.contentMd5);\n }", "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "byte[] digest();", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String getMd5Hash() {\n return md5Hash;\n }", "String saveData(MultipartFile md5File) throws IOException;", "@Test\n public void fileMd5Test() {\n // TODO: test fileMd5\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "public byte[] MD5(File archivo) throws OpenSSL_Exception {\n\t\tString[] comando = new String[]{ \"openssl\" , \"dgst\" , \"-md5\" , archivo.getAbsolutePath()};\n\t\tProcess terminal = null;\n\t\ttry { terminal = Runtime.getRuntime().exec(comando); } catch (IOException e) { \n\t\t\tthrow new OpenSSL_Exception(\"No se puede ejecutar el comando en el terminal\");\n\t\t}\n\t\t// --- > Leemos la salida error del comando\n\t\tBufferedReader errors = new BufferedReader(new InputStreamReader(terminal.getErrorStream()));\n\t\tString linea = \"\" , error = \"\" ;\n\t\ttry { while( (linea = errors.readLine()) != null) error += linea + \"\\n\"; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el error que ha producido el comando\");\n\t\t}\n\t\t// --- > Si hubo salida error lanzamos al excepcion con el error\n\t\tif(!error.equals(\"\"))throw new OpenSSL_Exception(\"Error al ejecutar el comando:\\n\" + error );\n\t\t// --- > Leemos el resultado obtenido\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(terminal.getInputStream()));\n\t\tString res = \"\";\n\t\ttry { while((linea = in.readLine()) != null) res += linea; } catch (IOException e) {\n\t\t\tthrow new OpenSSL_Exception(\"No se puede leer el resultado que ha producido el comando\");\n\t\t}\n\t\treturn res.substring(res.lastIndexOf(\" \") + 1 ).getBytes();\n\t}", "public static byte[] encryptMD5File(final File file) {\n if (file == null) return null;\n FileInputStream fis = null;\n DigestInputStream digestInputStream;\n try {\n fis = new FileInputStream(file);\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n digestInputStream = new DigestInputStream(fis, md);\n byte[] buffer = new byte[256 * 1024];\n while (true) {\n if (!(digestInputStream.read(buffer) > 0)) break;\n }\n md = digestInputStream.getMessageDigest();\n return md.digest();\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n return null;\n } finally {\n try {\n if (fis != null) {\n fis.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public byte[] getHash()\n\t{\n\t\treturn md5.getHash();\n\t}", "public BoxFileUploadRequestObject setContentMD5(String sha1) {\n getRequestExtras().addHeader(Constants.CONTENT_MD5, sha1);\n return this;\n }", "java.lang.String getChecksum();", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "byte[] getFile(String sha) throws Exception;", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "private int getFileContentHashCode(Path filePath) throws IOException {\n return Arrays.hashCode(Files.readAllBytes(filePath));\n }", "public String getMD5Checksum(String pid, String dsName) throws FedoraException, IOException {\r\n try {\r\n return getDatastreamProperty(pid, dsName, DatastreamProfile.DatastreamProperty.DS_CHECKSUM);\r\n } catch (XPathExpressionException ex) {\r\n throw new FedoraException(ex);\r\n } catch (SAXException ex) {\r\n throw new FedoraException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraException(ex);\r\n }\r\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "private String fileChecksum(File tmpFile, ITaskMonitor monitor) {\n InputStream is = null;\n try {\n is = new FileInputStream(tmpFile);\n MessageDigest digester = getChecksumType().getMessageDigest();\n byte[] buf = new byte[65536];\n int n;\n while ((n = is.read(buf)) >= 0) {\n if (n > 0) {\n digester.update(buf, 0, n);\n }\n }\n return getDigestChecksum(digester);\n } catch (FileNotFoundException e) {\n monitor.setResult(\"File not found: %1$s\", e.getMessage());\n } catch (Exception e) {\n monitor.setResult(e.getMessage());\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n }\n }\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String getFileChecksum(MessageDigest digest, String filePath) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(filePath);\n\n\t\t// Create byte array to read data in chunks\n\t\tbyte[] byteArray = new byte[1024];\n\t\tint bytesCount = 0;\n\n\t\t// Read file data and update in message digest\n\t\twhile ((bytesCount = fis.read(byteArray)) != -1) {\n\t\t\tdigest.update(byteArray, 0, bytesCount);\n\t\t}\n\t\t;\n\n\t\t// close the stream; We don't need it now.\n\t\tfis.close();\n\n\t\t// Get the hash's bytes\n\t\tbyte[] bytes = digest.digest();\n\n\t\t// This bytes[] has bytes in decimal format;\n\t\t// Convert it to hexadecimal format\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tsb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\n\t\t// return complete hash\n\t\treturn sb.toString();\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String CreateMD5(File file) {\n String base64Image = \"\";\n try (FileInputStream imageInFile = new FileInputStream(file)) {\n // Reading a Image file from file system\n byte imageData[] = new byte[(int) file.length()];\n imageInFile.read(imageData);\n base64Image = Base64.getEncoder().encodeToString(imageData);\n } catch (FileNotFoundException e) {\n DialogWindow.ShowErrorPane(\"Image could not be found.\", \"Error Image Missing\");\n// System.out.println(\"Image not found\" + e);\n } catch (IOException ioe) {\n DialogWindow.ShowErrorPane(\"Error while the image was being converted.\", \"Error Converting Image\");\n// System.out.println(\"Exception while reading the Image \" + ioe);\n }\n return base64Image;\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "private String calculateCheckSum(File file2) {\n\t\tStringBuffer sb = new StringBuffer(\"\");\n\t\ttry {\n\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA1\");\n\n\t\t\tFileInputStream finput = new FileInputStream(file2);\n\t\t\tbyte[] dataBytes = new byte[1024];\n\n\t\t\tint bytesRead = 0;\n\n\t\t\twhile ((bytesRead = finput.read(dataBytes)) != -1) {\n\t\t\t\tmessageDigest.update(dataBytes, 0, bytesRead);\n\t\t\t}\n\n\t\t\tbyte[] digestBytes = messageDigest.digest();\n\n\t\t\tfor (int i = 0; i < digestBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((digestBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\t\t\tSystem.out.println(\"file check sum value is \" + sb.toString());\n\t\t\tfinput.close();\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: handle exception\n\t\t\tLogger.getLogger(FileTransferClient.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "public Digest (File appdir)\n throws IOException\n {\n // parse and validate our digest file contents\n StringBuffer data = new StringBuffer();\n File dfile = new File(appdir, DIGEST_FILE);\n List pairs = ConfigUtil.parsePairs(dfile, false);\n for (Iterator iter = pairs.iterator(); iter.hasNext(); ) {\n String[] pair = (String[])iter.next();\n if (pair[0].equals(DIGEST_FILE)) {\n _metaDigest = pair[1];\n break;\n }\n _digests.put(pair[0], pair[1]);\n note(data, pair[0], pair[1]);\n }\n \n // we've reached the end, validate our contents\n MessageDigest md = getMessageDigest();\n byte[] contents = data.toString().getBytes(\"UTF-8\");\n String md5 = StringUtil.hexlate(md.digest(contents));\n if (!md5.equals(_metaDigest)) {\n String err = MessageUtil.tcompose(\n \"m.invalid_digest_file\", _metaDigest, md5);\n throw new IOException(err);\n }\n }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "public static String hash(String data) {\n\t MessageDigest md;\n\t\ttry {\n\t\t\tmd = MessageDigest.getInstance(\"MD5\");\n\t\t md.update(data.getBytes());\n\t\t byte[] digest = md.digest();\n\t\t char[] HEX_ARRAY = \"0123456789ABCDEF\".toCharArray();\n\t char[] hexChars = new char[digest.length * 2];\n\t for (int j = 0; j < digest.length; j++) {\n\t int v = digest[j] & 0xFF;\n\t hexChars[j * 2] = HEX_ARRAY[v >>> 4];\n\t hexChars[j * 2 + 1] = HEX_ARRAY[v & 0x0F];\n\t }\n\t return new String(hexChars);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n return null;\n\t}", "public HashCode getInstallMD5() {\n return installMD5;\n }", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public ShareFileHttpHeaders setContentMd5(byte[] contentMd5) {\n this.contentMd5 = CoreUtils.clone(contentMd5);\n return this;\n }", "public static String toSHA1(String filename){\n\t\tMessageDigest md=null;\n\t\ttry{\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tFileInputStream in = new FileInputStream(filename);\n\t\t\tBufferedInputStream buffIn = new BufferedInputStream(in);\n\t\t\tDigestInputStream dis = new DigestInputStream(buffIn, md);\n\t\t\t\n\t\t\tFile f = new File(filename);\n\t\t\tLong fileSize = f.length();\n\t\t\t\n\t\t\tString blob = \"blob \" + fileSize.toString() + '\\0';\n\t\t\tmd.update(blob.getBytes());\n\t\t\t\t\t\t\n\t\t\t// read the file and update the hash calculation\n while (dis.read() != -1);\n\n // get the hash value as byte array\n byte[] hash = md.digest();\n\n return byteArray2Hex(hash);\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn \"\";\n\t}", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public MD5Hash(String s) {\n\t\tif(s.length() != 32) throw new IllegalArgumentException(\"Hash must have 32 characters\");\n\t\thashString = s;\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "@Test\n public void testCreateDocumentChecksumFromContent() throws IOException {\n String content = \"Some content\";\n CachedInputStream is =\n new CachedStreamFactory(1024, 1024).newInputStream(content);\n Doc doc = new Doc(\"N/A\", is);\n MD5DocumentChecksummer cs = new MD5DocumentChecksummer();\n String checksum = cs.createDocumentChecksum(doc);\n is.dispose();\n Assertions.assertTrue(StringUtils.isNotBlank(checksum),\n \"No checksum was generated.\");\n }", "protected String getFileETag(File file) {\n\t\tFileInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\treturn \"\\\"\" + DigestUtils.md5Hex(is) + \"\\\"\";\n\t\t} catch (IOException e) {\n\t\t\treturn \"\";\n\t\t} finally {\n\t\t\tcloseQuietly(is);\n\t\t}\n\t}", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public static MessageDigest getMessageDigest ()\n {\n try {\n return MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmException nsae) {\n throw new RuntimeException(\"JVM does not support MD5. Gurp!\");\n }\n }", "public static String mySHA(String file) {\n\t\ttry {\n\t\t\t// java.security.MessageDigest digest = null;\n\t\t\t// digest = java.security.MessageDigest.getInstance(\"SHA-1\");\n\t\t\t// digest.reset();\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// digest.update(x.getBytes(\"UTF-8\"));\n\t\t\t// return digest.digest();\n\t\t\tMessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\n\t\t\tbyte[] data = new byte[1024];\n\t\t\tint read = 0;\n\t\t\twhile ((read = fis.read(data)) != -1) {\n\t\t\t\tsha1.update(data, 0, read);\n\t\t\t}\n\t\t\t;\n\t\t\tbyte[] hashBytes = sha1.digest();\n\n\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\tfor (int i = 0; i < hashBytes.length; i++) {\n\t\t\t\tsb.append(Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1));\n\t\t\t}\n\n\t\t\tString fileHash = sb.toString();\n\t\t\treturn fileHash;\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tString s = \"-1\";\n\t\t\treturn s;\n\t\t}\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getFileHash() {\n return fileHash_;\n }", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String getMD5(final File file) {\n if (file == null || !file.exists()) {\n return null;\n }\n\n FileInputStream fin = null;\n try {\n fin = new FileInputStream(file);\n String md5 = getMD5(fin);\n return md5;\n } catch (Exception e) {\n return null;\n } finally {\n closeQuietly(fin);\n }\n }", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "public static byte[] encryptMD5File(final String filePath) {\n File file = isSpace(filePath) ? null : new File(filePath);\n return encryptMD5File(file);\n }", "public static void main(String args[]) throws IOException {\n final InputStream is01 = new URL(\n \"http://www.fi.muni.cz/~xklinec/java/file_a.bin\"\n ).openStream();\n \n // 2. Obtain MessageDigest instances. \n // YOUR-CODE-GOES-HERE\n \n // 3. Read InputStream iterativelly.\n // In each iteration update the internal state of the MessageDigest\n // Allocate a temporary buffer to read data to.\n byte[] buffer = new byte[1024];\n\n // Read input stream by chunks.\n int bytesRead = -1;\n while ((bytesRead = is01.read(buffer)) >= 0){\n // buffer now contains bytesRead bytes of data, process it.\t\n // Pay attention to a fact that read() call does not necessarily \n // have to fill the whole buffer with a valid data!\n\n // TODO: do some work here.\n // e.g., update digest state, process with cipher, etc...\n }\n\n // Stream reading finished here.\n // Since bytesRead contains negative value it means there is no more data\n // in the stream.\n \n // 4. Compute final message digest and print it.\n // YOUR-CODE-GOES-HERE\n \n // 5. Find a difference between provided digests and computed.\n // YOUR-CODE-GOES-HERE or do manually ;)\n byte[] expectedMd5 = Hex.decode(\"e64db39c582fe33b35df742e8c23bd55\");\n }" ]
[ "0.7943719", "0.766098", "0.7404368", "0.73568195", "0.73523885", "0.7242222", "0.72180223", "0.7167706", "0.70678174", "0.7050062", "0.70412827", "0.69807005", "0.6973986", "0.692696", "0.692696", "0.68756473", "0.68442684", "0.67851305", "0.6746224", "0.6745485", "0.6595345", "0.65805274", "0.6555592", "0.6533541", "0.6520474", "0.65091133", "0.6487983", "0.6470428", "0.64297175", "0.63928777", "0.6361783", "0.6351726", "0.63492197", "0.62951887", "0.628619", "0.6279011", "0.6263311", "0.62524855", "0.6250522", "0.62415683", "0.6213803", "0.6209847", "0.6199574", "0.6193469", "0.617626", "0.61593", "0.61571175", "0.6144141", "0.61407566", "0.6138003", "0.61217195", "0.6112481", "0.61118895", "0.61060166", "0.609635", "0.60944104", "0.609136", "0.6085632", "0.6079277", "0.6074224", "0.6052784", "0.6044624", "0.6030137", "0.6019262", "0.59987897", "0.5996484", "0.59925145", "0.5981592", "0.5973284", "0.5972363", "0.5966131", "0.59478974", "0.5927683", "0.59178406", "0.58929783", "0.58915275", "0.58915067", "0.5882943", "0.5878644", "0.58711517", "0.5819573", "0.5805275", "0.5803169", "0.5802916", "0.5793899", "0.57848626", "0.5784287", "0.57840365", "0.5781422", "0.5773585", "0.5773037", "0.5768089", "0.57630014", "0.574723", "0.57391614", "0.57388115", "0.57248944", "0.57216114", "0.5721336", "0.57212204", "0.5720485" ]
0.0
-1
uint32 size = 2;
@java.lang.Override public int getSize() { return size_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int fixedSize();", "long getSize();", "public abstract int getBitSize();", "godot.wire.Wire.Vector2 getSize();", "public static int size_counter() {\n return (32 / 8);\n }", "int getSize ();", "int getTribeSize();", "com.google.protobuf.Int32Value getSize();", "public static int sizeOf()\n {\n return 4;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "IntegerLiteral getSize();", "public int getSize(){return _size;}", "public static int sizeBits_counter() {\n return 32;\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "godot.wire.Wire.Vector3 getSize();", "public int Size(){\n \treturn size;\n\t}", "godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();", "int getLocalSize();", "public static int size_reading() {\n return (16 / 8);\n }", "public int getSize() {return size;}", "private static int sizeof(int i) {\n\t\treturn i;\r\n\t}", "public int getSize(){\n return size;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public int getSize() {\n\treturn sizeNumber;\r\n}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "@Override\n public long sizeInBytes() {\n return STATIC_SIZE + (2 * normalizedValue.length());\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public abstract long getSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public int getSize() { return size; }", "public abstract int GetSize();", "public interface IPrimitiveSize {\r\n /**\r\n * The number of bits in byte.\r\n */\r\n int NumberOfBitsInByte = 8;\r\n\r\n interface InBytes {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = 1;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = 2;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = 4;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = 8;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = 4;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = 8;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = 2;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = 8;\r\n }\r\n\r\n interface InBits {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = InBytes.ByteSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = InBytes.ShortSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = InBytes.IntegerSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = InBytes.LongSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = InBytes.FloatSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = InBytes.DoubleSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = InBytes.CharacterSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = InBytes.ReferenceSize * NumberOfBitsInByte;\r\n }\r\n}", "Uint32 getType();", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "int getHighBitLength();", "float getSize(float[] sizes);", "public int getSize(){return this.size;}", "public long getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getSize()\n {\n\t return size;\n }", "long getOccupiedSize();", "public static int sizeBits_sum_e() {\n return 32;\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size(){return n;}", "int getSpriteArraySize();", "int getSize() {\n return size;\n }", "@Override\n public int variableSize() {\n return CONSTANT.wordSize;\n }", "public int getType1Size(){\n\t\treturn type1Size;\n\t}", "long storageSize();", "int getBlockSize();", "public static byte getSize() {\n return SIZE;\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "public int getSize() { \n return size;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int getSize() {\n\treturn size;\n }", "public int getSize() {\n return size;\n }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "double getSize();", "public static int size_amtype() {\n return (8 / 8);\n }", "public Vector2ic getSize(){\n return size.toImmutable();\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int size_dataType() {\n return (8 / 8);\n }", "int getTotalSize();", "Integer size();", "Integer size();", "public int getSize() {\r\n return size;\r\n }", "public int getSize() {\n\n return size;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int size ();", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getLocalSize();" ]
[ "0.68845004", "0.64285177", "0.6403865", "0.6399972", "0.6356698", "0.63357437", "0.6333697", "0.63133764", "0.6279272", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.62197286", "0.62064797", "0.6170445", "0.6163017", "0.6159229", "0.612001", "0.60839915", "0.6059871", "0.6052288", "0.60459584", "0.6040687", "0.60403687", "0.6039652", "0.60199845", "0.601743", "0.6012745", "0.6012745", "0.6012745", "0.6012046", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60045266", "0.5997216", "0.5979237", "0.59786296", "0.5975514", "0.5971771", "0.5962529", "0.5955047", "0.59458065", "0.5945656", "0.5936081", "0.59334373", "0.59334373", "0.59334373", "0.59334373", "0.5932642", "0.5927146", "0.5906818", "0.58998287", "0.58958274", "0.5892255", "0.58839124", "0.5875914", "0.58693665", "0.58581007", "0.5847329", "0.58453345", "0.5839611", "0.582548", "0.58241516", "0.5821397", "0.581913", "0.5813284", "0.5808644", "0.58040327", "0.57948864", "0.5786895", "0.57846546", "0.57807714", "0.57799894", "0.5772446", "0.5772203", "0.5771451", "0.5771451", "0.57703257", "0.5769282", "0.5767165", "0.5756738", "0.5756137", "0.5754535" ]
0.0
-1
uint32 size = 2;
public Builder setSize(int value) { size_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int fixedSize();", "long getSize();", "public abstract int getBitSize();", "godot.wire.Wire.Vector2 getSize();", "public static int size_counter() {\n return (32 / 8);\n }", "int getSize ();", "int getTribeSize();", "com.google.protobuf.Int32Value getSize();", "public static int sizeOf()\n {\n return 4;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "IntegerLiteral getSize();", "public int getSize(){return _size;}", "public static int sizeBits_counter() {\n return 32;\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "godot.wire.Wire.Vector3 getSize();", "public int Size(){\n \treturn size;\n\t}", "godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();", "int getLocalSize();", "public static int size_reading() {\n return (16 / 8);\n }", "public int getSize() {return size;}", "private static int sizeof(int i) {\n\t\treturn i;\r\n\t}", "public int getSize(){\n return size;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public int getSize() {\n\treturn sizeNumber;\r\n}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "@Override\n public long sizeInBytes() {\n return STATIC_SIZE + (2 * normalizedValue.length());\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public abstract long getSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public int getSize() { return size; }", "public abstract int GetSize();", "public interface IPrimitiveSize {\r\n /**\r\n * The number of bits in byte.\r\n */\r\n int NumberOfBitsInByte = 8;\r\n\r\n interface InBytes {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = 1;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = 2;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = 4;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = 8;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = 4;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = 8;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = 2;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = 8;\r\n }\r\n\r\n interface InBits {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = InBytes.ByteSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = InBytes.ShortSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = InBytes.IntegerSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = InBytes.LongSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = InBytes.FloatSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = InBytes.DoubleSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = InBytes.CharacterSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = InBytes.ReferenceSize * NumberOfBitsInByte;\r\n }\r\n}", "Uint32 getType();", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "int getHighBitLength();", "float getSize(float[] sizes);", "public int getSize(){return this.size;}", "public long getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getSize()\n {\n\t return size;\n }", "long getOccupiedSize();", "public static int sizeBits_sum_e() {\n return 32;\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size(){return n;}", "int getSpriteArraySize();", "int getSize() {\n return size;\n }", "@Override\n public int variableSize() {\n return CONSTANT.wordSize;\n }", "public int getType1Size(){\n\t\treturn type1Size;\n\t}", "long storageSize();", "int getBlockSize();", "public static byte getSize() {\n return SIZE;\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "public int getSize() { \n return size;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int getSize() {\n\treturn size;\n }", "public int getSize() {\n return size;\n }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "double getSize();", "public static int size_amtype() {\n return (8 / 8);\n }", "public Vector2ic getSize(){\n return size.toImmutable();\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int size_dataType() {\n return (8 / 8);\n }", "int getTotalSize();", "Integer size();", "Integer size();", "public int getSize() {\r\n return size;\r\n }", "public int getSize() {\n\n return size;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int size ();", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getLocalSize();" ]
[ "0.68845004", "0.64285177", "0.6403865", "0.6399972", "0.6356698", "0.63357437", "0.6333697", "0.63133764", "0.6279272", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.62197286", "0.62064797", "0.6170445", "0.6163017", "0.6159229", "0.612001", "0.60839915", "0.6059871", "0.6052288", "0.60459584", "0.6040687", "0.60403687", "0.6039652", "0.60199845", "0.601743", "0.6012745", "0.6012745", "0.6012745", "0.6012046", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60045266", "0.5997216", "0.5979237", "0.59786296", "0.5975514", "0.5971771", "0.5962529", "0.5955047", "0.59458065", "0.5945656", "0.5936081", "0.59334373", "0.59334373", "0.59334373", "0.59334373", "0.5932642", "0.5927146", "0.5906818", "0.58998287", "0.58958274", "0.5892255", "0.58839124", "0.5875914", "0.58693665", "0.58581007", "0.5847329", "0.58453345", "0.5839611", "0.582548", "0.58241516", "0.5821397", "0.581913", "0.5813284", "0.5808644", "0.58040327", "0.57948864", "0.5786895", "0.57846546", "0.57807714", "0.57799894", "0.5772446", "0.5772203", "0.5771451", "0.5771451", "0.57703257", "0.5769282", "0.5767165", "0.5756738", "0.5756137", "0.5754535" ]
0.0
-1
uint32 size = 2;
public Builder clearSize() { size_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int fixedSize();", "long getSize();", "public abstract int getBitSize();", "godot.wire.Wire.Vector2 getSize();", "public static int size_counter() {\n return (32 / 8);\n }", "int getSize ();", "int getTribeSize();", "com.google.protobuf.Int32Value getSize();", "public static int sizeOf()\n {\n return 4;\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "IntegerLiteral getSize();", "public int getSize(){return _size;}", "public static int sizeBits_counter() {\n return 32;\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "godot.wire.Wire.Vector3 getSize();", "public int Size(){\n \treturn size;\n\t}", "godot.wire.Wire.Vector2OrBuilder getSizeOrBuilder();", "int getLocalSize();", "public static int size_reading() {\n return (16 / 8);\n }", "public int getSize() {return size;}", "private static int sizeof(int i) {\n\t\treturn i;\r\n\t}", "public int getSize(){\n return size;\n }", "@Override\n public int getSize() {\n return 64;\n }", "public int getSize() {\n\treturn sizeNumber;\r\n}", "int memSize() {\n return super.memSize() + 4 * 4; }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "public int getSize(){\n return size;\n }", "@Override\n public long sizeInBytes() {\n return STATIC_SIZE + (2 * normalizedValue.length());\n }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public abstract long getSize();", "public int getSize(){\n //To be written by student\n return localSize;\n }", "public int getSize() { return size; }", "public abstract int GetSize();", "public interface IPrimitiveSize {\r\n /**\r\n * The number of bits in byte.\r\n */\r\n int NumberOfBitsInByte = 8;\r\n\r\n interface InBytes {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = 1;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = 2;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = 4;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = 8;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = 4;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = 8;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = 2;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = 8;\r\n }\r\n\r\n interface InBits {\r\n /**\r\n * The size of a byte in bytes.\r\n */\r\n int ByteSize = InBytes.ByteSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a short in bytes.\r\n */\r\n int ShortSize = InBytes.ShortSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of an integer in bytes.\r\n */\r\n int IntegerSize = InBytes.IntegerSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a long in bytes.\r\n */\r\n int LongSize = InBytes.LongSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a float in bytes.\r\n */\r\n int FloatSize = InBytes.FloatSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a double in bytes.\r\n */\r\n int DoubleSize = InBytes.DoubleSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a char in bytes.\r\n */\r\n int CharacterSize = InBytes.CharacterSize * NumberOfBitsInByte;\r\n\r\n /**\r\n * The size of a reference in bytes.\r\n * Assuming 64-bit architecture.\r\n */\r\n int ReferenceSize = InBytes.ReferenceSize * NumberOfBitsInByte;\r\n }\r\n}", "Uint32 getType();", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "int getHighBitLength();", "float getSize(float[] sizes);", "public int getSize(){return this.size;}", "public long getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();", "int getSize()\n {\n\t return size;\n }", "long getOccupiedSize();", "public static int sizeBits_sum_e() {\n return 32;\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public static int size_count() {\n return (16 / 8);\n }", "public int size(){return n;}", "int getSpriteArraySize();", "int getSize() {\n return size;\n }", "@Override\n public int variableSize() {\n return CONSTANT.wordSize;\n }", "public int getType1Size(){\n\t\treturn type1Size;\n\t}", "long storageSize();", "int getBlockSize();", "public static byte getSize() {\n return SIZE;\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "public int getSize() { \n return size;\n }", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "public int getSize() {\n\treturn size;\n }", "public int getSize() {\n return size;\n }", "com.google.protobuf.Int32ValueOrBuilder getSizeOrBuilder();", "double getSize();", "public static int size_amtype() {\n return (8 / 8);\n }", "public Vector2ic getSize(){\n return size.toImmutable();\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int size_dataType() {\n return (8 / 8);\n }", "int getTotalSize();", "Integer size();", "Integer size();", "public int getSize() {\r\n return size;\r\n }", "public int getSize() {\n\n return size;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int size ();", "public int getSize()\r\n {\r\n return size;\r\n }", "public int getLocalSize();" ]
[ "0.68845004", "0.64285177", "0.6403865", "0.6399972", "0.6356698", "0.63357437", "0.6333697", "0.63133764", "0.6279272", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.6277018", "0.62197286", "0.62064797", "0.6170445", "0.6163017", "0.6159229", "0.612001", "0.60839915", "0.6059871", "0.6052288", "0.60459584", "0.6040687", "0.60403687", "0.6039652", "0.60199845", "0.601743", "0.6012745", "0.6012745", "0.6012745", "0.6012046", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60066426", "0.60045266", "0.5997216", "0.5979237", "0.59786296", "0.5975514", "0.5971771", "0.5962529", "0.5955047", "0.59458065", "0.5945656", "0.5936081", "0.59334373", "0.59334373", "0.59334373", "0.59334373", "0.5932642", "0.5927146", "0.5906818", "0.58998287", "0.58958274", "0.5892255", "0.58839124", "0.5875914", "0.58693665", "0.58581007", "0.5847329", "0.58453345", "0.5839611", "0.582548", "0.58241516", "0.5821397", "0.581913", "0.5813284", "0.5808644", "0.58040327", "0.57948864", "0.5786895", "0.57846546", "0.57807714", "0.57799894", "0.5772446", "0.5772203", "0.5771451", "0.5771451", "0.57703257", "0.5769282", "0.5767165", "0.5756738", "0.5756137", "0.5754535" ]
0.0
-1
string filename = 3;
public java.lang.String getFilename() { java.lang.Object ref = filename_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filename_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
string filename = 3;
public com.google.protobuf.ByteString getFilenameBytes() { java.lang.Object ref = filename_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); filename_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
string filename = 3;
public Builder setFilename( java.lang.String value) { if (value == null) { throw new NullPointerException(); } filename_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
string filename = 3;
public Builder clearFilename() { filename_ = getDefaultInstance().getFilename(); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
string filename = 3;
public Builder setFilenameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filename_ = value; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilename();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "String getFileName();", "java.lang.String getFilename();", "java.lang.String getFilename();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "java.lang.String getFileName();", "public String getFilename();", "public String getFileName(int index) {\n\t\tFile f = openFiles.get(index);\n\t\tString nom = f.getName().substring(0,f.getName().length()-5);\n\t\treturn nom;\n\t}", "public String getFileName();", "public String getFileName();", "public String getFileName ();", "public static String getFilename (int cid) {\n \tint count = 0;\n\t\tint num = cid;\n\t\tString filename=\"/part-r-\";\n\t\tif (num == 0)\n\t\t\tfilename=\"/part-r-00000\";\n\t\telse {\n // TODO\n // ------------------------------------------------------\n //\n // ------------------------------------------------------\n\t\t}\n\t\treturn filename;\n\t}", "public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}", "private String checkFilename(String str){\n\n final ArrayList<String> values = new ArrayList<String>();\n File dir = new File(path);\n String[] list = dir.list();\n int num = 1;\n String origin = str;\n if (list != null) {\n while(Arrays.asList(list).contains(str+\".m4a\")){\n str = origin + String.format(\" %03d\", num);\n num+=1;\n }\n }\n return str;\n }", "public static int getFileNum(File f)\r\n\t{\r\n\t\tString fileStr = f.toString().substring(2);\r\n\t\t\r\n\t\tint num = Integer.parseInt(fileStr.substring(13, fileStr.length()-5));\r\n\t\treturn num;\r\n\t}", "public String getFilename() {\n\treturn(filename);\n }", "public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}", "String getFileName(String filePath) {\n\t\tint lastSlash = savedFilePath.lastIndexOf(\"\\\\\");\n\t\tint dotPos = savedFilePath.lastIndexOf(\".\");\n\t\tString fileName = savedFilePath.substring(lastSlash+1,dotPos);\n\t\treturn fileName;\n\t}", "public String GetFileName() {\r\n\treturn fileName;\r\n }", "public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}", "public String getFileChosen() \n {\n return fileName.getText();\n }", "public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}", "public String getFilename(){\r\n Scanner scan = new Scanner(System.in);\r\n String input = scan.nextLine();\r\n return input;\r\n }", "private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}", "public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}", "String getFileExtensionByFileString(String name);", "private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}", "String getFile();", "String getFile();", "String getFile();", "void setFile(String i) {\n file = i;\n }", "private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }", "public void setFilename( String name) {\n\tfilename = name;\n }", "public String getFileNumber() {\n\t\treturn fileNumber;\n\t}", "public String getFileName()\r\n/* 11: */ {\r\n/* 12:45 */ return this.fileName;\r\n/* 13: */ }", "public String getFileName()\n {\n return getString(\"FileName\");\n }", "public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}", "private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }", "private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}", "public String getFileName() {\n/* 43:43 */ return this.fileName;\n/* 44: */ }", "public String getFilename()\r\n\t{\r\n\t\treturn _filename; \r\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "public String getFilename(){\n\t\treturn filename;\n\t}", "private String getSaveName(String filepath) {\r\n String newname = \"\";\r\n for (char c : filepath.toCharArray()) {\r\n if (c == '/' || c == '\\\\' || c == ':') newname+=\"_\";\r\n else newname+=c;\r\n }\r\n newname+=EXTENSION;\r\n return newname;\r\n }", "public String getFilename() {\n\treturn file.getFilename();\n }", "public void setFilename(String name){\n\t\tfilename = name;\n\t}", "private static String getFileExtension(String fileName) {\r\n\t\tString ext = IConstants.emptyString;\r\n\t\tint mid = fileName.lastIndexOf(\".\");\r\n\t\text = fileName.substring(mid + 1, fileName.length());\r\n\t\tSystem.out.println(\"File Extension --\" + ext);\r\n\t\treturn ext;\r\n\t}", "public abstract String getFileName();", "FileNameReference createFileNameReference();", "private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }", "private static char getFileExt(String file) {\r\n \treturn file.charAt(file.indexOf('.')+1);\r\n }", "private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}", "private static String getFilename() {\n\t\tString name = \"\";\n\n\t\tSystem.out.println(\"Please enter a file name including the extension (results.txt)\\n\");\n\t\tdo {\n\t\t\tSystem.out.print(\">>\\t\");\n\t\t\tname = keyboard.nextLine().trim();\n\t\t\tif(\"exit\".equals(name)) goodbye();\n\t\t} while(!isValidFileName(name) || name.length() == 0);\n\n\t\treturn name;\n\t}", "@Test\n public void testGetFileName() {\n System.out.println(\"getFileName\");\n String file = \"adriano.pdb\";\n String expResult = \"adriano\";\n String result = Util.getFileName(file);\n assertEquals(expResult, result);\n }", "public String getFilename()\n {\n return filename;\n }", "public String getFileName()\r\n {\r\n return sFileName;\r\n }", "public native String getFileName() throws MagickException;", "public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}", "public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }", "private static String getFileNameInput() {\n Scanner fileNameScanner = new Scanner(System.in);\n System.out.println(\"Please enter name of file: \");\n return fileNameScanner.nextLine();\n }", "public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }", "private void testStringPlusInt() {\r\n\t\t\r\n\t\t/*\tGet a String object & an int object\t */\r\n\t\tString dateFormat = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\").format(new Date());\r\n\t\tSystem.out.println(\"The string is: \" + dateFormat);\r\n\t\tint randomFormat = (int)(Math.random()*899+100);\t\t// random number between 100 and 999\r\n\t\tSystem.out.println(\"The integer is: \" + randomFormat);\r\n\t\t\r\n\t\t/*\tAdd the String object & int object\t*/\r\n\t\tString fileName = dateFormat + \"_\" + randomFormat + \"_\" + \"fileName.ext\";\r\n\t\tSystem.out.println(\"The full path name: \" + fileName);\r\n\t\t\r\n\t\t/*\tGet the hex string from the hash code of the file name\t*/\r\n\t\tint hashCode = fileName.hashCode();\r\n\t\tString hexString = Integer.toHexString(hashCode);\r\n\t\tSystem.out.println(\"The corresponding hex string of the hash code: \" + hexString);\r\n\t\t\r\n\t\t/*\tPrint out the corresponding folder path\t*/\r\n\t\tFile folderPath = new File(\"http://localhost:8081\" + \"/\" + hexString.charAt(0) + \"/\" + hexString.charAt(1));\r\n\t\tSystem.out.println(\"The corresponding folder path: \" + folderPath.toString());\r\n\t\t//\tfolderPath.mkdirs();\r\n\t}", "public String getSimpleName() { return FilePathUtils.getFileName(_name); }", "public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\n return filename;\n }", "public String getFilename() {\r\n return filename;\r\n }", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public String getFileName()\n\t{\n\t\treturn fileName;\n\t}", "public void setFileName( String name ) {\n\tfilename = name;\n }", "public String getFileName()\r\n {\r\n return fileName;\r\n }", "private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }", "public static String inputFileName( String estensione) {\n\t\tString fileName=LeggiStringhe.leggiStringa(INSERISCI_NOME_FILE);\n\t\tif (!hasEstensione(fileName)) { // if 1\n\t\t\tif (estensione.charAt(0) !=PUNTO) { //if 2\n estensione=PUNTO+estensione; \n\t\t\t}// if2\n\t\t\tfileName=fileName+estensione;\n\t\t}// if2\n\t\t\n\t\treturn fileName;\n\t}", "public Integer getFileNo() {\n return fileNo;\n }", "public String getFileName() \n {\n return fileName;\n }", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public String getFilename() {\n\t\treturn filename;\n\t}", "public abstract long NewFileNumber();", "public void setFilename(String f){\n\t\tfilename = f;\n\t}", "public static String getLastFileName()\r\n\t{\r\n\t\treturn _outputFileName;\r\n\t}", "public String getName() {\n\t\treturn filename;\n\t}", "public static String getFileExtension(String filename) {\n\t\tif(filename.indexOf(\".\") == -1)\n\t\t\treturn \"\";\n\t\t\n\t\treturn \".\"+filename.substring(filename.lastIndexOf(\".\")+1);\n\t}", "public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}", "public String getParsedFileName(String name, int index) {\r\n\t\t// We split until the first 3 (4-1) underscores.\r\n\t\tString[] parsedText = name.split(\"_\", 4);\r\n\r\n\t\t// format: latency_estclk_luts_filename\r\n\t\t// format: 0_1_2_3\r\n\t\tswitch (index) {\r\n\t\tcase 0:\r\n\t\t\t// We return the latency.\r\n\t\t\treturn parsedText[0];\r\n\t\tcase 1:\r\n\t\t\t// We return the estimated clock.\r\n\t\t\treturn parsedText[1];\r\n\t\tcase 2:\r\n\t\t\t// We return the luts.\r\n\t\t\treturn parsedText[2];\r\n\t\tcase 3:\r\n\t\t\t// We return the file name.\r\n\t\t\treturn parsedText[3];\r\n\t\tdefault:\r\n\t\t\treturn (\"Out of bounds in getParsedFileName\");\r\n\t\t}\r\n\t}", "private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}", "public String getFileName(){\n\t\treturn fileName;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}", "public String getFilename() {\n\t\treturn this.filename;\n\t}" ]
[ "0.66982913", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.66455555", "0.64821243", "0.64821243", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.6453617", "0.62387234", "0.6234598", "0.6189585", "0.6189585", "0.61346734", "0.6084737", "0.6022011", "0.59964454", "0.5977858", "0.5944312", "0.59090173", "0.5839504", "0.5838359", "0.5825921", "0.5821008", "0.58183324", "0.5799759", "0.57674426", "0.575688", "0.5756672", "0.575651", "0.57470113", "0.57470113", "0.57470113", "0.57399166", "0.572578", "0.57204074", "0.5716245", "0.56949466", "0.5677927", "0.5675199", "0.56671536", "0.56575423", "0.5652565", "0.5650561", "0.5647108", "0.5647108", "0.56356806", "0.5631261", "0.5630207", "0.56079775", "0.5605906", "0.5601958", "0.5577306", "0.5575716", "0.55523545", "0.55427605", "0.55332834", "0.5527501", "0.5522718", "0.55124307", "0.55084354", "0.5498311", "0.54949063", "0.5492165", "0.5487285", "0.54862946", "0.5478688", "0.54770684", "0.54770684", "0.54725844", "0.5466794", "0.5466794", "0.54553485", "0.5451565", "0.5450819", "0.5450724", "0.5450323", "0.54481816", "0.5444828", "0.5444828", "0.5444828", "0.5444828", "0.5441548", "0.5436223", "0.54252577", "0.5422606", "0.54142714", "0.5413282", "0.5410183", "0.54093313", "0.5408662", "0.53998154", "0.53998154" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
public java.util.List<entities.Torrent.ChunkInfo> getChunksList() { if (chunksBuilder_ == null) { return java.util.Collections.unmodifiableList(chunks_); } else { return chunksBuilder_.getMessageList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
public int getChunksCount() { if (chunksBuilder_ == null) { return chunks_.size(); } else { return chunksBuilder_.getCount(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
public entities.Torrent.ChunkInfo getChunks(int index) { if (chunksBuilder_ == null) { return chunks_.get(index); } else { return chunksBuilder_.getMessage(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1
repeated .ChunkInfo chunks = 4;
public Builder setChunks( int index, entities.Torrent.ChunkInfo value) { if (chunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChunksIsMutable(); chunks_.set(index, value); onChanged(); } else { chunksBuilder_.setMessage(index, value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getChunksCount();", "int getChunksCount();", "int getChunkSize();", "int getNumOfChunks();", "Builder spikesPerChunk(VariableAmount count);", "List<DownloadChunk> mo54445j(int i);", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "void mo54414a(int i, List<DownloadChunk> list);", "void mo54426b(int i, List<DownloadChunk> list);", "public int getChunkNo() {\n return chunkNo;\n }", "public int getChunkNo() {\n return chunkNo;\n }", "int getChunksLocationCount();", "entities.Torrent.ChunkInfo getChunks(int index);", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "public void setChunked(boolean b) {\n/* 178 */ this.chunked = b;\n/* */ }", "@Test\n public void testChunkType() {\n final int[] count = new int[255];\n final SctpChunk.Type[] types = SctpChunk.Type.values();\n for (int i = 0; i < types.length; ++i) {\n count[types[i].getType()] = count[types[i].getType()] + 1;\n }\n\n for (int i = 0; i < count.length; ++i) {\n assertThat(\"Found multiple type definitions for Chunk Type \" + i, count[i] < 2, is(true));\n }\n\n }", "public int getChunkWidth() {\n return 256;\n }", "int getChunkIndex();", "int getChunkIndex();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "int getChunkId();", "private Chunk generateChunk(int size) {\n String json;\n ObjectMapper objectMapper = new ObjectMapper();\n List<Record> recordList = new ArrayList<>();\n int i = 1;\n while (i <= size) {\n json = \"{ \\\"Price\\\" :\" + priceGenerator.nextDouble() * 100 + \" }\";\n try {\n recordList.add(new Record(String.valueOf(i), LocalDateTime.now(), objectMapper.readTree(json)));\n } catch (JsonProcessingException e) {\n log.error(\"Issue with the chunk generation: \" + e.getMessage());\n return null;\n }\n i++;\n\n }\n log.info(\"Generated Chunk :\");\n recordList.forEach((record) -> log.info(record.toString()));\n return new Chunk(recordList);\n }", "public int getChunkSize() {\n return chunkSize;\n }", "public static long getChunks() {\n return chunks;\n }", "public boolean isChunked() {\n/* 101 */ return this.chunked;\n/* */ }", "public int getChunksCount() {\n return chunksCount_;\n }", "private void generateNextChunk() {\n \n chunkNumber++;\n \n // generate a chunk filled with content\n List<Object> list = chunkFactory.generateChunk(chunkNumber);\n Vector3f newChunkPosition =\n new Vector3f(nextChunkX, 0f, 0f);\n nextChunkX += P.chunkLength;\n\n for (Object object : list) {\n if (object instanceof Spatial) {\n Spatial spatial = (Spatial) object;\n addToLevel(spatial, spatial.getLocalTranslation().add(newChunkPosition));\n } else if (object instanceof SpotLight) {\n SpotLight light = (SpotLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition));\n } else if (object instanceof PointLight) {\n PointLight light = (PointLight) object;\n addToLevel(light, light.getPosition().add(newChunkPosition)); \n }\n }\n\n }", "@Test\n public void testMultipleBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < noOfBlocks; i++) {\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1, i,\n i * blockSize, i == noOfBlocks - 1 ? testMeta.dataFile.length() : (i + 1) * blockSize, i == noOfBlocks - 1,\n i - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n for (int i = 0; i < messages.size(); i++) {\n\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "@java.lang.Override\n public int getChunksCount() {\n return chunks_.size();\n }", "void sendChunkRequest(int chunkX, int chunkY);", "@Test\n public void testStreamParsePubDev3401() throws IOException {\n final int chunkSize = 64 * 1024;\n ParseSetupV3 ps = new ParseSetupV3();\n ps.parse_type = \"CSV\";\n ps.chunk_size = chunkSize;\n // mock Parser\n final List<Integer> pcCalls = new LinkedList<>();\n Parser p = new Parser(new ParseSetup(ps), null) {\n @Override protected ParseWriter parseChunk(int cidx, ParseReader din, ParseWriter dout) {\n pcCalls.add(cidx);\n byte[] data = din.getChunkData(cidx);\n assert cidx <= 3;\n assert ((data != null) && (data.length == chunkSize)) || (cidx == 3);\n return null;\n }\n };\n // mock source InputStream, only used for \"back-channel\" chunk index signalling\n final Queue<Integer> cidxs = new LinkedList<>(Arrays.asList(1, 2, 3, 4));\n InputStream bvs = new InputStream() {\n @Override public int read() throws IOException { throw new UnsupportedOperationException(); }\n @Override public int read(byte[] b, int off, int len) throws IOException {\n assert b == null;\n return cidxs.remove();\n }\n };\n // mock StreamParseWriter\n MockStreamParseWriter w = new MockStreamParseWriter(chunkSize);\n // Vec made of 3 chunks\n Key k = FVecFactory.makeByteVec(\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize),\n RandomStringUtils.randomAscii(chunkSize)\n );\n try {\n ByteVec v = DKV.getGet(k);\n p.streamParseZip(v.openStream(null), w, bvs);\n assertEquals(\"Expected calls to parseChunk()\", Arrays.asList(0, 1, 2, 3), pcCalls);\n assertEquals(\"Expected calls to nextChunk()\", Arrays.asList(0, 1, 2), w._nchks);\n } finally {\n k.remove();\n }\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "void mo54417a(DownloadChunk downloadChunk);", "void setSpikesPerChunk(VariableAmount count);", "public boolean getChunking () {\n\treturn chunk;\n }", "public int getChunkCount () {\n return (this.getTagCount()>>BITS_TO_SHIFT_FOR_CHUNK) + 1;\n }", "public int getChunksCount() {\n return chunksCount_;\n }", "boolean hasChunksCount();", "public boolean isNewChunk() {\n/* 26 */ return this.newChunk;\n/* */ }", "@Test\n public void testChunkedOutputToChunkInput() throws Exception {\n final ChunkedInput<String> input = target().path(\"test\").request().get(new javax.ws.rs.core.GenericType<ChunkedInput<String>>() {});\n int counter = 0;\n String chunk;\n while ((chunk = input.read()) != null) {\n Assert.assertEquals((\"Unexpected value of chunk \" + counter), \"test\", chunk);\n counter++;\n } \n Assert.assertEquals(\"Unexpected numbed of received chunks.\", 3, counter);\n }", "public int getNumOfChunks() {\n return numOfChunks_;\n }", "String getChunkType();", "public int getChunkHeight() {\n return 256;\n }", "public void setChunking (boolean b) {\n\tchunk = b;\n }", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "public Builder setChunksCount(int value) {\n bitField0_ |= 0x00000002;\n chunksCount_ = value;\n onChanged();\n return this;\n }", "DataChunk nextChunk() throws RemoteException;", "entities.Torrent.ChunkResponse getChunkResponse();", "entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index);", "public int getChunkSize() {\r\n\t\treturn chunkSize;\r\n\t}", "public static void splitFile() throws IOException{\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\tFile file = new File(currentRelativePath.toAbsolutePath().toString()+\"/\"+fileName);\n\n\t\t//fileChunks are of size windowSize\n\t\tint num = fileSize; \n\t\tint lastByteRead = 0;\n\t\tint start =0;\n\t\tint i= 0; //where we are in bitfield map\n\t\tbyte[] fileChunkArray = new byte[windowSize];\n\t\t//read in the file\n\t\ttry{\n\t\t\tFileInputStream fileInputStream = new FileInputStream(file);\n\t\t\twhile(num > 0){\n\t\t\t\tif (num <= 5){\n\t\t\t\t\twindowSize = num;\n\t\t\t\t}\n\t\t\t\t// byte[] fileChunkArray = new byte[windowSize];\n\t\t\t\t\n\t\t\t\tlastByteRead = fileInputStream.read(fileChunkArray,0,windowSize);\n\t\t\t\t\n\t\t\t\t// start = start +windowSize;\n\t\t\t\t\n\t\t\t\t// String s1 = new String(fileChunkArray);\n\t\t\t\tSystem.out.print(\"the chunkarray length is :\" + fileChunkArray.length);\n\t\t\t\tSystem.out.print(\"the lastbyte read is :\"+ lastByteRead);\n\t\t\t\t// System.out.print(\"the fileChunk array is :\"+ s1);\n\t\t\t\tbitfieldMap.put(lastByteRead,fileChunkArray);\n\t\t\t\ti++;\n\t\t\t\tdynamicName = fileName+ i;\n\t\t\t\tworkingDirectory = System.getProperty(\"user.dir\");\n\t\t\t\tabsoluteFilePath = workingDirectory + File.separator + dynamicName;\n\t\t\t\tnum = num - windowSize; \n\t\t\t\tFileOutputStream newFile = new FileOutputStream(absoluteFilePath);\n\t\t\t\tnewFile.write(fileChunkArray);\n\t\t\t\tnewFile.flush();\n\t\t\t\tnewFile.close();\n\n\t\t\t}\n\t\t\tfileInputStream.close();\t\n\t\t}catch(IOException ioe){\n\t\t\tSystem.out.println(\"Could not split file: \" + ioe);\n\t\t}\n\t}", "protected int getChunkInRegion() {\n\t\treturn (rnd.nextInt(structurePosRange) + rnd.nextInt(structurePosRange)) / 2;\n\t}", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "void handleChunk(char[] buff, int length) {\n\t\tint newlinePos = -1;\n\t\tfor (int pos = 0; pos < length; pos++) {\n\t\t\tif (buff[pos] == '\\n') {\n\t\t\t\tnewlinePos = pos;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (newlinePos > -1) {\n\t\t\tloaded.append(buff, 0, newlinePos);\n\t\t\tendLine();\n\t\t\tloaded.append(buff, newlinePos + 1, length - newlinePos - 1);\n\t\t} else {\n\t\t\tloaded.append(buff, 0, length);\n\t\t}\n\t}", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public int getChunkSize () {\n return this.CHUNK_SIZE;\n }", "private void runGenerators(int chunkX, int chunkZ, Block[] ablock, byte[] abyte) {\n\t}", "public ChunkFiler() {}", "@Test\n public void testNonConsecutiveBlocks()\n {\n long blockSize = 1000;\n int noOfBlocks = (int)((testMeta.dataFile.length() / blockSize)\n + (((testMeta.dataFile.length() % blockSize) == 0) ? 0 : 1));\n\n testMeta.blockReader.beginWindow(1);\n\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < Math.ceil(noOfBlocks / 10.0); j++) {\n int blockNo = 10 * j + i;\n if (blockNo >= noOfBlocks) {\n continue;\n }\n BlockMetadata.FileBlockMetadata blockMetadata = new BlockMetadata.FileBlockMetadata(s3Directory + FILE_1,\n blockNo, blockNo * blockSize,\n blockNo == noOfBlocks - 1 ? testMeta.dataFile.length() : (blockNo + 1) * blockSize,\n blockNo == noOfBlocks - 1, blockNo - 1, testMeta.dataFile.length());\n testMeta.blockReader.blocksMetadataInput.process(blockMetadata);\n }\n }\n\n testMeta.blockReader.endWindow();\n\n List<Object> messages = testMeta.messageSink.collectedTuples;\n Assert.assertEquals(\"No of records\", testMeta.messages.size(), messages.size());\n\n Collections.sort(testMeta.messages, new Comparator<String[]>()\n {\n @Override\n public int compare(String[] rec1, String[] rec2)\n {\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n\n Collections.sort(messages, new Comparator<Object>()\n {\n @Override\n public int compare(Object object1, Object object2)\n {\n String[] rec1 = new String((byte[])object1).split(\",\");\n String[] rec2 = new String((byte[])object2).split(\",\");\n return compareStringArrayRecords(rec1, rec2);\n }\n });\n for (int i = 0; i < messages.size(); i++) {\n byte[] msg = (byte[])messages.get(i);\n Assert.assertTrue(\"line \" + i, Arrays.equals(new String(msg).split(\",\"), testMeta.messages.get(i)));\n }\n }", "public int getMaxSpawnedInChunk()\n {\n return 1;\n }", "public boolean hasChunksCount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "VariableAmount getSpikesPerChunk();", "ChunkCachingProtocol.Factory getChunkCachingProtocolFactory();", "entities.Torrent.ChunkRequest getChunkRequest();", "public int getChunkSize() {\n return chunkSize_;\n }", "public void readAllChunks(EndPoint endpoint) throws IOException, Pausable {\n IntList chunkRanges = new IntList(); // alternate numbers in this list refer to the start and end offsets of chunks.\n do {\n int n = readLine(endpoint); // read chunk size text into buffer\n int beg = iread;\n int size = parseChunkSize(buffer, iread - n, iread); // Parse size in hex, ignore extension\n if (size == 0)\n break;\n // If the chunk has not already been read in, do so\n fill(endpoint, iread, size+2 /*chunksize + CRLF*/);\n // record chunk start and end\n chunkRanges.add(beg); \n chunkRanges.add(beg + size); // without the CRLF\n iread += size + 2; // for the next round.\n } while (true);\n\n // / consolidate all chunkRanges\n if (chunkRanges.numElements == 0) {\n contentLength = 0;\n return;\n }\n contentOffset = chunkRanges.get(0); // first chunk's beginning\n int endOfLastChunk = chunkRanges.get(1); // first chunk's end\n\n byte[] bufa = buffer.array();\n for (int i = 2; i < chunkRanges.numElements; i += 2) {\n int beg = chunkRanges.get(i);\n int chunkSize = chunkRanges.get(i + 1) - beg;\n System.arraycopy(bufa, beg, bufa, endOfLastChunk, chunkSize);\n endOfLastChunk += chunkSize;\n }\n // TODO move all trailer stuff up\n contentLength = endOfLastChunk - contentOffset;\n \n // At this point, the contentOffset and contentLen give the entire content \n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "@java.lang.Override\n public int getChunkIndex() {\n return chunkIndex_;\n }", "private static int getChunkSize(final int nChunks, final int nElements) {\n // Integer ceil\n return (nElements + nChunks - 1) / nChunks;\n }", "public Chunk() {\n }", "public int getChunksLocationCount() {\n return chunksLocation_.size();\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void readHttpDataChunkByChunk(HttpPostRequestDecoder decoder) {\n try {\n while (decoder.hasNext()) {\n InterfaceHttpData data = decoder.next();\n if (data != null) {\n // check if current HttpData is a FileUpload and previously set as partial\n if (partialContent == data) {\n partialContent = null;\n }\n try {\n // new value\n writeHttpData(data);\n } finally {\n data.release();\n }\n }\n }\n // Check partial decoding for a FileUpload\n InterfaceHttpData data = decoder.currentPartialHttpData();\n if (data != null) {\n if (partialContent == null) {\n partialContent = (HttpData) data;\n }\n }\n } catch (HttpPostRequestDecoder.EndOfDataDecoderException e1) {\n // end\n }\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "public int getChunkId() {\n return chunkId_;\n }", "void setChunkType(String aChunkType);", "private int chunk(long timestamp) {\n int chunkid;\n \n if (timestamp >= 0) {\n chunkid = (int) ((timestamp / chunklen) % chunkcount);\n } else {\n chunkid = chunkcount + (int) ((((timestamp + 1) / chunklen) % chunkcount) - 1);\n //chunkid = chunkcount - (int) ((- (timestamp + 1) / chunklen) % chunkcount);\n }\n \n return chunkid;\n }", "@Override\n\tpublic int getMaxSpawnedInChunk() {\n\t\treturn EntityAttributes.CHUNK_LIMIT_1;\n\t}", "boolean hasChunkSize();", "boolean isSlimeChunk();", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void setChunk(Boolean aIsChunk);", "public entities.Torrent.ChunkInfoOrBuilder getChunksOrBuilder(\n int index) {\n if (chunksBuilder_ == null) {\n return chunks_.get(index); } else {\n return chunksBuilder_.getMessageOrBuilder(index);\n }\n }", "edu.usfca.cs.dfs.StorageMessages.StoreChunkLocation getChunksLocation(int index);", "private void initChunkTables(final TablesInfo tables, final int firstCount,\n final int successiveCount) {\n final int totalSamples = (tables.stsz - firstCount);\n final float chunkAmount = totalSamples / (float) successiveCount;\n final int remainChunkOffset = (int) Math.ceil(chunkAmount);\n final boolean remain = remainChunkOffset != (int) chunkAmount;\n int index = 0;\n\n tables.stsc = 1;\n if (firstCount != successiveCount) {\n tables.stsc++;\n }\n if (remain) {\n tables.stsc++;\n }\n\n // stsc_table_entry = [first_chunk, samples_per_chunk, sample_description_index]\n tables.stscBEntries = new int[tables.stsc * 3];\n tables.stco = remainChunkOffset + 1; // total entries in chunk offset box\n\n tables.stscBEntries[index++] = 1;\n tables.stscBEntries[index++] = firstCount;\n tables.stscBEntries[index++] = 1;\n\n if (firstCount != successiveCount) {\n tables.stscBEntries[index++] = 2;\n tables.stscBEntries[index++] = successiveCount;\n tables.stscBEntries[index++] = 1;\n }\n\n if (remain) {\n tables.stscBEntries[index++] = remainChunkOffset + 1;\n tables.stscBEntries[index++] = totalSamples % successiveCount;\n tables.stscBEntries[index] = 1;\n }\n }", "@Test\n public void test() {\n bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n List<TokensLine> lines = bridge.chunk(\"file.txt\", new InputStreamReader(new ByteArrayInputStream(new byte[0]), StandardCharsets.UTF_8));\n\n assertThat(lines.size(), is(3));\n\n TokensLine line = lines.get(0);\n // 2 tokens on 1 line\n assertThat(line.getStartUnit(), is(1));\n assertThat(line.getEndUnit(), is(2));\n\n assertThat(line.getStartLine(), is(1));\n assertThat(line.getEndLine(), is(1));\n assertThat(line.getHashCode(), is(\"t1t2\".hashCode()));\n\n line = lines.get(1);\n // 1 token on 2 line\n assertThat(line.getStartUnit(), is(3));\n assertThat(line.getEndUnit(), is(3));\n\n assertThat(line.getStartLine(), is(2));\n assertThat(line.getEndLine(), is(2));\n assertThat(line.getHashCode(), is(\"t3\".hashCode()));\n\n line = lines.get(2);\n // 3 tokens on 4 line\n assertThat(line.getStartUnit(), is(4));\n assertThat(line.getEndUnit(), is(6));\n\n assertThat(line.getStartLine(), is(4));\n assertThat(line.getEndLine(), is(4));\n assertThat(line.getHashCode(), is(\"t1t3t3\".hashCode()));\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "public int getChunkSize() {\n return chunkSize_;\n }" ]
[ "0.67930806", "0.67930806", "0.67899454", "0.6654797", "0.66464424", "0.65671897", "0.65612036", "0.65612036", "0.65612036", "0.65612036", "0.6432855", "0.6389131", "0.6388646", "0.6388646", "0.63311213", "0.6313464", "0.6313151", "0.6250478", "0.6222434", "0.6212164", "0.6208317", "0.6208317", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.6195882", "0.616113", "0.6121073", "0.6120777", "0.60767525", "0.6055177", "0.6049003", "0.6048348", "0.6011079", "0.59863573", "0.5982797", "0.5979438", "0.59664434", "0.5955178", "0.59335566", "0.59248525", "0.58630556", "0.5841949", "0.5805679", "0.5794726", "0.5776981", "0.5770205", "0.5760783", "0.5760591", "0.57453954", "0.5745015", "0.5717912", "0.5716544", "0.56923115", "0.5684082", "0.5678975", "0.56773555", "0.5668282", "0.5668282", "0.5652538", "0.56213593", "0.5615039", "0.5604932", "0.5604751", "0.5590173", "0.5586013", "0.55827063", "0.5569767", "0.5562768", "0.5551305", "0.5546152", "0.5534716", "0.55052906", "0.55052906", "0.55031693", "0.5486454", "0.54835945", "0.5475477", "0.5472386", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.5458741", "0.54535764", "0.5432046", "0.5429538", "0.5408323", "0.5407722", "0.5401188", "0.53937614", "0.5390185", "0.53901434", "0.53866833", "0.53819066", "0.5372146", "0.53718185", "0.5371598" ]
0.0
-1