id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
65993144_114 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/locale/LocaleHelperTest.java",
"identifier": "LocaleHelperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFromITunesLocale() throws Exception {\n Locale locale;\n\n locale = LocaleHelper.fromITunesLocale(\"en\");\n assertEquals(Locale.ENGLISH, locale);\n\n locale = LocaleHelper.fromITunesLocale(\"en-GB\");\n assertEquals(Locale.UK, locale);\n\n ... | {
"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 Locale fromITunesLocale(String locale) {\n return LocaleUtils.toLocale(locale.replace(\"-\", \"_\"));\n }",
"class_method_signature": "LocaleHelper.fromITunesLocale(String locale)",
"constructor": false,
"full_signature": "public static Locale fromITunesLocale(String locale)",... | {
"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_93 | {
"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 guess16C_twoStereo_two51_multipleResources() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(4, 2, 2,\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR}, {FL, FR}, {FL, FR},\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_163 | {
"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 mainAudioTracksForThreeSequencesWithFourSixFourChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVirt... | {
"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 getMainAudioTracks() {\n return mainAudio.size();\n }",
"class_method_signature": "AudioMapXmlProvider.getMainAudioTracks()",
"constructor": false,
"full_signature": "public int getMainAudioTracks()",
"identifier": "getMainAudioTracks",
"invocations": [
"size"
],
"mod... | {
"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_134 | {
"fields": [
{
"declarator": "context",
"modifier": "private static",
"original_string": "private static JAXBContext context;",
"type": "JAXBContext",
"var_name": "context"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/film/FilmMetadata... | {
"body": "@Test\n public void testUpdateLocale() throws Exception {\n FilmMetadataXmlProvider provider = new FilmMetadataXmlProvider();\n\n provider.setLocale(Locale.CANADA_FRENCH);\n\n assertEquals(\"fr-CA\", provider.getRootElement().getLanguage().get(0));\n assertEquals(\"fr-CA\", p... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n public void setLocale(Locale locale) {\n String str = LocaleHelper.toITunesLocale(locale);\n setSingleValue(rootElement.getLanguage(), str);\n setSingleValue(video.getOriginalSpokenLocale(), str);\n }",
"class_method_signature": "FilmMetadataXmlProvider.setLocale(Lo... | {
"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_4 | {
"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 resolvesCorrectDynamicContext() {\n String resolved1 = resolver.resolveTemplateParameter(\"%{dynamic.dynamic1}\", ContextInfo.EMPTY);\n String resolved2 = resolver.resolveTemplateParameter(\"%{dynamic.dynamic2}\", ContextInfo.EMPTY);\n\n assertNotNull(resolved1);... | {
"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_122 | {
"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 testUnavailableLocale() throws Exception {\n LocaleValidator.validateLocale(\"xx_XX\");\n }",
"class_method_signature": "LocaleValidatorTest.testUnavailableLocale()",
"constructor": false,
"full_signature": "@Test(expected =... | {
"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_175 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/ttml/TtmlParagraphResolverTest.java",
"identifier": "TtmlParagraphResolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testStuckedParagraphs() {\n PEltype p1 = TtmlTestUtils.createP(\"00:00:01:00\", \"00:00:02:00\", \"p1\");\n PEltype p2 = TtmlTestUtils.createP(\"00:00:02:00\", \"00:00:03:00\", \"p2\");\n PEltype p3 = TtmlTestUtils.createP(\"00:00:03:00\", \"00:00:04: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_66 | {
"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 guess2A_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_89 | {
"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_23() 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_31 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/asset/AssetMapParserTest.java",
"identifier": "AssetMapParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = XmlParsingException.class)\n public void testParseBrokenXml() throws Exception {\n new AssetMapParser().parse(ImpUtils.getImpFolder(), ImpUtils.getBrokenXmlAssetmap());\n }",
"class_method_signature": "AssetMapParserTest.testParseBrokenXml()",
"constructor": false,
"full... | {
"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_159 | {
"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 additionalAudioTracksForFourSequencesWithOneQuadOthersTwoChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prep... | {
"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 ArrayList<Integer> getAdditionalAudioTracks() {\n return alternativesAudio.stream()\n .map(AudioOption::size)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"class_method_signature": "AudioMapXmlProvider.getAdditionalAudioTracks()",
"constructo... | {
"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_27 | {
"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 exceptionOnIncorrectResourceParameterResource() {\n // we have only 2 resources (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_70 | {
"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_oneStereo() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FR, FL}\n });\n\n AudioMapType audioMap = new AudioMapGuesser(con... | {
"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_118 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/locale/LocaleValidatorTest.java",
"identifier": "LocaleValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCorrectValidation() throws Exception {\n LocaleValidator.validateLocale(\"en\");\n LocaleValidator.validateLocale(\"en_US\");\n LocaleValidator.validateLocale(\"fr-CA\");\n }",
"class_method_signature": "LocaleValidatorTest.testCorrectValidation()",
"c... | {
"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_94 | {
"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 guess16C_twoStereo_two51_soundfieldGroupsSingleChannel() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(16, 1, 1,\n new FFmpegAudioChannels[][]{\n {FR}, {FL},\n {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_113 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/image/ImageValidatorTest.java",
"identifier": "ImageValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ImageValidationException.class)\n public void testNonRGBColorModel() throws Exception {\n ImageValidator validator = new ImageValidator(ImageUtils.getTestImageJpgCmykFile(), \"Test\");\n validator.validateRGBColorSpace();\n }",
"class_method_signature": "ImageValidato... | {
"fields": [
{
"declarator": "JPEG_START_SIGNATURE = \"FFD8\"",
"modifier": "private static final",
"original_string": "private static final String JPEG_START_SIGNATURE = \"FFD8\";",
"type": "String",
"var_name": "JPEG_START_SIGNATURE"
},
{
"declarator": "JPEG_END_SIGN... | {
"body": "public void validateRGBColorSpace() throws ImageValidationException {\n if (!image.getColorModel().getColorSpace().isCS_sRGB()) {\n throw new ImageValidationException(String.format(\n \"%s image must be RGB\", imageType));\n }\n }",
"class_method_signature":... | {
"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_144 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/AudioMapXmlCreatorTest.java",
"identifier": "AudioMapXmlCreatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void sampleAudioMapCanBeGenerated() throws Exception {\n /* PREPARATION */\n File sampleFile = File.createTempFile(\"sample-audiomap\", \".xml\");\n sampleFile.deleteOnExit();\n\n AudioMapXmlCreator.generateSampleXml(sampleFile.getAbsolutePath());\n\n /*... | {
"fields": [],
"file": "itunes-conversion/src/main/java/com/netflix/imfutility/itunes/audio/AudioMapXmlCreator.java",
"identifier": "AudioMapXmlCreator",
"interfaces": "",
"methods": [
{
"class_method_signature": "AudioMapXmlCreator.generateSampleXml(String path)",
"constructor": false,
... | {
"body": "public static void generateSampleXml(String path) {\n File file = new File(path);\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(AudioMapType.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n jaxbMarshal... | {
"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_152 | {
"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 emptyOption1AWithoutEnoughSequencesChanneslThrowsException() throws Exception {\n String seq1 = \"urn:uuid:63b41d86-c5df-4169-b036-3a25024bd711\";\n TemplateParameterContextProvider contextProvider =\n TemplateParamet... | {
"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_82 | {
"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_sameLang() 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_105 | {
"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 generateDefaultAudiomap2ALessTwoTracks() 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_16 | {
"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 exceptionOnEmptyWithNewlinesTmpParameter() {\n resolver.resolveTemplateParameter(\"%{tmp.tmpParamEmptyNewline}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnEmptyWithNe... | {
"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_191 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ParseException.class)\n public void outputFileOptionWithoutArgThrowException() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test\", \"-o\"};\n\n /* EXECUTION */\n new TtmlConverterCmdLineParser().parse(args);\n\n /* VALIDATION */\n ... | {
"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_41 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/validate/ImfValidatorTest.java",
"identifier": "ImfValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFailForFatalErrors() throws Exception {\n assertFalse(new TestImfValidator(\n TemplateParameterContextCreator.createDefaultContextProvider(),\n new File(ClassLoader.getSystemClassLoader().getResource(\"xml/errors/errors-fatal.xml\").toURI()))\... | {
"fields": [
{
"declarator": "logger = new ImfLogger(new ImfLogger(LoggerFactory.getLogger(ImfValidator.class)))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(new ImfLogger(LoggerFactory.getLogger(ImfValidator.class)));",
"type": "Logger",
... | {
"body": "public boolean validate() throws IOException, XmlParsingException {\n executeValidationCommand();\n return analyzeResult();\n }",
"class_method_signature": "ImfValidator.validate()",
"constructor": false,
"full_signature": "public boolean validate()",
"identifier": "validate",
"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_129 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/tv/TvMetadataXmlProviderTest.java",
"identifier": "TvMetadataXmlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testAppendChapterAsset() throws Exception {\n TvMetadataXmlProvider metadataXmlProvider = new TvMetadataXmlProvider();\n\n ChapterAsset asset = new ChapterAsset();\n asset.setFileName(\"chapter01\");\n asset.... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n public void appendChapterAsset(ChapterAsset asset) {\n throw new UnsupportedOperationException(\"Chapters are not allowed for iTunes TV package.\");\n }",
"class_method_signature": "TvMetadataXmlProvider.appendChapterAsset(ChapterAsset asset)",
"constructor": false,
"full_sig... | {
"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_57 | {
"fields": [],
"file": "ttml-to-stl/src/test/java/com/netflix/imfutility/ttmltostl/ConvertTest.java",
"identifier": "ConvertTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void convertSingleTTMLWithOffset() throws Exception {\n File tempXML = File.createTempFile(UUID.randomUUID().toString(), \".xml\");\n tempXML.deleteOnExit();\n assertTrue(\"Temporary file cannot be deleted.\", tempXML.delete());\n File tempSTL = File.createTemp... | {
"fields": [],
"file": "ttml-to-stl/src/main/java/com/netflix/imfutility/ttmltostl/Convert.java",
"identifier": "Convert",
"interfaces": "",
"methods": [
{
"class_method_signature": "Convert.convertTTML(String[] args)",
"constructor": false,
"full_signature": "public boolean convertTTML... | {
"body": "public boolean convertTTML(String[] args) {\n\n try {\n // 1. Parse input parameters\n CmdLineParametersParser cmdLineParser = new CmdLineParametersParser();\n CmdLineParameters cmdLineParams = cmdLineParser.parseCmdOptions(args);\n if (cmdLineParams == nu... | {
"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_168 | {
"fields": [
{
"declarator": "SEQ_COUNT = 1",
"modifier": "private static final",
"original_string": "private static final int SEQ_COUNT = 1;",
"type": "int",
"var_name": "SEQ_COUNT"
},
{
"declarator": "SEGMENT_COUNT = 2",
"modifier": "private static final",
... | {
"body": "@Test\n public void testBuildCorrectVideoFormat() throws Exception {\n\n InputDestContextResolveStrategy strategy = new InputDestContextResolveStrategy(contextProvider, ITunesPackageType.film,\n new FakeVideoDestContextResolveStrategy());\n\n DestContextTypeMap map = strateg... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "packageType"... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n ContextInfo seqContextInfo = new ContextInfoBuilder()\n .setSequenceType(SequenceType.VIDEO)\n .setSequenceUuid(getSequenceUUID())\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_187 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void frameRateOptionParsedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test\", \"-o\", \"testFile\", \"-f\", \"24000/1001\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLineParser().parse(args);\n... | {
"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_77 | {
"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 guess16C_oneStereo_two51() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR, FC, LFE, SL, SR}, {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_98 | {
"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 guess16C_oneStereo_one51_invalidSoundfieldGroups() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(8, 1, 1,\n new FFmpegAudioChannels[][]{\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_148 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/ChannelsMapperTest.java",
"identifier": "ChannelsMapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGuessStereoMainAudio() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR},\n {FC},\n {FC},\n ... | {
"fields": [
{
"declarator": "logger = LoggerFactory.getLogger(ChannelsMapper.class)",
"modifier": "private final",
"original_string": "private final Logger logger = LoggerFactory.getLogger(ChannelsMapper.class);",
"type": "Logger",
"var_name": "logger"
},
{
"declarato... | {
"body": "public List<Pair<SequenceUUID, Integer>> guessMainAudio(String lang) {\n List<Pair<SequenceUUID, Integer>> surround = guessChannelsByEssenceDescriptor(SURROUND, lang);\n\n if (surround.isEmpty()) {\n return guessChannelsByEssenceDescriptor(STEREO, lang);\n }\n\n retur... | {
"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_20 | {
"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 exceptionOnIncorrectSegmentParameterSegment() {\n // we have only 2 segments (0 and 1)\n resolver.resolveTemplateParameter(\"%{segm.num}\",\n new ContextInfoBuilder().setSegmentUuid(\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_36 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void check_noChannelLayout_forAll() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(4,\n new FFmpegAudioChannels[][]{\n {FL, FR, FC, LFE, ... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_109 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/image/ImageValidatorTest.java",
"identifier": "ImageValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ImageValidationException.class)\n public void testInvalidSize() throws Exception {\n ImageValidator validator = new ImageValidator(ImageUtils.getTestImageJpgFile(), \"Test\");\n validator.validateSize(4096, 2160);\n }",
"class_method_signature": "ImageValidatorTest.te... | {
"fields": [
{
"declarator": "JPEG_START_SIGNATURE = \"FFD8\"",
"modifier": "private static final",
"original_string": "private static final String JPEG_START_SIGNATURE = \"FFD8\";",
"type": "String",
"var_name": "JPEG_START_SIGNATURE"
},
{
"declarator": "JPEG_END_SIGN... | {
"body": "public void validateSize(Integer width, Integer height) throws ImageValidationException {\n if ((width != null && image.getWidth() < width) || (height != null && image.getHeight() < height)) {\n throw new ImageValidationException(String.format(\n \"%s image must be at l... | {
"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_61 | {
"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 check_noAudio() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(0,\n new FFmpegAudioChannels[][]{\n });\n\n AudioMapType audioMap = new AudioMapGuesser(contextProvider, EBU_R_123_16_C).guessA... | {
"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_172 | {
"fields": [
{
"declarator": "map",
"modifier": "private static",
"original_string": "private static DestContextsTypeMap map;",
"type": "DestContextsTypeMap",
"var_name": "map"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/destcontext/NameDestCo... | {
"body": "@Test(expected = ConversionException.class)\n public void testIncorrectFilmName() {\n NameDestContextResolveStrategy resolveStrategy = new NameDestContextResolveStrategy(\"sdtvntsc480i2997\", ITunesPackageType.film);\n\n resolveStrategy.resolveContext(map);\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "name",
"modifier": "private final",
"original_string": "private final String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "packageType",
"modifier": "private final",
"original_string": "private final ITunesPa... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n return destContexts.getMap().entrySet().stream()\n .filter(entry -> Objects.equals(entry.getKey(), name))\n .findFirst()\n .map(Entry:... | {
"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_125 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCorrectFallbackFilmProviderCreation() throws Exception {\n MetadataXmlProvider<?> provider = MetadataXmlProviderFactory.createProvider(\n null, ITunesPackageType.film);\n\n assertTrue(provider instanceof FilmMetadataXmlProvider);\n }",
"class_met... | {
"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_3 | {
"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 trimsCorrectTmpContext() {\n String tmp2 = resolver.resolveTemplateParameter(\"%{tmp.tmpParamWhitespace}\", ContextInfo.EMPTY);\n String tmp3 = resolver.resolveTemplateParameter(\"%{tmp.tmpParamNewline}\", ContextInfo.EMPTY);\n\n assertNotNull(tmp2);\n ass... | {
"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_133 | {
"fields": [
{
"declarator": "context",
"modifier": "private static",
"original_string": "private static JAXBContext context;",
"type": "JAXBContext",
"var_name": "context"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/film/FilmMetadata... | {
"body": "@Test\n public void testGenerateDefaultMetadata() throws Exception {\n FilmMetadataXmlProvider provider = new FilmMetadataXmlProvider();\n\n assertNotNull(provider.getRootElement());\n assertNotNull(provider.getRootElement().getProvider().get(0));\n assertNotNull(provider.get... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n protected PackageType generateDefaultMetadata() {\n return FilmMetadataXmlSampleBuilder.buildPackage();\n }",
"class_method_signature": "FilmMetadataXmlProvider.generateDefaultMetadata()",
"constructor": false,
"full_signature": "@Override protected PackageType generateDefaul... | {
"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_164 | {
"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 additionalAudioCountForThreeSequencesWithFourSixFourChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCp... | {
"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_165 | {
"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 additionalAudioTracksForThreeSequencesWithFourSixFourChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepareC... | {
"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 ArrayList<Integer> getAdditionalAudioTracks() {\n return alternativesAudio.stream()\n .map(AudioOption::size)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"class_method_signature": "AudioMapXmlProvider.getAdditionalAudioTracks()",
"constructo... | {
"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_132 | {
"fields": [
{
"declarator": "context",
"modifier": "private static",
"original_string": "private static JAXBContext context;",
"type": "JAXBContext",
"var_name": "context"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/film/FilmMetadata... | {
"body": "@Test\n public void testAppendChapterAsset() throws Exception {\n FilmMetadataXmlProvider metadataXmlProvider = new FilmMetadataXmlProvider();\n\n ChapterAsset asset = new ChapterAsset();\n asset.setFileName(\"chapter01\");\n asset.setSize(\"1024\");\n asset.setChecksu... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n public void appendChapterAsset(ChapterAsset asset) {\n FileWrapper fileWrapper = new FileWrapper(context);\n fileWrapper.setFileName(asset.getFileName());\n fileWrapper.setSize(String.valueOf(asset.getSize()));\n fileWrapper.setChecksum(createChecksum(asset));\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_2 | {
"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 resolvesCorrectTmpContext() {\n String resolved = resolver.resolveTemplateParameter(\"%{tmp.tmpParamSimple}\", ContextInfo.EMPTY);\n assertNotNull(resolved);\n assertEquals(\"tmpParamSimple\", resolved);\n }",
"class_method_signature": "TemplateParameterReso... | {
"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_124 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCorrectTvProviderCreation() throws Exception {\n MetadataXmlProvider<?> provider = MetadataXmlProviderFactory.createProvider(\n MetadataUtils.getCorrectTvMetadataXml(), ITunesPackageType.film);\n\n assertTrue(provider instanceof TvMetadataXmlProvider)... | {
"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_173 | {
"fields": [
{
"declarator": "map",
"modifier": "private static",
"original_string": "private static DestContextsTypeMap map;",
"type": "DestContextsTypeMap",
"var_name": "map"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/destcontext/VideoDestC... | {
"body": "@Test(expected = ConversionException.class)\n public void testEmptyParameters() {\n VideoDestContextResolveStrategy resolveStrategy = new VideoDestContextResolveStrategy();\n // params not set\n resolveStrategy.resolveContext(map);\n }",
"class_method_signature": "VideoDestCont... | {
"fields": [
{
"declarator": "width",
"modifier": "protected",
"original_string": "protected Integer width;",
"type": "Integer",
"var_name": "width"
},
{
"declarator": "height",
"modifier": "protected",
"original_string": "protected Integer height;",
... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n if (interlaced == null\n || width == null\n || height == null\n || frameRate == null) {\n throw new ConversionException(\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_60 | {
"fields": [
{
"declarator": "metadataProvider",
"modifier": "private",
"original_string": "private MetadataXmlProvider metadataProvider;",
"type": "MetadataXmlProvider",
"var_name": "metadataProvider"
}
],
"file": "dpp-conversion/src/test/java/com/netflix/imfutility/dpp/met... | {
"body": "@Test\n public void parseCorrectMetadataXml() throws Exception {\n // load generated test-metadata.xml\n this.metadataProvider = new MetadataXmlProvider(MetadataUtils.getCorrectMetadataXml(),\n TemplateParameterContextCreator.getCurrentTmpDir());\n\n assertNotNull(met... | {
"fields": [
{
"declarator": "DEST_FRAME_RATE = \"25 1\"",
"modifier": "public static final",
"original_string": "public static final String DEST_FRAME_RATE = \"25 1\";",
"type": "String",
"var_name": "DEST_FRAME_RATE"
},
{
"declarator": "dpp",
"modifier": "priva... | {
"body": "public DppType getDpp() {\n return dpp;\n }",
"class_method_signature": "MetadataXmlProvider.getDpp()",
"constructor": false,
"full_signature": "public DppType getDpp()",
"identifier": "getDpp",
"invocations": [],
"modifiers": "public",
"parameters": "()",
"return": "DppType",
"... | {
"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_108 | {
"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 generateDefaultAudiomap16C() throws Exception {\n // fil CPL context with the number of channels for each virtual track\n TemplateParameterContextProvider contextProvider = TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVirtualTracksW... | {
"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_37 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void checkChannelLayoutNotMatchChannelNum() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(4, 1, 1,\n new FFmpegAudioChannels[][]{\n {FL,... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_21 | {
"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 = UnknownTemplateParameterNameException.class)\n public void exceptionOnIncorrectSequenceParameterName() {\n resolver.resolveTemplateParameter(\"%{seq.xxxx}\",\n new ContextInfoBuilder()\n .setSequenceUuid(getSequenceUuid(0, SequenceType.AUDIO)... | {
"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_149 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/ChannelsMapperTest.java",
"identifier": "ChannelsMapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGuessNoMainAudio() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR},\n {FC},\n {FL, FR, FC, LFE, S... | {
"fields": [
{
"declarator": "logger = LoggerFactory.getLogger(ChannelsMapper.class)",
"modifier": "private final",
"original_string": "private final Logger logger = LoggerFactory.getLogger(ChannelsMapper.class);",
"type": "Logger",
"var_name": "logger"
},
{
"declarato... | {
"body": "public List<Pair<SequenceUUID, Integer>> guessMainAudio(String lang) {\n List<Pair<SequenceUUID, Integer>> surround = guessChannelsByEssenceDescriptor(SURROUND, lang);\n\n if (surround.isEmpty()) {\n return guessChannelsByEssenceDescriptor(STEREO, lang);\n }\n\n retur... | {
"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_76 | {
"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 guess16C_twoStereo_one51() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR}, {FL, FR, FC, LFE, SL, SR}\n });\n\n Aud... | {
"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_99 | {
"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 parseCorrectAudiomapXml() throws Exception {\n //Try to load and validate\n AudioMapXmlProvider audioMapProvider = new AudioMapXmlProvider(\n AudioMapUtils.getCorrectAudiomapXml(), AudioTrackLayoutDmAs11Type.EBU_R_48_2_A,\n TemplateParamete... | {
"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_169 | {
"fields": [
{
"declarator": "map",
"modifier": "private static",
"original_string": "private static DestContextsTypeMap map;",
"type": "DestContextsTypeMap",
"var_name": "map"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/destcontext/NameDestCo... | {
"body": "@Test\n public void testCorrectName() {\n NameDestContextResolveStrategy resolveStrategy;\n\n resolveStrategy = new NameDestContextResolveStrategy(\"sdfilmntsc480i2997\", ITunesPackageType.film);\n assertEquals(\"sdfilmntsc480i2997\", resolveStrategy.resolveContext(map).getName());\... | {
"fields": [
{
"declarator": "name",
"modifier": "private final",
"original_string": "private final String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "packageType",
"modifier": "private final",
"original_string": "private final ITunesPa... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n return destContexts.getMap().entrySet().stream()\n .filter(entry -> Objects.equals(entry.getKey(), name))\n .findFirst()\n .map(Entry:... | {
"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_186 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void outputFileOptionParsedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test\", \"-o\", \"testFile\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLineParser().parse(args);\n\n /* VALIDATION... | {
"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_56 | {
"fields": [],
"file": "ttml-to-stl/src/test/java/com/netflix/imfutility/ttmltostl/ConvertTest.java",
"identifier": "ConvertTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void convertSingleTTML() throws Exception {\n File tempXML = File.createTempFile(UUID.randomUUID().toString(), \".xml\");\n tempXML.deleteOnExit();\n assertTrue(\"Temporary file cannot be deleted.\", tempXML.delete());\n File tempSTL = File.createTempFile(UUID.... | {
"fields": [],
"file": "ttml-to-stl/src/main/java/com/netflix/imfutility/ttmltostl/Convert.java",
"identifier": "Convert",
"interfaces": "",
"methods": [
{
"class_method_signature": "Convert.convertTTML(String[] args)",
"constructor": false,
"full_signature": "public boolean convertTTML... | {
"body": "public boolean convertTTML(String[] args) {\n\n try {\n // 1. Parse input parameters\n CmdLineParametersParser cmdLineParser = new CmdLineParametersParser();\n CmdLineParameters cmdLineParams = cmdLineParser.parseCmdOptions(args);\n if (cmdLineParams == nu... | {
"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_128 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = RuntimeException.class)\n public void testInvalidMetadataFile() throws Exception {\n MetadataXmlProviderFactory.createProvider(new File(\"invalid-path\"), ITunesPackageType.tv);\n }",
"class_method_signature": "MetadataXmlProviderFactoryTest.testInvalidMetadataFile()",
"co... | {
"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_40 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void checkAllResourcesDifferentChannelLayout() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(2, 2, 2,\n new FFmpegAudioChannels[][]{\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 void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_190 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void ttmlOptionWithoutOffsetArgsPrasedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"file\", \"-o\", \"test\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLineParser().parse(args);\n\n /* VAL... | {
"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_17 | {
"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 exceptionOnIncorrectDynamicParameterName() {\n resolver.resolveTemplateParameter(\"%{dynamic.xxxx}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnIncorrectDynamicParamet... | {
"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_104 | {
"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 generateDefaultAudiomap2ALessChannelsOneTrack() throws Exception {\n // fil CPL context with the number of channels for each virtual track\n TemplateParameterContextProvider contextProvider = TemplateParameterContextCreator.createDefaultContextProvider();\n prepa... | {
"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_83 | {
"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_noLang() 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_153 | {
"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 emptyOption2WithoutEnoughSequencesChanneslThrowsException() 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_145 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/ChannelsMapperTest.java",
"identifier": "ChannelsMapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testNoAudio() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n });\n\n ChannelsMapper mapper = new ChannelsMapper(contextProvider);\n mapper.mapChannel... | {
"fields": [
{
"declarator": "logger = LoggerFactory.getLogger(ChannelsMapper.class)",
"modifier": "private final",
"original_string": "private final Logger logger = LoggerFactory.getLogger(ChannelsMapper.class);",
"type": "Logger",
"var_name": "logger"
},
{
"declarato... | {
"body": "public void mapChannels(List<Pair<LayoutType, String>> options) {\n List<Pair<LayoutType, String>> optionsByDescriptor = new ArrayList<>();\n List<Pair<LayoutType, String>> optionsByOrder = new ArrayList<>();\n\n if (essenceLayoutValid) {\n optionsByDescriptor.addAll(options... | {
"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_112 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/image/ImageValidatorTest.java",
"identifier": "ImageValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ImageValidationException.class)\n public void testInvalidJpgOrPngType() throws Exception {\n ImageValidator validator = new ImageValidator(ImageUtils.getTestImageGifFile(), \"Test\");\n validator.validateJpegOrPng();\n }",
"class_method_signature": "ImageValidatorTest... | {
"fields": [
{
"declarator": "JPEG_START_SIGNATURE = \"FFD8\"",
"modifier": "private static final",
"original_string": "private static final String JPEG_START_SIGNATURE = \"FFD8\";",
"type": "String",
"var_name": "JPEG_START_SIGNATURE"
},
{
"declarator": "JPEG_END_SIGN... | {
"body": "public void validateJpegOrPng() throws ImageValidationException {\n if (!isJpeg() && !isPng()) {\n throw new ImageValidationException(String.format(\n \"%s image must be JPG or PNG\", imageType));\n }\n }",
"class_method_signature": "ImageValidator.validateJ... | {
"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_95 | {
"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 guess16C_twoStereo_two51_soundfieldGroupsMultipleChannel() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(8, 1, 1,\n new FFmpegAudioChannels[][]{\n {FR}, {FL},\n {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_185 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void helpOptionParsedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-h\", \"-t\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLineParser().parse(args);\n\n /* VALIDATION */\n assertEquals(\"He... | {
"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_55 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/mediainfo/MediaInfoContextBuilderTest.java",
"identifier": "MediaInfoContextBuilderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testMediaInfoOutputFileName() throws Exception {\n assertEquals(\"mediaInfo_audio_filename.mxf.xml\",\n TestMediaInfoContextBuilder.getOutputFileName(SequenceType.AUDIO, \"C:/parent/filename.mxf\"));\n assertEquals(\"mediaInfo_video_filename.mxf.xml\",\n ... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
},
{
"declarator": "executeStrat... | {
"body": "static String getOutputFileName(SequenceType seqType, String essence) {\n return String.format(\"%s_%s_%s.xml\",\n CoreConstants.MEDIA_INFO_SUFFIX,\n seqType.value(),\n new File(essence).getName());\n }",
"class_method_signature": "MediaInfoContextBu... | {
"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_43 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/validate/ImfValidatorTest.java",
"identifier": "ImfValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPassForWarnings() throws Exception {\n assertTrue(new TestImfValidator(\n TemplateParameterContextCreator.createDefaultContextProvider(),\n new File(ClassLoader.getSystemClassLoader().getResource(\"xml/errors/errors-warning.xml\").toURI()))\n ... | {
"fields": [
{
"declarator": "logger = new ImfLogger(new ImfLogger(LoggerFactory.getLogger(ImfValidator.class)))",
"modifier": "private final",
"original_string": "private final Logger logger = new ImfLogger(new ImfLogger(LoggerFactory.getLogger(ImfValidator.class)));",
"type": "Logger",
... | {
"body": "public boolean validate() throws IOException, XmlParsingException {\n executeValidationCommand();\n return analyzeResult();\n }",
"class_method_signature": "ImfValidator.validate()",
"constructor": false,
"full_signature": "public boolean validate()",
"identifier": "validate",
"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_193 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ParseException.class)\n public void frameRateOptionWithoutArgThrowException() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test\", \"-o\", \"test\", \"-f\"};\n\n /* EXECUTION */\n new TtmlConverterCmdLineParser().parse(args);\n\n /* V... | {
"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_14 | {
"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 exceptionOnIncorrectTmpParameterName() {\n resolver.resolveTemplateParameter(\"%{tmp.xxxx}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnIncorrectTmpParameterName()",
... | {
"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_107 | {
"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 generateDefaultAudiomap2AMoreTwoTracks() 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_80 | {
"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 guess16C_no51() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR}\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_150 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/ChannelsMapperTest.java",
"identifier": "ChannelsMapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGuessAlternativeAudios() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR},\n {FL, FR},\n {FC},\n ... | {
"fields": [
{
"declarator": "logger = LoggerFactory.getLogger(ChannelsMapper.class)",
"modifier": "private final",
"original_string": "private final Logger logger = LoggerFactory.getLogger(ChannelsMapper.class);",
"type": "Logger",
"var_name": "logger"
},
{
"declarato... | {
"body": "public Map<String, List<Pair<SequenceUUID, Integer>>> guessAlternatives(String mainLang) {\n List<SoundfieldGroupInfo> stereo = findInputForChannelGroup(STEREO_LAYOUT);\n\n return stereo.stream()\n .filter(g -> getLanguage(g) != null)\n .filter(g -> !LocaleHelper... | {
"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_38 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void checkAllResourcesEqualChannelLayout() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(2, 2, 2,\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR}, {FL, FR}, {FL, FR},\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 void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_146 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/audio/ChannelsMapperTest.java",
"identifier": "ChannelsMapperTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = RuntimeException.class)\n public void testUnknownLayout() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n });\n\n ChannelsMapper mapper = new ChannelsMapper(con... | {
"fields": [
{
"declarator": "logger = LoggerFactory.getLogger(ChannelsMapper.class)",
"modifier": "private final",
"original_string": "private final Logger logger = LoggerFactory.getLogger(ChannelsMapper.class);",
"type": "Logger",
"var_name": "logger"
},
{
"declarato... | {
"body": "public void mapChannels(List<Pair<LayoutType, String>> options) {\n List<Pair<LayoutType, String>> optionsByDescriptor = new ArrayList<>();\n List<Pair<LayoutType, String>> optionsByOrder = new ArrayList<>();\n\n if (essenceLayoutValid) {\n optionsByDescriptor.addAll(options... | {
"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_111 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/image/ImageValidatorTest.java",
"identifier": "ImageValidatorTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ImageValidationException.class)\n public void testInvalidJpgType() throws Exception {\n ImageValidator validator = new ImageValidator(ImageUtils.getTestImagePngFile(), \"Test\");\n validator.validateJpeg();\n }",
"class_method_signature": "ImageValidatorTest.testInval... | {
"fields": [
{
"declarator": "JPEG_START_SIGNATURE = \"FFD8\"",
"modifier": "private static final",
"original_string": "private static final String JPEG_START_SIGNATURE = \"FFD8\";",
"type": "String",
"var_name": "JPEG_START_SIGNATURE"
},
{
"declarator": "JPEG_END_SIGN... | {
"body": "public void validateJpeg() throws ImageValidationException {\n if (!isJpeg()) {\n throw new ImageValidationException(String.format(\n \"%s image must be JPG\", imageType));\n }\n }",
"class_method_signature": "ImageValidator.validateJpeg()",
"constructor":... | {
"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_96 | {
"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 guess16C_twoStereo_two51_soundfieldGroupsWithEmpty() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(8, 1, 2,\n new FFmpegAudioChannels[][]{\n {FR}, {FR}, {FL}, {FL},\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_79 | {
"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 guess16C_noStereo() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR, FC, LFE, SL, SR}, {FL,... | {
"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_189 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void manyTtmlOptionsParsedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test1\", \"0\", \"200\", \"45\", \"-t\", \"test2\", \"10\", \"40\", \"67\", \"-o\", \"test\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new Ttm... | {
"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_166 | {
"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 panParameterForThreeSequencesWithFourSixFourChannelsCreatedCorrectly() throws Exception {\n /* PREPARATION */\n TemplateParameterContextProvider contextProvider =\n TemplateParameterContextCreator.createDefaultContextProvider();\n prepareCplVirtual... | {
"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 ArrayList<String> getPanParameters() {\n ArrayList<String> panParams = new ArrayList<>();\n\n // create main audio pan parameters\n mainAudio.forEach((t) -> {\n panParams.add(getPanParameter(t));\n });\n\n alternativesAudio.stream().flatMap(AudioOption::... | {
"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_59 | {
"fields": [],
"file": "ttml-to-stl/src/test/java/com/netflix/imfutility/ttmltostl/ConvertTest.java",
"identifier": "ConvertTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void invalidArgs() throws Exception {\n String[] args = {\n \"--ttml\",\n };\n\n Boolean result = new Convert().convertTTML(args);\n assertTrue(\"Convert.convertTTML didn't fail.\", !result);\n }",
"class_method_signature": "ConvertTest.inva... | {
"fields": [],
"file": "ttml-to-stl/src/main/java/com/netflix/imfutility/ttmltostl/Convert.java",
"identifier": "Convert",
"interfaces": "",
"methods": [
{
"class_method_signature": "Convert.convertTTML(String[] args)",
"constructor": false,
"full_signature": "public boolean convertTTML... | {
"body": "public boolean convertTTML(String[] args) {\n\n try {\n // 1. Parse input parameters\n CmdLineParametersParser cmdLineParser = new CmdLineParametersParser();\n CmdLineParameters cmdLineParams = cmdLineParser.parseCmdOptions(args);\n if (cmdLineParams == nu... | {
"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_131 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/tv/TvMetadataXmlProviderTest.java",
"identifier": "TvMetadataXmlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testUpdateLocale() throws Exception {\n TvMetadataXmlProvider provider = new TvMetadataXmlProvider();\n\n provider.setLocale(Locale.CANADA_FRENCH);\n\n assertEquals(\"fr-CA\", provider.getRootElement().getLanguage().get(0));\n assertEquals(\"fr-CA\", provi... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n public void setLocale(Locale locale) {\n String str = LocaleHelper.toITunesLocale(locale);\n setSingleValue(rootElement.getLanguage(), str);\n setSingleValue(video.getOriginalSpokenLocale(), str);\n }",
"class_method_signature": "TvMetadataXmlProvider.setLocale(Loca... | {
"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_1 | {
"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 trimsCorrectToolsContext() {\n String tool2 = resolver.resolveTemplateParameter(\"%{tool.toolWhitespace}\", ContextInfo.EMPTY);\n String tool3 = resolver.resolveTemplateParameter(\"%{tool.toolNewline}\", ContextInfo.EMPTY);\n\n assertNotNull(tool2);\n asse... | {
"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_127 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = ConversionException.class)\n public void testUnknownTypeMetadataFile() throws Exception {\n MetadataXmlProviderFactory.createProvider(MetadataUtils.getUnknownVersionMetadataXml(), ITunesPackageType.tv);\n }",
"class_method_signature": "MetadataXmlProviderFactoryTest.testUnkn... | {
"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_18 | {
"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 exceptionOnIncorrectDestParameterName() {\n resolver.resolveTemplateParameter(\"%{dest.xxxx}\", ContextInfo.EMPTY);\n }",
"class_method_signature": "TemplateParameterResolverTest.exceptionOnIncorrectDestParameterName()"... | {
"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_170 | {
"fields": [
{
"declarator": "map",
"modifier": "private static",
"original_string": "private static DestContextsTypeMap map;",
"type": "DestContextsTypeMap",
"var_name": "map"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/destcontext/NameDestCo... | {
"body": "@Test(expected = ConversionException.class)\n public void testInvalidName() {\n NameDestContextResolveStrategy resolveStrategy = new NameDestContextResolveStrategy(\"xxxx\", ITunesPackageType.tv);\n\n resolveStrategy.resolveContext(map);\n }",
"class_method_signature": "NameDestContex... | {
"fields": [
{
"declarator": "name",
"modifier": "private final",
"original_string": "private final String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "packageType",
"modifier": "private final",
"original_string": "private final ITunesPa... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n return destContexts.getMap().entrySet().stream()\n .filter(entry -> Objects.equals(entry.getKey(), name))\n .findFirst()\n .map(Entry:... | {
"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_63 | {
"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 guess2A_oneStereo_and_other() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FC}, {FL, FR, FC, LFE, SL, SR}, {FL, FR}\n });\n\n Audi... | {
"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_34 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void checkNoAudio() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(0,\n new FFmpegAudioChannels[][]{\n });\n\n new AudioLayoutChecker(contextProvider).checkCorrectChannelLayout();\n }",
"cla... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_22 | {
"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 exceptionOnIncorrectSequenceParameterSequence() {\n // we have only 2 sequences (0 and 1)\n resolver.resolveTemplateParameter(\"%{seq.num}\",\n new ContextInfoBuilder()\n .setSequ... | {
"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_75 | {
"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 guess16C_oneStereo_one51() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}, {FL, FR, FC, LFE, SL, SR}\n });\n\n AudioMapType ... | {
"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_74 | {
"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 guess16C_twoStereo_two51_swapChannels() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {SL, SR, LFE, FC, FL, FR}, {FR, FL, SR, SL, FC, LFE}, {FL, FR}, {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_23 | {
"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 exceptionOnIncorrectSequenceParameterType() {\n // we didn't fill subtitle type\n resolver.resolveTemplateParameter(\"%{seq.num}\",\n new ContextInfoBuilder()\n .setSequenceUuid(g... | {
"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_35 | {
"fields": [],
"file": "imf-conversion-core/src/test/java/com/netflix/imfutility/audio/AudioLayoutCheckerTest.java",
"identifier": "AudioLayoutCheckerTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = InvalidAudioChannelAssignmentException.class)\n public void checkNoChannelLayout() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(4,\n new FFmpegAudioChannels[][]{\n });\n\n new AudioLayoutChec... | {
"fields": [
{
"declarator": "contextProvider",
"modifier": "private final",
"original_string": "private final TemplateParameterContextProvider contextProvider;",
"type": "TemplateParameterContextProvider",
"var_name": "contextProvider"
}
],
"file": "imf-conversion-core/src/... | {
"body": "public void checkCorrectChannelLayout() throws InvalidAudioChannelAssignmentException {\n for (SequenceUUID seqUuid : contextProvider.getSequenceContext().getUuids(SequenceType.AUDIO)) {\n String channelLayout = null;\n for (SegmentUUID segmUuid : contextProvider.getSegmentCont... | {
"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_62 | {
"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 guess2A_oneStereo() throws Exception {\n TemplateParameterContextProvider contextProvider = AudioUtils.createContext(\n new FFmpegAudioChannels[][]{\n {FL, FR}\n });\n\n AudioMapType audioMap = new AudioMapGuesser(con... | {
"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_171 | {
"fields": [
{
"declarator": "map",
"modifier": "private static",
"original_string": "private static DestContextsTypeMap map;",
"type": "DestContextsTypeMap",
"var_name": "map"
}
],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/destcontext/NameDestCo... | {
"body": "@Test(expected = ConversionException.class)\n public void testIncorrectTvName() {\n NameDestContextResolveStrategy resolveStrategy = new NameDestContextResolveStrategy(\"sdfilmpal576p24\", ITunesPackageType.tv);\n\n resolveStrategy.resolveContext(map);\n }",
"class_method_signature": ... | {
"fields": [
{
"declarator": "name",
"modifier": "private final",
"original_string": "private final String name;",
"type": "String",
"var_name": "name"
},
{
"declarator": "packageType",
"modifier": "private final",
"original_string": "private final ITunesPa... | {
"body": "@Override\n public DestContextTypeMap resolveContext(DestContextsTypeMap destContexts) throws ConversionException {\n return destContexts.getMap().entrySet().stream()\n .filter(entry -> Objects.equals(entry.getKey(), name))\n .findFirst()\n .map(Entry:... | {
"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_19 | {
"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 = UnknownTemplateParameterNameException.class)\n public void exceptionOnIncorrectSegmentParameterName() {\n resolver.resolveTemplateParameter(\"%{segm.xxxx}\",\n new ContextInfoBuilder()\n .setSegmentUuid(getSegmentUuid(0))\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_126 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/factory/MetadataXmlProviderFactoryTest.java",
"identifier": "MetadataXmlProviderFactoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCorrectFallbackTvProviderCreation() throws Exception {\n MetadataXmlProvider<?> provider = MetadataXmlProviderFactory.createProvider(\n null, ITunesPackageType.tv);\n\n assertTrue(provider instanceof TvMetadataXmlProvider);\n }",
"class_method_si... | {
"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_0 | {
"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 resolvesCorrectToolsContext() {\n String resolved = resolver.resolveTemplateParameter(\"%{tool.toolSimple}\", ContextInfo.EMPTY);\n assertNotNull(resolved);\n assertEquals(\"root\\\\toolSimple\", resolved);\n }",
"class_method_signature": "TemplateParameterR... | {
"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_130 | {
"fields": [],
"file": "itunes-conversion/src/test/java/com/netflix/imfutility/itunes/metadata/tv/TvMetadataXmlProviderTest.java",
"identifier": "TvMetadataXmlProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGenerateDefaultMetadata() throws Exception {\n TvMetadataXmlProvider provider = new TvMetadataXmlProvider();\n\n assertNotNull(provider.getRootElement());\n assertNotNull(provider.getRootElement().getProvider().get(0));\n assertNotNull(provider.getRoot... | {
"fields": [
{
"declarator": "DEFAULT_TERRITORY = \"WW\"",
"modifier": "private static final",
"original_string": "private static final String DEFAULT_TERRITORY = \"WW\";",
"type": "String",
"var_name": "DEFAULT_TERRITORY"
},
{
"declarator": "CROP_ATTRUBUTE_NAMES = new... | {
"body": "@Override\n protected PackageType generateDefaultMetadata() {\n return TvMetadataXmlSampleBuilder.buildPackage();\n }",
"class_method_signature": "TvMetadataXmlProvider.generateDefaultMetadata()",
"constructor": false,
"full_signature": "@Override protected PackageType generateDefaultMet... | {
"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_58 | {
"fields": [],
"file": "ttml-to-stl/src/test/java/com/netflix/imfutility/ttmltostl/ConvertTest.java",
"identifier": "ConvertTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void mergeTTML() throws Exception {\n\n File tempXML = File.createTempFile(UUID.randomUUID().toString(), \".xml\");\n tempXML.deleteOnExit();\n assertTrue(\"Temporary file cannot be deleted.\", tempXML.delete());\n File tempSTL = File.createTempFile(UUID.random... | {
"fields": [],
"file": "ttml-to-stl/src/main/java/com/netflix/imfutility/ttmltostl/Convert.java",
"identifier": "Convert",
"interfaces": "",
"methods": [
{
"class_method_signature": "Convert.convertTTML(String[] args)",
"constructor": false,
"full_signature": "public boolean convertTTML... | {
"body": "public boolean convertTTML(String[] args) {\n\n try {\n // 1. Parse input parameters\n CmdLineParametersParser cmdLineParser = new CmdLineParametersParser();\n CmdLineParameters cmdLineParams = cmdLineParser.parseCmdOptions(args);\n if (cmdLineParams == nu... | {
"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_188 | {
"fields": [],
"file": "ttml2itt/src/test/java/com/netflix/subtitles/cli/TtmlConverterCmdLineParserTest.java",
"identifier": "TtmlConverterCmdLineParserTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void ttmlOptionParsedCorrectly() {\n /* PREPARATION */\n String[] args = new String[]{\"-t\", \"test\", \"0\", \"200\", \"45\", \"-o\", \"testFile\", \"-f\", \"24000/1001\"};\n\n /* EXECUTION */\n TtmlConverterCmdLineParams params = new TtmlConverterCmdLinePars... | {
"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"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.