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_2_0
import android.os.Parcelable; package rawbt.api.attributes;
import android.os.Parcel;
[ "import android.os.Parcel;\n" ]
[ { "title": "in_file#lines#0.5", "text": "import 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "import 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "import 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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", "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", "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", "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", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n", "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", "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", "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", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\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", "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", "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", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \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": "[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.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", "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", "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", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \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": "[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.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_3_18
import static rawbt.api.Constant.*; import android.os.Parcel; import android.os.
Parcelable;
[ "Parcelable;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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;", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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", "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", "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", "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", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n", "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", "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", "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", "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": "[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", "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", "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", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \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": "[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.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", "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", "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", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \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": "[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.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_5_24
public class AttributesString implements Parcelable { import android.os.Parcelable; import static rawbt.api.
Constant.*;
[ "Constant.*;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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", "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", "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", "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", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n", "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", "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", "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", "score": 0.0625 }, { "title": "codex", "text": "package rawbt.api.attributes;\n\nimport android.os.Parcel;\nimport android.os.Parcelable;\n\nimport static rawbt.api.", "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", "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", "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", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \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": "[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.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", "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", "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", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \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": "[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.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_7_41
// type: string import static rawbt.api.Constant.*; public class AttributesString implements
Parcelable {
[ "Parcelable {\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String String AttributesString 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", "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", "score": 0.16666666666666666 }, { "title": "in_file#type_identifiers#0.5", "text": "String String String String AttributesString 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", "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", "score": 0.09090909090909091 }, { "title": "sibling_file#string_literals#0.5", "text": "[AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \n", "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", "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", "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", "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 ", "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", "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", "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", "score": 0.05 }, { "title": "similar_name_file#string_literals#0.5", "text": "[CommandString] \"print\" \"\" [AttributesPdf] [AttributesQRcode] [AttributesImage] [AttributesBarcode] \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": "[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.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", "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", "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", "score": 0.02631578947368421 }, { "title": "import_of_similar_name_file#string_literals#0.5", "text": "[AttributesString] \"default\" \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": "[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.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_11_16
private int internationalChars = 0; // type: string private int
fontsCpi = CPI_DEFAULT;
[ "fontsCpi = CPI_DEFAULT;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 = under", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String String AttributesString 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": "String String String String AttributesString 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 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 ", "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_12_4
// if text printed as image private int fontsCpi = CPI_DEFAULT;
private int internationalChars = 0;
[ "private int internationalChars = 0;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String String AttributesString 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": "String String String String AttributesString 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 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 ", "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_15_16
// свойства для строки // if text printed as image private int
truetypeFontSize = 21;
[ "truetypeFontSize = 21;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String String AttributesString 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": "String String String String AttributesString 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 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 ", "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_18_30
private String alignment = ALIGNMENT_LEFT; private boolean bold = false; // свойства для строки private int printerFont =
FONT_DEFAULT ;
[ "FONT_DEFAULT ;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String String AttributesString 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": "String String String String AttributesString 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 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 = ", "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_19_19
private boolean bold = false; private boolean doubleHeight = false; // свойства для строки private int printerFont = FONT_DEFAULT ; private String
alignment = ALIGNMENT_LEFT;
[ "alignment = ALIGNMENT_LEFT;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String AttributesString 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": "String String String AttributesString 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 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 ", "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_20_12
private boolean doubleHeight = false; private boolean doubleWidth = false; private int printerFont = FONT_DEFAULT ; private String alignment = ALIGNMENT_LEFT; private
boolean bold = false;
[ "boolean bold = false;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String AttributesString 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": "String String String AttributesString 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 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 ", "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_21_4
private boolean doubleWidth = false; private boolean underline = false; private String alignment = ALIGNMENT_LEFT; private boolean bold = false;
private boolean doubleHeight = false;
[ "private boolean doubleHeight = false;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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(fontsC", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String AttributesString 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": "String String String AttributesString 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 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 ", "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_22_4
private boolean underline = false; private boolean bold = false; private boolean doubleHeight = false;
private boolean doubleWidth = false;
[ "private boolean doubleWidth = false;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String AttributesString 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": "String String String AttributesString 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 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 ", "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_23_0
private String lang = "default"; private boolean doubleHeight = false; private boolean doubleWidth = false;
private boolean underline = false;
[ " private boolean underline = false;\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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 .setInternational", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String String AttributesString 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": "String String String AttributesString 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 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", "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_25_4
// ============= constructor ==================== private boolean underline = false;
private String lang = "default";
[ "private String lang = \"default\";\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "", "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 ", "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_29_11
} // ============= constructor ==================== public
AttributesString() {
[ "AttributesString() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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(", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_30_0
public AttributesString() {
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_35_4
return getPrinterFont()==FONT_A; } // ===================
public boolean isFontA(){
[ "public boolean isFontA(){\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_36_8
} public boolean isFontA(){
return getPrinterFont()==FONT_A;
[ "return getPrinterFont()==FONT_A;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_37_0
public boolean isFontB(){ public boolean isFontA(){ return getPrinterFont()==FONT_A;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_39_19
return getPrinterFont()==FONT_B; } } public boolean
isFontB(){
[ "isFontB(){\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_40_30
} public boolean isFontB(){ return getPrinterFont(
)==FONT_B;
[ ")==FONT_B;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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(", "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_41_0
public boolean isFontC(){ public boolean isFontB(){ return getPrinterFont()==FONT_B;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_43_19
return getPrinterFont()==FONT_C; } } public boolean
isFontC(){
[ "isFontC(){\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_44_15
} public boolean isFontC(){ return
getPrinterFont()==FONT_C;
[ "getPrinterFont()==FONT_C;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_45_0
// ============ get & set ========== public boolean isFontC(){ return getPrinterFont()==FONT_C;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_50_15
return printerFont; } public int
getPrinterFont() {
[ "getPrinterFont() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 .set", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_51_15
} public int getFontsCpi() { public int getPrinterFont() { return
printerFont;
[ "printerFont;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_52_0
public int getFontsCpi() { return fontsCpi; public int getPrinterFont() { return printerFont;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_53_15
return fontsCpi; } return printerFont; } public int
getFontsCpi() {
[ "getFontsCpi() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_54_8
} public int getInternationalChars() { } public int getFontsCpi() {
return fontsCpi;
[ "return fontsCpi;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_55_0
public int getInternationalChars() { return internationalChars; public int getFontsCpi() { return fontsCpi;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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(", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_56_4
return internationalChars; } return fontsCpi; }
public int getInternationalChars() {
[ "public int getInternationalChars() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_57_15
} public int getTruetypeFontSize() { } public int getInternationalChars() { return
internationalChars;
[ "internationalChars;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_58_0
public int getTruetypeFontSize() { return truetypeFontSize; public int getInternationalChars() { return internationalChars;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 fonts", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_59_11
return truetypeFontSize; } return internationalChars; } public
int getTruetypeFontSize() {
[ "int getTruetypeFontSize() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_60_15
} public String getAlignment() { } public int getTruetypeFontSize() { return
truetypeFontSize;
[ "truetypeFontSize;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_61_0
public String getAlignment() { return alignment; public int getTruetypeFontSize() { return truetypeFontSize;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String String AttributesString 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": "String String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_62_4
return alignment; } return truetypeFontSize; }
public String getAlignment() {
[ "public String getAlignment() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_63_8
} public boolean isBold() { } public String getAlignment() {
return alignment;
[ "return alignment;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_64_0
public boolean isBold() { return bold; public String getAlignment() { return alignment;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_65_3
return bold; } return alignment; }
public boolean isBold() {
[ " public boolean isBold() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.read", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_66_4
} public boolean isDoubleHeight() { } public boolean isBold() {
return bold;
[ " return bold;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_67_0
public boolean isDoubleHeight() { return doubleHeight; public boolean isBold() { return bold;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 =", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_68_11
return doubleHeight; } return bold; } public
boolean isDoubleHeight() {
[ "boolean isDoubleHeight() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_69_2
} public boolean isDoubleWidth() { } public boolean isDoubleHeight() {
return doubleHeight;
[ " return doubleHeight;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_70_0
public boolean isDoubleWidth() { return doubleWidth; public boolean isDoubleHeight() { return doubleHeight;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_71_4
return doubleWidth; } return doubleHeight; }
public boolean isDoubleWidth() {
[ "public boolean isDoubleWidth() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_72_4
} public boolean isUnderline() { } public boolean isDoubleWidth() {
return doubleWidth;
[ " return doubleWidth;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_73_0
public boolean isUnderline() { return underline; public boolean isDoubleWidth() { return doubleWidth;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 =", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_74_19
return underline; } return doubleWidth; } public boolean
isUnderline() {
[ "isUnderline() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_75_8
} public String getLang() { } public boolean isUnderline() {
return underline;
[ "return underline;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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 write", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_76_0
public String getLang() { return lang; public boolean isUnderline() { return underline;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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(Par", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 String AttributesString 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": "String AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_77_11
return lang; } return underline; } public
String getLang() {
[ "String getLang() {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 AttributesString 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": "AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_78_5
} } public String getLang() {
return lang;
[ " return lang;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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(printer", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 AttributesString 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": "AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_79_0
public AttributesString setPrinterFont(int printerFont) { public String getLang() { return lang;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 AttributesString 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": "AttributesString 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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_81_28
this.printerFont = printerFont; return this; } public AttributesString
setPrinterFont(int printerFont) {
[ "setPrinterFont(int printerFont) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_82_2
return this; } public AttributesString setPrinterFont(int printerFont) {
this.printerFont = printerFont;
[ " this.printerFont = printerFont;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_83_8
} public AttributesString setPrinterFont(int printerFont) { this.printerFont = printerFont;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_84_0
public AttributesString setFontsCpi(int fontsCpi) { this.printerFont = printerFont; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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(truetype", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_86_11
this.fontsCpi = fontsCpi; return this; } public
AttributesString setFontsCpi(int fontsCpi) {
[ "AttributesString setFontsCpi(int fontsCpi) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_87_13
return this; } public AttributesString setFontsCpi(int fontsCpi) { this.
fontsCpi = fontsCpi;
[ "fontsCpi = fontsCpi;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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.", "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_88_0
} public AttributesString setFontsCpi(int fontsCpi) { this.fontsCpi = fontsCpi;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_89_0
public AttributesString setInternationalChars(int internationalChars) { this.fontsCpi = fontsCpi; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_91_28
this.internationalChars = internationalChars; return this; } public AttributesString
setInternationalChars(int internationalChars) {
[ "setInternationalChars(int internationalChars) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_92_8
return this; } public AttributesString setInternationalChars(int internationalChars) {
this.internationalChars = internationalChars;
[ "this.internationalChars = internationalChars;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_93_0
} public AttributesString setInternationalChars(int internationalChars) { this.internationalChars = internationalChars;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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) (", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_94_0
public AttributesString setTruetypeFontSize(int truetypeFontSize) { this.internationalChars = internationalChars; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_96_28
this.truetypeFontSize = truetypeFontSize; return this; } public AttributesString
setTruetypeFontSize(int truetypeFontSize) {
[ "setTruetypeFontSize(int truetypeFontSize) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_97_13
return this; } public AttributesString setTruetypeFontSize(int truetypeFontSize) { this.
truetypeFontSize = truetypeFontSize;
[ "truetypeFontSize = truetypeFontSize;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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.", "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_98_0
} public AttributesString setTruetypeFontSize(int truetypeFontSize) { this.truetypeFontSize = truetypeFontSize;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_99_0
public AttributesString setAlignment(String alignment) { this.truetypeFontSize = truetypeFontSize; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_101_11
this.alignment = alignment; return this; } public
AttributesString setAlignment(String alignment) {
[ "AttributesString setAlignment(String alignment) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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<Attributes", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_102_13
return this; } public AttributesString setAlignment(String alignment) { this.
alignment = alignment;
[ "alignment = alignment;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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.", "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_103_5
} public AttributesString setAlignment(String alignment) { this.alignment = alignment;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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 create", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_104_0
public AttributesString setBold(boolean bold) { this.alignment = alignment; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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(", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_106_36
this.bold = bold; return this; } public AttributesString setBold(
boolean bold) {
[ "boolean bold) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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 ", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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(", "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_107_8
return this; } public AttributesString setBold(boolean bold) {
this.bold = bold;
[ "this.bold = bold;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_108_4
} public AttributesString setBold(boolean bold) { this.bold = bold;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_109_0
public AttributesString setDoubleHeight(boolean doubleHigh) { this.bold = bold; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_111_2
this.doubleHeight = doubleHigh; return this; }
public AttributesString setDoubleHeight(boolean doubleHigh) {
[ " public AttributesString setDoubleHeight(boolean doubleHigh) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_112_2
return this; } public AttributesString setDoubleHeight(boolean doubleHigh) {
this.doubleHeight = doubleHigh;
[ " this.doubleHeight = doubleHigh;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_113_7
} public AttributesString setDoubleHeight(boolean doubleHigh) { this.doubleHeight = doubleHigh;
return this;
[ " return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_114_0
public AttributesString setDoubleWidth(boolean doubleWidth) { this.doubleHeight = doubleHigh; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_116_43
this.doubleWidth = doubleWidth; return this; } public AttributesString setDoubleWidth(
boolean doubleWidth) {
[ "boolean doubleWidth) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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(", "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_117_13
return this; } public AttributesString setDoubleWidth(boolean doubleWidth) { this.
doubleWidth = doubleWidth;
[ "doubleWidth = doubleWidth;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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.", "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_118_8
} public AttributesString setDoubleWidth(boolean doubleWidth) { this.doubleWidth = doubleWidth;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_119_0
public AttributesString setUnderline(boolean underline) { this.doubleWidth = doubleWidth; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_121_49
this.underline = underline; return this; } public AttributesString setUnderline(boolean
underline) {
[ "underline) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_122_8
return this; } public AttributesString setUnderline(boolean underline) {
this.underline = underline;
[ "this.underline = underline;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_123_8
} public AttributesString setUnderline(boolean underline) { this.underline = underline;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_124_0
public AttributesString setLang(String lang) { this.underline = underline; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "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": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_126_36
this.lang = lang; return this; } public AttributesString setLang(
String lang) {
[ "String lang) {\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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(", "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_127_2
return this; } public AttributesString setLang(String lang) {
this.lang = lang;
[ " this.lang = lang;\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_128_8
} public AttributesString setLang(String lang) { this.lang = lang;
return this;
[ "return this;\n" ]
[ { "title": "in_file#lines#0.5", "text": " }\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " }\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " }\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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 ", "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_129_0
public AttributesString build(){ this.lang = lang; return this;
}
[ " }\n" ]
[ { "title": "in_file#lines#0.5", "text": "\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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": "\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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": "\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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "AttributesString AttributesString Parcel Parcel Creator AttributesString Creator AttributesString AttributesString Parcel AttributesString AttributesString AttributesString", "score": 0.14285714285714285 }, { "title": "in_file#method_names#0.5", "text": "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": "public static final Creator<AttributesString> CREATOR = new Creator<AttributesString>() {\n @Override\n public AttributesString createFromParcel(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", "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_131_11
return new AttributesString() .setFontsCpi(fontsCpi) } public
AttributesString build(){
[ "AttributesString build(){\n" ]
[ { "title": "in_file#lines#0.5", "text": " 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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " 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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " 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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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": "AttributesString 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 ", "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_132_15
.setFontsCpi(fontsCpi) .setInternationalChars(internationalChars) public AttributesString build(){ return
new AttributesString()
[ "new AttributesString()\n" ]
[ { "title": "in_file#lines#0.5", "text": " .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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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 ", "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_133_15
.setInternationalChars(internationalChars) .setTruetypeFontSize(truetypeFontSize) public AttributesString build(){ return new AttributesString()
.setFontsCpi(fontsCpi)
[ " .setFontsCpi(fontsCpi)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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 ", "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_134_14
.setTruetypeFontSize(truetypeFontSize) .setPrinterFont(printerFont) return new AttributesString() .setFontsCpi(fontsCpi)
.setInternationalChars(internationalChars)
[ " .setInternationalChars(internationalChars)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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 ", "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_135_17
.setPrinterFont(printerFont) .setAlignment(alignment) .setFontsCpi(fontsCpi) .setInternationalChars(internationalChars) .
setTruetypeFontSize(truetypeFontSize)
[ "setTruetypeFontSize(truetypeFontSize)\n" ]
[ { "title": "in_file#lines#0.5", "text": " .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}\n", "score": 1 }, { "title": "in_file#lines#0.75", "text": " .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}\n", "score": 0.5 }, { "title": "in_file#lines#0.25", "text": " .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}\n", "score": 0.3333333333333333 }, { "title": "in_file#identifiers#0.5", "text": "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 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 .", "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 } ]