id
stringlengths
52
144
question
stringlengths
3
879
target
stringlengths
1
248
answers
sequence
ctxs
list
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_136_11
.setAlignment(alignment) .setBold(bold) .setInternationalChars(internationalChars) .setTruetypeFontSize(truetypeFontSize)
.setPrinterFont(printerFont)
[ " .setPrinterFont(printerFont)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_137_16
.setBold(bold) .setDoubleWidth(doubleWidth) .setTruetypeFontSize(truetypeFontSize) .setPrinterFont(printerFont)
.setAlignment(alignment)
[ ".setAlignment(alignment)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_138_2
.setDoubleWidth(doubleWidth) .setDoubleHeight(doubleHeight) .setPrinterFont(printerFont) .setAlignment(alignment)
.setBold(bold)
[ " .setBold(bold)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_139_13
.setDoubleHeight(doubleHeight) .setUnderline(underline) .setAlignment(alignment) .setBold(bold)
.setDoubleWidth(doubleWidth)
[ " .setDoubleWidth(doubleWidth)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_140_17
.setUnderline(underline) .setLang(lang); .setBold(bold) .setDoubleWidth(doubleWidth) .
setDoubleHeight(doubleHeight)
[ "setDoubleHeight(doubleHeight)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_141_17
.setLang(lang); .setDoubleWidth(doubleWidth) .setDoubleHeight(doubleHeight) .
setUnderline(underline)
[ "setUnderline(underline)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_142_8
} .setDoubleHeight(doubleHeight) .setUnderline(underline)
.setLang(lang);
[ " .setLang(lang);\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_144_0
// implements parcelable .setLang(lang);
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_148_14
printerFont = in.readInt(); fontsCpi = in.readInt(); // implements parcelable protected
AttributesString(Parcel in) {
[ "AttributesString(Parcel in) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_149_20
fontsCpi = in.readInt(); internationalChars = in.readInt(); protected AttributesString(Parcel in) { printerFont
= in.readInt();
[ "= in.readInt();\n" ]
[ { "title": "in_file#lines#0.5", "text": " fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_150_17
internationalChars = in.readInt(); truetypeFontSize = in.readInt(); protected AttributesString(Parcel in) { printerFont = in.readInt(); fontsCpi
= in.readInt();
[ "= in.readInt();\n" ]
[ { "title": "in_file#lines#0.5", "text": " internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_151_8
truetypeFontSize = in.readInt(); alignment = in.readString(); printerFont = in.readInt(); fontsCpi = in.readInt();
internationalChars = in.readInt();
[ "internationalChars = in.readInt();\n" ]
[ { "title": "in_file#lines#0.5", "text": " truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_152_8
alignment = in.readString(); bold = in.readByte() != 0; fontsCpi = in.readInt(); internationalChars = in.readInt();
truetypeFontSize = in.readInt();
[ "truetypeFontSize = in.readInt();\n" ]
[ { "title": "in_file#lines#0.5", "text": " alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_153_23
bold = in.readByte() != 0; doubleHeight = in.readByte() != 0; internationalChars = in.readInt(); truetypeFontSize = in.readInt(); alignment = in.
readString();
[ "readString();\n" ]
[ { "title": "in_file#lines#0.5", "text": " bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_154_2
doubleHeight = in.readByte() != 0; doubleWidth = in.readByte() != 0; truetypeFontSize = in.readInt(); alignment = in.readString();
bold = in.readByte() != 0;
[ " bold = in.readByte() != 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": " doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_155_7
doubleWidth = in.readByte() != 0; underline = in.readByte() != 0; alignment = in.readString(); bold = in.readByte() != 0;
doubleHeight = in.readByte() != 0;
[ " doubleHeight = in.readByte() != 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": " doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_156_8
underline = in.readByte() != 0; lang = in.readString(); bold = in.readByte() != 0; doubleHeight = in.readByte() != 0;
doubleWidth = in.readByte() != 0;
[ "doubleWidth = in.readByte() != 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": " underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_157_8
lang = in.readString(); } doubleHeight = in.readByte() != 0; doubleWidth = in.readByte() != 0;
underline = in.readByte() != 0;
[ "underline = in.readByte() != 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": " lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_158_0
} doubleWidth = in.readByte() != 0; underline = in.readByte() != 0;
lang = in.readString();
[ " lang = in.readString();\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_159_0
@Override underline = in.readByte() != 0; lang = in.readString();
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_161_4
public void writeToParcel(Parcel dest, int flags) { dest.writeInt(printerFont); }
@Override
[ "@Override\n" ]
[ { "title": "in_file#lines#0.5", "text": " public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_162_43
dest.writeInt(printerFont); dest.writeInt(fontsCpi); @Override public void writeToParcel(Parcel dest,
int flags) {
[ "int flags) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_163_22
dest.writeInt(fontsCpi); dest.writeInt(internationalChars); @Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(
printerFont);
[ "printerFont);\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_164_8
dest.writeInt(internationalChars); dest.writeInt(truetypeFontSize); public void writeToParcel(Parcel dest, int flags) { dest.writeInt(printerFont);
dest.writeInt(fontsCpi);
[ "dest.writeInt(fontsCpi);\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_165_13
dest.writeInt(truetypeFontSize); dest.writeString(alignment); dest.writeInt(printerFont); dest.writeInt(fontsCpi); dest.
writeInt(internationalChars);
[ "writeInt(internationalChars);\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_166_22
dest.writeString(alignment); dest.writeByte((byte) (bold ? 1 : 0)); dest.writeInt(fontsCpi); dest.writeInt(internationalChars); dest.writeInt(
truetypeFontSize);
[ "truetypeFontSize);\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_167_13
dest.writeByte((byte) (bold ? 1 : 0)); dest.writeByte((byte) (doubleHeight ? 1 : 0)); dest.writeInt(internationalChars); dest.writeInt(truetypeFontSize); dest.
writeString(alignment);
[ "writeString(alignment);\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_168_24
dest.writeByte((byte) (doubleHeight ? 1 : 0)); dest.writeByte((byte) (doubleWidth ? 1 : 0)); dest.writeInt(truetypeFontSize); dest.writeString(alignment); dest.writeByte((
byte) (bold ? 1 : 0));
[ "byte) (bold ? 1 : 0));\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_169_13
dest.writeByte((byte) (doubleWidth ? 1 : 0)); dest.writeByte((byte) (underline ? 1 : 0)); dest.writeString(alignment); dest.writeByte((byte) (bold ? 1 : 0)); dest.
writeByte((byte) (doubleHeight ? 1 : 0));
[ "writeByte((byte) (doubleHeight ? 1 : 0));\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_170_31
dest.writeByte((byte) (underline ? 1 : 0)); dest.writeString(lang); dest.writeByte((byte) (bold ? 1 : 0)); dest.writeByte((byte) (doubleHeight ? 1 : 0)); dest.writeByte((byte) (
doubleWidth ? 1 : 0));
[ "doubleWidth ? 1 : 0));\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_171_24
dest.writeString(lang); } dest.writeByte((byte) (doubleHeight ? 1 : 0)); dest.writeByte((byte) (doubleWidth ? 1 : 0)); dest.writeByte((
byte) (underline ? 1 : 0));
[ "byte) (underline ? 1 : 0));\n" ]
[ { "title": "in_file#lines#0.5", "text": " dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_172_13
} dest.writeByte((byte) (doubleWidth ? 1 : 0)); dest.writeByte((byte) (underline ? 1 : 0)); dest.
writeString(lang);
[ "writeString(lang);\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_173_0
@Override dest.writeByte((byte) (underline ? 1 : 0)); dest.writeString(lang);
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_175_4
public int describeContents() { return 0; }
@Override
[ "@Override\n" ]
[ { "title": "in_file#lines#0.5", "text": " public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "describeContents CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_176_15
return 0; } @Override public int
describeContents() {
[ "describeContents() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_177_6
} @Override public int describeContents() {
return 0;
[ " return 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_178_0
public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() { public int describeContents() { return 0;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "CREATOR Override createFromParcel in in Override newArray size size Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_180_24
@Override public AttributesString createFromParcel(Parcel in) { } public static final
Creator<AttributesString> CREATOR = new Creator<AttributesString>() {
[ "Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override createFromParcel in in Override newArray size size AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_181_0
public AttributesString createFromParcel(Parcel in) { return new AttributesString(in); public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {
@Override
[ " @Override\n" ]
[ { "title": "in_file#lines#0.5", "text": " public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "createFromParcel in in Override newArray size size AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_182_15
return new AttributesString(in); } public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() { @Override public
AttributesString createFromParcel(Parcel in) {
[ "AttributesString createFromParcel(Parcel in) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "in Override newArray size size AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_183_23
} @Override public AttributesString createFromParcel(Parcel in) { return new
AttributesString(in);
[ "AttributesString(in);\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override newArray size size AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_184_0
@Override public AttributesString createFromParcel(Parcel in) { return new AttributesString(in);
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "Override newArray size size AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_186_8
public AttributesString[] newArray(int size) { return new AttributesString[size]; }
@Override
[ "@Override\n" ]
[ { "title": "in_file#lines#0.5", "text": " public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "newArray size size AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_187_8
return new AttributesString[size]; } @Override
public AttributesString[] newArray(int size) {
[ "public AttributesString[] newArray(int size) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return new AttributesString[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return new AttributesString[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "size AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_188_3
} }; @Override public AttributesString[] newArray(int size) {
return new AttributesString[size];
[ " return new AttributesString[size];\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_189_0
}; public AttributesString[] newArray(int size) { return new AttributesString[size];
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_190_0
} return new AttributesString[size]; }
};
[ " };\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\";", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesString.java_192_0
};
}
[ "}\n" ]
[ { "title": "in_file#lines#0.5", "text": "", "score": 1 }, { "title": "in_file#lines#0.75", "text": "", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "\"default\"", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandString] rawbt api command rawbt api attributes AttributesString CommandString TAG command TAG text attributesString CommandString CommandString text attr text text attributesString attr getText text setText text text text getAttributesString attributesString setAttributesString attributesString attributesString attributesString RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandString] [getText] public String getText() {\n return text;\n } [setText] Text(String text) {\n this.text = text;\n } [getAttributesString] public AttributesString getAttributesString() {\n return attributesString;\n } [setAttributesString] String) {\n this.attributesString = attributesString;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesString]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.*;\n\npublic class AttributesString implements Parcelable {\n\n // type: string\n\n private int fontsCpi = CPI_DEFAULT;\n private int internationalChars = 0;\n\n // if text printed as image\n private int truetypeFontSize = 21;\n\n // свойства для строки\n private int printerFont = FONT_DEFAULT ;\n private String alignment = ALIGNMENT_LEFT;\n private boolean bold = false;\n private boolean doubleHeight = false;\n private boolean doubleWidth = false;\n private boolean underline = false;\n\n private String lang = \"default\";\n\n // ============= constructor ====================\n\n public AttributesString() {\n }\n\n\n // ===================\n\n public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n }\n\n public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n }\n\n public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n }\n\n // ============ get & set ==========\n\n\n public int getPrinterFont() {\n return printerFont;\n }\n public int getFontsCpi() {\n return fontsCpi;\n }\n public int getInternationalChars() {\n return internationalChars;\n }\n public int getTruetypeFontSize() {\n return truetypeFontSize;\n }\n public String getAlignment() {\n return alignment;\n }\n public boolean isBold() {\n return bold;\n }\n public boolean isDoubleHeight() {\n return doubleHeight;\n }\n public boolean isDoubleWidth() {\n return doubleWidth;\n }\n public boolean isUnderline() {\n return underline;\n }\n public String getLang() {\n return lang;\n }\n\n public AttributesString setPrinterFont(int printerFont) {\n this.printerFont = printerFont;\n return this;\n }\n\n public AttributesString setFontsCpi(int fontsCpi) {\n this.fontsCpi = fontsCpi;\n return this;\n }\n\n public AttributesString setInternationalChars(int internationalChars) {\n this.internationalChars = internationalChars;\n return this;\n }\n\n public AttributesString setTruetypeFontSize(int truetypeFontSize) {\n this.truetypeFontSize = truetypeFontSize;\n return this;\n }\n\n public AttributesString setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n public AttributesString setBold(boolean bold) {\n this.bold = bold;\n return this;\n }\n\n public AttributesString setDoubleHeight(boolean doubleHigh) {\n this.doubleHeight = doubleHigh;\n return this;\n }\n\n public AttributesString setDoubleWidth(boolean doubleWidth) {\n this.doubleWidth = doubleWidth;\n return this;\n }\n\n public AttributesString setUnderline(boolean underline) {\n this.underline = underline;\n return this;\n }\n\n public AttributesString setLang(String lang) {\n this.lang = lang;\n return this;\n }\n\n public AttributesString build(){\n return new AttributesString()\n .setFontsCpi(fontsCpi)\n .setInternationalChars(internationalChars)\n .setTruetypeFontSize(truetypeFontSize)\n .setPrinterFont(printerFont)\n .setAlignment(alignment)\n .setBold(bold)\n .setDoubleWidth(doubleWidth)\n .setDoubleHeight(doubleHeight)\n .setUnderline(underline)\n .setLang(lang);\n\n }\n\n// implements parcelable\n\n protected AttributesString(Parcel in) {\n printerFont = in.readInt();\n fontsCpi = in.readInt();\n internationalChars = in.readInt();\n truetypeFontSize = in.readInt();\n alignment = in.readString();\n bold = in.readByte()!= 0;\n doubleHeight = in.readByte()!= 0;\n doubleWidth = in.readByte()!= 0;\n underline = in.readByte()!= 0;\n lang = in.readString();\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeInt(printerFont);\n dest.writeInt(fontsCpi);\n dest.writeInt(internationalChars);\n dest.writeInt(truetypeFontSize);\n dest.writeString(alignment);\n dest.writeByte((byte) (bold? 1 : 0));\n dest.writeByte((byte) (doubleHeight? 1 : 0));\n dest.writeByte((byte) (doubleWidth? 1 : 0));\n dest.writeByte((byte) (underline? 1 : 0));\n dest.writeString(lang);\n }\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n };\n\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandString] final public static String TAG = \"print\"; String command = TAG; String text = \"\"; AttributesString attributesString = null; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesString]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandString] getText setText getAttributesString setAttributesString [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesString]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandString] RawbtCommand String String String AttributesString String AttributesString String String AttributesString AttributesString [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesString]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n[AttributesString]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesString]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesString]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesString]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \n[AttributesString]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesString]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_0_18
import android.os.Parcel; package rawbt.api.
attributes;
[ "attributes;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_2_7
import android.os.Parcelable; package rawbt.api.attributes; import
android.os.Parcel;
[ "android.os.Parcel;\n" ]
[ { "title": "in_file#lines#0.5", "text": "import android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "import android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "import android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_3_18
import static rawbt.api.Constant.ALIGNMENT_LEFT; import android.os.Parcel; import android.os.
Parcelable;
[ "Parcelable;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.read", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_5_33
import static rawbt.api.Constant.FONT_A; import static rawbt.api.Constant.HRI_NONE; import android.os.Parcelable; import static rawbt.api.Constant.
ALIGNMENT_LEFT;
[ "ALIGNMENT_LEFT;\n" ]
[ { "title": "in_file#lines#0.5", "text": "import static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "import static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "import static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_6_0
import static rawbt.api.Constant.HRI_NONE; import static rawbt.api.Constant.ALIGNMENT_LEFT;
import static rawbt.api.Constant.FONT_A;
[ "import static rawbt.api.Constant.FONT_A;\n" ]
[ { "title": "in_file#lines#0.5", "text": "import static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "import static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "import static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_7_33
public class AttributesBarcode implements Parcelable { import static rawbt.api.Constant.ALIGNMENT_LEFT; import static rawbt.api.Constant.FONT_A; import static rawbt.api.Constant.
HRI_NONE;
[ "HRI_NONE;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CRE", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_9_7
String type; import static rawbt.api.Constant.HRI_NONE; public
class AttributesBarcode implements Parcelable {
[ "class AttributesBarcode implements Parcelable {\n" ]
[ { "title": "in_file#lines#0.5", "text": " String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_10_4
String hri = HRI_NONE; public class AttributesBarcode implements Parcelable {
String type;
[ "String type;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_12_17
int font = FONT_A; int height = 162; String type; String hri =
HRI_NONE;
[ "HRI_NONE;\n" ]
[ { "title": "in_file#lines#0.5", "text": " int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarc", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_13_13
int height = 162; int width = 3; String hri = HRI_NONE; int font
= FONT_A;
[ "= FONT_A;\n" ]
[ { "title": "in_file#lines#0.5", "text": " int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_14_8
int width = 3; String hri = HRI_NONE; int font = FONT_A; int
height = 162;
[ "height = 162;\n" ]
[ { "title": "in_file#lines#0.5", "text": " int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_15_2
String alignment = ALIGNMENT_LEFT; int font = FONT_A; int height = 162;
int width = 3;
[ " int width = 3;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_17_23
public AttributesBarcode() { int width = 3; String alignment =
ALIGNMENT_LEFT;
[ "ALIGNMENT_LEFT;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_19_11
} String alignment = ALIGNMENT_LEFT; public
AttributesBarcode() {
[ "AttributesBarcode() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_20_0
// =========== get & set ======================== public AttributesBarcode() {
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_25_3
return type; }
public String getType() {
[ " public String getType() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_26_2
} public String getType() {
return type;
[ " return type;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_27_0
public String getHri() { public String getType() { return type;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_29_18
return hri; } } public String
getHri() {
[ "getHri() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_30_3
} public String getHri() {
return hri;
[ " return hri;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_31_0
public int getFont() { public String getHri() { return hri;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_33_15
return font; } } public int
getFont() {
[ "getFont() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_34_8
} public int getFont() {
return font;
[ "return font;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_35_0
public int getHeight() { public int getFont() { return font;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_37_11
return height; } } public
int getHeight() {
[ "int getHeight() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_38_8
} public int getHeight() {
return height;
[ "return height;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_39_0
public int getWidth() { public int getHeight() { return height;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_41_11
return width; } } public
int getWidth() {
[ "int getWidth() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_42_3
} public int getWidth() {
return width;
[ " return width;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_43_0
public String getAlignment() { public int getWidth() { return width;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_45_4
return alignment; } }
public String getAlignment() {
[ "public String getAlignment() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_46_5
} public String getAlignment() {
return alignment;
[ " return alignment;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_47_0
public AttributesBarcode setType(String type) { public String getAlignment() { return alignment;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_49_4
this.type = type; return this; }
public AttributesBarcode setType(String type) {
[ "public AttributesBarcode setType(String type) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_50_5
return this; } public AttributesBarcode setType(String type) {
this.type = type;
[ " this.type = type;\n" ]
[ { "title": "in_file#lines#0.5", "text": " return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_51_2
} public AttributesBarcode setType(String type) { this.type = type;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_52_0
public AttributesBarcode setHri(String hri) { this.type = type; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_54_4
this.hri = hri; return this; }
public AttributesBarcode setHri(String hri) {
[ "public AttributesBarcode setHri(String hri) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_55_4
return this; } public AttributesBarcode setHri(String hri) {
this.hri = hri;
[ " this.hri = hri;\n" ]
[ { "title": "in_file#lines#0.5", "text": " return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_56_8
} public AttributesBarcode setHri(String hri) { this.hri = hri;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_57_0
public AttributesBarcode setFont(int font) { this.hri = hri; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_59_29
this.font = font; return this; } public AttributesBarcode
setFont(int font) {
[ "setFont(int font) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_60_8
return this; } public AttributesBarcode setFont(int font) {
this.font = font;
[ "this.font = font;\n" ]
[ { "title": "in_file#lines#0.5", "text": " return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_61_6
} public AttributesBarcode setFont(int font) { this.font = font;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_62_0
public AttributesBarcode setHeight(int height) { this.font = font; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_64_4
this.height = height; return this; }
public AttributesBarcode setHeight(int height) {
[ "public AttributesBarcode setHeight(int height) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_65_8
return this; } public AttributesBarcode setHeight(int height) {
this.height = height;
[ "this.height = height;\n" ]
[ { "title": "in_file#lines#0.5", "text": " return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_66_8
} public AttributesBarcode setHeight(int height) { this.height = height;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_67_0
public AttributesBarcode setWidth(int width) { this.height = height; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setWidth setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_69_11
this.width = width; return this; } public
AttributesBarcode setWidth(int width) {
[ "AttributesBarcode setWidth(int width) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " this.width = width;\n return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_70_6
return this; } public AttributesBarcode setWidth(int width) {
this.width = width;
[ " this.width = width;\n" ]
[ { "title": "in_file#lines#0.5", "text": " return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " return this;\n }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]
data/train/402d/RawbtAPI/api/src/main/java/rawbt/api/attributes/AttributesBarcode.java_71_8
} public AttributesBarcode setWidth(int width) { this.width = width;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\n\n public AttributesBarcode setAlignment(String alignment) {\n this.alignment = alignment;\n return this;\n }\n\n\n public AttributesBarcode build(){\n return new AttributesBarcode()\n .setType(this.type)\n .setHri(this.hri)\n .setFont(this.font)\n .setHeight(this.height)\n .setWidth(this.width)\n .setAlignment(this.alignment);\n }\n\n // implements parcelable\n\n @Override\n public int describeContents() {\n return 0;\n }\n\n @Override\n public void writeToParcel(Parcel dest, int flags) {\n dest.writeString(type);\n dest.writeString(hri);\n dest.writeInt(font);\n dest.writeInt(height);\n dest.writeInt(width);\n dest.writeString(alignment);\n }\n\n protected AttributesBarcode(Parcel in) {\n type = in.readString();\n hri = in.readString();\n font = in.readInt();\n height = in.readInt();\n width = in.readInt();\n alignment = in.readString();\n }\n\n public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };\n\n}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.25 }, { "title": "sibling_file#method_names_and_bodies#0.5", "text": "[AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.2 }, { "title": "sibling_file#identifiers#0.5", "text": "[AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "setAlignment build describeContents writeToParcel createFromParcel newArray", "score": 0.125 }, { "title": "sibling_file#field_declarations#0.5", "text": "[AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.1111111111111111 }, { "title": "in_file#string_literals#0.5", "text": "", "score": 0.1 }, { "title": "sibling_file#type_identifiers#0.5", "text": "[AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.08333333333333333 }, { "title": "similar_name_file#identifiers#0.5", "text": "[CommandBarcode] rawbt api command rawbt api attributes AttributesBarcode rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE CommandBarcode TAG command TAG data type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT CommandBarcode type data type type data data CommandBarcode data attr data data type attr getType hri attr getHri font attr getFont height attr getHeight width attr getWidth alignment attr getAlignment getData data setData data data data getType type setType type type type getHri hri setHri hri hri hri getFont font setFont font font font getHeight height setHeight height height height getWidth width setWidth width width width getAlignment alignment setAlignment alignment alignment alignment RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] rawbt api attributes android os Parcel android os Parcelable AttributesPdf WIDTH_TRUNCATE_NONE WIDTH_TRUNCATE_1_2 WIDTH_TRUNCATE_MAX page roll widthTruncateMode WIDTH_TRUNCATE_MAX rotate clearHeaderAndFooter cutTop cutTopVal cutFrame cutFrameVal paperCutAfterEachPage AttributesPdf getPage page getWidthTruncateMode widthTruncateMode isClearHeaderAndFooter clearHeaderAndFooter isCutTop cutTop getCutTopVal cutTopVal isPaperCutAfterEachPage paperCutAfterEachPage isRoll roll getRotate rotate isCutFrame cutFrame getCutFrameVal cutFrameVal setPage page page page setRoll roll roll roll setWidthTruncateMode widthTruncateMode widthTruncateMode widthTruncateMode setRotate rotate rotate rotate setClearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter clearHeaderAndFooter setCutTop cutTop cutTop cutTop setCutTopVal cutTopVal cutTopVal cutTopVal setPaperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage paperCutAfterEachPage setCutFrame cutFrame cutFrame cutFrame setCutFrameVal cutFrameVal cutFrameVal cutFrameVal AttributesPdf in page in readInt widthTruncateMode in readInt clearHeaderAndFooter in readByte cutTop in readByte cutTopVal in readInt paperCutAfterEachPage in readByte roll in readByte rotate in readInt cutFrame in readByte cutFrameVal in readInt Override writeToParcel dest flags dest writeInt page dest writeInt widthTruncateMode dest writeByte clearHeaderAndFooter dest writeByte cutTop dest writeInt cutTopVal dest writeByte paperCutAfterEachPage dest writeByte roll dest writeInt rotate dest writeByte cutFrame dest writeInt cutFrameVal Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_CENTER AttributesQRcode alignment ALIGNMENT_CENTER multiply AttributesQRcode getAlignment alignment getMultiply multiply setAlignment alignment alignment alignment setMultiply multiply multiply multiply build setAlignment alignment setMultiply multiply Override describeContents AttributesQRcode in alignment in readString multiply in readInt Override writeToParcel dest flags dest writeString alignment dest writeInt multiply CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant DITHERING_BW AttributesImage graphicFilter DITHERING_BW rotateImage inverseColor scale doScale alignment ALIGNMENT_LEFT AttributesImage AttributesImage graphicFilter graphicFilter graphicFilter getGraphicFilter graphicFilter isRotateImage rotateImage isInverseColor inverseColor getScale scale getAlignment alignment isDoScale doScale setGraphicFilter graphicFilter graphicFilter graphicFilter setRotateImage rotateImage rotateImage rotateImage setInverseColor inverseColor inverseColor inverseColor setScale scale scale scale setAlignment alignment alignment alignment setDoScale doScale doScale doScale AttributesImage in graphicFilter in readInt rotateImage in readByte inverseColor in readByte scale in readInt alignment in readString doScale in readByte Override writeToParcel dest flags dest writeInt graphicFilter dest writeByte rotateImage dest writeByte inverseColor dest writeInt scale dest writeString alignment dest writeByte doScale Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant AttributesString fontsCpi CPI_DEFAULT internationalChars truetypeFontSize printerFont FONT_DEFAULT alignment ALIGNMENT_LEFT bold doubleHeight doubleWidth underline lang AttributesString isFontA getPrinterFont FONT_A isFontB getPrinterFont FONT_B isFontC getPrinterFont FONT_C getPrinterFont printerFont getFontsCpi fontsCpi getInternationalChars internationalChars getTruetypeFontSize truetypeFontSize getAlignment alignment isBold bold isDoubleHeight doubleHeight isDoubleWidth doubleWidth isUnderline underline getLang lang setPrinterFont printerFont printerFont printerFont setFontsCpi fontsCpi fontsCpi fontsCpi setInternationalChars internationalChars internationalChars internationalChars setTruetypeFontSize truetypeFontSize truetypeFontSize truetypeFontSize setAlignment alignment alignment alignment setBold bold bold bold setDoubleHeight doubleHigh doubleHeight doubleHigh setDoubleWidth doubleWidth doubleWidth doubleWidth setUnderline underline underline underline setLang lang lang lang build setFontsCpi fontsCpi setInternationalChars internationalChars setTruetypeFontSize truetypeFontSize setPrinterFont printerFont setAlignment alignment setBold bold setDoubleWidth doubleWidth setDoubleHeight doubleHeight setUnderline underline setLang lang AttributesString in printerFont in readInt fontsCpi in readInt internationalChars in readInt truetypeFontSize in readInt alignment in readString bold in readByte doubleHeight in readByte doubleWidth in readByte underline in readByte lang in readString Override writeToParcel dest flags dest writeInt printerFont dest writeInt fontsCpi dest writeInt internationalChars dest writeInt truetypeFontSize dest writeString alignment dest writeByte bold dest writeByte doubleHeight dest writeByte doubleWidth dest writeByte underline dest writeString lang Override describeContents CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.07692307692307693 }, { "title": "similar_name_file#method_names_and_bodies#0.5", "text": "[CommandBarcode] [getData] public String getData() {\n return data;\n } [setData] this.data = data;\n return this;\n } [getType] public String getType() {\n return type;\n } [setType] this.type = type;\n return this;\n } [getHri] public String getHri() {\n return hri;\n } [setHri] this.hri = hri;\n return this;\n } [getFont] public int getFont() {\n return font;\n } [setFont] this.font = font;\n return this;\n } [getHeight] public int getHeight() {\n return height;\n } [setHeight] this.height = height;\n return this;\n } [getWidth] public int getWidth() {\n return width;\n } [setWidth] this.width = width;\n return this;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [AttributesPdf] [getPage] public int getPage() {\n return page;\n } [getWidthTruncateMode] uncateMode() {\n return widthTruncateMode;\n } [isClearHeaderAndFooter] AndFooter() {\n return clearHeaderAndFooter;\n } [isCutTop] public boolean isCutTop() {\n return cutTop;\n } [getCutTopVal] int getCutTopVal() {\n return cutTopVal;\n } [isPaperCutAfterEachPage] AfterEachPage() {\n return paperCutAfterEachPage;\n } [isRoll] public boolean isRoll() {\n return roll;\n } [getRotate] public int getRotate() {\n return rotate;\n } [isCutFrame] public boolean isCutFrame() {\n return cutFrame;\n } [getCutFrameVal] int getCutFrameVal() {\n return cutFrameVal;\n } [setPage] this.page = page;\n return this;\n } [setRoll] this.roll = roll;\n return this;\n } [setWidthTruncateMode] ateMode = widthTruncateMode;\n return this;\n } [setRotate] this.rotate = rotate;\n return this;\n } [setClearHeaderAndFooter] Footer = clearHeaderAndFooter;\n return this;\n } [setCutTop] this.cutTop = cutTop;\n return this;\n } [setCutTopVal] .cutTopVal = cutTopVal;\n return this;\n } [setPaperCutAfterEachPage] EachPage = paperCutAfterEachPage;\n return this;\n } [setCutFrame] this.cutFrame = cutFrame;\n return this;\n } [setCutFrameVal] .cutFrameVal = cutFrameVal;\n return this;\n } [writeToParcel] : 0));\n dest.writeInt(cutFrameVal);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesPdf(in);\n } [newArray] return new AttributesPdf[size];\n } [AttributesQRcode] [getAlignment] public String getAlignment() {\n return alignment;\n } [getMultiply] public int getMultiply() {\n return multiply;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setMultiply] this.multiply = multiply;\n return this;\n } [build] .setMultiply(this.multiply);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] alignment);\n dest.writeInt(multiply);\n } [createFromParcel] return new AttributesQRcode(in);\n } [newArray] return new AttributesQRcode[size];\n } [AttributesImage] [getGraphicFilter] public int getGraphicFilter() {\n return graphicFilter;\n } [isRotateImage] public boolean isRotateImage() {\n return rotateImage;\n } [isInverseColor] public boolean isInverseColor() {\n return inverseColor;\n } [getScale] public int getScale() {\n return scale;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isDoScale] public boolean isDoScale() {\n return doScale;\n } [setGraphicFilter] this.graphicFilter = graphicFilter;\n return this;\n } [setRotateImage] this.rotateImage = rotateImage;\n return this;\n } [setInverseColor] this.inverseColor = inverseColor;\n return this;\n } [setScale] this.scale = scale;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setDoScale] this.doScale = doScale;\n return this;\n } [writeToParcel] dest.writeByte((byte) (doScale? 1 : 0));\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesImage(in);\n } [newArray] return new AttributesImage[size];\n } [AttributesString] [isFontA] public boolean isFontA(){\n return getPrinterFont()==FONT_A;\n } [isFontB] public boolean isFontB(){\n return getPrinterFont()==FONT_B;\n } [isFontC] public boolean isFontC(){\n return getPrinterFont()==FONT_C;\n } [getPrinterFont] public int getPrinterFont() {\n return printerFont;\n } [getFontsCpi] public int getFontsCpi() {\n return fontsCpi;\n } [getInternationalChars] public int getInternationalChars() {\n return internationalChars;\n } [getTruetypeFontSize] int getTruetypeFontSize() {\n return truetypeFontSize;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [isBold] public boolean isBold() {\n return bold;\n } [isDoubleHeight] public boolean isDoubleHeight() {\n return doubleHeight;\n } [isDoubleWidth] public boolean isDoubleWidth() {\n return doubleWidth;\n } [isUnderline] public boolean isUnderline() {\n return underline;\n } [getLang] public String getLang() {\n return lang;\n } [setPrinterFont] this.printerFont = printerFont;\n return this;\n } [setFontsCpi] .fontsCpi = fontsCpi;\n return this;\n } [setInternationalChars] this.internationalChars = internationalChars;\n return this;\n } [setTruetypeFontSize] ruetypeFontSize = truetypeFontSize;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [setBold] this.bold = bold;\n return this;\n } [setDoubleHeight] this.doubleHeight = doubleHigh;\n return this;\n } [setDoubleWidth] this.doubleWidth = doubleWidth;\n return this;\n } [setUnderline] this.underline = underline;\n return this;\n } [setLang] this.lang = lang;\n return this;\n } [build] .setLang(lang);\n\n } [writeToParcel] line? 1 : 0));\n dest.writeString(lang);\n } [describeContents] public int describeContents() {\n return 0;\n } [createFromParcel] return new AttributesString(in);\n } [newArray] return new AttributesString[size];\n } \n[AttributesBarcode]", "score": 0.07142857142857142 }, { "title": "in_file#field_declarations#0.5", "text": "public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n };", "score": 0.06666666666666667 }, { "title": "sibling_file#method_names#0.5", "text": "[AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.Constant.ALIGNMENT_LEFT;\nimport static rawbt.api.Constant.FONT_A;\nimport static rawbt.api.Constant.HRI_NONE;\n\npublic class AttributesBarcode implements Parcelable {\n String type;\n\n String hri = HRI_NONE;\n int font = FONT_A;\n int height = 162;\n int width = 3;\n\n String alignment = ALIGNMENT_LEFT;\n\n public AttributesBarcode() {\n }\n\n // =========== get & set ========================\n\n\n public String getType() {\n return type;\n }\n\n public String getHri() {\n return hri;\n }\n\n public int getFont() {\n return font;\n }\n\n public int getHeight() {\n return height;\n }\n\n public int getWidth() {\n return width;\n }\n\n public String getAlignment() {\n return alignment;\n }\n\n public AttributesBarcode setType(String type) {\n this.type = type;\n return this;\n }\n\n public AttributesBarcode setHri(String hri) {\n this.hri = hri;\n return this;\n }\n\n public AttributesBarcode setFont(int font) {\n this.font = font;\n return this;\n }\n\n public AttributesBarcode setHeight(int height) {\n this.height = height;\n return this;\n }\n\n public AttributesBarcode setWidth(int width) {\n this.width = width;\n ", "score": 0.058823529411764705 }, { "title": "similar_name_file#field_declarations#0.5", "text": "[CommandBarcode] final public static String TAG = \"barcode\"; String command = TAG; String data; String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; [AttributesPdf] public static final int WIDTH_TRUNCATE_NONE = 0; public static final int WIDTH_TRUNCATE_1_2 = 1; public static final int WIDTH_TRUNCATE_MAX = 2; private int page = -1 ; private boolean roll = true; private int widthTruncateMode = WIDTH_TRUNCATE_MAX; private int rotate = 0; private boolean clearHeaderAndFooter = false; private boolean cutTop = false; private int cutTopVal = 0; private boolean cutFrame = false; private int cutFrameVal = 0; private boolean paperCutAfterEachPage = false; public static final Creator<AttributesPdf> CREATOR = new Creator<AttributesPdf>() {\n @Override\n public AttributesPdf createFromParcel(Parcel in) {\n return new AttributesPdf(in);\n }\n\n @Override\n public AttributesPdf[] newArray(int size) {\n return new AttributesPdf[size];\n }\n }; [AttributesQRcode] String alignment = ALIGNMENT_CENTER; int multiply = 3; public static final Creator<AttributesQRcode> CREATOR = new Creator<AttributesQRcode>() {\n @Override\n public AttributesQRcode createFromParcel(Parcel in) {\n return new AttributesQRcode(in);\n }\n\n @Override\n public AttributesQRcode[] newArray(int size) {\n return new AttributesQRcode[size];\n }\n }; [AttributesImage] int graphicFilter = DITHERING_BW; boolean rotateImage = false; boolean inverseColor = false; private int scale = 16; private boolean doScale = true; private String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesImage> CREATOR = new Creator<AttributesImage>() {\n @Override\n public AttributesImage createFromParcel(Parcel in) {\n return new AttributesImage(in);\n }\n\n @Override\n public AttributesImage[] newArray(int size) {\n return new AttributesImage[size];\n }\n }; [AttributesString] private int fontsCpi = CPI_DEFAULT; private int internationalChars = 0; private int truetypeFontSize = 21; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private boolean bold = false; private boolean doubleHeight = false; private boolean doubleWidth = false; private boolean underline = false; private String lang = \"default\"; public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(Parcel in) {\n return new AttributesString(in);\n }\n\n @Override\n public AttributesString[] newArray(int size) {\n return new AttributesString[size];\n }\n }; \n[AttributesBarcode]", "score": 0.05555555555555555 }, { "title": "similar_name_file#method_names#0.5", "text": "[CommandBarcode] getData setData getType setType getHri setHri getFont setFont getHeight setHeight getWidth setWidth getAlignment setAlignment [AttributesPdf] getPage getWidthTruncateMode isClearHeaderAndFooter isCutTop getCutTopVal isPaperCutAfterEachPage isRoll getRotate isCutFrame getCutFrameVal setPage setRoll setWidthTruncateMode setRotate setClearHeaderAndFooter setCutTop setCutTopVal setPaperCutAfterEachPage setCutFrame setCutFrameVal writeToParcel describeContents createFromParcel newArray [AttributesQRcode] getAlignment getMultiply setAlignment setMultiply build describeContents writeToParcel createFromParcel newArray [AttributesImage] getGraphicFilter isRotateImage isInverseColor getScale getAlignment isDoScale setGraphicFilter setRotateImage setInverseColor setScale setAlignment setDoScale writeToParcel describeContents createFromParcel newArray [AttributesString] isFontA isFontB isFontC getPrinterFont getFontsCpi getInternationalChars getTruetypeFontSize getAlignment isBold isDoubleHeight isDoubleWidth isUnderline getLang setPrinterFont setFontsCpi setInternationalChars setTruetypeFontSize setAlignment setBold setDoubleHeight setDoubleWidth setUnderline setLang build writeToParcel describeContents createFromParcel newArray \n[AttributesBarcode]", "score": 0.05263157894736842 }, { "title": "similar_name_file#type_identifiers#0.5", "text": "[CommandBarcode] RawbtCommand String String String String String String String String String AttributesBarcode String CommandBarcode String String CommandBarcode String String CommandBarcode String CommandBarcode CommandBarcode CommandBarcode String CommandBarcode String [AttributesPdf] Parcelable AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf AttributesPdf Parcel Parcel Creator AttributesPdf Creator AttributesPdf AttributesPdf Parcel AttributesPdf AttributesPdf AttributesPdf [AttributesQRcode] Parcelable String String AttributesQRcode String AttributesQRcode AttributesQRcode AttributesQRcode Parcel Parcel Creator AttributesQRcode Creator AttributesQRcode AttributesQRcode Parcel AttributesQRcode AttributesQRcode AttributesQRcode [AttributesImage] Parcelable String String AttributesImage AttributesImage AttributesImage AttributesImage AttributesImage String AttributesImage Parcel Parcel Creator AttributesImage Creator AttributesImage AttributesImage Parcel AttributesImage AttributesImage AttributesImage [AttributesString] Parcelable String String String String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString AttributesString AttributesString AttributesString String AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString \n[AttributesBarcode]", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandBarcode] \"barcode\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesString] \"default\" \n[AttributesBarcode]", "score": 0.047619047619047616 }, { "title": "parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.045454545454545456 }, { "title": "child_class_file#identifiers#0.5", "text": "", "score": 0.043478260869565216 }, { "title": "child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.041666666666666664 }, { "title": "parent_class_file#identifiers#0.5", "text": "", "score": 0.04 }, { "title": "child_class_file#method_names#0.5", "text": "", "score": 0.038461538461538464 }, { "title": "parent_class_file#method_names#0.5", "text": "", "score": 0.037037037037037035 }, { "title": "child_class_file#type_identifiers#0.5", "text": "", "score": 0.03571428571428571 }, { "title": "parent_class_file#field_declarations#0.5", "text": "", "score": 0.034482758620689655 }, { "title": "parent_class_file#type_identifiers#0.5", "text": "", "score": 0.03333333333333333 }, { "title": "parent_class_file#string_literals#0.5", "text": "", "score": 0.03225806451612903 }, { "title": "child_class_file#string_literals#0.5", "text": "", "score": 0.03125 }, { "title": "import_of_similar_name_file#identifiers#0.5", "text": "[AttributesBarcode] rawbt api attributes android os Parcel android os Parcelable rawbt api Constant ALIGNMENT_LEFT rawbt api Constant FONT_A rawbt api Constant HRI_NONE AttributesBarcode type hri HRI_NONE font FONT_A height width alignment ALIGNMENT_LEFT AttributesBarcode getType type getHri hri getFont font getHeight height getWidth width getAlignment alignment setType type type type setHri hri hri hri setFont font font font setHeight height height height setWidth width width width setAlignment alignment alignment alignment build setType type setHri hri setFont font setHeight height setWidth width setAlignment alignment Override describeContents Override writeToParcel dest flags dest writeString type dest writeString hri dest writeInt font dest writeInt height dest writeInt width dest writeString alignment AttributesBarcode in type in readString hri in readString font in readInt height in readInt width in readInt alignment in readString CREATOR Override createFromParcel in in Override newArray size size Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.030303030303030304 }, { "title": "import_of_similar_name_file#method_names_and_bodies#0.5", "text": "[AttributesBarcode] [getType] public String getType() {\n return type;\n } [getHri] public String getHri() {\n return hri;\n } [getFont] public int getFont() {\n return font;\n } [getHeight] public int getHeight() {\n return height;\n } [getWidth] public int getWidth() {\n return width;\n } [getAlignment] public String getAlignment() {\n return alignment;\n } [setType] this.type = type;\n return this;\n } [setHri] this.hri = hri;\n return this;\n } [setFont] this.font = font;\n return this;\n } [setHeight] this.height = height;\n return this;\n } [setWidth] this.width = width;\n return this;\n } [setAlignment] this.alignment = alignment;\n return this;\n } [build] .setAlignment(this.alignment);\n } [describeContents] public int describeContents() {\n return 0;\n } [writeToParcel] Int(width);\n dest.writeString(alignment);\n } [createFromParcel] return new AttributesBarcode(in);\n } [newArray] return new AttributesBarcode[size];\n } \n[AttributesBarcode]", "score": 0.029411764705882353 }, { "title": "import_file#identifiers#0.5", "text": "", "score": 0.02857142857142857 }, { "title": "import_file#method_names_and_bodies#0.5", "text": "", "score": 0.027777777777777776 }, { "title": "import_of_similar_name_file#field_declarations#0.5", "text": "[AttributesBarcode] String type; String hri = HRI_NONE; int font = FONT_A; int height = 162; int width = 3; String alignment = ALIGNMENT_LEFT; public static final Creator<AttributesBarcode> CREATOR = new Creator<AttributesBarcode>() {\n @Override\n public AttributesBarcode createFromParcel(Parcel in) {\n return new AttributesBarcode(in);\n }\n\n @Override\n public AttributesBarcode[] newArray(int size) {\n return new AttributesBarcode[size];\n }\n }; \n[AttributesBarcode]", "score": 0.02702702702702703 }, { "title": "import_of_similar_name_file#method_names#0.5", "text": "[AttributesBarcode] getType getHri getFont getHeight getWidth getAlignment setType setHri setFont setHeight setWidth setAlignment build describeContents writeToParcel createFromParcel newArray \n[AttributesBarcode]", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesBarcode] \n[AttributesBarcode]", "score": 0.02564102564102564 }, { "title": "import_of_sibling_file#identifiers#0.5", "text": "", "score": 0.025 }, { "title": "import_of_sibling_file#method_names_and_bodies#0.5", "text": "", "score": 0.024390243902439025 }, { "title": "import_file#field_declarations#0.5", "text": "", "score": 0.023809523809523808 }, { "title": "import_file#method_names#0.5", "text": "", "score": 0.023255813953488372 }, { "title": "import_file#string_literals#0.5", "text": "", "score": 0.022727272727272728 }, { "title": "import_of_sibling_file#method_names#0.5", "text": "", "score": 0.022222222222222223 }, { "title": "import_of_sibling_file#field_declarations#0.5", "text": "", "score": 0.021739130434782608 }, { "title": "import_of_similar_name_file#type_identifiers#0.5", "text": "[AttributesBarcode] Parcelable String String String String String String AttributesBarcode String AttributesBarcode String AttributesBarcode AttributesBarcode AttributesBarcode AttributesBarcode String AttributesBarcode AttributesBarcode Parcel Parcel Creator AttributesBarcode Creator AttributesBarcode AttributesBarcode Parcel AttributesBarcode AttributesBarcode AttributesBarcode \n[AttributesBarcode]", "score": 0.02127659574468085 }, { "title": "import_file#type_identifiers#0.5", "text": "", "score": 0.020833333333333332 }, { "title": "import_of_sibling_file#string_literals#0.5", "text": "", "score": 0.02040816326530612 }, { "title": "import_of_sibling_file#type_identifiers#0.5", "text": "", "score": 0.02 }, { "title": "import_of_child_class_file#identifiers#0.5", "text": "", "score": 0.0196078431372549 }, { "title": "import_of_child_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.019230769230769232 }, { "title": "import_of_child_class_file#method_names#0.5", "text": "", "score": 0.018867924528301886 }, { "title": "import_of_child_class_file#field_declarations#0.5", "text": "", "score": 0.018518518518518517 }, { "title": "import_of_child_class_file#type_identifiers#0.5", "text": "", "score": 0.01818181818181818 }, { "title": "import_of_child_class_file#string_literals#0.5", "text": "", "score": 0.017857142857142856 }, { "title": "child_class_file#field_declarations#0.5", "text": "", "score": 0.017543859649122806 }, { "title": "import_of_parent_class_file#identifiers#0.5", "text": "", "score": 0.017241379310344827 }, { "title": "import_of_parent_class_file#method_names_and_bodies#0.5", "text": "", "score": 0.01694915254237288 }, { "title": "import_of_parent_class_file#type_identifiers#0.5", "text": "", "score": 0.016666666666666666 }, { "title": "import_of_parent_class_file#field_declarations#0.5", "text": "", "score": 0.01639344262295082 }, { "title": "import_of_parent_class_file#string_literals#0.5", "text": "", "score": 0.016129032258064516 }, { "title": "import_of_parent_class_file#method_names#0.5", "text": "", "score": 0.015873015873015872 } ]