id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
106,100 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java | StringUtils.checkSize | public static String checkSize(Object value, String defaultValue) {
return checkSize(value, VIEW_SIZE, defaultValue);
} | java | public static String checkSize(Object value, String defaultValue) {
return checkSize(value, VIEW_SIZE, defaultValue);
} | [
"public",
"static",
"String",
"checkSize",
"(",
"Object",
"value",
",",
"String",
"defaultValue",
")",
"{",
"return",
"checkSize",
"(",
"value",
",",
"VIEW_SIZE",
",",
"defaultValue",
")",
";",
"}"
] | limit string size to 32.
@param value the value
@param defaultValue the default value
@return the string | [
"limit",
"string",
"size",
"to",
"32",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java#L173-L175 |
106,101 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java | StringUtils.lowercaseFirstLetter | public static String lowercaseFirstLetter(String value) {
// se non abbiamo input, allora non facciamo niente
if (value == null || value.length() == 0)
return "";
char[] stringArray = value.toCharArray();
stringArray[0] = Character.toLowerCase(stringArray[0]);
return new String(stringArray);
} | java | public static String lowercaseFirstLetter(String value) {
// se non abbiamo input, allora non facciamo niente
if (value == null || value.length() == 0)
return "";
char[] stringArray = value.toCharArray();
stringArray[0] = Character.toLowerCase(stringArray[0]);
return new String(stringArray);
} | [
"public",
"static",
"String",
"lowercaseFirstLetter",
"(",
"String",
"value",
")",
"{",
"// se non abbiamo input, allora non facciamo niente",
"if",
"(",
"value",
"==",
"null",
"||",
"value",
".",
"length",
"(",
")",
"==",
"0",
")",
"return",
"\"\"",
";",
"char"... | Lowercase first letter.
@param value the value
@return the string | [
"Lowercase",
"first",
"letter",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java#L193-L202 |
106,102 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java | StringUtils.string2Writer | public static void string2Writer(String source, Writer out) throws IOException {
char[] buffer = source.toCharArray();
for (int i = 0; i < buffer.length; i++) {
out.append(buffer[i]);
}
out.flush();
} | java | public static void string2Writer(String source, Writer out) throws IOException {
char[] buffer = source.toCharArray();
for (int i = 0; i < buffer.length; i++) {
out.append(buffer[i]);
}
out.flush();
} | [
"public",
"static",
"void",
"string2Writer",
"(",
"String",
"source",
",",
"Writer",
"out",
")",
"throws",
"IOException",
"{",
"char",
"[",
"]",
"buffer",
"=",
"source",
".",
"toCharArray",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"... | String 2 writer.
@param source the source
@param out the out
@throws IOException Signals that an I/O exception has occurred. | [
"String",
"2",
"writer",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java#L211-L218 |
106,103 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java | StringUtils.reader2String | public static String reader2String(Reader source) throws IOException {
char[] cbuf = new char[65535];
StringBuffer stringbuf = new StringBuffer();
int count = 0;
while ((count = source.read(cbuf, 0, 65535)) != -1) {
stringbuf.append(cbuf, 0, count);
}
return stringbuf.toString();
} | java | public static String reader2String(Reader source) throws IOException {
char[] cbuf = new char[65535];
StringBuffer stringbuf = new StringBuffer();
int count = 0;
while ((count = source.read(cbuf, 0, 65535)) != -1) {
stringbuf.append(cbuf, 0, count);
}
return stringbuf.toString();
} | [
"public",
"static",
"String",
"reader2String",
"(",
"Reader",
"source",
")",
"throws",
"IOException",
"{",
"char",
"[",
"]",
"cbuf",
"=",
"new",
"char",
"[",
"65535",
"]",
";",
"StringBuffer",
"stringbuf",
"=",
"new",
"StringBuffer",
"(",
")",
";",
"int",
... | Reader 2 string.
@param source the source
@return the string
@throws IOException Signals that an I/O exception has occurred. | [
"Reader",
"2",
"string",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/StringUtils.java#L227-L237 |
106,104 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java | DynamicByteBufferHelper.addDouble | public static byte[] addDouble(byte[] array, double value) {
byte[] holder = new byte[4];
doubleTo(holder, 0, value);
return add(array, holder);
} | java | public static byte[] addDouble(byte[] array, double value) {
byte[] holder = new byte[4];
doubleTo(holder, 0, value);
return add(array, holder);
} | [
"public",
"static",
"byte",
"[",
"]",
"addDouble",
"(",
"byte",
"[",
"]",
"array",
",",
"double",
"value",
")",
"{",
"byte",
"[",
"]",
"holder",
"=",
"new",
"byte",
"[",
"4",
"]",
";",
"doubleTo",
"(",
"holder",
",",
"0",
",",
"value",
")",
";",
... | Adds the double.
@param array the array
@param value the value
@return the byte[] | [
"Adds",
"the",
"double",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java#L912-L917 |
106,105 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java | DynamicByteBufferHelper.insertDoubleInto | public static byte[] insertDoubleInto(byte[] array, int index, double value) {
byte[] holder = new byte[4];
doubleTo(holder, 0, value);
return insert(array, index, holder);
} | java | public static byte[] insertDoubleInto(byte[] array, int index, double value) {
byte[] holder = new byte[4];
doubleTo(holder, 0, value);
return insert(array, index, holder);
} | [
"public",
"static",
"byte",
"[",
"]",
"insertDoubleInto",
"(",
"byte",
"[",
"]",
"array",
",",
"int",
"index",
",",
"double",
"value",
")",
"{",
"byte",
"[",
"]",
"holder",
"=",
"new",
"byte",
"[",
"4",
"]",
";",
"doubleTo",
"(",
"holder",
",",
"0"... | Insert double into.
@param array the array
@param index the index
@param value the value
@return the byte[] | [
"Insert",
"double",
"into",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java#L927-L932 |
106,106 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java | DynamicByteBufferHelper.equalsOrDie | public static boolean equalsOrDie(byte[] expected, byte[] got) {
if (expected.length != got.length) {
throw new KriptonRuntimeException("Lengths did not match, expected length" + expected.length + "but got" + got.length);
}
for (int index = 0; index < expected.length; index++) {
if (expected[index] != got... | java | public static boolean equalsOrDie(byte[] expected, byte[] got) {
if (expected.length != got.length) {
throw new KriptonRuntimeException("Lengths did not match, expected length" + expected.length + "but got" + got.length);
}
for (int index = 0; index < expected.length; index++) {
if (expected[index] != got... | [
"public",
"static",
"boolean",
"equalsOrDie",
"(",
"byte",
"[",
"]",
"expected",
",",
"byte",
"[",
"]",
"got",
")",
"{",
"if",
"(",
"expected",
".",
"length",
"!=",
"got",
".",
"length",
")",
"{",
"throw",
"new",
"KriptonRuntimeException",
"(",
"\"Length... | Checks to see if two arrays are equals.
@param expected expected array
@param got got array
@return true if equal or throws exception if not. | [
"Checks",
"to",
"see",
"if",
"two",
"arrays",
"are",
"equals",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBufferHelper.java#L1189-L1202 |
106,107 | xcesco/kripton | kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java | LiveData.considerNotify | private void considerNotify(ObserverWrapper observer) {
if (!observer.mActive) {
return;
}
// Check latest state b4 dispatch. Maybe it changed state but we didn't get the event yet.
//
// we still first check observer.active to keep it as the entrance for events. So e... | java | private void considerNotify(ObserverWrapper observer) {
if (!observer.mActive) {
return;
}
// Check latest state b4 dispatch. Maybe it changed state but we didn't get the event yet.
//
// we still first check observer.active to keep it as the entrance for events. So e... | [
"private",
"void",
"considerNotify",
"(",
"ObserverWrapper",
"observer",
")",
"{",
"if",
"(",
"!",
"observer",
".",
"mActive",
")",
"{",
"return",
";",
"}",
"// Check latest state b4 dispatch. Maybe it changed state but we didn't get the event yet.",
"//",
"// we still firs... | Consider notify.
@param observer the observer | [
"Consider",
"notify",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java#L114-L133 |
106,108 | xcesco/kripton | kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java | LiveData.removeObserver | @MainThread
public void removeObserver(@NonNull final Observer<T> observer) {
assertMainThread("removeObserver");
ObserverWrapper removed = mObservers.remove(observer);
if (removed == null) {
return;
}
removed.detachObserver();
removed.activeStateChanged(f... | java | @MainThread
public void removeObserver(@NonNull final Observer<T> observer) {
assertMainThread("removeObserver");
ObserverWrapper removed = mObservers.remove(observer);
if (removed == null) {
return;
}
removed.detachObserver();
removed.activeStateChanged(f... | [
"@",
"MainThread",
"public",
"void",
"removeObserver",
"(",
"@",
"NonNull",
"final",
"Observer",
"<",
"T",
">",
"observer",
")",
"{",
"assertMainThread",
"(",
"\"removeObserver\"",
")",
";",
"ObserverWrapper",
"removed",
"=",
"mObservers",
".",
"remove",
"(",
... | Removes the given observer from the observers list.
@param observer The Observer to receive events. | [
"Removes",
"the",
"given",
"observer",
"from",
"the",
"observers",
"list",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java#L243-L252 |
106,109 | xcesco/kripton | kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java | LiveData.getValue | @Nullable
public T getValue() {
Object data = mData;
if (data != NOT_SET) {
//noinspection unchecked
return (T) data;
}
return null;
} | java | @Nullable
public T getValue() {
Object data = mData;
if (data != NOT_SET) {
//noinspection unchecked
return (T) data;
}
return null;
} | [
"@",
"Nullable",
"public",
"T",
"getValue",
"(",
")",
"{",
"Object",
"data",
"=",
"mData",
";",
"if",
"(",
"data",
"!=",
"NOT_SET",
")",
"{",
"//noinspection unchecked",
"return",
"(",
"T",
")",
"data",
";",
"}",
"return",
"null",
";",
"}"
] | Returns the current value.
Note that calling this method on a background thread does not guarantee that the latest
value set will be received.
@return the current value | [
"Returns",
"the",
"current",
"value",
".",
"Note",
"that",
"calling",
"this",
"method",
"on",
"a",
"background",
"thread",
"does",
"not",
"guarantee",
"that",
"the",
"latest",
"value",
"set",
"will",
"be",
"received",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-arch-integration/src/main/java/android/arch/lifecycle/LiveData.java#L320-L328 |
106,110 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java | SQLiteEntity.getPrimaryKey | public SQLProperty getPrimaryKey() {
for (SQLProperty item : collection) {
if (item.isPrimaryKey()) {
return item;
}
}
// try to get id
SQLProperty id = findPropertyByName("id");
return id;
} | java | public SQLProperty getPrimaryKey() {
for (SQLProperty item : collection) {
if (item.isPrimaryKey()) {
return item;
}
}
// try to get id
SQLProperty id = findPropertyByName("id");
return id;
} | [
"public",
"SQLProperty",
"getPrimaryKey",
"(",
")",
"{",
"for",
"(",
"SQLProperty",
"item",
":",
"collection",
")",
"{",
"if",
"(",
"item",
".",
"isPrimaryKey",
"(",
")",
")",
"{",
"return",
"item",
";",
"}",
"}",
"// try to get id",
"SQLProperty",
"id",
... | True if there is a primary key.
@return true if there is a primary key | [
"True",
"if",
"there",
"is",
"a",
"primary",
"key",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java#L104-L115 |
106,111 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java | SQLiteEntity.buildTableName | private String buildTableName(Elements elementUtils, SQLiteDatabaseSchema schema) {
tableName = getSimpleName();
tableName = schema.classNameConverter.convert(tableName);
String temp = AnnotationUtility.extractAsString(getElement(), BindSqlType.class, AnnotationAttributeType.NAME);
if (StringUtils.hasText(temp... | java | private String buildTableName(Elements elementUtils, SQLiteDatabaseSchema schema) {
tableName = getSimpleName();
tableName = schema.classNameConverter.convert(tableName);
String temp = AnnotationUtility.extractAsString(getElement(), BindSqlType.class, AnnotationAttributeType.NAME);
if (StringUtils.hasText(temp... | [
"private",
"String",
"buildTableName",
"(",
"Elements",
"elementUtils",
",",
"SQLiteDatabaseSchema",
"schema",
")",
"{",
"tableName",
"=",
"getSimpleName",
"(",
")",
";",
"tableName",
"=",
"schema",
".",
"classNameConverter",
".",
"convert",
"(",
"tableName",
")",... | Builds the table name.
@param elementUtils
the element utils
@param schema
the schema
@return the string | [
"Builds",
"the",
"table",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java#L136-L147 |
106,112 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java | SQLiteEntity.findRelationByParentProperty | public Touple<SQLProperty, String, SQLiteEntity, SQLRelationType> findRelationByParentProperty(
String parentFieldName) {
for (Touple<SQLProperty, String, SQLiteEntity, SQLRelationType> item : relations) {
if (item.value0.getName().equals(parentFieldName)) {
return item;
}
}
return null;
} | java | public Touple<SQLProperty, String, SQLiteEntity, SQLRelationType> findRelationByParentProperty(
String parentFieldName) {
for (Touple<SQLProperty, String, SQLiteEntity, SQLRelationType> item : relations) {
if (item.value0.getName().equals(parentFieldName)) {
return item;
}
}
return null;
} | [
"public",
"Touple",
"<",
"SQLProperty",
",",
"String",
",",
"SQLiteEntity",
",",
"SQLRelationType",
">",
"findRelationByParentProperty",
"(",
"String",
"parentFieldName",
")",
"{",
"for",
"(",
"Touple",
"<",
"SQLProperty",
",",
"String",
",",
"SQLiteEntity",
",",
... | find a relation specifing parent field name, that is the name of the
relation
@param parentFieldName
@return | [
"find",
"a",
"relation",
"specifing",
"parent",
"field",
"name",
"that",
"is",
"the",
"name",
"of",
"the",
"relation"
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteEntity.java#L156-L165 |
106,113 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyRawHelper.java | ModifyRawHelper.extractWhereConditions | static String extractWhereConditions(boolean updateMode, SQLiteModelMethod method) {
final One<String> whereCondition = new One<String>("");
final One<Boolean> found = new One<Boolean>(null);
JQLChecker.getInstance().replaceVariableStatements(method, method.jql.value, new JQLReplaceVariableStatementListenerImpl()... | java | static String extractWhereConditions(boolean updateMode, SQLiteModelMethod method) {
final One<String> whereCondition = new One<String>("");
final One<Boolean> found = new One<Boolean>(null);
JQLChecker.getInstance().replaceVariableStatements(method, method.jql.value, new JQLReplaceVariableStatementListenerImpl()... | [
"static",
"String",
"extractWhereConditions",
"(",
"boolean",
"updateMode",
",",
"SQLiteModelMethod",
"method",
")",
"{",
"final",
"One",
"<",
"String",
">",
"whereCondition",
"=",
"new",
"One",
"<",
"String",
">",
"(",
"\"\"",
")",
";",
"final",
"One",
"<",... | Extract where conditions.
@param updateMode
the update mode
@param method
the method
@return the string | [
"Extract",
"where",
"conditions",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyRawHelper.java#L388-L405 |
106,114 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyRawHelper.java | ModifyRawHelper.isIn | static boolean isIn(TypeName value, Class<?>... classes) {
for (Class<?> item : classes) {
if (value.toString().equals(TypeName.get(item).toString())) {
return true;
}
}
return false;
} | java | static boolean isIn(TypeName value, Class<?>... classes) {
for (Class<?> item : classes) {
if (value.toString().equals(TypeName.get(item).toString())) {
return true;
}
}
return false;
} | [
"static",
"boolean",
"isIn",
"(",
"TypeName",
"value",
",",
"Class",
"<",
"?",
">",
"...",
"classes",
")",
"{",
"for",
"(",
"Class",
"<",
"?",
">",
"item",
":",
"classes",
")",
"{",
"if",
"(",
"value",
".",
"toString",
"(",
")",
".",
"equals",
"(... | Checks if is in.
@param value
the value
@param classes
the classes
@return true, if is in | [
"Checks",
"if",
"is",
"in",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/ModifyRawHelper.java#L631-L639 |
106,115 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java | BindMapHelper.parseMap | public static Map<String, Object> parseMap(AbstractContext context, ParserWrapper parserWrapper, Map<String, Object> map) {
switch (context.getSupportedFormat()) {
case XML:
throw (new KriptonRuntimeException(context.getSupportedFormat() + " context does not support parse direct map parsing"));
default:
Jac... | java | public static Map<String, Object> parseMap(AbstractContext context, ParserWrapper parserWrapper, Map<String, Object> map) {
switch (context.getSupportedFormat()) {
case XML:
throw (new KriptonRuntimeException(context.getSupportedFormat() + " context does not support parse direct map parsing"));
default:
Jac... | [
"public",
"static",
"Map",
"<",
"String",
",",
"Object",
">",
"parseMap",
"(",
"AbstractContext",
"context",
",",
"ParserWrapper",
"parserWrapper",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
")",
"{",
"switch",
"(",
"context",
".",
"getSupportedFo... | Parse a map.
@param context the context
@param parserWrapper the parser wrapper
@param map the map
@return map | [
"Parse",
"a",
"map",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java#L47-L58 |
106,116 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java | BindMapHelper.parseMap | static Map<String, Object> parseMap(AbstractContext context, JsonParser parser, Map<String, Object> map, boolean skipRead) {
try {
String key;
Object value;
if (!skipRead) {
parser.nextToken();
}
if (parser.currentToken() != JsonToken.START_OBJECT) {
throw (new KriptonRuntimeException("Invali... | java | static Map<String, Object> parseMap(AbstractContext context, JsonParser parser, Map<String, Object> map, boolean skipRead) {
try {
String key;
Object value;
if (!skipRead) {
parser.nextToken();
}
if (parser.currentToken() != JsonToken.START_OBJECT) {
throw (new KriptonRuntimeException("Invali... | [
"static",
"Map",
"<",
"String",
",",
"Object",
">",
"parseMap",
"(",
"AbstractContext",
"context",
",",
"JsonParser",
"parser",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
",",
"boolean",
"skipRead",
")",
"{",
"try",
"{",
"String",
"key",
";",
... | Parse map.
@param context the context
@param parser the parser
@param map the map
@param skipRead the skip read
@return the map | [
"Parse",
"map",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java#L69-L115 |
106,117 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java | BindMapHelper.parseList | static List<Object> parseList(AbstractContext context, JsonParser parser, List<Object> list, boolean skipRead) {
try {
if (!skipRead) {
parser.nextToken();
}
if (parser.currentToken() != JsonToken.START_ARRAY) {
throw (new KriptonRuntimeException("Invalid input format"));
}
skipRead = false;
... | java | static List<Object> parseList(AbstractContext context, JsonParser parser, List<Object> list, boolean skipRead) {
try {
if (!skipRead) {
parser.nextToken();
}
if (parser.currentToken() != JsonToken.START_ARRAY) {
throw (new KriptonRuntimeException("Invalid input format"));
}
skipRead = false;
... | [
"static",
"List",
"<",
"Object",
">",
"parseList",
"(",
"AbstractContext",
"context",
",",
"JsonParser",
"parser",
",",
"List",
"<",
"Object",
">",
"list",
",",
"boolean",
"skipRead",
")",
"{",
"try",
"{",
"if",
"(",
"!",
"skipRead",
")",
"{",
"parser",
... | Parse a list.
@param context the context
@param parser the parser
@param list the list
@param skipRead the skip read
@return the list | [
"Parse",
"a",
"list",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/map/BindMapHelper.java#L126-L173 |
106,118 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/KriptonBinder.java | KriptonBinder.bind | public static BinderContext bind(BinderType format) {
BinderContext binder = binders.get(format);
if (binder == null)
throw new KriptonRuntimeException(String.format("%s format is not supported", format));
return binder;
} | java | public static BinderContext bind(BinderType format) {
BinderContext binder = binders.get(format);
if (binder == null)
throw new KriptonRuntimeException(String.format("%s format is not supported", format));
return binder;
} | [
"public",
"static",
"BinderContext",
"bind",
"(",
"BinderType",
"format",
")",
"{",
"BinderContext",
"binder",
"=",
"binders",
".",
"get",
"(",
"format",
")",
";",
"if",
"(",
"binder",
"==",
"null",
")",
"throw",
"new",
"KriptonRuntimeException",
"(",
"Strin... | retrieve binding context for specified data format.
@param format
data format used to persist data
@return binding context | [
"retrieve",
"binding",
"context",
"for",
"specified",
"data",
"format",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/KriptonBinder.java#L93-L100 |
106,119 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/commons/IOUtils.java | IOUtils.readText | public static String readText(InputStream inputStream) {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
String line;
StringBuilder stringBuilder = new StringBuilder();
try {
while ((line = bufferedReader.readLine()) != null) {
stringBuilder.append(line);
strin... | java | public static String readText(InputStream inputStream) {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
String line;
StringBuilder stringBuilder = new StringBuilder();
try {
while ((line = bufferedReader.readLine()) != null) {
stringBuilder.append(line);
strin... | [
"public",
"static",
"String",
"readText",
"(",
"InputStream",
"inputStream",
")",
"{",
"BufferedReader",
"bufferedReader",
"=",
"new",
"BufferedReader",
"(",
"new",
"InputStreamReader",
"(",
"inputStream",
")",
")",
";",
"String",
"line",
";",
"StringBuilder",
"st... | Read text.
@param inputStream the input stream
@return the string | [
"Read",
"text",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/commons/IOUtils.java#L94-L120 |
106,120 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/transform/MapBindTransformation.java | MapBindTransformation.defineMapClass | private Class<?> defineMapClass(ParameterizedTypeName mapTypeName) {
if (mapTypeName.rawType.toString().startsWith(Map.class.getCanonicalName())) {
// it's a list
return HashMap.class;
} else if (mapTypeName.rawType.toString().startsWith(SortedMap.class.getCanonicalName())) {
return TreeMap.class;
}
tr... | java | private Class<?> defineMapClass(ParameterizedTypeName mapTypeName) {
if (mapTypeName.rawType.toString().startsWith(Map.class.getCanonicalName())) {
// it's a list
return HashMap.class;
} else if (mapTypeName.rawType.toString().startsWith(SortedMap.class.getCanonicalName())) {
return TreeMap.class;
}
tr... | [
"private",
"Class",
"<",
"?",
">",
"defineMapClass",
"(",
"ParameterizedTypeName",
"mapTypeName",
")",
"{",
"if",
"(",
"mapTypeName",
".",
"rawType",
".",
"toString",
"(",
")",
".",
"startsWith",
"(",
"Map",
".",
"class",
".",
"getCanonicalName",
"(",
")",
... | Define map class.
@param mapTypeName the map type name
@return the class | [
"Define",
"map",
"class",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/transform/MapBindTransformation.java#L68-L81 |
106,121 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.fillClazz | private String fillClazz(String configClazz, String clazz) {
if (!clazz.equals(configClazz)) {
return configClazz;
} else {
return null;
}
} | java | private String fillClazz(String configClazz, String clazz) {
if (!clazz.equals(configClazz)) {
return configClazz;
} else {
return null;
}
} | [
"private",
"String",
"fillClazz",
"(",
"String",
"configClazz",
",",
"String",
"clazz",
")",
"{",
"if",
"(",
"!",
"clazz",
".",
"equals",
"(",
"configClazz",
")",
")",
"{",
"return",
"configClazz",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}"... | Fill clazz.
@param configClazz
the config clazz
@param clazz
the clazz
@return the string | [
"Fill",
"clazz",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L337-L343 |
106,122 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.addEntity | public void addEntity(SQLiteEntity value) {
entities.put(value.getName(), value);
entitiesBySimpleName.put(value.getSimpleName().toString().toLowerCase(), value);
Set<SQLProperty> listEntity = null;
// update map property name -> property collection with same name
for (SQLProperty p : value.getCollection()) ... | java | public void addEntity(SQLiteEntity value) {
entities.put(value.getName(), value);
entitiesBySimpleName.put(value.getSimpleName().toString().toLowerCase(), value);
Set<SQLProperty> listEntity = null;
// update map property name -> property collection with same name
for (SQLProperty p : value.getCollection()) ... | [
"public",
"void",
"addEntity",
"(",
"SQLiteEntity",
"value",
")",
"{",
"entities",
".",
"put",
"(",
"value",
".",
"getName",
"(",
")",
",",
"value",
")",
";",
"entitiesBySimpleName",
".",
"put",
"(",
"value",
".",
"getSimpleName",
"(",
")",
".",
"toStrin... | Adds the entity.
@param value
the value | [
"Adds",
"the",
"entity",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L359-L374 |
106,123 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.checkName | private void checkName(Set<SQLProperty> listEntity, SQLProperty p) {
for (SQLProperty item : listEntity) {
AssertKripton.assertTrueOrInvalidPropertyName(item.columnName.equals(p.columnName), item, p);
}
} | java | private void checkName(Set<SQLProperty> listEntity, SQLProperty p) {
for (SQLProperty item : listEntity) {
AssertKripton.assertTrueOrInvalidPropertyName(item.columnName.equals(p.columnName), item, p);
}
} | [
"private",
"void",
"checkName",
"(",
"Set",
"<",
"SQLProperty",
">",
"listEntity",
",",
"SQLProperty",
"p",
")",
"{",
"for",
"(",
"SQLProperty",
"item",
":",
"listEntity",
")",
"{",
"AssertKripton",
".",
"assertTrueOrInvalidPropertyName",
"(",
"item",
".",
"co... | property in different class, but same name, must have same column name.
@param listEntity
the list entity
@param p
the p | [
"property",
"in",
"different",
"class",
"but",
"same",
"name",
"must",
"have",
"same",
"column",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L384-L389 |
106,124 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.getEntityBySimpleName | public Finder<SQLProperty> getEntityBySimpleName(String entityName) {
if (entityName == null)
return null;
SQLiteEntity result = entitiesBySimpleName.get(entityName.toLowerCase());
if (result != null)
return result;
for (GeneratedTypeElement item : this.generatedEntities) {
if (item.typeSpec.name.toL... | java | public Finder<SQLProperty> getEntityBySimpleName(String entityName) {
if (entityName == null)
return null;
SQLiteEntity result = entitiesBySimpleName.get(entityName.toLowerCase());
if (result != null)
return result;
for (GeneratedTypeElement item : this.generatedEntities) {
if (item.typeSpec.name.toL... | [
"public",
"Finder",
"<",
"SQLProperty",
">",
"getEntityBySimpleName",
"(",
"String",
"entityName",
")",
"{",
"if",
"(",
"entityName",
"==",
"null",
")",
"return",
"null",
";",
"SQLiteEntity",
"result",
"=",
"entitiesBySimpleName",
".",
"get",
"(",
"entityName",
... | Gets the entity by simple name.
@param entityName
the entity name
@return the entity by simple name | [
"Gets",
"the",
"entity",
"by",
"simple",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L427-L442 |
106,125 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.getPropertyBySimpleName | public Set<SQLProperty> getPropertyBySimpleName(String propertyName) {
if (propertyName == null)
return null;
return this.propertyBySimpleName.get(propertyName.toLowerCase());
} | java | public Set<SQLProperty> getPropertyBySimpleName(String propertyName) {
if (propertyName == null)
return null;
return this.propertyBySimpleName.get(propertyName.toLowerCase());
} | [
"public",
"Set",
"<",
"SQLProperty",
">",
"getPropertyBySimpleName",
"(",
"String",
"propertyName",
")",
"{",
"if",
"(",
"propertyName",
"==",
"null",
")",
"return",
"null",
";",
"return",
"this",
".",
"propertyBySimpleName",
".",
"get",
"(",
"propertyName",
"... | Gets the property by simple name.
@param propertyName
the property name
@return the property by simple name | [
"Gets",
"the",
"property",
"by",
"simple",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L451-L456 |
106,126 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.findColumnNameByPropertyName | public String findColumnNameByPropertyName(SQLiteModelMethod method, String propertyName) {
Set<SQLProperty> propertiesSet = getPropertyBySimpleName(propertyName);
Set<String> set = new HashSet<String>();
String result = null;
for (SQLProperty item : propertiesSet) {
result = item.columnName;
set.add(ite... | java | public String findColumnNameByPropertyName(SQLiteModelMethod method, String propertyName) {
Set<SQLProperty> propertiesSet = getPropertyBySimpleName(propertyName);
Set<String> set = new HashSet<String>();
String result = null;
for (SQLProperty item : propertiesSet) {
result = item.columnName;
set.add(ite... | [
"public",
"String",
"findColumnNameByPropertyName",
"(",
"SQLiteModelMethod",
"method",
",",
"String",
"propertyName",
")",
"{",
"Set",
"<",
"SQLProperty",
">",
"propertiesSet",
"=",
"getPropertyBySimpleName",
"(",
"propertyName",
")",
";",
"Set",
"<",
"String",
">"... | get a.
@param method
the method
@param propertyName
the property name
@return the string | [
"get",
"a",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L467-L481 |
106,127 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java | SQLiteDatabaseSchema.getGeneratedClass | public ClassName getGeneratedClass() {
String packageName = getElement().asType().toString();
return TypeUtility
.className(packageName.substring(0, packageName.lastIndexOf(".")) + "." + getGeneratedClassName());
} | java | public ClassName getGeneratedClass() {
String packageName = getElement().asType().toString();
return TypeUtility
.className(packageName.substring(0, packageName.lastIndexOf(".")) + "." + getGeneratedClassName());
} | [
"public",
"ClassName",
"getGeneratedClass",
"(",
")",
"{",
"String",
"packageName",
"=",
"getElement",
"(",
")",
".",
"asType",
"(",
")",
".",
"toString",
"(",
")",
";",
"return",
"TypeUtility",
".",
"className",
"(",
"packageName",
".",
"substring",
"(",
... | Gets the generated class.
@return the generated class | [
"Gets",
"the",
"generated",
"class",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/model/SQLiteDatabaseSchema.java#L510-L514 |
106,128 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java | SQLiteUpdateTaskHelper.renameTablesWithPrefix | public static void renameTablesWithPrefix(SQLiteDatabase db, final String prefix) {
Logger.info("MASSIVE TABLE RENAME OPERATION: ADD PREFIX " + prefix);
query(db, null, QueryType.TABLE, new OnResultListener() {
@Override
public void onRow(SQLiteDatabase db, String name, String sql) {
sql = String.format(... | java | public static void renameTablesWithPrefix(SQLiteDatabase db, final String prefix) {
Logger.info("MASSIVE TABLE RENAME OPERATION: ADD PREFIX " + prefix);
query(db, null, QueryType.TABLE, new OnResultListener() {
@Override
public void onRow(SQLiteDatabase db, String name, String sql) {
sql = String.format(... | [
"public",
"static",
"void",
"renameTablesWithPrefix",
"(",
"SQLiteDatabase",
"db",
",",
"final",
"String",
"prefix",
")",
"{",
"Logger",
".",
"info",
"(",
"\"MASSIVE TABLE RENAME OPERATION: ADD PREFIX \"",
"+",
"prefix",
")",
";",
"query",
"(",
"db",
",",
"null",
... | Add to all table a specifix prefix.
@param db
the db
@param prefix
the prefix | [
"Add",
"to",
"all",
"table",
"a",
"specifix",
"prefix",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java#L161-L173 |
106,129 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java | SQLiteUpdateTaskHelper.dropTablesWithPrefix | public static void dropTablesWithPrefix(SQLiteDatabase db, String prefix) {
Logger.info("MASSIVE TABLE DROP OPERATION%s", StringUtils.ifNotEmptyAppend(prefix, " WITH PREFIX "));
drop(db, QueryType.TABLE, prefix);
} | java | public static void dropTablesWithPrefix(SQLiteDatabase db, String prefix) {
Logger.info("MASSIVE TABLE DROP OPERATION%s", StringUtils.ifNotEmptyAppend(prefix, " WITH PREFIX "));
drop(db, QueryType.TABLE, prefix);
} | [
"public",
"static",
"void",
"dropTablesWithPrefix",
"(",
"SQLiteDatabase",
"db",
",",
"String",
"prefix",
")",
"{",
"Logger",
".",
"info",
"(",
"\"MASSIVE TABLE DROP OPERATION%s\"",
",",
"StringUtils",
".",
"ifNotEmptyAppend",
"(",
"prefix",
",",
"\" WITH PREFIX \"",
... | Drop all table with specific prefix.
@param db
the db
@param prefix
the prefix | [
"Drop",
"all",
"table",
"with",
"specific",
"prefix",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java#L183-L186 |
106,130 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java | SQLiteUpdateTaskHelper.dropTablesAndIndices | public static void dropTablesAndIndices(SQLiteDatabase db) {
drop(db, QueryType.INDEX, null);
drop(db, QueryType.TABLE, null);
} | java | public static void dropTablesAndIndices(SQLiteDatabase db) {
drop(db, QueryType.INDEX, null);
drop(db, QueryType.TABLE, null);
} | [
"public",
"static",
"void",
"dropTablesAndIndices",
"(",
"SQLiteDatabase",
"db",
")",
"{",
"drop",
"(",
"db",
",",
"QueryType",
".",
"INDEX",
",",
"null",
")",
";",
"drop",
"(",
"db",
",",
"QueryType",
".",
"TABLE",
",",
"null",
")",
";",
"}"
] | Drop tables and indices.
@param db
the db | [
"Drop",
"tables",
"and",
"indices",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/SQLiteUpdateTaskHelper.java#L194-L197 |
106,131 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/TypeAdapterHelper.java | TypeAdapterHelper.detectSourceType | public static String detectSourceType(Element element, String adapterClazz) {
TypeElement a = BaseProcessor.elementUtils.getTypeElement(adapterClazz);
for (Element i : BaseProcessor.elementUtils.getAllMembers(a)) {
if (i.getKind() == ElementKind.METHOD && "toJava".equals(i.getSimpleName().toString())) {
Exec... | java | public static String detectSourceType(Element element, String adapterClazz) {
TypeElement a = BaseProcessor.elementUtils.getTypeElement(adapterClazz);
for (Element i : BaseProcessor.elementUtils.getAllMembers(a)) {
if (i.getKind() == ElementKind.METHOD && "toJava".equals(i.getSimpleName().toString())) {
Exec... | [
"public",
"static",
"String",
"detectSourceType",
"(",
"Element",
"element",
",",
"String",
"adapterClazz",
")",
"{",
"TypeElement",
"a",
"=",
"BaseProcessor",
".",
"elementUtils",
".",
"getTypeElement",
"(",
"adapterClazz",
")",
";",
"for",
"(",
"Element",
"i",... | Detect source type.
@param element the element
@param adapterClazz the adapter clazz
@return the string | [
"Detect",
"source",
"type",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/TypeAdapterHelper.java#L51-L62 |
106,132 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/TypeAdapterHelper.java | TypeAdapterHelper.detectSourceType | public static String detectSourceType(SQLiteModelMethod method, TypeName adapterTypeName) {
TypeElement a = BaseProcessor.elementUtils.getTypeElement(adapterTypeName.toString());
for (Element i : BaseProcessor.elementUtils.getAllMembers(a)) {
if (i.getKind() == ElementKind.METHOD && "toJava".equals(i.getSimpleNa... | java | public static String detectSourceType(SQLiteModelMethod method, TypeName adapterTypeName) {
TypeElement a = BaseProcessor.elementUtils.getTypeElement(adapterTypeName.toString());
for (Element i : BaseProcessor.elementUtils.getAllMembers(a)) {
if (i.getKind() == ElementKind.METHOD && "toJava".equals(i.getSimpleNa... | [
"public",
"static",
"String",
"detectSourceType",
"(",
"SQLiteModelMethod",
"method",
",",
"TypeName",
"adapterTypeName",
")",
"{",
"TypeElement",
"a",
"=",
"BaseProcessor",
".",
"elementUtils",
".",
"getTypeElement",
"(",
"adapterTypeName",
".",
"toString",
"(",
")... | Give a param with type adapter, obtain type used to convert param | [
"Give",
"a",
"param",
"with",
"type",
"adapter",
"obtain",
"type",
"used",
"to",
"convert",
"param"
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/TypeAdapterHelper.java#L67-L78 |
106,133 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.ensureElementsCapacity | protected void ensureElementsCapacity() {
final int elStackSize = elName.length;
// assert (depth + 1) >= elName.length;
// we add at least one extra slot ...
final int newSize = (depth >= 7 ? 2 * depth : 8) + 2; // = lucky 7 + 1
// //25
if (TRACE_SIZING) {
System.err.println(getClass().get... | java | protected void ensureElementsCapacity() {
final int elStackSize = elName.length;
// assert (depth + 1) >= elName.length;
// we add at least one extra slot ...
final int newSize = (depth >= 7 ? 2 * depth : 8) + 2; // = lucky 7 + 1
// //25
if (TRACE_SIZING) {
System.err.println(getClass().get... | [
"protected",
"void",
"ensureElementsCapacity",
"(",
")",
"{",
"final",
"int",
"elStackSize",
"=",
"elName",
".",
"length",
";",
"// assert (depth + 1) >= elName.length;",
"// we add at least one extra slot ...",
"final",
"int",
"newSize",
"=",
"(",
"depth",
">=",
"7",
... | Ensure elements capacity. | [
"Ensure",
"elements",
"capacity",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L246-L281 |
106,134 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.ensureNamespacesCapacity | protected void ensureNamespacesCapacity() { // int size) {
// int namespaceSize = namespacePrefix != null ? namespacePrefix.length
// : 0;
// assert (namespaceEnd >= namespacePrefix.length);
// if(size >= namespaceSize) {
// int newSize = size > 7 ? 2 * size : 8; // = lucky 7 + 1 //25
final int newSize = n... | java | protected void ensureNamespacesCapacity() { // int size) {
// int namespaceSize = namespacePrefix != null ? namespacePrefix.length
// : 0;
// assert (namespaceEnd >= namespacePrefix.length);
// if(size >= namespaceSize) {
// int newSize = size > 7 ? 2 * size : 8; // = lucky 7 + 1 //25
final int newSize = n... | [
"protected",
"void",
"ensureNamespacesCapacity",
"(",
")",
"{",
"// int size) {",
"// int namespaceSize = namespacePrefix != null ? namespacePrefix.length",
"// : 0;",
"// assert (namespaceEnd >= namespacePrefix.length);",
"// if(size >= namespaceSize) {",
"// int newSize = size > 7 ? 2 * size... | Ensure namespaces capacity. | [
"Ensure",
"namespaces",
"capacity",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L286-L318 |
106,135 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.setFeature | public void setFeature(String name, boolean state) throws IllegalArgumentException, IllegalStateException {
if (name == null) {
throw new IllegalArgumentException("feature name can not be null");
}
if (FEATURE_NAMES_INTERNED.equals(name)) {
namesInterned = state;
} else if (FEATURE_SERIALIZER_ATTVALUE_USE... | java | public void setFeature(String name, boolean state) throws IllegalArgumentException, IllegalStateException {
if (name == null) {
throw new IllegalArgumentException("feature name can not be null");
}
if (FEATURE_NAMES_INTERNED.equals(name)) {
namesInterned = state;
} else if (FEATURE_SERIALIZER_ATTVALUE_USE... | [
"public",
"void",
"setFeature",
"(",
"String",
"name",
",",
"boolean",
"state",
")",
"throws",
"IllegalArgumentException",
",",
"IllegalStateException",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"feature nam... | Sets the feature.
@param name the name
@param state the state
@throws IllegalArgumentException the illegal argument exception
@throws IllegalStateException the illegal state exception | [
"Sets",
"the",
"feature",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L328-L339 |
106,136 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.getFeature | public boolean getFeature(String name) throws IllegalArgumentException {
if (name == null) {
throw new IllegalArgumentException("feature name can not be null");
}
if (FEATURE_NAMES_INTERNED.equals(name)) {
return namesInterned;
} else if (FEATURE_SERIALIZER_ATTVALUE_USE_APOSTROPHE.equals(name)) {
retur... | java | public boolean getFeature(String name) throws IllegalArgumentException {
if (name == null) {
throw new IllegalArgumentException("feature name can not be null");
}
if (FEATURE_NAMES_INTERNED.equals(name)) {
return namesInterned;
} else if (FEATURE_SERIALIZER_ATTVALUE_USE_APOSTROPHE.equals(name)) {
retur... | [
"public",
"boolean",
"getFeature",
"(",
"String",
"name",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"feature name can not be null\"",
")",
";",
"}",
"if",
"(",
"F... | Gets the feature.
@param name the name
@return boolean
@throws IllegalArgumentException the illegal argument exception | [
"Gets",
"the",
"feature",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L348-L359 |
106,137 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.rebuildIndentationBuf | protected void rebuildIndentationBuf() {
if (doIndent == false)
return;
final int maxIndent = 65; // hardcoded maximum indentation size in
// characters
int bufSize = 0;
offsetNewLine = 0;
if (writeLineSepartor) {
offsetNewLine = lineSeparator.length();
bufSize += offsetNewLine;
}
maxInd... | java | protected void rebuildIndentationBuf() {
if (doIndent == false)
return;
final int maxIndent = 65; // hardcoded maximum indentation size in
// characters
int bufSize = 0;
offsetNewLine = 0;
if (writeLineSepartor) {
offsetNewLine = lineSeparator.length();
bufSize += offsetNewLine;
}
maxInd... | [
"protected",
"void",
"rebuildIndentationBuf",
"(",
")",
"{",
"if",
"(",
"doIndent",
"==",
"false",
")",
"return",
";",
"final",
"int",
"maxIndent",
"=",
"65",
";",
"// hardcoded maximum indentation size in",
"// characters",
"int",
"bufSize",
"=",
"0",
";",
"off... | For maximum efficiency when writing indents the required output is
pre-computed This is internal function that recomputes buffer after user
requested chnages. | [
"For",
"maximum",
"efficiency",
"when",
"writing",
"indents",
"the",
"required",
"output",
"is",
"pre",
"-",
"computed",
"This",
"is",
"internal",
"function",
"that",
"recomputes",
"buffer",
"after",
"user",
"requested",
"chnages",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L385-L418 |
106,138 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.setProperty | public void setProperty(String name, Object value) throws IllegalArgumentException, IllegalStateException {
if (name == null) {
throw new IllegalArgumentException("property name can not be null");
}
if (PROPERTY_SERIALIZER_INDENTATION.equals(name)) {
indentationString = (String) value;
} else if (PROPERTY... | java | public void setProperty(String name, Object value) throws IllegalArgumentException, IllegalStateException {
if (name == null) {
throw new IllegalArgumentException("property name can not be null");
}
if (PROPERTY_SERIALIZER_INDENTATION.equals(name)) {
indentationString = (String) value;
} else if (PROPERTY... | [
"public",
"void",
"setProperty",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"throws",
"IllegalArgumentException",
",",
"IllegalStateException",
"{",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"property na... | Sets the property.
@param name the name
@param value the value
@throws IllegalArgumentException the illegal argument exception
@throws IllegalStateException the illegal state exception | [
"Sets",
"the",
"property",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L440-L461 |
106,139 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.setOutput | public void setOutput(OutputStream os, String encoding) throws IOException {
if (os == null)
throw new IllegalArgumentException("output stream can not be null");
reset();
if (encoding != null) {
out = new OutputStreamWriter(os, encoding);
} else {
out = new OutputStreamWriter(os);
}
} | java | public void setOutput(OutputStream os, String encoding) throws IOException {
if (os == null)
throw new IllegalArgumentException("output stream can not be null");
reset();
if (encoding != null) {
out = new OutputStreamWriter(os, encoding);
} else {
out = new OutputStreamWriter(os);
}
} | [
"public",
"void",
"setOutput",
"(",
"OutputStream",
"os",
",",
"String",
"encoding",
")",
"throws",
"IOException",
"{",
"if",
"(",
"os",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"output stream can not be null\"",
")",
";",
"reset",
"... | Sets the output.
@param os the os
@param encoding the encoding
@throws IOException Signals that an I/O exception has occurred. | [
"Sets",
"the",
"output",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L521-L530 |
106,140 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.startDocument | public void startDocument(String encoding, Boolean standalone) throws IOException {
@SuppressWarnings("unused")
char apos = attributeUseApostrophe ? '\'' : '"';
if (attributeUseApostrophe) {
out.write("<?xml version='1.0'");
} else {
out.write("<?xml version=\"1.0\"");
}
if (encoding != null) {
out... | java | public void startDocument(String encoding, Boolean standalone) throws IOException {
@SuppressWarnings("unused")
char apos = attributeUseApostrophe ? '\'' : '"';
if (attributeUseApostrophe) {
out.write("<?xml version='1.0'");
} else {
out.write("<?xml version=\"1.0\"");
}
if (encoding != null) {
out... | [
"public",
"void",
"startDocument",
"(",
"String",
"encoding",
",",
"Boolean",
"standalone",
")",
"throws",
"IOException",
"{",
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"char",
"apos",
"=",
"attributeUseApostrophe",
"?",
"'",
"'",
":",
"'",
"'",
";",
... | Start document.
@param encoding the encoding
@param standalone the standalone
@throws IOException Signals that an I/O exception has occurred. | [
"Start",
"document",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L539-L570 |
106,141 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.setPrefix | @SuppressWarnings("unused")
public void setPrefix(String prefix, String namespace) throws IOException {
if (startTagIncomplete)
closeStartTag();
// assert prefix != null;
// assert namespace != null;
if (prefix == null) {
prefix = "";
}
if (!namesInterned) {
prefix = prefix.intern(); // will throw... | java | @SuppressWarnings("unused")
public void setPrefix(String prefix, String namespace) throws IOException {
if (startTagIncomplete)
closeStartTag();
// assert prefix != null;
// assert namespace != null;
if (prefix == null) {
prefix = "";
}
if (!namesInterned) {
prefix = prefix.intern(); // will throw... | [
"@",
"SuppressWarnings",
"(",
"\"unused\"",
")",
"public",
"void",
"setPrefix",
"(",
"String",
"prefix",
",",
"String",
"namespace",
")",
"throws",
"IOException",
"{",
"if",
"(",
"startTagIncomplete",
")",
"closeStartTag",
"(",
")",
";",
"// assert prefix != null;... | Sets the prefix.
@param prefix the prefix
@param namespace the namespace
@throws IOException Signals that an I/O exception has occurred. | [
"Sets",
"the",
"prefix",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L595-L634 |
106,142 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.getPrefix | protected String getPrefix(String namespace, boolean generatePrefix, boolean nonEmpty) {
// assert namespace != null;
if (!namesInterned) {
// when String is interned we can do much faster namespace stack
// lookups ...
namespace = namespace.intern();
} else if (checkNamesInterned) {
checkInterning(na... | java | protected String getPrefix(String namespace, boolean generatePrefix, boolean nonEmpty) {
// assert namespace != null;
if (!namesInterned) {
// when String is interned we can do much faster namespace stack
// lookups ...
namespace = namespace.intern();
} else if (checkNamesInterned) {
checkInterning(na... | [
"protected",
"String",
"getPrefix",
"(",
"String",
"namespace",
",",
"boolean",
"generatePrefix",
",",
"boolean",
"nonEmpty",
")",
"{",
"// assert namespace != null;",
"if",
"(",
"!",
"namesInterned",
")",
"{",
"// when String is interned we can do much faster namespace sta... | Gets the prefix.
@param namespace the namespace
@param generatePrefix the generate prefix
@param nonEmpty the non empty
@return prefix | [
"Gets",
"the",
"prefix",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L665-L702 |
106,143 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.generatePrefix | private String generatePrefix(String namespace) {
// assert namespace == namespace.intern();
while (true) {
++autoDeclaredPrefixes;
// fast lookup uses table that was pre-initialized in static{} ....
final String prefix = autoDeclaredPrefixes < precomputedPrefixes.length ? precomputedPrefixes[autoDeclaredP... | java | private String generatePrefix(String namespace) {
// assert namespace == namespace.intern();
while (true) {
++autoDeclaredPrefixes;
// fast lookup uses table that was pre-initialized in static{} ....
final String prefix = autoDeclaredPrefixes < precomputedPrefixes.length ? precomputedPrefixes[autoDeclaredP... | [
"private",
"String",
"generatePrefix",
"(",
"String",
"namespace",
")",
"{",
"// assert namespace == namespace.intern();",
"while",
"(",
"true",
")",
"{",
"++",
"autoDeclaredPrefixes",
";",
"// fast lookup uses table that was pre-initialized in static{} ....",
"final",
"String"... | Generate prefix.
@param namespace the namespace
@return the string | [
"Generate",
"prefix",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L710-L735 |
106,144 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.closeStartTag | protected void closeStartTag() throws IOException {
if (finished) {
throw new IllegalArgumentException("trying to write past already finished output" + getLocation());
}
if (seenBracket) {
seenBracket = seenBracketBracket = false;
}
if (startTagIncomplete || setPrefixCalled) {
if (setPrefixCalled) {
... | java | protected void closeStartTag() throws IOException {
if (finished) {
throw new IllegalArgumentException("trying to write past already finished output" + getLocation());
}
if (seenBracket) {
seenBracket = seenBracketBracket = false;
}
if (startTagIncomplete || setPrefixCalled) {
if (setPrefixCalled) {
... | [
"protected",
"void",
"closeStartTag",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"finished",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"trying to write past already finished output\"",
"+",
"getLocation",
"(",
")",
")",
";",
"}",
"if",
"... | Close start tag.
@throws IOException Signals that an I/O exception has occurred. | [
"Close",
"start",
"tag",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L915-L936 |
106,145 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeNamespaceDeclarations | private void writeNamespaceDeclarations() throws IOException {
// int start = elNamespaceCount[ depth - 1 ];
for (int i = elNamespaceCount[depth - 1]; i < namespaceEnd; i++) {
if (doIndent && namespaceUri[i].length() > 40) {
writeIndent();
out.write(" ");
}
if ("".equals(namespacePrefix[i])) {
... | java | private void writeNamespaceDeclarations() throws IOException {
// int start = elNamespaceCount[ depth - 1 ];
for (int i = elNamespaceCount[depth - 1]; i < namespaceEnd; i++) {
if (doIndent && namespaceUri[i].length() > 40) {
writeIndent();
out.write(" ");
}
if ("".equals(namespacePrefix[i])) {
... | [
"private",
"void",
"writeNamespaceDeclarations",
"(",
")",
"throws",
"IOException",
"{",
"// int start = elNamespaceCount[ depth - 1 ];",
"for",
"(",
"int",
"i",
"=",
"elNamespaceCount",
"[",
"depth",
"-",
"1",
"]",
";",
"i",
"<",
"namespaceEnd",
";",
"i",
"++",
... | Write namespace declarations.
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"namespace",
"declarations",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L943-L964 |
106,146 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.endTag | public XMLSerializer endTag(String namespace, String name) throws IOException {
// check that level is valid
//// assert namespace != null;
// if(namespace != null) {
// namespace = namespace.intern();
// }
seenBracket = seenBracketBracket = false;
if (namespace != null) {
if (!namesInterned) {
nam... | java | public XMLSerializer endTag(String namespace, String name) throws IOException {
// check that level is valid
//// assert namespace != null;
// if(namespace != null) {
// namespace = namespace.intern();
// }
seenBracket = seenBracketBracket = false;
if (namespace != null) {
if (!namesInterned) {
nam... | [
"public",
"XMLSerializer",
"endTag",
"(",
"String",
"namespace",
",",
"String",
"name",
")",
"throws",
"IOException",
"{",
"// check that level is valid",
"//// assert namespace != null;",
"// if(namespace != null) {",
"// namespace = namespace.intern();",
"// }",
"seenBracket",
... | End tag.
@param namespace the namespace
@param name the name
@return serializer
@throws IOException Signals that an I/O exception has occurred. | [
"End",
"tag",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L974-L1037 |
106,147 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.entityRef | public void entityRef(String text) throws IOException {
if (startTagIncomplete || setPrefixCalled || seenBracket)
closeStartTag();
if (doIndent && seenTag)
seenTag = false;
out.write('&');
out.write(text); // escape?
out.write(';');
} | java | public void entityRef(String text) throws IOException {
if (startTagIncomplete || setPrefixCalled || seenBracket)
closeStartTag();
if (doIndent && seenTag)
seenTag = false;
out.write('&');
out.write(text); // escape?
out.write(';');
} | [
"public",
"void",
"entityRef",
"(",
"String",
"text",
")",
"throws",
"IOException",
"{",
"if",
"(",
"startTagIncomplete",
"||",
"setPrefixCalled",
"||",
"seenBracket",
")",
"closeStartTag",
"(",
")",
";",
"if",
"(",
"doIndent",
"&&",
"seenTag",
")",
"seenTag",... | Entity ref.
@param text the text
@throws IOException Signals that an I/O exception has occurred. | [
"Entity",
"ref",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1096-L1104 |
106,148 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.ignorableWhitespace | public void ignorableWhitespace(String text) throws IOException {
if (startTagIncomplete || setPrefixCalled || seenBracket)
closeStartTag();
if (doIndent && seenTag)
seenTag = false;
if (text.length() == 0) {
throw new IllegalArgumentException("empty string is not allowed for ignorable whitespace" + getL... | java | public void ignorableWhitespace(String text) throws IOException {
if (startTagIncomplete || setPrefixCalled || seenBracket)
closeStartTag();
if (doIndent && seenTag)
seenTag = false;
if (text.length() == 0) {
throw new IllegalArgumentException("empty string is not allowed for ignorable whitespace" + getL... | [
"public",
"void",
"ignorableWhitespace",
"(",
"String",
"text",
")",
"throws",
"IOException",
"{",
"if",
"(",
"startTagIncomplete",
"||",
"setPrefixCalled",
"||",
"seenBracket",
")",
"closeStartTag",
"(",
")",
";",
"if",
"(",
"doIndent",
"&&",
"seenTag",
")",
... | Ignorable whitespace.
@param text the text
@throws IOException Signals that an I/O exception has occurred. | [
"Ignorable",
"whitespace",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1160-L1169 |
106,149 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeAttributeValue | protected void writeAttributeValue(String value, Writer out) throws IOException {
// .[apostrophe and <, & escaped],
final char quot = attributeUseApostrophe ? '\'' : '"';
final String quotEntity = attributeUseApostrophe ? "'" : """;
int pos = 0;
for (int i = 0; i < value.length(); i++) {
char c... | java | protected void writeAttributeValue(String value, Writer out) throws IOException {
// .[apostrophe and <, & escaped],
final char quot = attributeUseApostrophe ? '\'' : '"';
final String quotEntity = attributeUseApostrophe ? "'" : """;
int pos = 0;
for (int i = 0; i < value.length(); i++) {
char c... | [
"protected",
"void",
"writeAttributeValue",
"(",
"String",
"value",
",",
"Writer",
"out",
")",
"throws",
"IOException",
"{",
"// .[apostrophe and <, & escaped],",
"final",
"char",
"quot",
"=",
"attributeUseApostrophe",
"?",
"'",
"'",
":",
"'",
"'",
";",
"final",
... | Write attribute value.
@param value the value
@param out the out
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"attribute",
"value",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1191-L1255 |
106,150 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.addPrintable | private static void addPrintable(StringBuffer retval, char ch) {
switch (ch) {
case '\b':
retval.append("\\b");
break;
case '\t':
retval.append("\\t");
break;
case '\n':
retval.append("\\n");
break;
case '\f':
retval.append("\\f");
break;
case '\r':
retval.append("\\r");
break;... | java | private static void addPrintable(StringBuffer retval, char ch) {
switch (ch) {
case '\b':
retval.append("\\b");
break;
case '\t':
retval.append("\\t");
break;
case '\n':
retval.append("\\n");
break;
case '\f':
retval.append("\\f");
break;
case '\r':
retval.append("\\r");
break;... | [
"private",
"static",
"void",
"addPrintable",
"(",
"StringBuffer",
"retval",
",",
"char",
"ch",
")",
"{",
"switch",
"(",
"ch",
")",
"{",
"case",
"'",
"'",
":",
"retval",
".",
"append",
"(",
"\"\\\\b\"",
")",
";",
"break",
";",
"case",
"'",
"'",
":",
... | Adds the printable.
@param retval the retval
@param ch the ch | [
"Adds",
"the",
"printable",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1457-L1491 |
106,151 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeBinary | public void writeBinary(byte[] value, int start, int length) throws IOException {
text(Base64Utils.encode(value, start, length));
} | java | public void writeBinary(byte[] value, int start, int length) throws IOException {
text(Base64Utils.encode(value, start, length));
} | [
"public",
"void",
"writeBinary",
"(",
"byte",
"[",
"]",
"value",
",",
"int",
"start",
",",
"int",
"length",
")",
"throws",
"IOException",
"{",
"text",
"(",
"Base64Utils",
".",
"encode",
"(",
"value",
",",
"start",
",",
"length",
")",
")",
";",
"}"
] | Write binary.
@param value the value
@param start the start
@param length the length
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"binary",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1621-L1623 |
106,152 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeDecimalAttribute | public void writeDecimalAttribute(String prefix, String namespaceURI, String localName, BigDecimal value) throws Exception {
this.attribute(namespaceURI, localName, value.toPlainString());
} | java | public void writeDecimalAttribute(String prefix, String namespaceURI, String localName, BigDecimal value) throws Exception {
this.attribute(namespaceURI, localName, value.toPlainString());
} | [
"public",
"void",
"writeDecimalAttribute",
"(",
"String",
"prefix",
",",
"String",
"namespaceURI",
",",
"String",
"localName",
",",
"BigDecimal",
"value",
")",
"throws",
"Exception",
"{",
"this",
".",
"attribute",
"(",
"namespaceURI",
",",
"localName",
",",
"val... | Write decimal attribute.
@param prefix the prefix
@param namespaceURI the namespace URI
@param localName the local name
@param value the value
@throws Exception the exception | [
"Write",
"decimal",
"attribute",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1644-L1646 |
106,153 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeIntegerAttribute | public void writeIntegerAttribute(String prefix, String namespaceURI, String localName, BigInteger value) throws Exception {
this.attribute(namespaceURI, localName, value.toString());
} | java | public void writeIntegerAttribute(String prefix, String namespaceURI, String localName, BigInteger value) throws Exception {
this.attribute(namespaceURI, localName, value.toString());
} | [
"public",
"void",
"writeIntegerAttribute",
"(",
"String",
"prefix",
",",
"String",
"namespaceURI",
",",
"String",
"localName",
",",
"BigInteger",
"value",
")",
"throws",
"Exception",
"{",
"this",
".",
"attribute",
"(",
"namespaceURI",
",",
"localName",
",",
"val... | Write integer attribute.
@param prefix the prefix
@param namespaceURI the namespace URI
@param localName the local name
@param value the value
@throws Exception the exception | [
"Write",
"integer",
"attribute",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1657-L1660 |
106,154 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeDoubleAttribute | public void writeDoubleAttribute(String prefix, String namespaceURI, String localName, double value) throws Exception {
this.attribute(namespaceURI, localName, Double.toString(value));
} | java | public void writeDoubleAttribute(String prefix, String namespaceURI, String localName, double value) throws Exception {
this.attribute(namespaceURI, localName, Double.toString(value));
} | [
"public",
"void",
"writeDoubleAttribute",
"(",
"String",
"prefix",
",",
"String",
"namespaceURI",
",",
"String",
"localName",
",",
"double",
"value",
")",
"throws",
"Exception",
"{",
"this",
".",
"attribute",
"(",
"namespaceURI",
",",
"localName",
",",
"Double",... | Write double attribute.
@param prefix the prefix
@param namespaceURI the namespace URI
@param localName the local name
@param value the value
@throws Exception the exception | [
"Write",
"double",
"attribute",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1681-L1684 |
106,155 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java | XMLSerializer.writeBooleanAttribute | public void writeBooleanAttribute(String prefix, String namespaceURI, String localName, boolean value) throws Exception {
this.attribute(namespaceURI, localName, Boolean.toString(value));
} | java | public void writeBooleanAttribute(String prefix, String namespaceURI, String localName, boolean value) throws Exception {
this.attribute(namespaceURI, localName, Boolean.toString(value));
} | [
"public",
"void",
"writeBooleanAttribute",
"(",
"String",
"prefix",
",",
"String",
"namespaceURI",
",",
"String",
"localName",
",",
"boolean",
"value",
")",
"throws",
"Exception",
"{",
"this",
".",
"attribute",
"(",
"namespaceURI",
",",
"localName",
",",
"Boolea... | Write boolean attribute.
@param prefix the prefix
@param namespaceURI the namespace URI
@param localName the local name
@param value the value
@throws Exception the exception | [
"Write",
"boolean",
"attribute",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLSerializer.java#L1707-L1710 |
106,156 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java | ManagedPropertyPersistenceHelper.generateFieldPersistance | public static void generateFieldPersistance(BindTypeContext context, List<? extends ManagedModelProperty> collection, PersistType persistType, boolean forceName, Modifier... modifiers) {
for (ManagedModelProperty property : collection) {
if (property.bindProperty != null && !property.hasTypeAdapter()) {
// if... | java | public static void generateFieldPersistance(BindTypeContext context, List<? extends ManagedModelProperty> collection, PersistType persistType, boolean forceName, Modifier... modifiers) {
for (ManagedModelProperty property : collection) {
if (property.bindProperty != null && !property.hasTypeAdapter()) {
// if... | [
"public",
"static",
"void",
"generateFieldPersistance",
"(",
"BindTypeContext",
"context",
",",
"List",
"<",
"?",
"extends",
"ManagedModelProperty",
">",
"collection",
",",
"PersistType",
"persistType",
",",
"boolean",
"forceName",
",",
"Modifier",
"...",
"modifiers",... | Manage field's persistence for both in SharedPreference and SQLite flavours.
@param context the context
@param collection the collection
@param persistType the persist type
@param forceName the force name
@param modifiers the modifiers | [
"Manage",
"field",
"s",
"persistence",
"for",
"both",
"in",
"SharedPreference",
"and",
"SQLite",
"flavours",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java#L75-L91 |
106,157 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java | ManagedPropertyPersistenceHelper.generateFieldSerialize | public static void generateFieldSerialize(BindTypeContext context, PersistType persistType, BindProperty property, Modifier... modifiers) {
Converter<String, String> format = CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_CAMEL);
String methodName = "serialize" + format.convert(property.getName());
MethodS... | java | public static void generateFieldSerialize(BindTypeContext context, PersistType persistType, BindProperty property, Modifier... modifiers) {
Converter<String, String> format = CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_CAMEL);
String methodName = "serialize" + format.convert(property.getName());
MethodS... | [
"public",
"static",
"void",
"generateFieldSerialize",
"(",
"BindTypeContext",
"context",
",",
"PersistType",
"persistType",
",",
"BindProperty",
"property",
",",
"Modifier",
"...",
"modifiers",
")",
"{",
"Converter",
"<",
"String",
",",
"String",
">",
"format",
"=... | generates code to manage field serialization.
@param context the context
@param persistType the persist type
@param property the property
@param modifiers the modifiers | [
"generates",
"code",
"to",
"manage",
"field",
"serialization",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java#L101-L163 |
106,158 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java | ManagedPropertyPersistenceHelper.generateParamSerializer | public static void generateParamSerializer(BindTypeContext context, String propertyName, TypeName parameterTypeName, PersistType persistType) {
propertyName = SQLiteDaoDefinition.PARAM_SERIALIZER_PREFIX + propertyName;
MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(propertyName).addJavadoc("for param ... | java | public static void generateParamSerializer(BindTypeContext context, String propertyName, TypeName parameterTypeName, PersistType persistType) {
propertyName = SQLiteDaoDefinition.PARAM_SERIALIZER_PREFIX + propertyName;
MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(propertyName).addJavadoc("for param ... | [
"public",
"static",
"void",
"generateParamSerializer",
"(",
"BindTypeContext",
"context",
",",
"String",
"propertyName",
",",
"TypeName",
"parameterTypeName",
",",
"PersistType",
"persistType",
")",
"{",
"propertyName",
"=",
"SQLiteDaoDefinition",
".",
"PARAM_SERIALIZER_P... | Generate param serializer.
@param context the context
@param propertyName the property name
@param parameterTypeName the parameter type name
@param persistType the persist type | [
"Generate",
"param",
"serializer",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java#L244-L303 |
106,159 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java | ManagedPropertyPersistenceHelper.generateParamParser | public static void generateParamParser(BindTypeContext context, String methodName, TypeName parameterTypeName, PersistType persistType) {
methodName = SQLiteDaoDefinition.PARAM_PARSER_PREFIX + methodName;
MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(methodName).addJavadoc("for param $L parsing\n", m... | java | public static void generateParamParser(BindTypeContext context, String methodName, TypeName parameterTypeName, PersistType persistType) {
methodName = SQLiteDaoDefinition.PARAM_PARSER_PREFIX + methodName;
MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder(methodName).addJavadoc("for param $L parsing\n", m... | [
"public",
"static",
"void",
"generateParamParser",
"(",
"BindTypeContext",
"context",
",",
"String",
"methodName",
",",
"TypeName",
"parameterTypeName",
",",
"PersistType",
"persistType",
")",
"{",
"methodName",
"=",
"SQLiteDaoDefinition",
".",
"PARAM_PARSER_PREFIX",
"+... | Generate param parser.
@param context the context
@param methodName the method name
@param parameterTypeName the parameter type name
@param persistType the persist type | [
"Generate",
"param",
"parser",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ManagedPropertyPersistenceHelper.java#L313-L360 |
106,160 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ModelProperty.java | ModelProperty.checkTypeAdapter | protected void checkTypeAdapter(@SuppressWarnings("rawtypes") ModelEntity entity, TypeMirror propertyType, TypeAdapter typeAdapter, ModelAnnotation annotation) {
TypeName sourceType = TypeUtility.typeName(TypeAdapterHelper.detectSourceType(entity.getElement(), typeAdapter.adapterClazz));
TypeName uboxSourceType=sou... | java | protected void checkTypeAdapter(@SuppressWarnings("rawtypes") ModelEntity entity, TypeMirror propertyType, TypeAdapter typeAdapter, ModelAnnotation annotation) {
TypeName sourceType = TypeUtility.typeName(TypeAdapterHelper.detectSourceType(entity.getElement(), typeAdapter.adapterClazz));
TypeName uboxSourceType=sou... | [
"protected",
"void",
"checkTypeAdapter",
"(",
"@",
"SuppressWarnings",
"(",
"\"rawtypes\"",
")",
"ModelEntity",
"entity",
",",
"TypeMirror",
"propertyType",
",",
"TypeAdapter",
"typeAdapter",
",",
"ModelAnnotation",
"annotation",
")",
"{",
"TypeName",
"sourceType",
"=... | Check type adapter.
@param entity the entity
@param propertyType the property type
@param typeAdapter the type adapter
@param annotation the annotation | [
"Check",
"type",
"adapter",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ModelProperty.java#L78-L93 |
106,161 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/persistence/xml/internal/StringPool.java | StringPool.contentEquals | private static boolean contentEquals(String s, char[] chars, int start, int length) {
if (s.length() != length) {
return false;
}
for (int i = 0; i < length; i++) {
if (chars[start + i] != s.charAt(i)) {
return false;
}
}
return true;
} | java | private static boolean contentEquals(String s, char[] chars, int start, int length) {
if (s.length() != length) {
return false;
}
for (int i = 0; i < length; i++) {
if (chars[start + i] != s.charAt(i)) {
return false;
}
}
return true;
} | [
"private",
"static",
"boolean",
"contentEquals",
"(",
"String",
"s",
",",
"char",
"[",
"]",
"chars",
",",
"int",
"start",
",",
"int",
"length",
")",
"{",
"if",
"(",
"s",
".",
"length",
"(",
")",
"!=",
"length",
")",
"{",
"return",
"false",
";",
"}"... | Content equals.
@param s the s
@param chars the chars
@param start the start
@param length the length
@return true, if successful | [
"Content",
"equals",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/persistence/xml/internal/StringPool.java#L39-L49 |
106,162 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ModelClass.java | ModelClass.findImmutablePropertyByName | public E findImmutablePropertyByName(String name) {
String lcName = name.toLowerCase();
for (E item : immutableCollection) {
if (item.getName().toLowerCase().equals(lcName)) {
return item;
}
}
return null;
} | java | public E findImmutablePropertyByName(String name) {
String lcName = name.toLowerCase();
for (E item : immutableCollection) {
if (item.getName().toLowerCase().equals(lcName)) {
return item;
}
}
return null;
} | [
"public",
"E",
"findImmutablePropertyByName",
"(",
"String",
"name",
")",
"{",
"String",
"lcName",
"=",
"name",
".",
"toLowerCase",
"(",
")",
";",
"for",
"(",
"E",
"item",
":",
"immutableCollection",
")",
"{",
"if",
"(",
"item",
".",
"getName",
"(",
")",... | Find property by name.
@param name the name
@return the t | [
"Find",
"property",
"by",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/core/ModelClass.java#L53-L62 |
106,163 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.createExact | public static DynamicByteBuffer createExact( final int capacity ) {
return new DynamicByteBuffer( capacity ) {
public DynamicByteBuffer add( byte[] chars ) {
DynamicByteBufferHelper._idx( buffer, length, chars );
length += chars.length;
return this;
... | java | public static DynamicByteBuffer createExact( final int capacity ) {
return new DynamicByteBuffer( capacity ) {
public DynamicByteBuffer add( byte[] chars ) {
DynamicByteBufferHelper._idx( buffer, length, chars );
length += chars.length;
return this;
... | [
"public",
"static",
"DynamicByteBuffer",
"createExact",
"(",
"final",
"int",
"capacity",
")",
"{",
"return",
"new",
"DynamicByteBuffer",
"(",
"capacity",
")",
"{",
"public",
"DynamicByteBuffer",
"add",
"(",
"byte",
"[",
"]",
"chars",
")",
"{",
"DynamicByteBuffer... | Creates the exact.
@param capacity the capacity
@return the dynamic byte buffer | [
"Creates",
"the",
"exact",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L77-L85 |
106,164 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.addUnsignedByte | public void addUnsignedByte( short value ) {
if ( 1 + length < capacity ) {
DynamicByteBufferHelper.unsignedByteTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 1 );
capacity = buffer.length;
Dynamic... | java | public void addUnsignedByte( short value ) {
if ( 1 + length < capacity ) {
DynamicByteBufferHelper.unsignedByteTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 1 );
capacity = buffer.length;
Dynamic... | [
"public",
"void",
"addUnsignedByte",
"(",
"short",
"value",
")",
"{",
"if",
"(",
"1",
"+",
"length",
"<",
"capacity",
")",
"{",
"DynamicByteBufferHelper",
".",
"unsignedByteTo",
"(",
"buffer",
",",
"length",
",",
"value",
")",
";",
"}",
"else",
"{",
"buf... | Adds the unsigned byte.
@param value the value | [
"Adds",
"the",
"unsigned",
"byte",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L372-L384 |
106,165 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.addUnsignedInt | public DynamicByteBuffer addUnsignedInt( long value ) {
if ( 4 + length < capacity ) {
DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 4 );
capacity = buffer.length;
... | java | public DynamicByteBuffer addUnsignedInt( long value ) {
if ( 4 + length < capacity ) {
DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 4 );
capacity = buffer.length;
... | [
"public",
"DynamicByteBuffer",
"addUnsignedInt",
"(",
"long",
"value",
")",
"{",
"if",
"(",
"4",
"+",
"length",
"<",
"capacity",
")",
"{",
"DynamicByteBufferHelper",
".",
"unsignedIntTo",
"(",
"buffer",
",",
"length",
",",
"value",
")",
";",
"}",
"else",
"... | Adds the unsigned int.
@param value the value
@return the dynamic byte buffer | [
"Adds",
"the",
"unsigned",
"int",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L392-L406 |
106,166 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.addUnsignedShort | public void addUnsignedShort( int value ) {
if ( 2 + length < capacity ) {
DynamicByteBufferHelper.unsignedShortTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 2 );
capacity = buffer.length;
Dynami... | java | public void addUnsignedShort( int value ) {
if ( 2 + length < capacity ) {
DynamicByteBufferHelper.unsignedShortTo( buffer, length, value );
} else {
buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 2 );
capacity = buffer.length;
Dynami... | [
"public",
"void",
"addUnsignedShort",
"(",
"int",
"value",
")",
"{",
"if",
"(",
"2",
"+",
"length",
"<",
"capacity",
")",
"{",
"DynamicByteBufferHelper",
".",
"unsignedShortTo",
"(",
"buffer",
",",
"length",
",",
"value",
")",
";",
"}",
"else",
"{",
"buf... | Adds the unsigned short.
@param value the value | [
"Adds",
"the",
"unsigned",
"short",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L413-L427 |
106,167 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeLargeDoubleArray | public void writeLargeDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 4;
this.add( values.length );
doWriteDoubleArray( values, byteSize );
} | java | public void writeLargeDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 4;
this.add( values.length );
doWriteDoubleArray( values, byteSize );
} | [
"public",
"void",
"writeLargeDoubleArray",
"(",
"double",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"4",
";",
"this",
".",
"add",
"(",
"values",
".",
"length",
")",
";",
"doWriteDoubleArray",
"(",
"va... | Write large double array.
@param values the values | [
"Write",
"large",
"double",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L687-L693 |
106,168 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeLargeLongArray | public void writeLargeLongArray( long[] values ) {
int byteSize = values.length * 8 + 4;
this.add( values.length );
doWriteLongArray( values, byteSize );
} | java | public void writeLargeLongArray( long[] values ) {
int byteSize = values.length * 8 + 4;
this.add( values.length );
doWriteLongArray( values, byteSize );
} | [
"public",
"void",
"writeLargeLongArray",
"(",
"long",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"4",
";",
"this",
".",
"add",
"(",
"values",
".",
"length",
")",
";",
"doWriteLongArray",
"(",
"values",... | Write large long array.
@param values the values | [
"Write",
"large",
"long",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L723-L727 |
106,169 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeLargeString | public void writeLargeString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.add( bytes.length );
this.add( bytes );
} | java | public void writeLargeString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.add( bytes.length );
this.add( bytes );
} | [
"public",
"void",
"writeLargeString",
"(",
"String",
"s",
")",
"{",
"final",
"byte",
"[",
"]",
"bytes",
"=",
"DynamicByteBufferHelper",
".",
"bytes",
"(",
"s",
")",
";",
"this",
".",
"add",
"(",
"bytes",
".",
"length",
")",
";",
"this",
".",
"add",
"... | Write large string.
@param s the s | [
"Write",
"large",
"string",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L747-L751 |
106,170 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeMediumDoubleArray | public void writeMediumDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 2;
this.addUnsignedShort( values.length );
doWriteDoubleArray( values, byteSize );
} | java | public void writeMediumDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 2;
this.addUnsignedShort( values.length );
doWriteDoubleArray( values, byteSize );
} | [
"public",
"void",
"writeMediumDoubleArray",
"(",
"double",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"2",
";",
"this",
".",
"addUnsignedShort",
"(",
"values",
".",
"length",
")",
";",
"doWriteDoubleArray"... | Write medium double array.
@param values the values | [
"Write",
"medium",
"double",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L777-L782 |
106,171 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeMediumFloatArray | public void writeMediumFloatArray( float[] values ) {
int byteSize = values.length * 4 + 2;
this.addUnsignedShort( values.length );
doWriteFloatArray( values, byteSize );
} | java | public void writeMediumFloatArray( float[] values ) {
int byteSize = values.length * 4 + 2;
this.addUnsignedShort( values.length );
doWriteFloatArray( values, byteSize );
} | [
"public",
"void",
"writeMediumFloatArray",
"(",
"float",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"4",
"+",
"2",
";",
"this",
".",
"addUnsignedShort",
"(",
"values",
".",
"length",
")",
";",
"doWriteFloatArray",
... | Write medium float array.
@param values the values | [
"Write",
"medium",
"float",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L789-L794 |
106,172 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeMediumLongArray | public void writeMediumLongArray( long[] values ) {
int byteSize = values.length * 8 + 2;
this.addUnsignedShort( values.length );
doWriteLongArray( values, byteSize );
} | java | public void writeMediumLongArray( long[] values ) {
int byteSize = values.length * 8 + 2;
this.addUnsignedShort( values.length );
doWriteLongArray( values, byteSize );
} | [
"public",
"void",
"writeMediumLongArray",
"(",
"long",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"2",
";",
"this",
".",
"addUnsignedShort",
"(",
"values",
".",
"length",
")",
";",
"doWriteLongArray",
"(... | Write medium long array.
@param values the values | [
"Write",
"medium",
"long",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L812-L816 |
106,173 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeMediumShortArray | public void writeMediumShortArray( short[] values ) {
int byteSize = values.length * 2 + 2;
this.addUnsignedShort( values.length );
doWriteShortArray( values, byteSize );
} | java | public void writeMediumShortArray( short[] values ) {
int byteSize = values.length * 2 + 2;
this.addUnsignedShort( values.length );
doWriteShortArray( values, byteSize );
} | [
"public",
"void",
"writeMediumShortArray",
"(",
"short",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"2",
"+",
"2",
";",
"this",
".",
"addUnsignedShort",
"(",
"values",
".",
"length",
")",
";",
"doWriteShortArray",
... | Write medium short array.
@param values the values | [
"Write",
"medium",
"short",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L823-L827 |
106,174 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeMediumString | public void writeMediumString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.addUnsignedShort( bytes.length );
this.add( bytes );
} | java | public void writeMediumString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.addUnsignedShort( bytes.length );
this.add( bytes );
} | [
"public",
"void",
"writeMediumString",
"(",
"String",
"s",
")",
"{",
"final",
"byte",
"[",
"]",
"bytes",
"=",
"DynamicByteBufferHelper",
".",
"bytes",
"(",
"s",
")",
";",
"this",
".",
"addUnsignedShort",
"(",
"bytes",
".",
"length",
")",
";",
"this",
"."... | Write medium string.
@param s the s | [
"Write",
"medium",
"string",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L834-L838 |
106,175 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeSmallDoubleArray | public void writeSmallDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteDoubleArray( values, byteSize );
} | java | public void writeSmallDoubleArray( double[] values ) {
int byteSize = values.length * 8 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteDoubleArray( values, byteSize );
} | [
"public",
"void",
"writeSmallDoubleArray",
"(",
"double",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"1",
";",
"this",
".",
"addUnsignedByte",
"(",
"(",
"short",
")",
"values",
".",
"length",
")",
";",... | Write small double array.
@param values the values | [
"Write",
"small",
"double",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L864-L869 |
106,176 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeSmallLongArray | public void writeSmallLongArray( long[] values ) {
int byteSize = values.length * 8 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteLongArray( values, byteSize );
} | java | public void writeSmallLongArray( long[] values ) {
int byteSize = values.length * 8 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteLongArray( values, byteSize );
} | [
"public",
"void",
"writeSmallLongArray",
"(",
"long",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"8",
"+",
"1",
";",
"this",
".",
"addUnsignedByte",
"(",
"(",
"short",
")",
"values",
".",
"length",
")",
";",
"... | Write small long array.
@param values the values | [
"Write",
"small",
"long",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L898-L902 |
106,177 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeSmallShortArray | public void writeSmallShortArray( short[] values ) {
int byteSize = values.length * 2 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteShortArray( values, byteSize );
} | java | public void writeSmallShortArray( short[] values ) {
int byteSize = values.length * 2 + 1;
this.addUnsignedByte( ( short ) values.length );
doWriteShortArray( values, byteSize );
} | [
"public",
"void",
"writeSmallShortArray",
"(",
"short",
"[",
"]",
"values",
")",
"{",
"int",
"byteSize",
"=",
"values",
".",
"length",
"*",
"2",
"+",
"1",
";",
"this",
".",
"addUnsignedByte",
"(",
"(",
"short",
")",
"values",
".",
"length",
")",
";",
... | Write small short array.
@param values the values | [
"Write",
"small",
"short",
"array",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L909-L913 |
106,178 | xcesco/kripton | kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java | DynamicByteBuffer.writeSmallString | public void writeSmallString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.addUnsignedByte( ( short ) bytes.length );
this.add( bytes );
} | java | public void writeSmallString( String s ) {
final byte[] bytes = DynamicByteBufferHelper.bytes( s );
this.addUnsignedByte( ( short ) bytes.length );
this.add( bytes );
} | [
"public",
"void",
"writeSmallString",
"(",
"String",
"s",
")",
"{",
"final",
"byte",
"[",
"]",
"bytes",
"=",
"DynamicByteBufferHelper",
".",
"bytes",
"(",
"s",
")",
";",
"this",
".",
"addUnsignedByte",
"(",
"(",
"short",
")",
"bytes",
".",
"length",
")",... | Write small string.
@param s the s | [
"Write",
"small",
"string",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-core/src/main/java/com/abubusoft/kripton/common/DynamicByteBuffer.java#L920-L924 |
106,179 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/element/GeneratedTypeElement.java | GeneratedTypeElement.getQualifiedName | public String getQualifiedName() {
if (StringUtils.hasText(packageName)) {
return packageName + "." + typeSpec.name;
}
return typeSpec.name;
} | java | public String getQualifiedName() {
if (StringUtils.hasText(packageName)) {
return packageName + "." + typeSpec.name;
}
return typeSpec.name;
} | [
"public",
"String",
"getQualifiedName",
"(",
")",
"{",
"if",
"(",
"StringUtils",
".",
"hasText",
"(",
"packageName",
")",
")",
"{",
"return",
"packageName",
"+",
"\".\"",
"+",
"typeSpec",
".",
"name",
";",
"}",
"return",
"typeSpec",
".",
"name",
";",
"}"... | Gets the qualified name.
@return the qualified name | [
"Gets",
"the",
"qualified",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/element/GeneratedTypeElement.java#L90-L96 |
106,180 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/JavaWriterHelper.java | JavaWriterHelper.writeJava2File | public static void writeJava2File(Filer filer, String packageName, TypeSpec typeSpec) throws IOException {
JavaFile target = JavaFile.builder(packageName, typeSpec).skipJavaLangImports(true).build();
target.writeTo(filer);
} | java | public static void writeJava2File(Filer filer, String packageName, TypeSpec typeSpec) throws IOException {
JavaFile target = JavaFile.builder(packageName, typeSpec).skipJavaLangImports(true).build();
target.writeTo(filer);
} | [
"public",
"static",
"void",
"writeJava2File",
"(",
"Filer",
"filer",
",",
"String",
"packageName",
",",
"TypeSpec",
"typeSpec",
")",
"throws",
"IOException",
"{",
"JavaFile",
"target",
"=",
"JavaFile",
".",
"builder",
"(",
"packageName",
",",
"typeSpec",
")",
... | Write java 2 file.
@param filer the filer
@param packageName the package name
@param typeSpec the type spec
@throws IOException Signals that an I/O exception has occurred. | [
"Write",
"java",
"2",
"file",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/JavaWriterHelper.java#L28-L31 |
106,181 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindDaoFactoryBuilder.java | BindDaoFactoryBuilder.generateDaoFactoryClassName | public static ClassName generateDaoFactoryClassName(SQLiteDatabaseSchema schema) {
String schemaName = buildDaoFactoryName(schema);
String packageName=TypeUtility.extractPackageName(schema.getElement());
return ClassName.get(packageName, schemaName);
} | java | public static ClassName generateDaoFactoryClassName(SQLiteDatabaseSchema schema) {
String schemaName = buildDaoFactoryName(schema);
String packageName=TypeUtility.extractPackageName(schema.getElement());
return ClassName.get(packageName, schemaName);
} | [
"public",
"static",
"ClassName",
"generateDaoFactoryClassName",
"(",
"SQLiteDatabaseSchema",
"schema",
")",
"{",
"String",
"schemaName",
"=",
"buildDaoFactoryName",
"(",
"schema",
")",
";",
"String",
"packageName",
"=",
"TypeUtility",
".",
"extractPackageName",
"(",
"... | Given a schema, generate its daoFactory name.
@param schema the schema
@return the string | [
"Given",
"a",
"schema",
"generate",
"its",
"daoFactory",
"name",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindDaoFactoryBuilder.java#L79-L84 |
106,182 | xcesco/kripton | kripton-android-core/src/main/java/com/abubusoft/kripton/android/KriptonLibrary.java | KriptonLibrary.init | public static void init(Context contextValue, ExecutorService service) {
context = contextValue;
if (service == null) {
executerService = Executors.newFixedThreadPool(THREAD_POOL_SIZE_DEFAULT);
} else {
executerService = service;
}
} | java | public static void init(Context contextValue, ExecutorService service) {
context = contextValue;
if (service == null) {
executerService = Executors.newFixedThreadPool(THREAD_POOL_SIZE_DEFAULT);
} else {
executerService = service;
}
} | [
"public",
"static",
"void",
"init",
"(",
"Context",
"contextValue",
",",
"ExecutorService",
"service",
")",
"{",
"context",
"=",
"contextValue",
";",
"if",
"(",
"service",
"==",
"null",
")",
"{",
"executerService",
"=",
"Executors",
".",
"newFixedThreadPool",
... | Method to invoke during application initialization.
@param contextValue
the context value
@param executorService
the executor service | [
"Method",
"to",
"invoke",
"during",
"application",
"initialization",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-android-core/src/main/java/com/abubusoft/kripton/android/KriptonLibrary.java#L77-L86 |
106,183 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindCursorBuilder.java | BindCursorBuilder.generateExecuteMethod | private MethodSpec.Builder generateExecuteMethod(String packageName, SQLiteEntity entity) {
ParameterizedTypeName parameterizedReturnTypeName = ParameterizedTypeName.get(className(ArrayList.class), className(packageName,entity.getSimpleName()));
//@formatter:off
MethodSpec.Builder methodBuilder = MethodSpec.... | java | private MethodSpec.Builder generateExecuteMethod(String packageName, SQLiteEntity entity) {
ParameterizedTypeName parameterizedReturnTypeName = ParameterizedTypeName.get(className(ArrayList.class), className(packageName,entity.getSimpleName()));
//@formatter:off
MethodSpec.Builder methodBuilder = MethodSpec.... | [
"private",
"MethodSpec",
".",
"Builder",
"generateExecuteMethod",
"(",
"String",
"packageName",
",",
"SQLiteEntity",
"entity",
")",
"{",
"ParameterizedTypeName",
"parameterizedReturnTypeName",
"=",
"ParameterizedTypeName",
".",
"get",
"(",
"className",
"(",
"ArrayList",
... | Generate execute method.
@param packageName the package name
@param entity the entity
@return the method spec. builder | [
"Generate",
"execute",
"method",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/BindCursorBuilder.java#L197-L242 |
106,184 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/transform/AbstractCollectionBindTransform.java | AbstractCollectionBindTransform.defineCollectionClass | protected Class<?> defineCollectionClass(ParameterizedTypeName collectionTypeName) {
if (collectionTypeName.rawType.toString().startsWith(collectionClazz.getCanonicalName())) {
return defaultClazz;
} else if (collectionTypeName.rawType.toString().startsWith(SortedMap.class.getCanonicalName())) {
return TreeMa... | java | protected Class<?> defineCollectionClass(ParameterizedTypeName collectionTypeName) {
if (collectionTypeName.rawType.toString().startsWith(collectionClazz.getCanonicalName())) {
return defaultClazz;
} else if (collectionTypeName.rawType.toString().startsWith(SortedMap.class.getCanonicalName())) {
return TreeMa... | [
"protected",
"Class",
"<",
"?",
">",
"defineCollectionClass",
"(",
"ParameterizedTypeName",
"collectionTypeName",
")",
"{",
"if",
"(",
"collectionTypeName",
".",
"rawType",
".",
"toString",
"(",
")",
".",
"startsWith",
"(",
"collectionClazz",
".",
"getCanonicalName"... | Define collection class.
@param collectionTypeName
the collection type name
@return the class | [
"Define",
"collection",
"class",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/bind/transform/AbstractCollectionBindTransform.java#L132-L146 |
106,185 | xcesco/kripton | kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/SqlUtility.java | SqlUtility.defineCollection | public static ClassName defineCollection(TypeName listClazzName) {
try {
Class<?> clazz=null;
if (listClazzName instanceof ParameterizedTypeName) {
ParameterizedTypeName returnListName = (ParameterizedTypeName) listClazzName;
clazz = Class.forName(returnListName.rawType.toString());
} else {
claz... | java | public static ClassName defineCollection(TypeName listClazzName) {
try {
Class<?> clazz=null;
if (listClazzName instanceof ParameterizedTypeName) {
ParameterizedTypeName returnListName = (ParameterizedTypeName) listClazzName;
clazz = Class.forName(returnListName.rawType.toString());
} else {
claz... | [
"public",
"static",
"ClassName",
"defineCollection",
"(",
"TypeName",
"listClazzName",
")",
"{",
"try",
"{",
"Class",
"<",
"?",
">",
"clazz",
"=",
"null",
";",
"if",
"(",
"listClazzName",
"instanceof",
"ParameterizedTypeName",
")",
"{",
"ParameterizedTypeName",
... | Define collection.
@param listClazzName
the list clazz name
@return the type name | [
"Define",
"collection",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-processor/src/main/java/com/abubusoft/kripton/processor/sqlite/SqlUtility.java#L119-L143 |
106,186 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java | KriptonContentValues.putNull | public void putNull(String key) {
if (this.compiledStatement != null) {
compiledStatement.bindNull(compiledStatementBindIndex++);
} else if (values != null) {
values.putNull(key);
return;
}
names.add(key);
// values.putNull(key);
args.add(null);
valueType.add(ParamType.NULL);
} | java | public void putNull(String key) {
if (this.compiledStatement != null) {
compiledStatement.bindNull(compiledStatementBindIndex++);
} else if (values != null) {
values.putNull(key);
return;
}
names.add(key);
// values.putNull(key);
args.add(null);
valueType.add(ParamType.NULL);
} | [
"public",
"void",
"putNull",
"(",
"String",
"key",
")",
"{",
"if",
"(",
"this",
".",
"compiledStatement",
"!=",
"null",
")",
"{",
"compiledStatement",
".",
"bindNull",
"(",
"compiledStatementBindIndex",
"++",
")",
";",
"}",
"else",
"if",
"(",
"values",
"!=... | Adds a null value to the set.
@param key
the name of the value to make null | [
"Adds",
"a",
"null",
"value",
"to",
"the",
"set",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java#L509-L521 |
106,187 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java | KriptonContentValues.addWhereArgs | public void addWhereArgs(String value) {
if (this.compiledStatement != null) {
compiledStatement.bindString(compiledStatementBindIndex++, value);
}
whereArgs.add(value);
valueType.add(ParamType.STRING);
} | java | public void addWhereArgs(String value) {
if (this.compiledStatement != null) {
compiledStatement.bindString(compiledStatementBindIndex++, value);
}
whereArgs.add(value);
valueType.add(ParamType.STRING);
} | [
"public",
"void",
"addWhereArgs",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"this",
".",
"compiledStatement",
"!=",
"null",
")",
"{",
"compiledStatement",
".",
"bindString",
"(",
"compiledStatementBindIndex",
"++",
",",
"value",
")",
";",
"}",
"whereArgs",
... | Adds the where args.
@param value the value | [
"Adds",
"the",
"where",
"args",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java#L562-L569 |
106,188 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java | KriptonContentValues.clear | public void clear() {
names.clear();
values = null;
valueType.clear();
args.clear();
whereArgs.clear();
compiledStatement = null;
compiledStatementBindIndex = 1;
} | java | public void clear() {
names.clear();
values = null;
valueType.clear();
args.clear();
whereArgs.clear();
compiledStatement = null;
compiledStatementBindIndex = 1;
} | [
"public",
"void",
"clear",
"(",
")",
"{",
"names",
".",
"clear",
"(",
")",
";",
"values",
"=",
"null",
";",
"valueType",
".",
"clear",
"(",
")",
";",
"args",
".",
"clear",
"(",
")",
";",
"whereArgs",
".",
"clear",
"(",
")",
";",
"compiledStatement"... | Removes all values. | [
"Removes",
"all",
"values",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java#L644-L653 |
106,189 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java | KriptonContentValues.keyList | public String keyList() {
String separator = "";
StringBuilder buffer = new StringBuilder();
String item;
for (int i = 0; i < names.size(); i++) {
item = names.get(i);
buffer.append(separator + item);
separator = ", ";
}
return buffer.toString();
} | java | public String keyList() {
String separator = "";
StringBuilder buffer = new StringBuilder();
String item;
for (int i = 0; i < names.size(); i++) {
item = names.get(i);
buffer.append(separator + item);
separator = ", ";
}
return buffer.toString();
} | [
"public",
"String",
"keyList",
"(",
")",
"{",
"String",
"separator",
"=",
"\"\"",
";",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"String",
"item",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"names",
".",
"size"... | Key list.
@return the string | [
"Key",
"list",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java#L689-L701 |
106,190 | xcesco/kripton | kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java | KriptonContentValues.keyValueList | public String keyValueList() {
String separator = "";
StringBuilder buffer = new StringBuilder();
for (int i = 0; i < names.size(); i++) {
buffer.append(separator + "?");
separator = ", ";
}
return buffer.toString();
} | java | public String keyValueList() {
String separator = "";
StringBuilder buffer = new StringBuilder();
for (int i = 0; i < names.size(); i++) {
buffer.append(separator + "?");
separator = ", ";
}
return buffer.toString();
} | [
"public",
"String",
"keyValueList",
"(",
")",
"{",
"String",
"separator",
"=",
"\"\"",
";",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"names",
".",
"size",
"(",
")",
";",
... | Key value list.
@return the string | [
"Key",
"value",
"list",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-orm/src/main/java/com/abubusoft/kripton/android/sqlite/KriptonContentValues.java#L708-L718 |
106,191 | xcesco/kripton | kripton-retrofit-converter/src/main/java/com/abubusoft/kripton/retrofit2/KriptonResponseBodyCollectionConverter.java | KriptonResponseBodyCollectionConverter.replaceInterface | private Class<?> replaceInterface(Class<?> clazz) {
if (clazz.equals(List.class)) {
return ArrayList.class;
}
if (clazz.equals(Set.class)) {
return HashSet.class;
}
if (clazz.equals(Map.class)) {
return HashMap.class;
}
return clazz;
} | java | private Class<?> replaceInterface(Class<?> clazz) {
if (clazz.equals(List.class)) {
return ArrayList.class;
}
if (clazz.equals(Set.class)) {
return HashSet.class;
}
if (clazz.equals(Map.class)) {
return HashMap.class;
}
return clazz;
} | [
"private",
"Class",
"<",
"?",
">",
"replaceInterface",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"if",
"(",
"clazz",
".",
"equals",
"(",
"List",
".",
"class",
")",
")",
"{",
"return",
"ArrayList",
".",
"class",
";",
"}",
"if",
"(",
"clazz",
... | Replace interface.
@param clazz the clazz
@return the class | [
"Replace",
"interface",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton-retrofit-converter/src/main/java/com/abubusoft/kripton/retrofit2/KriptonResponseBodyCollectionConverter.java#L69-L83 |
106,192 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.checkRelaxed | private void checkRelaxed(String errorMessage) {
if (!relaxed) {
throw new KriptonRuntimeException(errorMessage, true, this.getLineNumber(), this.getColumnNumber(), getPositionDescription(), null);
}
if (error == null) {
error = "Error: " + errorMessage;
}
} | java | private void checkRelaxed(String errorMessage) {
if (!relaxed) {
throw new KriptonRuntimeException(errorMessage, true, this.getLineNumber(), this.getColumnNumber(), getPositionDescription(), null);
}
if (error == null) {
error = "Error: " + errorMessage;
}
} | [
"private",
"void",
"checkRelaxed",
"(",
"String",
"errorMessage",
")",
"{",
"if",
"(",
"!",
"relaxed",
")",
"{",
"throw",
"new",
"KriptonRuntimeException",
"(",
"errorMessage",
",",
"true",
",",
"this",
".",
"getLineNumber",
"(",
")",
",",
"this",
".",
"ge... | Check relaxed.
@param errorMessage the error message | [
"Check",
"relaxed",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L432-L439 |
106,193 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readUntil | private String readUntil(char[] delimiter, boolean returnText) throws IOException, KriptonRuntimeException {
int start = position;
StringBuilder result = null;
if (returnText && text != null) {
result = new StringBuilder();
result.append(text);
}
search: while (true) {
if (position + delimiter.leng... | java | private String readUntil(char[] delimiter, boolean returnText) throws IOException, KriptonRuntimeException {
int start = position;
StringBuilder result = null;
if (returnText && text != null) {
result = new StringBuilder();
result.append(text);
}
search: while (true) {
if (position + delimiter.leng... | [
"private",
"String",
"readUntil",
"(",
"char",
"[",
"]",
"delimiter",
",",
"boolean",
"returnText",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"int",
"start",
"=",
"position",
";",
"StringBuilder",
"result",
"=",
"null",
";",
"if",
"(",... | Reads text until the specified delimiter is encountered. Consumes the
text and the delimiter.
@param delimiter the delimiter
@param returnText true to return the read text excluding the delimiter; false to
return null.
@return the string
@throws IOException Signals that an I/O exception has occurred.
@throw... | [
"Reads",
"text",
"until",
"the",
"specified",
"delimiter",
"is",
"encountered",
".",
"Consumes",
"the",
"text",
"and",
"the",
"delimiter",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L611-L660 |
106,194 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readXmlDeclaration | private void readXmlDeclaration() throws IOException, KriptonRuntimeException {
if (bufferStartLine != 0 || bufferStartColumn != 0 || position != 0) {
checkRelaxed("processing instructions must not start with xml");
}
read(START_PROCESSING_INSTRUCTION);
parseStartTag(true, true);
if (attributeCount < 1 |... | java | private void readXmlDeclaration() throws IOException, KriptonRuntimeException {
if (bufferStartLine != 0 || bufferStartColumn != 0 || position != 0) {
checkRelaxed("processing instructions must not start with xml");
}
read(START_PROCESSING_INSTRUCTION);
parseStartTag(true, true);
if (attributeCount < 1 |... | [
"private",
"void",
"readXmlDeclaration",
"(",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"if",
"(",
"bufferStartLine",
"!=",
"0",
"||",
"bufferStartColumn",
"!=",
"0",
"||",
"position",
"!=",
"0",
")",
"{",
"checkRelaxed",
"(",
"\"process... | Returns true if an XML declaration was read.
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Returns",
"true",
"if",
"an",
"XML",
"declaration",
"was",
"read",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L668-L707 |
106,195 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readComment | private String readComment(boolean returnText) throws IOException, KriptonRuntimeException {
read(START_COMMENT);
if (relaxed) {
return readUntil(END_COMMENT, returnText);
}
String commentText = readUntil(COMMENT_DOUBLE_DASH, returnText);
if (peekCharacter() != '>') {
throw new KriptonRuntimeException... | java | private String readComment(boolean returnText) throws IOException, KriptonRuntimeException {
read(START_COMMENT);
if (relaxed) {
return readUntil(END_COMMENT, returnText);
}
String commentText = readUntil(COMMENT_DOUBLE_DASH, returnText);
if (peekCharacter() != '>') {
throw new KriptonRuntimeException... | [
"private",
"String",
"readComment",
"(",
"boolean",
"returnText",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"read",
"(",
"START_COMMENT",
")",
";",
"if",
"(",
"relaxed",
")",
"{",
"return",
"readUntil",
"(",
"END_COMMENT",
",",
"returnTe... | Read comment.
@param returnText the return text
@return the string
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Read",
"comment",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L717-L730 |
106,196 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readInternalSubset | private void readInternalSubset() throws IOException, KriptonRuntimeException {
read('[');
while (true) {
skip();
if (peekCharacter() == ']') {
position++;
return;
}
int declarationType = peekType(true);
switch (declarationType) {
case ELEMENTDECL:
readElementDeclaration();
break... | java | private void readInternalSubset() throws IOException, KriptonRuntimeException {
read('[');
while (true) {
skip();
if (peekCharacter() == ']') {
position++;
return;
}
int declarationType = peekType(true);
switch (declarationType) {
case ELEMENTDECL:
readElementDeclaration();
break... | [
"private",
"void",
"readInternalSubset",
"(",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"read",
"(",
"'",
"'",
")",
";",
"while",
"(",
"true",
")",
"{",
"skip",
"(",
")",
";",
"if",
"(",
"peekCharacter",
"(",
")",
"==",
"'",
"'... | Read internal subset.
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Read",
"internal",
"subset",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L853-L897 |
106,197 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readNotationDeclaration | private void readNotationDeclaration() throws IOException, KriptonRuntimeException {
read(START_NOTATION);
skip();
readName();
if (!readExternalId(false, false)) {
throw new KriptonRuntimeException("Expected external ID or public ID for notation", true, this.getLineNumber(), this.getColumnNumber(), getPositi... | java | private void readNotationDeclaration() throws IOException, KriptonRuntimeException {
read(START_NOTATION);
skip();
readName();
if (!readExternalId(false, false)) {
throw new KriptonRuntimeException("Expected external ID or public ID for notation", true, this.getLineNumber(), this.getColumnNumber(), getPositi... | [
"private",
"void",
"readNotationDeclaration",
"(",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"read",
"(",
"START_NOTATION",
")",
";",
"skip",
"(",
")",
";",
"readName",
"(",
")",
";",
"if",
"(",
"!",
"readExternalId",
"(",
"false",
"... | Read notation declaration.
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Read",
"notation",
"declaration",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L1138-L1147 |
106,198 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readEndTag | private void readEndTag() throws IOException, KriptonRuntimeException {
read('<');
read('/');
name = readName(); // TODO: pass the expected name in as a hint?
skip();
read('>');
int sp = (depth - 1) * 4;
if (depth == 0) {
checkRelaxed("read end tag " + name + " with no tags open");
type = COMMENT;... | java | private void readEndTag() throws IOException, KriptonRuntimeException {
read('<');
read('/');
name = readName(); // TODO: pass the expected name in as a hint?
skip();
read('>');
int sp = (depth - 1) * 4;
if (depth == 0) {
checkRelaxed("read end tag " + name + " with no tags open");
type = COMMENT;... | [
"private",
"void",
"readEndTag",
"(",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"read",
"(",
"'",
"'",
")",
";",
"read",
"(",
"'",
"'",
")",
";",
"name",
"=",
"readName",
"(",
")",
";",
"// TODO: pass the expected name in as a hint?",
... | Read end tag.
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Read",
"end",
"tag",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L1155-L1177 |
106,199 | xcesco/kripton | kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java | XMLParser.readName | private String readName() throws IOException, KriptonRuntimeException {
if (position >= limit && !fillBuffer(1)) {
checkRelaxed("name expected");
return "";
}
int start = position;
StringBuilder result = null;
// read the first character
char c = buffer[position];
if ((c >= 'a' && c <= 'z') || (c ... | java | private String readName() throws IOException, KriptonRuntimeException {
if (position >= limit && !fillBuffer(1)) {
checkRelaxed("name expected");
return "";
}
int start = position;
StringBuilder result = null;
// read the first character
char c = buffer[position];
if ((c >= 'a' && c <= 'z') || (c ... | [
"private",
"String",
"readName",
"(",
")",
"throws",
"IOException",
",",
"KriptonRuntimeException",
"{",
"if",
"(",
"position",
">=",
"limit",
"&&",
"!",
"fillBuffer",
"(",
"1",
")",
")",
"{",
"checkRelaxed",
"(",
"\"name expected\"",
")",
";",
"return",
"\"... | Returns an element or attribute name. This is always non-empty for
non-relaxed parsers.
@return the string
@throws IOException Signals that an I/O exception has occurred.
@throws KriptonRuntimeException the kripton runtime exception | [
"Returns",
"an",
"element",
"or",
"attribute",
"name",
".",
"This",
"is",
"always",
"non",
"-",
"empty",
"for",
"non",
"-",
"relaxed",
"parsers",
"."
] | 90de2c0523d39b99e81b8d38aa996898762f594a | https://github.com/xcesco/kripton/blob/90de2c0523d39b99e81b8d38aa996898762f594a/kripton/src/main/java/com/abubusoft/kripton/xml/XMLParser.java#L1753-L1812 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.