id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
10230369_11 | {
"fields": [
{
"declarator": "extension",
"modifier": "private",
"original_string": "private OptionalSerializerExtension extension;",
"type": "OptionalSerializerExtension",
"var_name": "extension"
},
{
"declarator": "fakeSerializerFactory",
"modifier": "private",... | {
"body": "@Test\n public void fromProxy() {\n TypeMirror typeMirror = declaredTypeOf(Optional.class, Integer.class);\n\n Serializer serializer =\n extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get();\n CodeBlock actualCodeBlock = serializer.fromProxy(CodeBlock... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/extension/serializable/serializer/impl/OptionalSerializerExtension.java",
"identifier": "OptionalSerializerExtension",
"interfaces": "implements SerializerExtension",
"methods": [
{
"class_method_signature": "OptionalSerializerExtens... | {
"body": "@Override\n public Optional<Serializer> getSerializer(\n TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) {\n if (!isOptional(typeMirror)) {\n return Optional.empty();\n }\n\n // Extract the T of Optional<T>.\n TypeMirror containedType = getConta... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_46 | {
"fields": [
{
"declarator": "expect = Expect.create()",
"modifier": "@Rule public",
"original_string": "@Rule public Expect expect = Expect.create();",
"type": "Expect",
"var_name": "expect"
},
{
"declarator": "NORMAL_CASES =\n ImmutableMap.<String, String>builde... | {
"body": "@Test\n public void decapitalizeNormally() {\n NORMAL_CASES\n .forEach(\n (input, output) -> {\n expect.that(PropertyNames.decapitalizeNormally(input)).isEqualTo(output);\n });\n expect.that(PropertyNames.decapitalizeNormally(null)).isNull();\n expect.tha... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/processor/PropertyNames.java",
"identifier": "PropertyNames",
"interfaces": "",
"methods": [
{
"class_method_signature": "PropertyNames.decapitalizeLikeJavaBeans(String propertyName)",
"constructor": false,
"full_signatur... | {
"body": "static String decapitalizeNormally(String propertyName) {\n if (Strings.isNullOrEmpty(propertyName)) {\n return propertyName;\n }\n return Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);\n }",
"class_method_signature": "PropertyNames.decapitalizeNormally(String p... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_85 | {
"fields": [
{
"declarator": "compilationRule = new CompilationRule()",
"modifier": "@Rule public final",
"original_string": "@Rule public final CompilationRule compilationRule = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilationRule"
},
{
"de... | {
"body": "@Test\n public void testNonObjectSuperclass() {\n Types types = compilationRule.getTypes();\n Elements elements = compilationRule.getElements();\n TypeMirror numberType = elements.getTypeElement(Number.class.getCanonicalName()).asType();\n TypeMirror stringType = elements.getTypeElement(String... | {
"fields": [
{
"declarator": "HASH_SEED = 17",
"modifier": "private static final",
"original_string": "private static final int HASH_SEED = 17;",
"type": "int",
"var_name": "HASH_SEED"
},
{
"declarator": "HASH_MULTIPLIER = 31",
"modifier": "private static final",... | {
"body": "public static Optional<DeclaredType> nonObjectSuperclass(Types types, Elements elements,\n DeclaredType type) {\n checkNotNull(types);\n checkNotNull(elements); // This is no longer used, but here to avoid changing the API.\n checkNotNull(type);\n\n TypeMirror superclassType = asTypeEleme... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_5 | {
"fields": [
{
"declarator": "FUNCTION_WITH_EXCEPTIONS =\n \"com.google.auto.value.extension.serializable.serializer.runtime.FunctionWithExceptions\"",
"modifier": "private static final",
"original_string": "private static final String FUNCTION_WITH_EXCEPTIONS =\n \"com.google.auto.va... | {
"body": "@Test\n public void toProxy() {\n TypeMirror typeMirror = declaredTypeOf(ImmutableList.class, Integer.class);\n\n Serializer serializer =\n extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get();\n CodeBlock actualCodeBlock = serializer.toProxy(CodeBloc... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/extension/serializable/serializer/impl/ImmutableListSerializerExtension.java",
"identifier": "ImmutableListSerializerExtension",
"interfaces": "implements SerializerExtension",
"methods": [
{
"class_method_signature": "ImmutableListS... | {
"body": "@Override\n public Optional<Serializer> getSerializer(\n TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) {\n if (!isImmutableList(typeMirror)) {\n return Optional.empty();\n }\n\n // Extract the T of ImmutableList<T>.\n TypeMirror containedType ... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_93 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public final",
"original_string": "@Rule public final CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
}
],
"file": "common/src/t... | {
"body": "@Test\n public void notAnAnnotation() {\n TypeElement stringElement = getTypeElement(String.class);\n expectThrows(() -> SimpleAnnotationMirror.of(stringElement));\n }",
"class_method_signature": "SimpleAnnotationMirrorTest.notAnAnnotation()",
"constructor": false,
"full_signature": "@Test pu... | {
"fields": [
{
"declarator": "annotationType",
"modifier": "private final",
"original_string": "private final TypeElement annotationType;",
"type": "TypeElement",
"var_name": "annotationType"
},
{
"declarator": "namedValues",
"modifier": "private final",
"o... | {
"body": "public static AnnotationMirror of(TypeElement annotationType) {\n return of(annotationType, ImmutableMap.of());\n }",
"class_method_signature": "SimpleAnnotationMirror.of(TypeElement annotationType)",
"constructor": false,
"full_signature": "public static AnnotationMirror of(TypeElement annotatio... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_111 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public final",
"original_string": "@Rule public final CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
},
{
"declarator": "... | {
"body": "@Test\n public void getLongs() {\n AnnotationValue value = AnnotationMirrors.getAnnotationValue(annotationMirror, \"longValues\");\n assertThat(AnnotationValues.getLongs(value)).containsExactly(3L, 4L).inOrder();\n }",
"class_method_signature": "AnnotationValuesTest.getLongs()",
"constructor": ... | {
"fields": [
{
"declarator": "ANNOTATION_VALUE_EQUIVALENCE =\n new Equivalence<AnnotationValue>() {\n @Override protected boolean doEquivalent(AnnotationValue left, AnnotationValue right) {\n return left.accept(new SimpleAnnotationValueVisitor8<Boolean, AnnotationValue>() {\n ... | {
"body": "public static ImmutableList<Long> getLongs(AnnotationValue value) {\n return LONGS_VISITOR.visit(value);\n }",
"class_method_signature": "AnnotationValues.getLongs(AnnotationValue value)",
"constructor": false,
"full_signature": "public static ImmutableList<Long> getLongs(AnnotationValue value)",... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_107 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public final",
"original_string": "@Rule public final CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
},
{
"declarator": "... | {
"body": "@Test\n public void getAnnotationValues() {\n AnnotationValue value = AnnotationMirrors.getAnnotationValue(annotationMirror, \"intValues\");\n ImmutableList<AnnotationValue> values = AnnotationValues.getAnnotationValues(value);\n assertThat(values)\n .comparingElementsUsing(Correspondence.... | {
"fields": [
{
"declarator": "ANNOTATION_VALUE_EQUIVALENCE =\n new Equivalence<AnnotationValue>() {\n @Override protected boolean doEquivalent(AnnotationValue left, AnnotationValue right) {\n return left.accept(new SimpleAnnotationValueVisitor8<Boolean, AnnotationValue>() {\n ... | {
"body": "public static ImmutableList<AnnotationValue> getAnnotationValues(AnnotationValue value) {\n return ANNOTATION_VALUES_VISITOR.visit(value);\n }",
"class_method_signature": "AnnotationValues.getAnnotationValues(AnnotationValue value)",
"constructor": false,
"full_signature": "public static Immutabl... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_31 | {
"fields": [],
"file": "value/src/test/java/com/google/auto/value/processor/SimpleServiceLoaderTest.java",
"identifier": "SimpleServiceLoaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void noProviders() throws Exception {\n ClassLoader loader = loaderForJarWithEntries(CharSequence.class.getName());\n\n ImmutableList<CharSequence> providers = SimpleServiceLoader.load(CharSequence.class, loader);\n\n assertThat(providers).isEmpty();\n }",
"class_method_signatur... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/processor/SimpleServiceLoader.java",
"identifier": "SimpleServiceLoader",
"interfaces": "",
"methods": [
{
"class_method_signature": "SimpleServiceLoader.SimpleServiceLoader()",
"constructor": true,
"full_signature": "pri... | {
"body": "public static <T> ImmutableList<T> load(Class<? extends T> service, ClassLoader loader) {\n String resourceName = \"META-INF/services/\" + service.getName();\n List<URL> resourceUrls;\n try {\n resourceUrls = Collections.list(loader.getResources(resourceName));\n } catch (IOException e) {\... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_9 | {
"fields": [
{
"declarator": "extension",
"modifier": "private",
"original_string": "private OptionalSerializerExtension extension;",
"type": "OptionalSerializerExtension",
"var_name": "extension"
},
{
"declarator": "fakeSerializerFactory",
"modifier": "private",... | {
"body": "@Test\n public void proxyFieldType() {\n TypeMirror typeMirror = declaredTypeOf(Optional.class, Integer.class);\n\n Serializer serializer =\n extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get();\n TypeMirror actualTypeMirror = serializer.proxyFieldTy... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/extension/serializable/serializer/impl/OptionalSerializerExtension.java",
"identifier": "OptionalSerializerExtension",
"interfaces": "implements SerializerExtension",
"methods": [
{
"class_method_signature": "OptionalSerializerExtens... | {
"body": "@Override\n public Optional<Serializer> getSerializer(\n TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) {\n if (!isOptional(typeMirror)) {\n return Optional.empty();\n }\n\n // Extract the T of Optional<T>.\n TypeMirror containedType = getConta... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_66 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public",
"original_string": "@Rule public CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
},
{
"declarator": "expect = Exp... | {
"body": "@Test\n public void asPackage_illegalArgument() {\n try {\n MoreElements.asPackage(stringElement);\n fail();\n } catch (IllegalArgumentException expected) {}\n }",
"class_method_signature": "MoreElementsTest.asPackage_illegalArgument()",
"constructor": false,
"full_signature": "@Tes... | {
"fields": [],
"file": "common/src/main/java/com/google/auto/common/MoreElements.java",
"identifier": "MoreElements",
"interfaces": "",
"methods": [
{
"class_method_signature": "MoreElements.getPackage(Element element)",
"constructor": false,
"full_signature": "public static PackageElem... | {
"body": "public static PackageElement asPackage(Element element) {\n return element.accept(PackageElementVisitor.INSTANCE, null);\n }",
"class_method_signature": "MoreElements.asPackage(Element element)",
"constructor": false,
"full_signature": "public static PackageElement asPackage(Element element)",
... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_89 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public final",
"original_string": "@Rule public final CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
},
{
"declarator": "... | {
"body": "@Test\n public void declaredType() {\n SimpleTypeAnnotationValue.of(objectType);\n }",
"class_method_signature": "SimpleTypeAnnotationValueTest.declaredType()",
"constructor": false,
"full_signature": "@Test public void declaredType()",
"identifier": "declaredType",
"invocations": [
"of"... | {
"fields": [
{
"declarator": "value",
"modifier": "private final",
"original_string": "private final TypeMirror value;",
"type": "TypeMirror",
"var_name": "value"
}
],
"file": "common/src/main/java/com/google/auto/common/SimpleTypeAnnotationValue.java",
"identifier": "Simp... | {
"body": "public static AnnotationValue of(TypeMirror value) {\n return new SimpleTypeAnnotationValue(value);\n }",
"class_method_signature": "SimpleTypeAnnotationValue.of(TypeMirror value)",
"constructor": false,
"full_signature": "public static AnnotationValue of(TypeMirror value)",
"identifier": "of",... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_70 | {
"fields": [
{
"declarator": "compilation = new CompilationRule()",
"modifier": "@Rule public",
"original_string": "@Rule public CompilationRule compilation = new CompilationRule();",
"type": "CompilationRule",
"var_name": "compilation"
},
{
"declarator": "expect = Exp... | {
"body": "@Test\n public void asVariable() {\n for (Element variableElement : ElementFilter.fieldsIn(stringElement.getEnclosedElements())) {\n assertThat(MoreElements.asVariable(variableElement)).isEqualTo(variableElement);\n }\n }",
"class_method_signature": "MoreElementsTest.asVariable()",
"constr... | {
"fields": [],
"file": "common/src/main/java/com/google/auto/common/MoreElements.java",
"identifier": "MoreElements",
"interfaces": "",
"methods": [
{
"class_method_signature": "MoreElements.getPackage(Element element)",
"constructor": false,
"full_signature": "public static PackageElem... | {
"body": "public static VariableElement asVariable(Element element) {\n return element.accept(VariableElementVisitor.INSTANCE, null);\n }",
"class_method_signature": "MoreElements.asVariable(Element element)",
"constructor": false,
"full_signature": "public static VariableElement asVariable(Element element... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
10230369_27 | {
"fields": [],
"file": "value/src/test/java/com/google/auto/value/processor/SimpleServiceLoaderTest.java",
"identifier": "SimpleServiceLoaderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void loadOnce() throws Exception {\n ClassLoader loader =\n loaderForJarWithEntries(\n CharSequence.class.getName(), String.class.getName(), StringBuilder.class.getName());\n\n ImmutableList<CharSequence> providers = SimpleServiceLoader.load(CharSequence.class, loade... | {
"fields": [],
"file": "value/src/main/java/com/google/auto/value/processor/SimpleServiceLoader.java",
"identifier": "SimpleServiceLoader",
"interfaces": "",
"methods": [
{
"class_method_signature": "SimpleServiceLoader.SimpleServiceLoader()",
"constructor": true,
"full_signature": "pri... | {
"body": "public static <T> ImmutableList<T> load(Class<? extends T> service, ClassLoader loader) {\n String resourceName = \"META-INF/services/\" + service.getName();\n List<URL> resourceUrls;\n try {\n resourceUrls = Collections.list(loader.getResources(resourceName));\n } catch (IOException e) {\... | {
"created": "5/22/2013 9:41:56 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 10230369,
"size": null,
"stargazer_count": null,
"stars": 8408,
"updates": "2020-01-27T16:25:00+00:00",
"url": "https://github.com/google/auto"
} |
6879138_0 | {
"fields": [
{
"declarator": "assembler",
"modifier": "private",
"original_string": "private Assembler assembler;",
"type": "Assembler",
"var_name": "assembler"
},
{
"declarator": "model",
"modifier": "private",
"original_string": "private Model model;",
... | {
"body": "@Test\n\tpublic void testCreation() throws Exception {\n\t\t\n\t\tResource r = model.createResource( \"http://xenei.org/jena/security/test#secModel\");\n\t\tObject o = assembler.open( r );\n\t\tAssert.assertTrue( o instanceof Model);\n\t\tAssert.assertTrue( o instanceof SecuredModel );\n\t}",
"class_meth... | {
"fields": [
{
"declarator": "initialized",
"modifier": "private static",
"original_string": "private static boolean initialized;",
"type": "boolean",
"var_name": "initialized"
},
{
"declarator": "URI = \"http://xenei.org/jena/security/Assembler#\"",
"modifier": ... | {
"body": "@Override\n\tpublic Model open(Assembler a, Resource root, Mode mode) {\n\n\t\tList<Statement> lst = root.listProperties().toList();\n\t\tResource rootModel = getUniqueResource( root, BASE_MODEL );\n\t\tif (rootModel == null)\n\t\t{\n\t\t\tthrow new AssemblerException( root, String.format( \"No %s provided... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 6879138,
"size": 530,
"stargazer_count": 6,
"stars": null,
"updates": null,
"url": "https://github.com/Claudenw/JenaSecurity"
} |
164497122_8 | {
"fields": [],
"file": "baremaps-osm/src/test/java/com/baremaps/osm/reader/pbf/FileBlockSpliteratorTest.java",
"identifier": "FileBlockSpliteratorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void tryAdvance() {\n Spliterator<FileBlock> spliterator = new FileBlockSpliterator(new DataInputStream(dataOsmPbf()));\n spliterator.forEachRemaining(fileBlock -> assertNotNull(fileBlock));\n assertFalse(spliterator.tryAdvance(new HoldingConsumer<>()));\n }",
"class_method_sign... | {
"fields": [
{
"declarator": "input",
"modifier": "protected final",
"original_string": "protected final DataInputStream input;",
"type": "DataInputStream",
"var_name": "input"
}
],
"file": "baremaps-osm/src/main/java/com/baremaps/osm/reader/pbf/FileBlockSpliterator.java",
... | {
"body": "@Override\n public boolean tryAdvance(Consumer<? super FileBlock> action) {\n try {\n int headerSize = input.readInt();\n byte[] headerData = new byte[headerSize];\n input.readFully(headerData);\n Fileformat.BlobHeader header = Fileformat.BlobHeader.parseFrom(headerData);\n int... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_4 | {
"fields": [],
"file": "baremaps-osm/src/test/java/com/baremaps/osm/geometry/WayBuilderTest.java",
"identifier": "WayBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void build() {\n Geometry empty = WAY_BUILDER.build(WAY_0);\n assertNull(empty);\n Geometry linestring = WAY_BUILDER.build(WAY_1);\n assertTrue(linestring instanceof LineString);\n Geometry polygon = WAY_BUILDER.build(WAY_2);\n assertTrue(polygon instanceof Polygon);\n }"... | {
"fields": [
{
"declarator": "geometryFactory",
"modifier": "private final",
"original_string": "private final GeometryFactory geometryFactory;",
"type": "GeometryFactory",
"var_name": "geometryFactory"
},
{
"declarator": "coordinateCache",
"modifier": "private f... | {
"body": "public Geometry build(Way entity) {\n try {\n Coordinate[] coords = coordinateCache.getAll(entity.getNodes()).stream().toArray(Coordinate[]::new);\n if (coords.length > 3 && coords[0].equals(coords[coords.length - 1])) {\n return geometryFactory.createPolygon(coords);\n } else if (... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_5 | {
"fields": [
{
"declarator": "spliteratorSize = 105",
"modifier": "private",
"original_string": "private int spliteratorSize = 105;",
"type": "int",
"var_name": "spliteratorSize"
},
{
"declarator": "batchSize = 10",
"modifier": "private",
"original_string":... | {
"body": "@Test\n public void tryAdvance() throws Exception {\n for (int i = 0; i < spliteratorSize; i++) {\n assertTrue(spliterator.tryAdvance(block -> {\n }));\n }\n assertFalse(spliterator.tryAdvance(block -> {\n }));\n }",
"class_method_signature": "BatchSpliteratorTest.tryAdvance()",
... | {
"fields": [
{
"declarator": "spliterator",
"modifier": "private final",
"original_string": "private final Spliterator<T> spliterator;",
"type": "Spliterator<T>",
"var_name": "spliterator"
},
{
"declarator": "batchSize",
"modifier": "private final",
"origin... | {
"body": "@Override\n public boolean tryAdvance(Consumer<? super T> action) {\n return this.spliterator.tryAdvance(action);\n }",
"class_method_signature": "BatchSpliterator.tryAdvance(Consumer<? super T> action)",
"constructor": false,
"full_signature": "@Override public boolean tryAdvance(Consumer<? sup... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_2 | {
"fields": [],
"file": "baremaps-util/src/test/java/com/baremaps/util/storage/BlobStoreTest.java",
"identifier": "BlobStoreTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n @Tag(\"integration\")\n void accept() throws URISyntaxException {\n BlobStore blobStore = createFileSystem();\n for (String uri : createValidURIList()) {\n assertTrue(blobStore.accept(new URI(uri)));\n }\n for (String uri : createWrongURIList()) {\n assertFalse(blobStore.acc... | {
"fields": [
{
"declarator": "cache = new HashMap<>()",
"modifier": "private final",
"original_string": "private final Map<URI, Path> cache = new HashMap<>();",
"type": "Map<URI, Path>",
"var_name": "cache"
}
],
"file": "baremaps-util/src/main/java/com/baremaps/util/storage/... | {
"body": "protected abstract boolean accept(URI uri);",
"class_method_signature": "BlobStore.accept(URI uri)",
"constructor": false,
"full_signature": "protected abstract boolean accept(URI uri)",
"identifier": "accept",
"invocations": [],
"modifiers": "protected abstract",
"parameters": "(URI uri)",
... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_3 | {
"fields": [],
"file": "baremaps-osm/src/test/java/com/baremaps/osm/geometry/RelationBuilderTest.java",
"identifier": "RelationBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void build() {\n assertNull(RELATION_BUILDER.build(RELATION_0));\n assertNull(RELATION_BUILDER.build(RELATION_1));\n assertTrue(RELATION_BUILDER.build(RELATION_2) instanceof Polygon);\n assertTrue(RELATION_BUILDER.build(RELATION_3) instanceof MultiPolygon);\n assertTrue(RELAT... | {
"fields": [
{
"declarator": "geometryFactory",
"modifier": "private final",
"original_string": "private final GeometryFactory geometryFactory;",
"type": "GeometryFactory",
"var_name": "geometryFactory"
},
{
"declarator": "coordinateCache",
"modifier": "private f... | {
"body": "public Geometry build(Relation entity) {\n // Check whether the relation is a multipolygon\n Map<String, String> tags = entity.getTags();\n if (!\"multipolygon\".equals(tags.get(\"type\"))) {\n return null;\n }\n\n // Collect the members of the relation\n List<LineString> members = e... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_0 | {
"fields": [],
"file": "baremaps-export/src/test/java/com/baremaps/exporter/TileTest.java",
"identifier": "TileTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n void getTile() {\n double lon = 1062451.988597151, lat = 5965417.348546229;\n int z = 14;\n Tile tile = Tile.fromLonLat(lon, lat, 14);\n int y = (int) ((1 - Math.log(Math.tan(Math.toRadians(lat)) + 1 / Math.cos(Math.toRadians(lat)))\n / Math.PI) / 2.0 * (1 << z));\n }",
"clas... | {
"fields": [
{
"declarator": "sides = IntStream.range(0, 30)\n .map(i -> IntMath.pow(2, i))\n .toArray()",
"modifier": "private static final",
"original_string": "private static final int[] sides = IntStream.range(0, 30)\n .map(i -> IntMath.pow(2, i))\n .toArray();",
"... | {
"body": "public static Tile fromLonLat(double lon, double lat, int z) {\n int x = (int) ((lon + 180.0) / 360.0 * (1 << z));\n int y = (int) ((1 - Math.log(Math.tan(Math.toRadians(lat)) + 1 / Math.cos(Math.toRadians(lat)))\n / Math.PI) / 2.0 * (1 << z));\n return new Tile(x, y, z);\n }",
"class_me... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_1 | {
"fields": [
{
"declarator": "testQueries = ImmutableList.of(\n new TestQuery(new Query(0, 1, \"SELECT id, tags, geom FROM table\"),\n \"id\", \"tags\", \"geom\", \"table\",\n Optional.empty()),\n new TestQuery(new Query(0, 1, \"select id, tags, geom from table\"),\n \"... | {
"body": "@Test\n void parse() {\n for (TestQuery testQuery : testQueries) {\n Parse q1 = PostgisQueryParser.parse(new Layer(), testQuery.query);\n assertEquals(q1.getId(), testQuery.id);\n assertEquals(q1.getTags(), testQuery.tags);\n assertEquals(q1.getGeom(), testQuery.geom);\n assert... | {
"fields": [
{
"declarator": "QUERY_PATTERN = Pattern\n .compile(\"SELECT\\\\s(.*?)\\\\sFROM\\\\s(.*?)(?:\\\\sWHERE\\\\s(.*))?\", Pattern.CASE_INSENSITIVE)",
"modifier": "private static final",
"original_string": "private static final Pattern QUERY_PATTERN = Pattern\n .compile(\"SELEC... | {
"body": "public static Parse parse(Layer layer, Query query) {\n String sql = query.getSql().replaceAll(\"\\\\s+\",\" \").trim();\n Matcher matcher = QUERY_PATTERN.matcher(sql);\n\n if (!matcher.matches()) {\n throw new IllegalArgumentException(\"The SQL query is malformed\");\n }\n\n String sel... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_6 | {
"fields": [
{
"declarator": "spliteratorSize = 105",
"modifier": "private",
"original_string": "private int spliteratorSize = 105;",
"type": "int",
"var_name": "spliteratorSize"
},
{
"declarator": "batchSize = 10",
"modifier": "private",
"original_string":... | {
"body": "@Test\n public void trySplit() {\n Spliterator<Integer> s;\n for (int i = 0; i < spliteratorSize / batchSize; i++) {\n s = spliterator.trySplit();\n assertNotNull(s);\n assertEquals(s.estimateSize(), batchSize);\n }\n assertNotNull(spliterator);\n assertEquals(spliterator.try... | {
"fields": [
{
"declarator": "spliterator",
"modifier": "private final",
"original_string": "private final Spliterator<T> spliterator;",
"type": "Spliterator<T>",
"var_name": "spliterator"
},
{
"declarator": "batchSize",
"modifier": "private final",
"origin... | {
"body": "@Override\n public Spliterator<T> trySplit() {\n HoldingConsumer<T> holder = new HoldingConsumer<>();\n if (tryAdvance(holder)) {\n Object[] a = new Object[batchSize];\n int j = 0;\n do {\n a[j] = holder.value();\n } while (++j < batchSize && tryAdvance(holder));\n re... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
164497122_7 | {
"fields": [
{
"declarator": "spliteratorSize = 105",
"modifier": "private",
"original_string": "private int spliteratorSize = 105;",
"type": "int",
"var_name": "spliteratorSize"
},
{
"declarator": "batchSize = 10",
"modifier": "private",
"original_string":... | {
"body": "@Test\n public void estimateSize() {\n assertEquals(spliterator.estimateSize(), Long.MAX_VALUE);\n }",
"class_method_signature": "BatchSpliteratorTest.estimateSize()",
"constructor": false,
"full_signature": "@Test public void estimateSize()",
"identifier": "estimateSize",
"invocations": [
... | {
"fields": [
{
"declarator": "spliterator",
"modifier": "private final",
"original_string": "private final Spliterator<T> spliterator;",
"type": "Spliterator<T>",
"var_name": "spliterator"
},
{
"declarator": "batchSize",
"modifier": "private final",
"origin... | {
"body": "@Override\n public long estimateSize() {\n return Long.MAX_VALUE;\n }",
"class_method_signature": "BatchSpliterator.estimateSize()",
"constructor": false,
"full_signature": "@Override public long estimateSize()",
"identifier": "estimateSize",
"invocations": [],
"modifiers": "@Override publ... | {
"created": null,
"fork": null,
"fork_count": 8,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 164497122,
"size": 37108,
"stargazer_count": 31,
"stars": null,
"updates": null,
"url": "https://github.com/baremaps/baremaps"
} |
149347972_4 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGlobalValueListForMethods()\n {\n DerivedModelWithMethods model = new DerivedModelWithMethods();\n String[] expectedValues = { \"globalComplexEnumField\", \"globalStringField\" };\n String[] modelValues = model.globalValueList().toArray(new String[0]);\n ... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> globalValueList()\n {\n return valueList(false, true);\n }",
"class_method_signature": "AppConfigBaseModel.globalValueList()",
"constructor": false,
"full_signature": "public ArrayList<String> globalValueList()",
"identifier": "globalValueList",
"invocations"... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_8 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCurrentValueForFields()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n model.simpleEnumField = SimpleEnum.Value;\n model.complexEnumField = ComplexEnum.Test;\n model.stringField = \"Test string\";\n model.longField = ... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public Object getCurrentValue(String value)\n {\n Method[] methods = getClass().getDeclaredMethods();\n Object result = null;\n boolean foundMethod = false;\n for (Method method : methods)\n {\n String getMethod = \"get\" + value.substring(0, 1).toUpperCase(... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_9 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCurrentValueForMethods()\n {\n DerivedModelWithMethods model = new DerivedModelWithMethods();\n model.setSimpleEnumField(SimpleEnum.Name);\n model.setComplexEnumField(ComplexEnum.Application);\n model.setStringField(\"Another test\");\n mo... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public Object getCurrentValue(String value)\n {\n Method[] methods = getClass().getDeclaredMethods();\n Object result = null;\n boolean foundMethod = false;\n for (Method method : methods)\n {\n String getMethod = \"get\" + value.substring(0, 1).toUpperCase(... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_5 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetConfigurationCategories()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n String[] expectedValues = { \"Enums\", \"Strings\", \"Numbers\", \"Booleans\" };\n String[] modelValues = model.getConfigurationCategories().toArray(new Strin... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> getConfigurationCategories()\n {\n return getCategories(true, false);\n }",
"class_method_signature": "AppConfigBaseModel.getConfigurationCategories()",
"constructor": false,
"full_signature": "public ArrayList<String> getConfigurationCategories()",
"identifier... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_2 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGlobalValueListForFields()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n String[] expectedValues = { \"globalComplexEnumField\", \"globalStringField\" };\n String[] modelValues = model.globalValueList().toArray(new String[0]);\n ... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> globalValueList()\n {\n return valueList(false, true);\n }",
"class_method_signature": "AppConfigBaseModel.globalValueList()",
"constructor": false,
"full_signature": "public ArrayList<String> globalValueList()",
"identifier": "globalValueList",
"invocations"... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_3 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConfigurationValueListForMethods()\n {\n DerivedModelWithMethods model = new DerivedModelWithMethods();\n String[] expectedValues = { \"simpleEnumField\", \"complexEnumField\", \"stringField\", \"longField\", \"intField\", \"boolField\" };\n String[] model... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> configurationValueList()\n {\n return valueList(true, false);\n }",
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"constructor": false,
"full_signature": "public ArrayList<String> configurationValueList()",
"identifier": "configuratio... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_10 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testApplyCustomSettingsForFields()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n AppConfigStorageItem overrides = new AppConfigStorageItem();\n overrides.putString(\"simpleEnumField\", SimpleEnum.Simple.toString());\n overrides.pu... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public void applyCustomSettings(String configName, AppConfigStorageItem item)\n {\n Method[] methods = getClass().getDeclaredMethods();\n boolean foundSetter = false;\n for (Method method : methods)\n {\n method.setAccessible(true);\n if (method.isAccess... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_0 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigStorageItemTest.java",
"identifier": "AppConfigStorageItemTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testValueList()\n {\n AppConfigStorageItem item = new AppConfigStorageItem();\n item.putString(\"string\", \"test\");\n item.putString(\"extraString\", \"testExtra\");\n item.putLong(\"long\", -90234);\n item.putInt(\"int\", 512);\n item.p... | {
"fields": [
{
"declarator": "storedSettings = new HashMap<>()",
"modifier": "private",
"original_string": "private HashMap<String, Object> storedSettings = new HashMap<>();",
"type": "HashMap<String, Object>",
"var_name": "storedSettings"
}
],
"file": "DynamicAppConfigAndro... | {
"body": "public ArrayList<String> valueList()\n {\n ArrayList<String> list = new ArrayList<>();\n for (String key : storedSettings.keySet())\n {\n list.add(key);\n }\n return list;\n }",
"class_method_signature": "AppConfigStorageItem.valueList()",
"constructo... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_1 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testConfigurationValueListForFields()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n String[] expectedValues = { \"simpleEnumField\", \"complexEnumField\", \"stringField\", \"longField\", \"intField\", \"boolField\" };\n String[] modelVal... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> configurationValueList()\n {\n return valueList(true, false);\n }",
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"constructor": false,
"full_signature": "public ArrayList<String> configurationValueList()",
"identifier": "configuratio... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_11 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testApplyCustomSettingsForMethods()\n {\n DerivedModelWithMethods model = new DerivedModelWithMethods();\n AppConfigStorageItem overrides = new AppConfigStorageItem();\n overrides.putString(\"simpleEnumField\", SimpleEnum.Value.toString());\n overrides.... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public void applyCustomSettings(String configName, AppConfigStorageItem item)\n {\n Method[] methods = getClass().getDeclaredMethods();\n boolean foundSetter = false;\n for (Method method : methods)\n {\n method.setAccessible(true);\n if (method.isAccess... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_6 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetGlobalCategories()\n {\n DerivedModelWithFields model = new DerivedModelWithFields();\n String[] expectedValues = { \"GlobalEnums\", \"GlobalStrings\" };\n String[] modelValues = model.getGlobalCategories().toArray(new String[0]);\n Arrays.sort(e... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> getGlobalCategories()\n {\n return getCategories(false, true);\n }",
"class_method_signature": "AppConfigBaseModel.getGlobalCategories()",
"constructor": false,
"full_signature": "public ArrayList<String> getGlobalCategories()",
"identifier": "getGlobalCategori... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
149347972_7 | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/test/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModelTest.java",
"identifier": "AppConfigBaseModelTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetCategoriesWithUnCategorized()\n {\n DerivedModelWithMethods model = new DerivedModelWithMethods();\n String[] expectedValues = { \"Enums\", \"Strings\", \"Numbers\", \"\" };\n String[] modelValues = model.getConfigurationCategories().toArray(new String[... | {
"fields": [],
"file": "DynamicAppConfigAndroid/DynamicAppConfigLib/src/main/java/com/crescentflare/dynamicappconfig/model/AppConfigBaseModel.java",
"identifier": "AppConfigBaseModel",
"interfaces": "",
"methods": [
{
"class_method_signature": "AppConfigBaseModel.configurationValueList()",
"c... | {
"body": "public ArrayList<String> getConfigurationCategories()\n {\n return getCategories(true, false);\n }",
"class_method_signature": "AppConfigBaseModel.getConfigurationCategories()",
"constructor": false,
"full_signature": "public ArrayList<String> getConfigurationCategories()",
"identifier... | {
"created": null,
"fork": null,
"fork_count": 2,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 149347972,
"size": 409,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/crescentflare/DynamicAppConfig"
} |
69289646_11 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testGetHeaderViewsCount() {\n mRecyclerViewProxy.addHeaderView(mFirstHeaderView);\n mRecyclerViewProxy.addHeaderView(mSecondHeaderView);\n\n assertThat(mRecyclerViewProxy.getHeaderViewsCount()).isEqualTo(2);\n }",
"class_method_signature": "RecyclerViewProxyTest.testGetHead... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public int getHeaderViewsCount() {\n return mHeaderViews.size();\n }",
"class_method_signature": "RecyclerViewProxy.getHeaderViewsCount()",
"constructor": false,
"full_signature": "@Override public int getHeaderViewsCount()",
"identifier": "getHeaderViewsCount",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_5 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetAdapterNull() {\n mRecyclerViewProxy.setAdapter(mAdapter);\n mRecyclerViewProxy.setAdapter(null);\n\n verify(mRecyclerView).setAdapter(null);\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetAdapterNull()",
"constructor": false,
"full_signature": "@T... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setAdapter(Adapter adapter) {\n if (adapter == null) {\n mRecyclerViewAdapter = null;\n mListViewAdapter = null;\n mRecyclerView.setAdapter(null);\n return;\n }\n\n mListViewAdapter = adapter;\n mRecyclerViewAdapter = new LinearRecyclerViewAdapter(mR... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_9 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetOnItemClickListener() {\n mRecyclerViewProxy.setOnItemClickListener(mOnItemClickListener);\n\n verify(mRecyclerView).setOnItemClickListener(mViewOnItemClickListenerCaptor.capture());\n\n mViewOnItemClickListenerCaptor.getValue().onItemClick(mRecyclerView, mChildView, 0,... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setOnItemClickListener(final OnItemClickListener onItemClickListener) {\n LinearRecyclerView.OnItemClickListener viewOnItemClickListener = onItemClickListener == null\n ? null\n : new LinearRecyclerView.OnItemClickListener() {\n @Override\n pu... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_8 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetOnTouchListener() {\n mRecyclerViewProxy.setOnTouchListener(mOnTouchListener);\n\n verify(mRecyclerView).setOnTouchListener(eq(mOnTouchListener));\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetOnTouchListener()",
"constructor": false,
"full_signature... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setOnTouchListener(View.OnTouchListener onTouchListener) {\n mRecyclerView.setOnTouchListener(onTouchListener);\n }",
"class_method_signature": "RecyclerViewProxy.setOnTouchListener(View.OnTouchListener onTouchListener)",
"constructor": false,
"full_signature": "@Override... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_4 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetAdapter() {\n mRecyclerViewProxy.setAdapter(mAdapter);\n\n verify(mRecyclerView).setAdapter(any(Adapter.class));\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetAdapter()",
"constructor": false,
"full_signature": "@Test public void testSetAdapter()",
... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setAdapter(Adapter adapter) {\n if (adapter == null) {\n mRecyclerViewAdapter = null;\n mListViewAdapter = null;\n mRecyclerView.setAdapter(null);\n return;\n }\n\n mListViewAdapter = adapter;\n mRecyclerViewAdapter = new LinearRecyclerViewAdapter(mR... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_10 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetOnItemLongClickListener() {\n mRecyclerViewProxy.setOnItemLongClickListener(mOnItemLongClickListener);\n\n verify(mRecyclerView).setOnItemLongClickListener(mViewOnItemLongClickListenerCaptor.capture());\n\n mViewOnItemLongClickListenerCaptor.getValue().onItemLongClick(m... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setOnItemLongClickListener(final OnItemLongClickListener onItemLongClickListener) {\n LinearRecyclerView.OnItemLongClickListener viewOnItemLongClickListener =\n onItemLongClickListener == null\n ? null\n : new LinearRecyclerView.OnItemLongClickListen... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_17 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testGetItemAtPositionWithoutAdapter() {\n assertThat(mRecyclerViewProxy.getItemAtPosition(1)).isNull();\n }",
"class_method_signature": "RecyclerViewProxyTest.testGetItemAtPositionWithoutAdapter()",
"constructor": false,
"full_signature": "@Test public void testGetItemAtPosit... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public Object getItemAtPosition(int position) {\n return mRecyclerViewAdapter != null ? mRecyclerViewAdapter.getItem(position) : null;\n }",
"class_method_signature": "RecyclerViewProxy.getItemAtPosition(int position)",
"constructor": false,
"full_signature": "@Override public Object... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_3 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetRecyclerListener() {\n mRecyclerViewProxy.setRecyclerListener(mock(RecyclerListener.class));\n\n verify(mRecyclerView).setRecyclerListener(any(RecyclerView.RecyclerListener.class));\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetRecyclerListener()",
"co... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setRecyclerListener(final RecyclerListener recyclerListener) {\n RecyclerView.RecyclerListener viewRecyclerListener = recyclerListener == null\n ? null\n : new RecyclerView.RecyclerListener() {\n @Override\n public void onViewRecycled(Recycler... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_2 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testNullScrollListener() {\n OnScrollListener onScrollListener = mock(OnScrollListener.class);\n mRecyclerViewProxy.setOnScrollListener(onScrollListener);\n mRecyclerViewProxy.setOnScrollListener(null);\n\n verify(mRecyclerView).addOnScrollListener(mOnScrollListenerCaptor.c... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setOnScrollListener(OnScrollListener onScrollListener) {\n mScrollListener = onScrollListener;\n }",
"class_method_signature": "RecyclerViewProxy.setOnScrollListener(OnScrollListener onScrollListener)",
"constructor": false,
"full_signature": "@Override public void setOnS... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_16 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testGetItemAtPosition() {\n when(mAdapter.getCount()).thenReturn(2);\n when(mAdapter.getItem(1)).thenReturn(mItem);\n\n mRecyclerViewProxy.setAdapter(mAdapter);\n\n assertThat(mRecyclerViewProxy.getItemAtPosition(1)).isSameAs(mItem);\n }",
"class_method_signature": "Recy... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public Object getItemAtPosition(int position) {\n return mRecyclerViewAdapter != null ? mRecyclerViewAdapter.getItem(position) : null;\n }",
"class_method_signature": "RecyclerViewProxy.getItemAtPosition(int position)",
"constructor": false,
"full_signature": "@Override public Object... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_19 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSmoothScrollToPositionFromTopWithDelta() {\n int position = 5;\n int delta = 32;\n mRecyclerViewProxy.smoothScrollToPositionFromTop(position, delta);\n\n verify(mLayoutManager).scrollToPositionWithOffset(position, delta);\n }",
"class_method_signature": "RecyclerView... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void smoothScrollToPositionFromTop(int position, int i) {\n mRecyclerView.getLinearLayoutManager().scrollToPositionWithOffset(position, i);\n }",
"class_method_signature": "RecyclerViewProxy.smoothScrollToPositionFromTop(int position, int i)",
"constructor": false,
"full_signa... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_1 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testAddScrollListener() {\n OnScrollListener onScrollListener = mock(OnScrollListener.class);\n mRecyclerViewProxy.setOnScrollListener(onScrollListener);\n\n verify(mRecyclerView).addOnScrollListener(mOnScrollListenerCaptor.capture());\n mOnScrollListenerCaptor.getValue().o... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setOnScrollListener(OnScrollListener onScrollListener) {\n mScrollListener = onScrollListener;\n }",
"class_method_signature": "RecyclerViewProxy.setOnScrollListener(OnScrollListener onScrollListener)",
"constructor": false,
"full_signature": "@Override public void setOnS... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_15 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetSelectionAfterHeaderView() {\n mRecyclerViewProxy.addHeaderView(mFirstHeaderView);\n mRecyclerViewProxy.addHeaderView(mSecondHeaderView);\n mRecyclerViewProxy.setSelectionAfterHeaderView();\n\n verify(mRecyclerView).setSelection(2);\n }",
"class_method_signature":... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setSelectionAfterHeaderView() {\n mRecyclerView.setSelection(getHeaderViewsCount());\n }",
"class_method_signature": "RecyclerViewProxy.setSelectionAfterHeaderView()",
"constructor": false,
"full_signature": "@Override public void setSelectionAfterHeaderView()",
"identi... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_14 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetSelectionFromTop() {\n when(mRecyclerView.getClipToPadding()).thenReturn(true);\n\n mRecyclerViewProxy.setSelectionFromTop(0, 1);\n\n verify(mRecyclerView).setSelectionFromTop(0, 1);\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetSelectionFromTop()",
... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setSelectionFromTop(int position, int offset) {\n mRecyclerView.setSelectionFromTop(position, offset);\n }",
"class_method_signature": "RecyclerViewProxy.setSelectionFromTop(int position, int offset)",
"constructor": false,
"full_signature": "@Override public void setSele... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_0 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testGetView() {\n assertThat(mRecyclerViewProxy.getView()).isEqualTo(mRecyclerView);\n }",
"class_method_signature": "RecyclerViewProxyTest.testGetView()",
"constructor": false,
"full_signature": "@Test public void testGetView()",
"identifier": "testGetView",
"invocations... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public View getView() {\n return mRecyclerView;\n }",
"class_method_signature": "RecyclerViewProxy.getView()",
"constructor": false,
"full_signature": "@Override public View getView()",
"identifier": "getView",
"invocations": [],
"modifiers": "@Override public",
"parameters":... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_18 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void getPositionForView() {\n int childViewPosition = 15;\n when(mRecyclerView.getChildLayoutPosition(any(View.class))).thenReturn(childViewPosition);\n\n assertThat(mRecyclerViewProxy.getPositionForView(mChildView)).isEqualTo(childViewPosition);\n }",
"class_method_signature": ... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public int getPositionForView(View itemView) {\n return mRecyclerView.getChildLayoutPosition(itemView);\n }",
"class_method_signature": "RecyclerViewProxy.getPositionForView(View itemView)",
"constructor": false,
"full_signature": "@Override public int getPositionForView(View itemVie... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_7 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testScrollTo() {\n when(mRecyclerView.getScrollX()).thenReturn(10);\n when(mRecyclerView.getScrollY()).thenReturn(20);\n\n mRecyclerViewProxy.scrollTo(15, 25);\n\n verify(mRecyclerView).scrollBy(5, 5);\n }",
"class_method_signature": "RecyclerViewProxyTest.testScrollTo()... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void scrollTo(int x, int y) {\n int dx = x - getScrollX();\n int dy = y - getScrollY();\n\n mRecyclerView.scrollBy(dx, dy);\n }",
"class_method_signature": "RecyclerViewProxy.scrollTo(int x, int y)",
"constructor": false,
"full_signature": "@Override public void scrollTo... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_13 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testSetSelection() {\n mRecyclerViewProxy.setSelection(0);\n\n verify(mRecyclerView).setSelection(0);\n }",
"class_method_signature": "RecyclerViewProxyTest.testSetSelection()",
"constructor": false,
"full_signature": "@Test public void testSetSelection()",
"identifier":... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setSelection(int position) {\n mRecyclerView.setSelection(position);\n }",
"class_method_signature": "RecyclerViewProxy.setSelection(int position)",
"constructor": false,
"full_signature": "@Override public void setSelection(int position)",
"identifier": "setSelection",... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_12 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testDestroyDrawingCache() {\n mRecyclerViewProxy.destroyDrawingCache();\n\n verify(mRecyclerView).destroyDrawingCache();\n }",
"class_method_signature": "RecyclerViewProxyTest.testDestroyDrawingCache()",
"constructor": false,
"full_signature": "@Test public void testDestro... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void destroyDrawingCache() {\n mRecyclerView.destroyDrawingCache();\n }",
"class_method_signature": "RecyclerViewProxy.destroyDrawingCache()",
"constructor": false,
"full_signature": "@Override public void destroyDrawingCache()",
"identifier": "destroyDrawingCache",
"invoc... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
69289646_6 | {
"fields": [
{
"declarator": "mRecyclerView",
"modifier": "@Mock public",
"original_string": "@Mock public LinearRecyclerView mRecyclerView;",
"type": "LinearRecyclerView",
"var_name": "mRecyclerView"
},
{
"declarator": "mLayoutManager",
"modifier": "@Mock public... | {
"body": "@Test\n public void testDelegatedAdapterObservesDelegate() {\n ArgumentCaptor<Adapter> recyclerAdapter = ArgumentCaptor.forClass(Adapter.class);\n RecyclerView.AdapterDataObserver mockObserver = mock(RecyclerView.AdapterDataObserver.class);\n ArgumentCaptor<DataSetObserver> observer = ArgumentCap... | {
"fields": [
{
"declarator": "UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\"",
"modifier": "private static final",
"original_string": "private static final String UNIMPLEMENTED_METHOD =\n \"RecyclerViewProxy has not yet implemented this method.\";"... | {
"body": "@Override\n public void setAdapter(Adapter adapter) {\n if (adapter == null) {\n mRecyclerViewAdapter = null;\n mListViewAdapter = null;\n mRecyclerView.setAdapter(null);\n return;\n }\n\n mListViewAdapter = adapter;\n mRecyclerViewAdapter = new LinearRecyclerViewAdapter(mR... | {
"created": null,
"fork": null,
"fork_count": 3,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 69289646,
"size": 101,
"stargazer_count": 11,
"stars": null,
"updates": null,
"url": "https://github.com/fbsamples/ListViewToRecyclerView"
} |
1176274_2 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerMove_largeMovement_true() {\n\t\twhen(player.getLocation()).thenReturn(new Location(world, 5, 1, 3));\n\n\t\tassertTrue(job.hasPlayerMoved());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerMove_largeMovement_true()",
"constructor": false,
"full_signa... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerMoved() {\n\t\tfinal double MAX_MOVE_TOLERANCE = 1.5;\n\t\treturn distance3D(player.getLocation(), originalLocation) > MAX_MOVE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerMoved()",
"constructor": false,
"full_signature": " boolean hasPlayerMoved()",
"id... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
1176274_3 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerDamage_noDamage_false() {\n\t\twhen(player.getHealth()).thenReturn(20.0);\n\n\t\tassertFalse(job.hasPlayerTakenDamage());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerDamage_noDamage_false()",
"constructor": false,
"full_signature": "@Test public vo... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerTakenDamage() {\n\t\tfinal double MAX_DAMAGE_TOLERANCE = 2;\n\t\treturn Math.abs(originalHealth - player.getHealth()) > MAX_DAMAGE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerTakenDamage()",
"constructor": false,
"full_signature": " boolean hasPlayerTakenD... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
1176274_4 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerDamage_slightDamage_false() {\n\t\twhen(player.getHealth()).thenReturn(19.5);\n\n\t\tassertFalse(job.hasPlayerTakenDamage());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerDamage_slightDamage_false()",
"constructor": false,
"full_signature": "@Test p... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerTakenDamage() {\n\t\tfinal double MAX_DAMAGE_TOLERANCE = 2;\n\t\treturn Math.abs(originalHealth - player.getHealth()) > MAX_DAMAGE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerTakenDamage()",
"constructor": false,
"full_signature": " boolean hasPlayerTakenD... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
1176274_5 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerDamage_largeDamage_true() {\n\t\twhen(player.getHealth()).thenReturn(14.0);\n\n\t\tassertTrue(job.hasPlayerTakenDamage());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerDamage_largeDamage_true()",
"constructor": false,
"full_signature": "@Test public... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerTakenDamage() {\n\t\tfinal double MAX_DAMAGE_TOLERANCE = 2;\n\t\treturn Math.abs(originalHealth - player.getHealth()) > MAX_DAMAGE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerTakenDamage()",
"constructor": false,
"full_signature": " boolean hasPlayerTakenD... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
1176274_0 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerMove_noMovement_false() {\n\t\twhen(player.getLocation()).thenReturn(new Location(world, 0, 0, 0));\n\n\t\tassertFalse(job.hasPlayerMoved());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerMove_noMovement_false()",
"constructor": false,
"full_signatur... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerMoved() {\n\t\tfinal double MAX_MOVE_TOLERANCE = 1.5;\n\t\treturn distance3D(player.getLocation(), originalLocation) > MAX_MOVE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerMoved()",
"constructor": false,
"full_signature": " boolean hasPlayerMoved()",
"id... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
1176274_1 | {
"fields": [
{
"declarator": "world",
"modifier": "",
"original_string": "World world;",
"type": "World",
"var_name": "world"
},
{
"declarator": "player",
"modifier": "",
"original_string": "Player player;",
"type": "Player",
"var_name": "player... | {
"body": "@Test\n\tpublic void testPlayerMove_smallMovement_false() {\n\t\twhen(player.getLocation()).thenReturn(new Location(world, 0.5, 0.5, 0.5));\n\n\t\tassertFalse(job.hasPlayerMoved());\n\t}",
"class_method_signature": "TeleportPlayerJobTest.testPlayerMove_smallMovement_false()",
"constructor": false,
"f... | {
"fields": [
{
"declarator": "player",
"modifier": "private final",
"original_string": "private final Player player;",
"type": "Player",
"var_name": "player"
},
{
"declarator": "location",
"modifier": "private final",
"original_string": "private final Locat... | {
"body": "boolean hasPlayerMoved() {\n\t\tfinal double MAX_MOVE_TOLERANCE = 1.5;\n\t\treturn distance3D(player.getLocation(), originalLocation) > MAX_MOVE_TOLERANCE;\n\t}",
"class_method_signature": "TeleportPlayerJob.hasPlayerMoved()",
"constructor": false,
"full_signature": " boolean hasPlayerMoved()",
"id... | {
"created": null,
"fork": null,
"fork_count": 83,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 1176274,
"size": 5914,
"stargazer_count": 65,
"stars": null,
"updates": null,
"url": "https://github.com/taoneill/war"
} |
84863865_0 | {
"fields": [],
"file": "CutletBenchmark/src/test/java/com/cutlet/benchmark/OptimizerBenchmarkTest.java",
"identifier": "OptimizerBenchmarkTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = new String[]{};\n OptimizerBenchmark.main(args);\n }",
"class_method_signature": "OptimizerBenchmarkTest.testMain()",
"constructor": false,
"full_signature": "@Test public void testMain()",
... | {
"fields": [
{
"declarator": "log = Logger.getLogger(\"benchmark\")",
"modifier": "private final",
"original_string": "private final Logger log = Logger.getLogger(\"benchmark\");",
"type": "Logger",
"var_name": "log"
}
],
"file": "CutletBenchmark/src/main/java/com/cutlet/ben... | {
"body": "public static void main(String... args) {\n\n setDebugLevel(Level.SEVERE);\n\n System.err.println(\"benchtmark\");\n\n (new OptimizerBenchmark()).runBenchmarks();\n }",
"class_method_signature": "OptimizerBenchmark.main(String... args)",
"constructor": false,
"full_signature":... | {
"created": null,
"fork": null,
"fork_count": 6,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 84863865,
"size": 109,
"stargazer_count": 14,
"stars": null,
"updates": null,
"url": "https://github.com/mru00/cutlet"
} |
97935002_3 | {
"fields": [
{
"declarator": "ENDPOINT_ADDRESS =\n \"http://localhost:9080/codenotfound/services/helloworld\"",
"modifier": "private static",
"original_string": "private static String ENDPOINT_ADDRESS =\n \"http://localhost:9080/codenotfound/services/helloworld\";",
"type": "Str... | {
"body": "@Test\n public void testSayHelloProxy() {\n Person person = new Person();\n person.setFirstName(\"Jane\");\n person.setLastName(\"Doe\");\n\n Greeting greeting = helloWorldRequesterProxy.sayHello(person);\n assertEquals(\"Hello Jane Doe!\", greeting.getText());\n }",
"class_method_signat... | {
"fields": [
{
"declarator": "LOGGER =\n LoggerFactory.getLogger(HelloWorldImpl.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER =\n LoggerFactory.getLogger(HelloWorldImpl.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "@Override\n public Greeting sayHello(Person person) {\n\n String firstName = person.getFirstName();\n LOGGER.info(\"firstName={}\", firstName);\n String lasttName = person.getLastName();\n LOGGER.info(\"lastName={}\", lasttName);\n\n ObjectFactory factory = new ObjectFactory();\n Greetin... | {
"created": null,
"fork": null,
"fork_count": 64,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 97935002,
"size": 93,
"stargazer_count": 22,
"stars": null,
"updates": null,
"url": "https://github.com/code-not-found/cxf-jaxws"
} |
65993144_119 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/locale/LocaleValidatorTest.java",
"identifier": "LocaleValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = LocaleValidationException.class)\n public void testNullLocale() throws Exception {\n LocaleValidator.validateLocale(null);\n }",
"class_method_signature": "LocaleValidatorTest.testNullLocale()",
"constructor": false,
"full_signature": "@Test(expected = LocaleValidationEx... | {
"fields": [],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/locale/LocaleValidator.java",
"identifier": "LocaleValidator",
"interfaces": "",
"methods": [
{
"class_method_signature": "LocaleValidator.LocaleValidator()",
"constructor": true,
"full_signature": "pr... | {
"body": "public static void validateLocale(String str) throws LocaleValidationException {\n if (StringUtils.isBlank(str)) {\n throw new LocaleValidationException(\"Locale must be set.\");\n }\n\n try {\n Locale locale = LocaleHelper.fromITunesLocale(str);\n\n if... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_71 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void guess4BC_noStereo() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR, FC, LFE, SL, SR}\n ... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_26 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test(expected = TemplateParameterNotFoundException.class)\n public void exceptionOnIncorrectResourceParameterSequence() {\n // we have only 2 sequences (0 and 1)\n resolver.resolveTemplateParameter(\"%{resource.essence}\",\n new ContextInfoBuilder()\n ... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_158 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test\n public void additionalAudioCountForFourSequencesWithOneQuadOthersTwoChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepa... | {
"fields": [
{
"declarator": "INTERMEDIATE_KEY_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String INTERMEDIATE_KEY_SEPARATOR = \":\";",
"type": "String",
"var_name": "INTERMEDIATE_KEY_SEPARATOR"
},
{
"declarator": "l... | {
"body": "public int getAdditionalAudioCount() {\n return alternativesAudio.size();\n }",
"class_method_signature": "AudioMapXmlProvider.getAdditionalAudioCount()",
"constructor": false,
"full_signature": "public int getAdditionalAudioCount()",
"identifier": "getAdditionalAudioCount",
"invocation... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_30 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/asset/AssetMapParserTest.java",
"identifier": "AssetMapParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseCorrectConfig() throws Exception {\n AssetMap assetMap = new AssetMapParser().parse(ImpUtils.getImpFolder(), ImpUtils.getCorrectAssetmap());\n\n // the values as in ASSETMAP.xml\n // assetMap must contain full paths!\n assertEquals(ImpUtils.getAbs... | {
"fields": [],
"file": "imf-conversion-core/src/main/java/com/netflix/imfutility/asset/AssetMapParser.java",
"identifier": "AssetMapParser",
"interfaces": "",
"methods": [
{
"class_method_signature": "AssetMapParser.parse(File impDirectory, File assetMapFile)",
"constructor": false,
"fu... | {
"body": "public final AssetMap parse(File impDirectory, File assetMapFile) throws XmlParsingException, FileNotFoundException {\n if (!assetMapFile.isFile()) {\n throw new FileNotFoundException(String.format(\"Invalid ASSETMAP file: '%s' not found\", assetMapFile.getAbsolutePath()));\n }\n\n... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_67 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test\n public void guess4B_twoStereo() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FR, FL}\n });\n\n AudioMapType audioMap = new AudioMapG... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_88 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void guess16F_threeStereo_sameLang_12() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, F... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_174 | {
"fields": [
{
"declarator": "userDir",
"modifier": "private static",
"original_string": "private static String userDir;",
"type": "String",
"var_name": "userDir"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/chapters/ChaptersXmlProviderTest.jav... | {
"body": "@Test\n public void testGenerateSampleChapters() throws Exception {\n File chaptersFile = new File(TemplateParameterContextCreator.getWorkingDir(), \"sample_chapters.xml\");\n ChaptersXmlProvider.generateSampleXml(chaptersFile);\n\n assertEquals(new File(TemplateParameterContextCrea... | {
"fields": [
{
"declarator": "chapters",
"modifier": "private final",
"original_string": "private final InputChapterList chapters;",
"type": "InputChapterList",
"var_name": "chapters"
},
{
"declarator": "baseDir",
"modifier": "private final",
"original_stri... | {
"body": "public static void generateSampleXml(String path) {\n generateSampleXml(new File(path));\n }",
"class_method_signature": "ChaptersXmlProvider.generateSampleXml(String path)",
"constructor": false,
"full_signature": "public static void generateSampleXml(String path)",
"identifier": "genera... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_123 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCorrectFilmProviderCreation() throws Exception {\n MetadataXmlProvider<?> provider = MetadataXmlProviderFactory.createProvider(\n MetadataUtils.getCorrectFilmMetadataXml(), ITunesPackageType.tv);\n\n assertTrue(provider instanceof FilmMetadataXmlProvi... | {
"fields": [],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactory.java",
"identifier": "MetadataXmlProviderFactory",
"interfaces": "",
"methods": [
{
"class_method_signature": "MetadataXmlProviderFactory.MetadataXmlProviderFactory()",
... | {
"body": "public static MetadataXmlProvider<?> createProvider(File metadataFile, ITunesPackageType fallbackPackageType)\n throws XmlParsingException, IOException {\n\n ITunesPackageType packageType = metadataFile != null\n ? resolveTypeFromFile(metadataFile)\n : fallba... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_5 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test\n public void resolvesCorrectDestContext() {\n String resolved1 = resolver.resolveTemplateParameter(\"%{dest.dest1}\", ContextInfo.EMPTY);\n String resolved2 = resolver.resolveTemplateParameter(\"%{dest.dest2}\", ContextInfo.EMPTY);\n\n assertNotNull(resolved1);\n asser... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_135 | {
"fields": [
{
"declarator": "metadataXmlProvider",
"modifier": "private",
"original_string": "private FakeMetadataXmlProvider metadataXmlProvider;",
"type": "FakeMetadataXmlProvider",
"var_name": "metadataXmlProvider"
},
{
"declarator": "destDir",
"modifier": "p... | {
"body": "@Test\n public void testCorrectSubtitles() throws Exception {\n SubtitlesAssetProcessor processor = new SubtitlesAssetProcessor(metadataXmlProvider, destDir);\n\n processor.setLocale(Locale.CANADA_FRENCH)\n .process(inputAsset);\n\n // input asset must be moved to des... | {
"fields": [
{
"declarator": "locale",
"modifier": "private",
"original_string": "private Locale locale;",
"type": "Locale",
"var_name": "locale"
}
],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/asset/SubtitlesAssetProcessor.java",
"identifier": ... | {
"body": "public SubtitlesAssetProcessor setLocale(Locale locale) {\n this.locale = locale;\n return this;\n }",
"class_method_signature": "SubtitlesAssetProcessor.setLocale(Locale locale)",
"constructor": false,
"full_signature": "public SubtitlesAssetProcessor setLocale(Locale locale)",
"i... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_162 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test\n public void mainAudioForThreeSequencesWithFourSixFourChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVirtualTra... | {
"fields": [
{
"declarator": "INTERMEDIATE_KEY_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String INTERMEDIATE_KEY_SEPARATOR = \":\";",
"type": "String",
"var_name": "INTERMEDIATE_KEY_SEPARATOR"
},
{
"declarator": "l... | {
"body": "public String getMainAudioFileName() {\n return mainAudio.getFileName();\n }",
"class_method_signature": "AudioMapXmlProvider.getMainAudioFileName()",
"constructor": false,
"full_signature": "public String getMainAudioFileName()",
"identifier": "getMainAudioFileName",
"invocations": [
... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_92 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void guess16F_fourStereo_diffLang() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR}, ... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_115 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/locale/LocaleHelperTest.java",
"identifier": "LocaleHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testToITunesLocale() throws Exception {\n String locale;\n\n locale = LocaleHelper.toITunesLocale(Locale.ENGLISH);\n assertEquals(\"en\", locale);\n\n locale = LocaleHelper.toITunesLocale(Locale.UK);\n assertEquals(\"en-GB\", locale);\n }",
"cl... | {
"fields": [
{
"declarator": "DEFAULT_REGIONS = Collections.unmodifiableMap(new LinkedHashMap<String, Locale>() {\n {\n put(\"en\", Locale.US);\n put(\"fr\", Locale.FRANCE);\n put(\"pt\", LocaleUtils.toLocale(\"pt_PT\"));\n put(\"es\", LocaleUtils.toLocale... | {
"body": "public static String toITunesLocale(Locale locale) {\n return locale.toString().replace(\"_\", \"-\");\n }",
"class_method_signature": "LocaleHelper.toITunesLocale(Locale locale)",
"constructor": false,
"full_signature": "public static String toITunesLocale(Locale locale)",
"identifier": ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_142 | {
"fields": [
{
"declarator": "metadataXmlProvider",
"modifier": "private",
"original_string": "private FakeMetadataXmlProvider metadataXmlProvider;",
"type": "FakeMetadataXmlProvider",
"var_name": "metadataXmlProvider"
}
],
"file": "itunes-conversion/src/test/java/com/netfli... | {
"body": "@Test(expected = ConversionException.class)\n public void testInvalidPath() throws Exception {\n SourceAssetProcessor processor = new SourceAssetProcessor(metadataXmlProvider,\n TemplateParameterContextCreator.getWorkingDir());\n\n processor.setLocale(Locale.US)\n ... | {
"fields": [
{
"declarator": "locale",
"modifier": "private",
"original_string": "private Locale locale;",
"type": "Locale",
"var_name": "locale"
}
],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/asset/SourceAssetProcessor.java",
"identifier": "So... | {
"body": "public SourceAssetProcessor setLocale(Locale locale) {\n this.locale = locale;\n return this;\n }",
"class_method_signature": "SourceAssetProcessor.setLocale(Locale locale)",
"constructor": false,
"full_signature": "public SourceAssetProcessor setLocale(Locale locale)",
"identifier... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_154 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = ConversionException.class)\n public void emptyOption3WithoutEnoughSequencesChanneslThrowsException() throws Exception {\n String seq1 = \"urn:uuid:63b41d86-c5df-4169-b036-3a25024bd711\";\n TemplateParameterContextProvider contextProvider =\n TemplateParamete... | {
"fields": [
{
"declarator": "INTERMEDIATE_KEY_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String INTERMEDIATE_KEY_SEPARATOR = \":\";",
"type": "String",
"var_name": "INTERMEDIATE_KEY_SEPARATOR"
},
{
"declarator": "l... | {
"body": "AudioOption getMainAudio() {\n return mainAudio;\n }",
"class_method_signature": "AudioMapXmlProvider.getMainAudio()",
"constructor": false,
"full_signature": " AudioOption getMainAudio()",
"identifier": "getMainAudio",
"invocations": [],
"modifiers": "",
"parameters": "()",
"retu... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_84 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void guess16D_two51_oneLang() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR, FC, LFE, SL, SR},... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_103 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test\n public void generateDefaultAudiomap2AEqualChannels() throws Exception {\n // fil CPL context with the number of channels for each virtual track\n TemplateParameterContextProvider contextProvider = TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVi... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapXmlProvider.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapXmlProvider.class));",
"type": "Logger",
"var_name"... | {
"body": "public AudioMapType getAudioMap() {\n return this.audioMap;\n }",
"class_method_signature": "AudioMapXmlProvider.getAudioMap()",
"constructor": false,
"full_signature": "public AudioMapType getAudioMap()",
"identifier": "getAudioMap",
"invocations": [],
"modifiers": "public",
"param... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_10 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test(expected = UnknownTemplateParameterContextException.class)\n public void exceptionOnIncorrectParameterContext() {\n resolver.resolveTemplateParameter(\"%{xxxx.toolSimple}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnIncorrectParameter... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_178 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/ttml/TtmlParagraphResolverTest.java",
"identifier": "TtmlParagraphResolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGapBetweenParagraphs() {\n PEltype p1 = TtmlTestUtils.createP(\"00:00:01:00\", \"00:00:04:00\", \"p1\");\n PEltype p2 = TtmlTestUtils.createP(\"00:00:10:00\", \"00:00:14:00\", \"p2\");\n TtEltype tt = TtmlTestUtils.wrapPs(p1, p2);\n\n new TtmlParagraph... | {
"fields": [
{
"declarator": "tt",
"modifier": "private final",
"original_string": "private final TtEltype tt;",
"type": "TtEltype",
"var_name": "tt"
},
{
"declarator": "frameRate",
"modifier": "private final",
"original_string": "private final BigFraction ... | {
"body": "public void resolveTimeOverlaps() {\n DivEltype div = tt.getBody().getDiv().stream()\n .findFirst()\n .orElseThrow(() -> new ConvertException(\"At least one <div> must be defined.\"));\n\n List<PEltype> sliced = split(pStream(div.getBlockClass()))\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_47 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/mediainfo/MediaInfoContextBuilderTest.java",
"identifier": "MediaInfoContextBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = XmlParsingException.class)\n public void testParseBrokenXmlAudio() throws Exception {\n new TestMediaInfoContextBuilder(MediaInfoUtils.getCorrectMediaInfoVideo(), MediaInfoUtils.getBrokenXmlMediaInfoAudio())\n .build();\n }",
"class_method_signature": "MediaIn... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "executeStrat... | {
"body": "public void build() throws IOException, XmlParsingException, MediaInfoException {\n SequenceTemplateParameterContext sequenceContext = contextProvider.getSequenceContext();\n for (SequenceType seqType : sequenceContext.getSequenceTypes()) {\n for (SequenceUUID seqUuid : sequenceCon... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_51 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/mediainfo/MediaInfoContextBuilderTest.java",
"identifier": "MediaInfoContextBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = FileNotFoundException.class)\n public void testParseInvalidFilePathAudio() throws Exception {\n new TestMediaInfoContextBuilder(MediaInfoUtils.getCorrectMediaInfoVideo(), new File(\"invalid-path\"))\n .build();\n }",
"class_method_signature": "MediaInfoContext... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "executeStrat... | {
"body": "public void build() throws IOException, XmlParsingException, MediaInfoException {\n SequenceTemplateParameterContext sequenceContext = contextProvider.getSequenceContext();\n for (SequenceType seqType : sequenceContext.getSequenceTypes()) {\n for (SequenceUUID seqUuid : sequenceCon... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_139 | {
"fields": [
{
"declarator": "metadataXmlProvider",
"modifier": "private",
"original_string": "private FakeMetadataXmlProvider metadataXmlProvider;",
"type": "FakeMetadataXmlProvider",
"var_name": "metadataXmlProvider"
},
{
"declarator": "destDir",
"modifier": "p... | {
"body": "@Test\n public void testCorrectAudio() throws Exception {\n AudioAssetProcessor processor = new AudioAssetProcessor(metadataXmlProvider, destDir);\n\n processor.setLocale(Locale.US)\n .process(inputAsset);\n\n // input asset must be moved to dest dir\n assertFa... | {
"fields": [
{
"declarator": "locale",
"modifier": "private",
"original_string": "private Locale locale;",
"type": "Locale",
"var_name": "locale"
}
],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/asset/AudioAssetProcessor.java",
"identifier": "Aud... | {
"body": "public AudioAssetProcessor setLocale(Locale locale) {\n this.locale = locale;\n return this;\n }",
"class_method_signature": "AudioAssetProcessor.setLocale(Locale locale)",
"constructor": false,
"full_signature": "public AudioAssetProcessor setLocale(Locale locale)",
"identifier": ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_9 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test\n public void resolvesCorrectResourceContext() {\n for (int segm = 0; segm < SEGMENT_COUNT; segm++) {\n for (SequenceType seqType : SEQUENCE_TYPES) {\n for (int seq = 0; seq < SEQ_COUNT; seq++) {\n for (int res = 0; res < RESOURCE_COUNT; res++) {... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_181 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/ttml/TtmlTimeConverterTest.java",
"identifier": "TtmlTimeConverterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void clockTimeWithoutFractionsAndFramesParsedCorrecly() {\n /* PREPARATION */\n TtmlTimeConverter converter = new TtmlTimeConverter(new TtEltype());\n int h = 1;\n int m = 2;\n int s = 3;\n String timeExpression = String.format(\"%02d:%02d:%02d\",... | {
"fields": [
{
"declarator": "frameRate",
"modifier": "private final",
"original_string": "private final int frameRate;",
"type": "int",
"var_name": "frameRate"
},
{
"declarator": "frNumerator",
"modifier": "private final",
"original_string": "private final... | {
"body": "public long parseTimeExpression(String timeExpression) {\n int mSeconds = 0;\n if (timeExpression == null || timeExpression.isEmpty()) {\n return mSeconds;\n }\n\n if (timeExpression.contains(\":\")) {\n // clock time\n String[] parts = timeExpre... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_180 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/ttml/TtmlParagraphResolverTest.java",
"identifier": "TtmlParagraphResolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testStyleAndRegionsMerge() {\n PEltype p1 = TtmlTestUtils.createPWithRegionAndStyle(\"00:00:01:00\", \"00:00:08:00\", \"p1\", \"region1\", \"style1\");\n PEltype p2 = TtmlTestUtils.createPWithRegionAndStyle(\"00:00:03:00\", \"00:00:10:00\", \"p2\", \"region2\", \"style2... | {
"fields": [
{
"declarator": "tt",
"modifier": "private final",
"original_string": "private final TtEltype tt;",
"type": "TtEltype",
"var_name": "tt"
},
{
"declarator": "frameRate",
"modifier": "private final",
"original_string": "private final BigFraction ... | {
"body": "public void resolveTimeOverlaps() {\n DivEltype div = tt.getBody().getDiv().stream()\n .findFirst()\n .orElseThrow(() -> new ConvertException(\"At least one <div> must be defined.\"));\n\n List<PEltype> sliced = split(pStream(div.getBlockClass()))\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_8 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test\n public void resolvesCorrectSequenceContext() {\n for (SequenceType seqType : SEQUENCE_TYPES) {\n for (int seq = 0; seq < SEQ_COUNT; seq++) {\n ContextInfo contextInfo = new ContextInfoBuilder()\n .setSequenceUuid(getSequenceUuid(seq, seqTyp... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_138 | {
"fields": [
{
"declarator": "metadataXmlProvider",
"modifier": "private",
"original_string": "private FakeMetadataXmlProvider metadataXmlProvider;",
"type": "FakeMetadataXmlProvider",
"var_name": "metadataXmlProvider"
}
],
"file": "itunes-conversion/src/test/java/com/netfli... | {
"body": "@Test(expected = AssetValidationException.class)\n public void testParametersNotSet() throws Exception {\n PosterAssetProcessor processor = new PosterAssetProcessor(metadataXmlProvider,\n TemplateParameterContextCreator.getWorkingDir());\n\n // vendor_id required\n p... | {
"fields": [
{
"declarator": "vendorId",
"modifier": "private",
"original_string": "private String vendorId;",
"type": "String",
"var_name": "vendorId"
},
{
"declarator": "locale",
"modifier": "private",
"original_string": "private Locale locale;",
"t... | {
"body": "public PosterAssetProcessor setLocale(Locale locale) {\n this.locale = locale;\n return this;\n }",
"class_method_signature": "PosterAssetProcessor.setLocale(Locale locale)",
"constructor": false,
"full_signature": "public PosterAssetProcessor setLocale(Locale locale)",
"identifier... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_50 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/mediainfo/MediaInfoContextBuilderTest.java",
"identifier": "MediaInfoContextBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = FileNotFoundException.class)\n public void testParseInvalidFilePathVideo() throws Exception {\n new TestMediaInfoContextBuilder(new File(\"invalid-path\"), MediaInfoUtils.getCorrectMediaInfoAudio())\n .build();\n }",
"class_method_signature": "MediaInfoContext... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "executeStrat... | {
"body": "public void build() throws IOException, XmlParsingException, MediaInfoException {\n SequenceTemplateParameterContext sequenceContext = contextProvider.getSequenceContext();\n for (SequenceType seqType : sequenceContext.getSequenceTypes()) {\n for (SequenceUUID seqUuid : sequenceCon... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_46 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/mediainfo/MediaInfoContextBuilderTest.java",
"identifier": "MediaInfoContextBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = XmlParsingException.class)\n public void testParseBrokenXmlVideo() throws Exception {\n new TestMediaInfoContextBuilder(MediaInfoUtils.getBrokenXmlMediaInfoVideo(), MediaInfoUtils.getCorrectMediaInfoAudio())\n .build();\n }",
"class_method_signature": "MediaIn... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "executeStrat... | {
"body": "public void build() throws IOException, XmlParsingException, MediaInfoException {\n SequenceTemplateParameterContext sequenceContext = contextProvider.getSequenceContext();\n for (SequenceType seqType : sequenceContext.getSequenceTypes()) {\n for (SequenceUUID seqUuid : sequenceCon... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_179 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/ttml/TtmlParagraphResolverTest.java",
"identifier": "TtmlParagraphResolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNestedParagraphs() {\n PEltype p1 = TtmlTestUtils.createP(\"00:00:01:00\", \"00:00:10:00\", \"p1\");\n PEltype p2 = TtmlTestUtils.createP(\"00:00:03:00\", \"00:00:08:00\", \"p2\");\n PEltype p3 = TtmlTestUtils.createP(\"00:00:05:00\", \"00:00:06:00\", \"p3\")... | {
"fields": [
{
"declarator": "tt",
"modifier": "private final",
"original_string": "private final TtEltype tt;",
"type": "TtEltype",
"var_name": "tt"
},
{
"declarator": "frameRate",
"modifier": "private final",
"original_string": "private final BigFraction ... | {
"body": "public void resolveTimeOverlaps() {\n DivEltype div = tt.getBody().getDiv().stream()\n .findFirst()\n .orElseThrow(() -> new ConvertException(\"At least one <div> must be defined.\"));\n\n List<PEltype> sliced = split(pStream(div.getBlockClass()))\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_196 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ParseException.class)\n public void ttmlOptionIsNotSetThenThrowException() {\n /* PREPARATION */\n String[] args = new String[]{\"-o\", \"test\"};\n\n /* EXECUTION */\n new TtmlConverterCmdLineParser().parse(args);\n\n /* VALIDATION */\n }",
"clas... | {
"fields": [
{
"declarator": "options = new Options()",
"modifier": "private final",
"original_string": "private final Options options = new Options();",
"type": "Options",
"var_name": "options"
},
{
"declarator": "help",
"modifier": "private",
"original_st... | {
"body": "public TtmlConverterCmdLineParams parse(String[] args) throws ParseException {\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLineParams();\n\n CommandLineParser parser = new DefaultParser();\n CommandLine line;\n try {\n line = parser.parse(options, args);... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_11 | {
"fields": [
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
"original_string": "private static final int SEGMENT_COUNT = 2;",
"type": "int",
"var_name": "SEGMENT_COUNT"
},
{
"declarator": "SEQ_COUNT = 2",
"modifier": "private static fina... | {
"body": "@Test(expected = TemplateParameterNotFoundException.class)\n public void exceptionOnIncorrectToolParameterName() {\n resolver.resolveTemplateParameter(\"%{tool.xxxx}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnIncorrectToolParameterName()"... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public String resolveTemplateParameter(String parameterStr, ContextInfo contextInfo) {\n String unresolvedParam = parameterStr;\n String resolvedParam = null;\n // resolve all sub-parameters, such as %{dynamic.%{segm.num}}\n while (!unresolvedParam.equals(resolvedParam)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_102 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test\n public void getAudioMapParameter16C() throws Exception {\n // fil CPL context with the number of channels for each virtual track\n TemplateParameterContextProvider contextProvider = TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVirtualTracksWith... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapXmlProvider.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapXmlProvider.class));",
"type": "Logger",
"var_name"... | {
"body": "public String getPanParameter() {\n // 2. How many channels we need to map\n Integer channelCountToMap = getChannelCountToMap();\n\n // 3. Build reverse map of mapped channels.\n Map<Integer, EBUTrackType> mappedChannels = new HashMap<>();\n for (EBUTrackType ebuTrackItem... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_85 | {
"fields": [],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/audio/AudioMapGuesserTest.java",
"identifier": "AudioMapGuesserTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void guess16D_one51() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR, FC, LFE, SL, SR}\n ... | {
"fields": [
{
"declarator": "logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(LoggerFactory.getLogger(AudioMapGuesser.class));",
"type": "Logger",
"var_name": "logge... | {
"body": "public AudioMapType guessAudioMap() throws InvalidAudioChannelAssignmentException {\n if (contextProvider.getSequenceContext().getSequenceCount(SequenceType.AUDIO) == 0) {\n return null;\n }\n\n logger.debug(\"Trying to generate an audiomap.xml based on the EssenceDescriptor... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_155 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/AudioMapXmlProviderTest.java",
"identifier": "AudioMapXmlProviderTest",
"interfaces": "",
"superclass": "extends ImfUtilityTest"
} | {
"body": "@Test(expected = ConversionException.class)\n public void emptyOption4WithoutEnoughSequencesChanneslThrowsException() throws Exception {\n String seq1 = \"urn:uuid:63b41d86-c5df-4169-b036-3a25024bd711\";\n TemplateParameterContextProvider contextProvider =\n TemplateParamete... | {
"fields": [
{
"declarator": "INTERMEDIATE_KEY_SEPARATOR = \":\"",
"modifier": "private static final",
"original_string": "private static final String INTERMEDIATE_KEY_SEPARATOR = \":\";",
"type": "String",
"var_name": "INTERMEDIATE_KEY_SEPARATOR"
},
{
"declarator": "l... | {
"body": "AudioOption getMainAudio() {\n return mainAudio;\n }",
"class_method_signature": "AudioMapXmlProvider.getMainAudio()",
"constructor": false,
"full_signature": " AudioOption getMainAudio()",
"identifier": "getMainAudio",
"invocations": [],
"modifiers": "",
"parameters": "()",
"retu... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
65993144_143 | {
"fields": [
{
"declarator": "metadataXmlProvider",
"modifier": "private",
"original_string": "private FakeMetadataXmlProvider metadataXmlProvider;",
"type": "FakeMetadataXmlProvider",
"var_name": "metadataXmlProvider"
}
],
"file": "itunes-conversion/src/test/java/com/netfli... | {
"body": "@Test(expected = AssetValidationException.class)\n public void testParametersNotSet() throws Exception {\n CaptionsAssetProcessor processor = new CaptionsAssetProcessor(metadataXmlProvider,\n TemplateParameterContextCreator.getWorkingDir());\n\n processor.setVendorId(\"vendo... | {
"fields": [
{
"declarator": "vendorId",
"modifier": "private",
"original_string": "private String vendorId;",
"type": "String",
"var_name": "vendorId"
},
{
"declarator": "locale",
"modifier": "private",
"original_string": "private Locale locale;",
"t... | {
"body": "public CaptionsAssetProcessor setVendorId(String vendorId) {\n this.vendorId = vendorId;\n return this;\n }",
"class_method_signature": "CaptionsAssetProcessor.setVendorId(String vendorId)",
"constructor": false,
"full_signature": "public CaptionsAssetProcessor setVendorId(String ven... | {
"created": null,
"fork": null,
"fork_count": 4,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 65993144,
"size": 22619,
"stargazer_count": 51,
"stars": null,
"updates": null,
"url": "https://github.com/DSRCorporation/imf-conversion"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.