id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
91120647_9 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringXmlByPartialFileNamePattern() {\n String pattern = \"*File*.xml\";\n File file = new File(\"SomeFileWithXml.xml\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertTrue(filter.accept(file));\n ... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_35 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadRootElementList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\tString json = \"{\\\"sampl... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_42 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadEmptyList3() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\tString json = \"[]\";\n\n\t\t@S... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_15 | {
"fields": [
{
"declarator": "filesToDelete = new ArrayList<>()",
"modifier": "",
"original_string": "List<File> filesToDelete = new ArrayList<>();",
"type": "List<File>",
"var_name": "filesToDelete"
},
{
"declarator": "destinationFile",
"modifier": "",
"or... | {
"body": "@Test\n public void testConvertXmlToJsonToNonExistingDirectory() throws IOException, XMLStreamException {\n File sourceFile = new File(this.getClass().getClassLoader().getResource(\"SampleXml.xml\").getFile());\n File nonExistingDirectory = new File(getTempDirectory(), \"newDirectory\");\n... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ConverterService.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ConverterService.class);",
"type": "Logger",
"var_name": "LOGGER"
},
... | {
"body": "public File convert(File sourceFile, File outputFile, IFileReadListener listener, AtomicBoolean isCanceled)\n throws IOException, XMLStreamException {\n StopWatch sw = new StopWatch();\n\n Objects.requireNonNull(listener, \"Listener must be not null\");\n\n FileTypeEnum inpu... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_54 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testReadSampleRootElement() throws Exception {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tString json = \"{\\\"sampleRootElement\\\":{\\\"@attribute\\\":\\\"hello\\\",\\\"elements\\\":[\\\"world\\\"]}}\... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_5 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/ConverterUtilsTest.java",
"identifier": "ConverterUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGetConvertedFileForXml() {\n File sourceFile = new File(\"someFile.xml\");\n File outputDirectory = new File(\".\");\n \n File outFile = ConverterUtils.getConvertedFile(sourceFile, outputDirectory);\n \n Assert.assertEquals(\"someFile.jso... | {
"fields": [],
"file": "xml2json/src/main/java/com/fs/xml2json/util/ConverterUtils.java",
"identifier": "ConverterUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "ConverterUtils.ConverterUtils()",
"constructor": true,
"full_signature": "private ConverterUtils()",
... | {
"body": "public static File getConvertedFile(File sourceFile, File destinationFolder) {\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(sourceFile.getName());\n String convertedFileName = \"\";\n String fileNameWithoutExtension = sourceFile.getName().substring(0, sourceFile.getName().las... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_39 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadSampleTypeListWithNullValues() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};\n\t\tType type = getClass().getDeclaredField(\"sampleTypeL... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_32 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER_PATH = \"destination/\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER_PATH = \"destination/\";",
"type": "String",
"var_name": "DESTINATION_FOLDER_PATH"
}
],
"file": "... | {
"body": "@Test(expected = ParseException.class)\n public void testParseNoGuiAndSourceFolderWithoutValue() throws ParseException, FileNotFoundException {\n String[] args = new String[]{\"--noGui\", \"--sourceFolder\", \n \"--destinationFolder\", DESTINATION_FOLDER_PATH, \"--pattern\", \"*.json\... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationCommandLine.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationCommandLine.class);",
"type": "Logger",
"var_name": "LOGGER"... | {
"body": "public static ApplicationCommandLine parse(String[] args) throws java.text.ParseException, FileNotFoundException {\n CommandLineParser parser = new DefaultParser();\n\n ApplicationCommandLine cmd = null;\n try {\n cmd = new ApplicationCommandLine(parser.parse(OPTIONS, args, ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_24 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"LoaderPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"LoaderPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
{
... | {
"body": "@Test(expected = FileNotFoundException.class)\n public void testLoadFileNotExists() throws IOException {\n File propsFile = new File(getDestinationDirectory(), \"someFolder\" + TEST_FILE);\n PropertiesLoader loader = new PropertiesLoader(propsFile);\n\n loader.load();\n }",
"cl... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(PropertiesLoader.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(PropertiesLoader.class);",
"type": "Logger",
"var_name": "LOGGER"
},
... | {
"body": "public Properties load() throws IOException {\n Properties properties = new Properties();\n\n LOGGER.debug(\"Loading properties from {}\", propertiesFile.getAbsolutePath());\n\n if (propertiesFile.exists()) {\n try (InputStream in = new FileInputStream(propertiesFile)) {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_49 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLProviderTest.java",
"identifier": "AbstractJsonXMLProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testGetCharset() {\n\t\tAssert.assertEquals(\"UTF-8\", new TestProvider().getCharset(MediaType.APPLICATION_JSON_TYPE));\n\t\tMap<String, String> parameters = new HashMap<String, String>();\t\t\n\t\tparameters.put(\"charset\", \"ASCII\");\n\t\tMediaType customMediaType = new MediaType(\... | {
"fields": [
{
"declarator": "store",
"modifier": "private final",
"original_string": "private final JsonXMLContextStore store;",
"type": "JsonXMLContextStore",
"var_name": "store"
}
],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLPro... | {
"body": "protected String getCharset(MediaType mediaType) {\n Map<String, String> parameters = mediaType.getParameters();\n return parameters.containsKey(\"charset\") ? parameters.get(\"charset\") : \"UTF-8\";\n }",
"class_method_signature": "AbstractJsonXMLProvider.getCharset(MediaType mediaType... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_2 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/ApplicationUtilsTest.java",
"identifier": "ApplicationUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getImplementationVersion() throws Exception {\n PowerMockito.spy(ApplicationUtils.class);\n PowerMockito.doReturn(\"1.0.0\").when(ApplicationUtils.class, \"getVersionFromManifest\");\n\n String s = ApplicationUtils.getVersion();\n \n // PowerMock, v... | {
"fields": [
{
"declarator": "UNNOWN_VERSION = \"unknown\"",
"modifier": "public static final",
"original_string": "public static final String UNNOWN_VERSION = \"unknown\";",
"type": "String",
"var_name": "UNNOWN_VERSION"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/... | {
"body": "public static final String getVersion() {\n String version = getVersionFromManifest();\n if (null == version || version.isEmpty()) {\n version = UNNOWN_VERSION;\n }\n return version;\n }",
"class_method_signature": "ApplicationUtils.getVersion()",
"constructor"... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_28 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testGetPropertiesAndPathIsEmpty() throws IOException {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n PropertiesLoader loader = new PropertiesLoader(propsFile);\n ApplicationProperties appProps = new ApplicationProperties(loader);\n \... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public String getLastOpenedPath() {\n if (!isInitialized) {\n loadProperties();\n }\n\n String path = properties.getProperty(Config.LAST_DIRECTORY);\n if (null == path || path.trim().isEmpty()) {\n return null;\n } else {\n File f = new Fi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_53 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testIsReadWriteable() {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] jsonXMLAnnotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};\n\n\t\tAssert.assertTrue(provider.isReadWriteable(SampleRootElement.class, null, js... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n protected boolean isReadWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {\n return isSupported(mediaType) && getJsonXML(type, annotations) != null && isBindable(type);\n }",
"class_method_signature": "JsonXMLObjectProvider.isReadWriteable... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_12 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringJsonByPattern() {\n String pattern = \"*.json\";\n File file = new File(\"SomeFileWithJson.json\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertTrue(filter.accept(file));\n }",
"class_... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_45 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testWriteSampleTypeList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};\n\t\tType type = getClass().getDeclaredField(\"sampleTypeList\").getGen... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object entry) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_44 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testWriteSampleRootElementList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\t\n\t\tList<SampleRo... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object entry) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_13 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringUnsupportedExtension() {\n String pattern = \"*.txt\";\n File file = new File(\"SomeFileWithJson.txt\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertFalse(filter.accept(file));\n }",
"... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_52 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLProviderTest.java",
"identifier": "AbstractJsonXMLProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testIsSupported() {\n\t\tAssert.assertTrue(new TestProvider().isSupported(MediaType.APPLICATION_JSON_TYPE));\n\t\tAssert.assertTrue(new TestProvider().isSupported(new MediaType(\"text\", \"json\")));\n\t\tAssert.assertTrue(new TestProvider().isSupported(new MediaType(\"text\", \"JSON\"... | {
"fields": [
{
"declarator": "store",
"modifier": "private final",
"original_string": "private final JsonXMLContextStore store;",
"type": "JsonXMLContextStore",
"var_name": "store"
}
],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLPro... | {
"body": "protected boolean isSupported(MediaType mediaType) {\n return \"json\".equalsIgnoreCase(mediaType.getSubtype()) || mediaType.getSubtype().endsWith(\"+json\");\n }",
"class_method_signature": "AbstractJsonXMLProvider.isSupported(MediaType mediaType)",
"constructor": false,
"full_signature": ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_3 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/ApplicationUtilsTest.java",
"identifier": "ApplicationUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getImplementationVersionEmptyValue() throws Exception {\n PowerMockito.spy(ApplicationUtils.class);\n PowerMockito.doReturn(\"\").when(ApplicationUtils.class, \"getVersionFromManifest\");\n\n String s = ApplicationUtils.getVersion();\n \n // PowerMo... | {
"fields": [
{
"declarator": "UNNOWN_VERSION = \"unknown\"",
"modifier": "public static final",
"original_string": "public static final String UNNOWN_VERSION = \"unknown\";",
"type": "String",
"var_name": "UNNOWN_VERSION"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/... | {
"body": "public static final String getVersion() {\n String version = getVersionFromManifest();\n if (null == version || version.isEmpty()) {\n version = UNNOWN_VERSION;\n }\n return version;\n }",
"class_method_signature": "ApplicationUtils.getVersion()",
"constructor"... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_29 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testGetPropertiesAndPathWithOnlySpaces() throws IOException {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n PropertiesLoader loader = new PropertiesLoader(propsFile);\n ApplicationProperties appProps = new ApplicationProperties(loader);\n ... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public String getLastOpenedPath() {\n if (!isInitialized) {\n loadProperties();\n }\n\n String path = properties.getProperty(Config.LAST_DIRECTORY);\n if (null == path || path.trim().isEmpty()) {\n return null;\n } else {\n File f = new Fi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_48 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLProviderTest.java",
"identifier": "AbstractJsonXMLProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testGetAnnotation() {\n\t\tAnnotation[] annotations = new Annotation[2];\n\t\tannotations[0] = SampleType.class.getAnnotation(XmlType.class);\n\t\tannotations[1] = JsonXMLDefault.class.getAnnotation(JsonXML.class);\n\t\tAssert.assertEquals(XmlType.class, AbstractJsonXMLProvider.getAnno... | {
"fields": [
{
"declarator": "store",
"modifier": "private final",
"original_string": "private final JsonXMLContextStore store;",
"type": "JsonXMLContextStore",
"var_name": "store"
}
],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLPro... | {
"body": "protected static <A extends Annotation> A getAnnotation(Annotation[] annotations, Class<A> annotationType) {\n for (Annotation annotation : annotations) {\n if (annotation.annotationType() == annotationType) {\n return annotationType.cast(annotation);\n }\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_25 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test(expected = IllegalArgumentException.class)\n public void testApplicationPropertiesSetNullLoader() {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n ApplicationProperties props = new ApplicationProperties(new PropertiesLoader(propsFile));\n Assert.assertNot... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public void setPropertiesLoader(PropertiesLoader loader) {\n if (loader == null) {\n throw new IllegalArgumentException(\"Properties loader cannot be null\");\n }\n this.loader = loader;\n }",
"class_method_signature": "ApplicationProperties.setPropertiesLoader(Properti... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_33 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER_PATH = \"destination/\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER_PATH = \"destination/\";",
"type": "String",
"var_name": "DESTINATION_FOLDER_PATH"
}
],
"file": "... | {
"body": "@Test\n public void testPrintHelp() {\n ApplicationCommandLine.printHelp();\n }",
"class_method_signature": "ApplicationCommandLineTest.testPrintHelp()",
"constructor": false,
"full_signature": "@Test public void testPrintHelp()",
"identifier": "testPrintHelp",
"invocations": [
"... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationCommandLine.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationCommandLine.class);",
"type": "Logger",
"var_name": "LOGGER"... | {
"body": "public static void printHelp() {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(HELP_WINDOW_SIZE, \"\\n java -jar xml2json.jar \"\n + PARAM_SIGN + Config.PAR_NO_GUI + \" \"\n + PARAM_SIGN + Config.PAR_SOURCE_FOLDER + \"=[path_to_source_fo... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_26 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testApplicationPropertiesSetNotNullLoader() {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n PropertiesLoader loader = new PropertiesLoader(propsFile);\n ApplicationProperties props = new ApplicationProperties(new PropertiesLoader(propsFile)... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public void setPropertiesLoader(PropertiesLoader loader) {\n if (loader == null) {\n throw new IllegalArgumentException(\"Properties loader cannot be null\");\n }\n this.loader = loader;\n }",
"class_method_signature": "ApplicationProperties.setPropertiesLoader(Properti... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_30 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testGetPropertiesAndPathIsNotExist() throws IOException {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n PropertiesLoader loader = new PropertiesLoader(propsFile);\n ApplicationProperties appProps = new ApplicationProperties(loader);\n ... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public String getLastOpenedPath() {\n if (!isInitialized) {\n loadProperties();\n }\n\n String path = properties.getProperty(Config.LAST_DIRECTORY);\n if (null == path || path.trim().isEmpty()) {\n return null;\n } else {\n File f = new Fi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_47 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testWriteEmptyListWithVirtualRoot() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLVirtualSampleRootElement.class.getAnnotation(JsonXML.class)};\n\t\tType type = getClass().getDeclaredField... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object entry) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_10 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringXmlByPartialFileNamePatternFalse() {\n String pattern = \"*Fle*.xml\";\n File file = new File(\"SomeFileWithXml.xml\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertFalse(filter.accept(file)... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_51 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLProviderTest.java",
"identifier": "AbstractJsonXMLProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testGetSize() {\n\t\tAssert.assertEquals(-1, new TestProvider().getSize(null, null, null, null, null));\n\t}",
"class_method_signature": "AbstractJsonXMLProviderTest.testGetSize()",
"constructor": false,
"full_signature": "@Test public void testGetSize()",
"identifier": "testGe... | {
"fields": [
{
"declarator": "store",
"modifier": "private final",
"original_string": "private final JsonXMLContextStore store;",
"type": "JsonXMLContextStore",
"var_name": "store"
}
],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLPro... | {
"body": "@Override\n public long getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {\n return -1;\n }",
"class_method_signature": "AbstractJsonXMLProvider.getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)"... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_0 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/XmlUtilsTest.java",
"identifier": "XmlUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testParseXml() throws FileNotFoundException, XMLStreamException {\n XMLInputFactory f = XMLInputFactory.newFactory();\n File inputFile = new File(getClass().getResource(\"/SampleXml.xml\").getFile());\n XMLStreamReader sr = f.createXMLStreamReader(new FileInputSt... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(XmlUtils.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(XmlUtils.class);",
"type": "Logger",
"var_name": "LOGGER"
},
{
"declara... | {
"body": "public static List<String> determineArrays(InputStream in) throws XMLStreamException {\n Set<String> arrayKeys = new HashSet<>();\n XMLStreamReader sr = null;\n try {\n XMLInputFactory f = XMLInputFactory.newFactory();\n sr = f.createXMLStreamReader(in);\n\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_1 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/ApplicationUtilsTest.java",
"identifier": "ApplicationUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testApplicationVersion() {\n Assert.assertEquals(ApplicationUtils.UNNOWN_VERSION, ApplicationUtils.getVersion());\n }",
"class_method_signature": "ApplicationUtilsTest.testApplicationVersion()",
"constructor": false,
"full_signature": "@Test public void testApplicatio... | {
"fields": [
{
"declarator": "UNNOWN_VERSION = \"unknown\"",
"modifier": "public static final",
"original_string": "public static final String UNNOWN_VERSION = \"unknown\";",
"type": "String",
"var_name": "UNNOWN_VERSION"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/... | {
"body": "public static final String getVersion() {\n String version = getVersionFromManifest();\n if (null == version || version.isEmpty()) {\n version = UNNOWN_VERSION;\n }\n return version;\n }",
"class_method_signature": "ApplicationUtils.getVersion()",
"constructor"... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_50 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLProviderTest.java",
"identifier": "AbstractJsonXMLProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testGetJsonXML() {\n\t\tJsonXML typeAnnotation = SampleRootElement.class.getAnnotation(JsonXML.class);\n\t\tAssert.assertEquals(typeAnnotation, new TestProvider().getJsonXML(SampleRootElement.class, new Annotation[0]));\n\n\t\tAnnotation[] resourceAnnotations = new Annotation[]{JsonXML... | {
"fields": [
{
"declarator": "store",
"modifier": "private final",
"original_string": "private final JsonXMLContextStore store;",
"type": "JsonXMLContextStore",
"var_name": "store"
}
],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/AbstractJsonXMLPro... | {
"body": "protected JsonXML getJsonXML(Class<?> type, Annotation[] resourceAnnotations) {\n JsonXML result = getAnnotation(resourceAnnotations, JsonXML.class);\n if (result == null) {\n result = type.getAnnotation(JsonXML.class);\n }\n return result;\n }",
"class_method_si... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_11 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringXmlByPartialFileNamePatternCaseInsensitive() {\n String pattern = \"*File*.xml\";\n File file = new File(\"Some FileWithXml.XML\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertTrue(filter.a... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_46 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testWriteEmptyList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\t\n\t\tList<SampleRootElement> l... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object entry) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_31 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testLoadWithException() throws IOException {\n PropertiesLoader loader = Mockito.mock(PropertiesLoader.class);\n BDDMockito.when(loader.load()).thenThrow(new IOException());\n\n ApplicationProperties appProps = Mockito.spy(new ApplicationProperties(loader));\n ... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public String getLastOpenedPath() {\n if (!isInitialized) {\n loadProperties();\n }\n\n String path = properties.getProperty(Config.LAST_DIRECTORY);\n if (null == path || path.trim().isEmpty()) {\n return null;\n } else {\n File f = new Fi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_27 | {
"fields": [
{
"declarator": "DESTINATION_FOLDER = \"ApplicationPropertiesFolder\"",
"modifier": "private static final",
"original_string": "private static final String DESTINATION_FOLDER = \"ApplicationPropertiesFolder\";",
"type": "String",
"var_name": "DESTINATION_FOLDER"
},
... | {
"body": "@Test\n public void testGetPropertiesAndPathNotExists() {\n File propsFile = new File(getDestinationDirectory(), TEST_FILE);\n ApplicationProperties props = new ApplicationProperties(new PropertiesLoader(propsFile));\n Assert.assertNotNull(props);\n \n String path = pr... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ApplicationProperties.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationProperties.class);",
"type": "Logger",
"var_name": "LOGGER"
... | {
"body": "public String getLastOpenedPath() {\n if (!isInitialized) {\n loadProperties();\n }\n\n String path = properties.getProperty(Config.LAST_DIRECTORY);\n if (null == path || path.trim().isEmpty()) {\n return null;\n } else {\n File f = new Fi... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_41 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadEmptyList2() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\tString json = \"{\\\"sampleRoot... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_16 | {
"fields": [
{
"declarator": "filesToDelete = new ArrayList<>()",
"modifier": "",
"original_string": "List<File> filesToDelete = new ArrayList<>();",
"type": "List<File>",
"var_name": "filesToDelete"
},
{
"declarator": "destinationFile",
"modifier": "",
"or... | {
"body": "@Test\n public void testConvertJsonToXml() throws IOException, XMLStreamException {\n File sourceFile = new File(this.getClass().getClassLoader().getResource(\"SampleJson.json\").getFile());\n destinationFile = new File(getTempDirectory(), \"ConvertedFile.xml\");\n \n Convert... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ConverterService.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ConverterService.class);",
"type": "Logger",
"var_name": "LOGGER"
},
... | {
"body": "public File convert(File sourceFile, File outputFile, IFileReadListener listener, AtomicBoolean isCanceled)\n throws IOException, XMLStreamException {\n StopWatch sw = new StopWatch();\n\n Objects.requireNonNull(listener, \"Listener must be not null\");\n\n FileTypeEnum inpu... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_57 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testWriteSampleType() throws Exception {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};\n\n\t\tSampleType sampleType = new SampleType();\n\t\tsampleType.element ... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object value) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_6 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/util/ConverterUtilsTest.java",
"identifier": "ConverterUtilsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NullPointerException.class)\n public void testGetConvertedFileWithUnsupportedFile() {\n File sourceFile = new File(\"someIncorrectFile.txt\");\n File outputDirectory = new File(\".\");\n \n ConverterUtils.getConvertedFile(sourceFile, outputDirectory);\n }"... | {
"fields": [],
"file": "xml2json/src/main/java/com/fs/xml2json/util/ConverterUtils.java",
"identifier": "ConverterUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "ConverterUtils.ConverterUtils()",
"constructor": true,
"full_signature": "private ConverterUtils()",
... | {
"body": "public static File getConvertedFile(File sourceFile, File destinationFolder) {\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(sourceFile.getName());\n String convertedFileName = \"\";\n String fileNameWithoutExtension = sourceFile.getName().substring(0, sourceFile.getName().las... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_20 | {
"fields": [
{
"declarator": "filesToDelete = new ArrayList<>()",
"modifier": "",
"original_string": "List<File> filesToDelete = new ArrayList<>();",
"type": "List<File>",
"var_name": "filesToDelete"
},
{
"declarator": "destinationFile",
"modifier": "",
"or... | {
"body": "@Test\n public void testConvertXmlToJsonFullProcess() throws IOException, XMLStreamException {\n \n File tempDirectory = new File(getTempDirectory(), \"xml2jsonSerialize\");\n filesToDelete.add(tempDirectory);\n \n tempDirectory.mkdirs();\n \n ComplexObje... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ConverterService.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ConverterService.class);",
"type": "Logger",
"var_name": "LOGGER"
},
... | {
"body": "public File convert(File sourceFile, File outputFile, IFileReadListener listener, AtomicBoolean isCanceled)\n throws IOException, XMLStreamException {\n StopWatch sw = new StopWatch();\n\n Objects.requireNonNull(listener, \"Listener must be not null\");\n\n FileTypeEnum inpu... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_61 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testWriteNullWithVirtualRoot() throws Exception {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLVirtualSampleRootElement.class.getAnnotation(JsonXML.class)};\n\n\t\tStringWriter writer = new StringWriter()... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object value) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_36 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadRootElementList_DocumentArray() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\tString json ... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_37 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadSampleTypeList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[]{JsonXMLDefault.class.getAnnotation(JsonXML.class)};\n\t\tType type = getClass().getDeclaredField(\"sampleTypeList\").getGene... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_60 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testWriteNull() throws Exception {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\n\t\tStringWriter writer = new StringWriter();\n\t\tprovider.write(SampleRootElement.class,\n\t\t\t\tnull, annotations, MediaTy... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object value) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_21 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/controller/HostServicesProviderTest.java",
"identifier": "HostServicesProviderTest",
"interfaces": "",
"superclass": "extends Application"
} | {
"body": "@Test(expected = IllegalStateException.class)\n public void testNotInitializedInstance() {\n HostServicesProvider.INSTANCE.getHostServices();\n }",
"class_method_signature": "HostServicesProviderTest.testNotInitializedInstance()",
"constructor": false,
"full_signature": "@Test(expected =... | {
"fields": [
{
"declarator": "INSTANCE = new HostServicesProvider()",
"modifier": "public static final",
"original_string": "public static final HostServicesProvider INSTANCE = new HostServicesProvider();",
"type": "HostServicesProvider",
"var_name": "INSTANCE"
},
{
"d... | {
"body": "public HostServices getHostServices() {\n if (hostServices == null) {\n throw new IllegalStateException(\"Host services not initialized\");\n }\n return hostServices;\n }",
"class_method_signature": "HostServicesProvider.getHostServices()",
"constructor": false,
"fu... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_7 | {
"fields": [],
"file": "xml2json/src/test/java/com/fs/xml2json/filter/CustomPatternFileFilterTest.java",
"identifier": "CustomPatternFileFilterTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testFilteringXmlByPattern() {\n String pattern = \"*.xml\";\n File file = new File(\"SomeFileWithXml.xml\");\n CustomPatternFileFilter filter = new CustomPatternFileFilter(pattern);\n \n Assert.assertTrue(filter.accept(file));\n }",
"class_meth... | {
"fields": [
{
"declarator": "pattern",
"modifier": "private final",
"original_string": "private final String pattern;",
"type": "String",
"var_name": "pattern"
}
],
"file": "xml2json/src/main/java/com/fs/xml2json/filter/CustomPatternFileFilter.java",
"identifier": "Custom... | {
"body": "@Override\n public boolean accept(File file) {\n String fileNameInLowerCase = file.getName().toLowerCase();\n\n FileTypeEnum fileType = FileTypeEnum.parseByFileName(fileNameInLowerCase);\n\n return (null != fileType) && fileNameInLowerCase.matches(pattern);\n }",
"class_method_... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_56 | {
"fields": [],
"file": "staxon/jaxrs/src/test/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProviderTest.java",
"identifier": "JsonXMLObjectProviderTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testWriteSampleRootElement() throws Exception {\n\t\tJsonXMLObjectProvider provider = new JsonXMLObjectProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\t\n\t\tSampleRootElement sampleRootElement = new SampleRootElement();\n\t\tsampleRootElement.attribute = \"hello... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLObjectProvider.java",
"identifier": "JsonXMLObjectProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLObjectProvider.JsonXMLObjectProvider(@Context Providers providers)",
"co... | {
"body": "@Override\n public void write(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, Object> httpHeaders,\n Writer stream,\n Object value) throws IOException, WebApplic... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_17 | {
"fields": [
{
"declarator": "filesToDelete = new ArrayList<>()",
"modifier": "",
"original_string": "List<File> filesToDelete = new ArrayList<>();",
"type": "List<File>",
"var_name": "filesToDelete"
},
{
"declarator": "destinationFile",
"modifier": "",
"or... | {
"body": "@Test(expected = XMLStreamException.class)\n public void testConvertCorruptedXmlToJson() throws IOException, XMLStreamException {\n File sourceFile = new File(this.getClass().getClassLoader().getResource(\"CorruptedXml.xml\").getFile());\n destinationFile = new File(getTempDirectory(), \"C... | {
"fields": [
{
"declarator": "LOGGER = LoggerFactory.getLogger(ConverterService.class)",
"modifier": "private static final",
"original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ConverterService.class);",
"type": "Logger",
"var_name": "LOGGER"
},
... | {
"body": "public File convert(File sourceFile, File outputFile, IFileReadListener listener, AtomicBoolean isCanceled)\n throws IOException, XMLStreamException {\n StopWatch sw = new StopWatch();\n\n Objects.requireNonNull(listener, \"Listener must be not null\");\n\n FileTypeEnum inpu... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
91120647_40 | {
"fields": [
{
"declarator": "sampleRootElementList = new ArrayList<SampleRootElement>()",
"modifier": "static",
"original_string": "static List<SampleRootElement> sampleRootElementList = new ArrayList<SampleRootElement>();",
"type": "List<SampleRootElement>",
"var_name": "sampleRoo... | {
"body": "@Test\n\tpublic void testReadEmptyList() throws Exception {\n\t\tJsonXMLArrayProvider provider = new JsonXMLArrayProvider(null);\n\t\tAnnotation[] annotations = new Annotation[0];\n\t\tType type = getClass().getDeclaredField(\"sampleRootElementList\").getGenericType();\n\t\tString json = \"{}\";\n\n\t\t@Su... | {
"fields": [],
"file": "staxon/jaxrs/src/main/java/de/odysseus/staxon/json/jaxrs/jaxb/JsonXMLArrayProvider.java",
"identifier": "JsonXMLArrayProvider",
"interfaces": "",
"methods": [
{
"class_method_signature": "JsonXMLArrayProvider.JsonXMLArrayProvider(@Context Providers providers)",
"constr... | {
"body": "@Override\n public Object read(\n Class<?> type,\n Type genericType,\n Annotation[] annotations,\n MediaType mediaType,\n MultivaluedMap<String, String> httpHeaders,\n Reader stream) throws IOException, WebApplicationException {\n ... | {
"created": null,
"fork": null,
"fork_count": 1,
"is_fork": false,
"language": "Java",
"license": "licensed",
"repo_id": 91120647,
"size": 1201,
"stargazer_count": 5,
"stars": null,
"updates": null,
"url": "https://github.com/AntonMykolaienko/xml2json"
} |
39392321_30 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIntDiv() {\n\t\tassertEquals(Int(0), simplify(Div(Int(1), Int(2))));\n\t\tassertEquals(Int(1), simplify(Div(Int(3), Int(2))));\n\t\tassertEquals(Div(Int(0), a), simplify(Div(Int(0), a)));\n\t}",
"class_method_signature": "ExprSimplifierTest.testIntDiv()",
"constructor": false,
... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_67 | {
"fields": [
{
"declarator": "a",
"modifier": "private",
"original_string": "private Expr<BoolType> a, b, c, d, e;",
"type": "Expr<BoolType>",
"var_name": "a"
},
{
"declarator": "x",
"modifier": "private",
"original_string": "private Expr<IntType> x, y, z, ... | {
"body": "@Test\n\tpublic void testNothingHappening() {\n\t\tfinal List<Expr<BoolType>> expressions = new ArrayList<>();\n\t\texpressions.add(And(a, b, d));\n\t\texpressions.add(Eq(x, Neg(y)));\n\t\texpressions.add(Geq(Sub(x, y), Add(x, z, t)));\n\n\t\tfor (final Expr<BoolType> expr : expressions) {\n\t\t\tassertEqu... | {
"fields": [],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/utils/ExprIteEliminator.java",
"identifier": "ExprIteEliminator",
"interfaces": "",
"methods": [
{
"class_method_signature": "ExprIteEliminator.ExprIteEliminator()",
"constructor": true,
"full_signature": "priv... | {
"body": "static <T extends Type> Expr<T> eliminateIte(final Expr<T> expr) {\n\t\treturn removeIte(propagateIte(expr));\n\t}",
"class_method_signature": "ExprIteEliminator.eliminateIte(final Expr<T> expr)",
"constructor": false,
"full_signature": "static Expr<T> eliminateIte(final Expr<T> expr)",
"identifier... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_88 | {
"fields": [
{
"declarator": "arg = ARG.create(new PartialOrdStub())",
"modifier": "private final",
"original_string": "private final ARG<State, Action> arg = ARG.create(new PartialOrdStub());",
"type": "ARG<State, Action>",
"var_name": "arg"
},
{
"declarator": "act = ... | {
"body": "@Test\n\tpublic void testCreationAsc() {\n\t\tnodes.sort(creationAsc());\n\t\tAssert.assertArrayEquals(new ArgNode[]{s0, s10, s20, s21, s11, s12}, nodes.toArray());\n\t}",
"class_method_signature": "ArgNodeComparatorsTest.testCreationAsc()",
"constructor": false,
"full_signature": "@Test public void ... | {
"fields": [],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/algorithm/ArgNodeComparators.java",
"identifier": "ArgNodeComparators",
"interfaces": "",
"methods": [
{
"class_method_signature": "ArgNodeComparators.ArgNodeComparators()",
"constructor": true,
"full_s... | {
"body": "public static ArgNodeComparator creationAsc() {\n\t\treturn new CreationOrder();\n\t}",
"class_method_signature": "ArgNodeComparators.creationAsc()",
"constructor": false,
"full_signature": "public static ArgNodeComparator creationAsc()",
"identifier": "creationAsc",
"invocations": [],
"modifie... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_71 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "final",
"original_string": "final VarDecl<?> x = Var(\"x\", Int());",
"type": "VarDecl<?>",
"var_name": "x"
},
{
"declarator": "y = Var(\"y\", Int())",
"modifier": "final",
"original_string"... | {
"body": "@Test\n\tpublic void testJoin() {\n\t\tfinal VarIndexing indexes1 = VarIndexing.builder(0).inc(x).inc(y).build();\n\t\tfinal VarIndexing indexes2 = VarIndexing.builder(1).inc(x).inc(z).build();\n\t\tfinal VarIndexing joinedIndexes = indexes1.join(indexes2);\n\n\t\tassertEquals(2, joinedIndexes.get(x));\n\t... | {
"fields": [
{
"declarator": "ALL_ZERO = new Builder(0).build()",
"modifier": "private static final",
"original_string": "private static final VarIndexing ALL_ZERO = new Builder(0).build();",
"type": "VarIndexing",
"var_name": "ALL_ZERO"
},
{
"declarator": "ALL_ONE = n... | {
"body": "public VarIndexing join(final VarIndexing indexing) {\n\t\tcheckNotNull(indexing);\n\t\treturn transform().join(indexing.transform()).build();\n\t}",
"class_method_signature": "VarIndexing.join(final VarIndexing indexing)",
"constructor": false,
"full_signature": "public VarIndexing join(final VarInd... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_26 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIntAdd() {\n\t\tassertEquals(Int(6), simplify(Add(Int(1), Int(2), Int(3))));\n\t\tassertEquals(Int(0), simplify(Add(Int(1), Int(2), Int(-3))));\n\t\tassertEquals(Add(a, Int(4)), simplify(Add(Int(1), a, Int(3))));\n\t\tassertEquals(Add(a, Int(4)), simplify(Add(Int(1), Add(a, Int(3))... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_101 | {
"fields": [
{
"declarator": "filepath",
"modifier": "@Parameter(0)\n\tpublic",
"original_string": "@Parameter(0)\n\tpublic String filepath;",
"type": "String",
"var_name": "filepath"
}
],
"file": "subprojects/xta/src/test/java/hu/bme/mit/theta/xta/dsl/XtaDslManagerTest.java... | {
"body": "@Test\n\tpublic void test() throws FileNotFoundException, IOException {\n\t\tfinal InputStream inputStream = getClass().getResourceAsStream(filepath);\n\t\tfinal XtaSystem system = XtaDslManager.createSystem(inputStream);\n\t\tfinal XtaProcess process = system.getProcesses().get(0);\n\t\tSystem.out.println... | {
"fields": [],
"file": "subprojects/xta/src/main/java/hu/bme/mit/theta/xta/dsl/XtaDslManager.java",
"identifier": "XtaDslManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "XtaDslManager.XtaDslManager()",
"constructor": true,
"full_signature": "private XtaDslManager()... | {
"body": "public static XtaSystem createSystem(final String inputString) throws IOException {\n\t\tfinal InputStream stream = new ByteArrayInputStream(inputString.getBytes(StandardCharsets.UTF_8.name()));\n\t\treturn createSystem(stream);\n\t}",
"class_method_signature": "XtaDslManager.createSystem(final String in... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_84 | {
"fields": [
{
"declarator": "s0 = new StateStub(\"S0\")",
"modifier": "",
"original_string": "State s0 = new StateStub(\"S0\");",
"type": "State",
"var_name": "s0"
},
{
"declarator": "s1 = new StateStub(\"S1\")",
"modifier": "",
"original_string": "State s... | {
"body": "@Test\n\tpublic void testReverse() {\n\t\tfinal Trace<?, ?> trace = Trace.of(of(s0, s1, s2), of(a0, a1));\n\t\tfinal Trace<?, ?> reverse = trace.reverse();\n\n\t\tAssert.assertEquals(trace.length(), reverse.length());\n\t\tAssert.assertEquals(trace.getStates().size(), reverse.getStates().size());\n\t\tAsse... | {
"fields": [
{
"declarator": "states",
"modifier": "private final",
"original_string": "private final ImmutableList<S> states;",
"type": "ImmutableList<S>",
"var_name": "states"
},
{
"declarator": "actions",
"modifier": "private final",
"original_string": "... | {
"body": "public Trace<S, A> reverse() {\n\t\treturn Trace.of(states.reverse(), actions.reverse());\n\t}",
"class_method_signature": "Trace.reverse()",
"constructor": false,
"full_signature": "public Trace<S, A> reverse()",
"identifier": "reverse",
"invocations": [
"of",
"reverse",
"reverse"
... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_92 | {
"fields": [
{
"declarator": "X = Decls.Var(\"x\", Int())",
"modifier": "private final",
"original_string": "private final VarDecl<IntType> X = Decls.Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "X"
},
{
"declarator": "Y = Decls.Var(\"y\", Int())",
... | {
"body": "@Test\n\tpublic void testLeq() {\n\t\tAssert.assertTrue(ord.isLeq(st, st));\n\t\tAssert.assertTrue(ord.isLeq(s1, st));\n\t\tAssert.assertTrue(ord.isLeq(s2, st));\n\t\tAssert.assertTrue(ord.isLeq(s3, st));\n\t\tAssert.assertTrue(ord.isLeq(s4, st));\n\t\tAssert.assertTrue(ord.isLeq(sb, st));\n\n\t\tAssert.as... | {
"fields": [],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/expl/ExplOrd.java",
"identifier": "ExplOrd",
"interfaces": "implements PartialOrd<ExplState>",
"methods": [
{
"class_method_signature": "ExplOrd.ExplOrd()",
"constructor": true,
"full_signature": "priva... | {
"body": "@Override\n\tpublic boolean isLeq(final ExplState state1, final ExplState state2) {\n\t\treturn state1.isLeq(state2);\n\t}",
"class_method_signature": "ExplOrd.isLeq(final ExplState state1, final ExplState state2)",
"constructor": false,
"full_signature": "@Override public boolean isLeq(final ExplSta... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_2 | {
"fields": [
{
"declarator": "ca = Const(\"a\", Int())",
"modifier": "private final",
"original_string": "private final ConstDecl<IntType> ca = Const(\"a\", Int());",
"type": "ConstDecl<IntType>",
"var_name": "ca"
},
{
"declarator": "cb = Const(\"b\", Int())",
"m... | {
"body": "@Test\n\tpublic void testNullary() {\n\t\tfinal Valuation val = ImmutableValuation.empty();\n\t\tAssert.assertEquals(val.toExpr(), True());\n\t}",
"class_method_signature": "ValuationTest.testNullary()",
"constructor": false,
"full_signature": "@Test public void testNullary()",
"identifier": "testN... | {
"fields": [
{
"declarator": "HASH_SEED = 2141",
"modifier": "private static final",
"original_string": "private static final int HASH_SEED = 2141;",
"type": "int",
"var_name": "HASH_SEED"
}
],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/model/Valuation.jav... | {
"body": "public Expr<BoolType> toExpr() {\n\t\tfinal List<Expr<BoolType>> exprs = new ArrayList<>();\n\t\tfor (final Decl<?> decl : getDecls()) {\n\t\t\tfinal Expr<BoolType> expr = Eq(decl.getRef(), eval(decl).get());\n\t\t\texprs.add(expr);\n\t\t}\n\t\treturn SmartBoolExprs.And(exprs);\n\t}",
"class_method_signa... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_51 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvNeq() {\n\t\tassertEquals(\n\t\t\tFalse(),\n\t\t\tsimplify(BvExprs.Neq(\n\t\t\t\tBv(new boolean[] {false, true, false, false}),\n\t\t\t\tBv(new boolean[] {false, true, false, false})\n\t\t\t))\n\t\t);\n\t\tassertEquals(\n\t\t\tTrue(),\n\t\t\tsimplify(BvExprs.Neq(\n\t\t\t\tBv(new ... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_10 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIff() {\n\t\tassertEquals(Not(x), simplify(Iff(False(), x)));\n\t\tassertEquals(x, simplify(Iff(x, True())));\n\t\tassertEquals(x, simplify(Iff(True(), x)));\n\t\tassertEquals(Not(x), simplify(Iff(x, False())));\n\t\tassertEquals(True(), simplify(Iff(x, x)));\n\t}",
"class_method... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_47 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvXor() {\n\t\tassertEquals(\n\t\t\tBv(new boolean[] {false, false, true, true}),\n\t\t\tsimplify(BvExprs.Xor(List.of(\n\t\t\t\tBv(new boolean[] {false, true, false, true}),\n\t\t\t\tBv(new boolean[] {false, true, true, false})\n\t\t\t)))\n\t\t);\n\t\tassertEquals(\n\t\t\tBvExprs.X... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_46 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvOr() {\n\t\tassertEquals(\n\t\t\t\tBv(new boolean[] {false, true, true, true}),\n\t\t\t\tsimplify(BvExprs.Or(List.of(\n\t\t\t\t\tBv(new boolean[] {false, true, false, true}),\n\t\t\t\t\tBv(new boolean[] {false, true, true, false})\n\t\t\t\t)))\n\t\t);\n\t\tassertEquals(\n\t\t\tBv... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_11 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testXor() {\n\t\tassertEquals(x, simplify(Xor(False(), x)));\n\t\tassertEquals(Not(x), simplify(Xor(x, True())));\n\t\tassertEquals(Not(x), simplify(Xor(True(), x)));\n\t\tassertEquals(x, simplify(Xor(x, False())));\n\t\tassertEquals(False(), simplify(Xor(x, x)));\n\t}",
"class_metho... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_50 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvEq() {\n\t\tassertEquals(\n\t\t\tTrue(),\n\t\t\tsimplify(BvExprs.Eq(\n\t\t\t\tBv(new boolean[] {false, true, false, false}),\n\t\t\t\tBv(new boolean[] {false, true, false, false})\n\t\t\t))\n\t\t);\n\t\tassertEquals(\n\t\t\tFalse(),\n\t\t\tsimplify(BvExprs.Eq(\n\t\t\t\tBv(new boo... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_3 | {
"fields": [
{
"declarator": "ca = Const(\"a\", Int())",
"modifier": "private final",
"original_string": "private final ConstDecl<IntType> ca = Const(\"a\", Int());",
"type": "ConstDecl<IntType>",
"var_name": "ca"
},
{
"declarator": "cb = Const(\"b\", Int())",
"m... | {
"body": "@Test\n\tpublic void testUnary() {\n\t\tfinal Valuation val = ImmutableValuation.builder().put(ca, Int(5)).build();\n\t\tAssert.assertEquals(val.toExpr(), Eq(ca.getRef(), Int(5)));\n\t}",
"class_method_signature": "ValuationTest.testUnary()",
"constructor": false,
"full_signature": "@Test public void... | {
"fields": [
{
"declarator": "HASH_SEED = 2141",
"modifier": "private static final",
"original_string": "private static final int HASH_SEED = 2141;",
"type": "int",
"var_name": "HASH_SEED"
}
],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/model/Valuation.jav... | {
"body": "public Expr<BoolType> toExpr() {\n\t\tfinal List<Expr<BoolType>> exprs = new ArrayList<>();\n\t\tfor (final Decl<?> decl : getDecls()) {\n\t\t\tfinal Expr<BoolType> expr = Eq(decl.getRef(), eval(decl).get());\n\t\t\texprs.add(expr);\n\t\t}\n\t\treturn SmartBoolExprs.And(exprs);\n\t}",
"class_method_signa... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_93 | {
"fields": [
{
"declarator": "X = Var(\"x\", Int())",
"modifier": "private static final",
"original_string": "private static final VarDecl<IntType> X = Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "X"
},
{
"declarator": "Y = Var(\"y\", Int())",
"m... | {
"body": "@Test\n\tpublic void test() {\n\t\t// Arrange\n\t\tfinal MutableValuation val = new MutableValuation();\n\t\tfor (final Tuple2<Decl<?>, LitExpr<?>> entry : initialEntries) {\n\t\t\tval.put(entry.get1(), entry.get2());\n\t\t}\n\n\t\t// Act\n\t\tfinal ApplyResult actualResult = StmtApplier.apply(stmt, val, a... | {
"fields": [],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/expl/StmtApplier.java",
"identifier": "StmtApplier",
"interfaces": "",
"methods": [
{
"class_method_signature": "StmtApplier.StmtApplier()",
"constructor": true,
"full_signature": "private StmtApplier(... | {
"body": "public static ApplyResult apply(final Stmt stmt, final MutableValuation val, final boolean approximate) {\n\t\tif (stmt instanceof AssignStmt) {\n\t\t\tfinal AssignStmt<?> assignStmt = (AssignStmt<?>) stmt;\n\t\t\treturn applyAssign(assignStmt, val, approximate);\n\t\t} else if (stmt instanceof AssumeStmt)... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_85 | {
"fields": [
{
"declarator": "s0 = new StateStub(\"S0\")",
"modifier": "",
"original_string": "State s0 = new StateStub(\"S0\");",
"type": "State",
"var_name": "s0"
},
{
"declarator": "s1 = new StateStub(\"S1\")",
"modifier": "",
"original_string": "State s... | {
"body": "@Test\n\tpublic void testEquals() {\n\t\tfinal Trace<?, ?> trace1 = Trace.of(of(s0, s1, s2), of(a0, a1));\n\t\tfinal Trace<?, ?> trace2 = Trace.of(of(s0, s1, s2), of(a0, a1));\n\t\tfinal Trace<?, ?> trace3 = Trace.of(of(s0, s2, s1), of(a0, a1));\n\t\tfinal Trace<?, ?> trace4 = Trace.of(of(s0, s1, s2), of(a... | {
"fields": [
{
"declarator": "states",
"modifier": "private final",
"original_string": "private final ImmutableList<S> states;",
"type": "ImmutableList<S>",
"var_name": "states"
},
{
"declarator": "actions",
"modifier": "private final",
"original_string": "... | {
"body": "@Override\n\tpublic boolean equals(final Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t} else if (obj instanceof Trace) {\n\t\t\tfinal Trace<?, ?> that = (Trace<?, ?>) obj;\n\t\t\treturn this.states.equals(that.states) && this.actions.equals(that.actions);\n\t\t} else {\n\t\t\treturn false... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_100 | {
"fields": [
{
"declarator": "filepath",
"modifier": "@Parameter(0)\n\tpublic",
"original_string": "@Parameter(0)\n\tpublic String filepath;",
"type": "String",
"var_name": "filepath"
},
{
"declarator": "reader",
"modifier": "private",
"original_string": "p... | {
"body": "@Test\n\tpublic void test() {\n\t\t// Act\n\t\tfinal CFA cfa = parser.cfa();\n\t\tAssert.assertEquals(1, cfa.getVars().size());\n\t\tAssert.assertEquals(6, cfa.getLocs().size());\n\t\tAssert.assertEquals(6, cfa.getEdges().size());\n\t}",
"class_method_signature": "CfaParserTest.test()",
"constructor": ... | {
"fields": [
{
"declarator": "parser",
"modifier": "private final",
"original_string": "private final LispParser parser;",
"type": "LispParser",
"var_name": "parser"
},
{
"declarator": "interpreter",
"modifier": "private final",
"original_string": "private ... | {
"body": "public CFA cfa() {\n\t\tfinal SExpr sexpr = parser.sexpr();\n\t\tfinal CFA cfa = interpreter.cfa(sexpr);\n\t\treturn cfa;\n\t}",
"class_method_signature": "CfaParser.cfa()",
"constructor": false,
"full_signature": "public CFA cfa()",
"identifier": "cfa",
"invocations": [
"sexpr",
"cfa"
... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_27 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIntSub() {\n\t\tassertEquals(Int(-1), simplify(Sub(Int(7), Int(8))));\n\t\tassertEquals(Int(0), simplify(Sub(a, a)));\n\t}",
"class_method_signature": "ExprSimplifierTest.testIntSub()",
"constructor": false,
"full_signature": "@Test public void testIntSub()",
"identifier": ... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_70 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "final",
"original_string": "final VarDecl<?> x = Var(\"x\", Int());",
"type": "VarDecl<?>",
"var_name": "x"
},
{
"declarator": "y = Var(\"y\", Int())",
"modifier": "final",
"original_string"... | {
"body": "@Test\n\tpublic void testInc() {\n\t\tfinal VarIndexing indexes = VarIndexing.builder(0).inc(x).inc(z).inc(x).build();\n\n\t\tassertEquals(2, indexes.get(x));\n\t\tassertEquals(0, indexes.get(y));\n\t\tassertEquals(1, indexes.get(z));\n\t}",
"class_method_signature": "VarIndexingTest.testInc()",
"const... | {
"fields": [
{
"declarator": "ALL_ZERO = new Builder(0).build()",
"modifier": "private static final",
"original_string": "private static final VarIndexing ALL_ZERO = new Builder(0).build();",
"type": "VarIndexing",
"var_name": "ALL_ZERO"
},
{
"declarator": "ALL_ONE = n... | {
"body": "public VarIndexing inc(final VarDecl<?> varDecl, final int n) {\n\t\tcheckNotNull(varDecl);\n\t\treturn transform().inc(varDecl, n).build();\n\t}",
"class_method_signature": "VarIndexing.inc(final VarDecl<?> varDecl, final int n)",
"constructor": false,
"full_signature": "public VarIndexing inc(final... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_66 | {
"fields": [
{
"declarator": "a",
"modifier": "private",
"original_string": "private Expr<BoolType> a, b, c, d, e;",
"type": "Expr<BoolType>",
"var_name": "a"
},
{
"declarator": "x",
"modifier": "private",
"original_string": "private Expr<IntType> x, y, z, ... | {
"body": "@Test\n\tpublic void testMultiary() {\n\t\t// A or B or (if C then D else E)\n\t\tassertEquals(eliminateIte(Or(a, b, Ite(c, d, e))), Or(a, b, And(Or(Not(c), d), Or(c, e))));\n\t\t// 1 = 2 + (if A then 3 else 4) + 5\n\t\tassertEquals(eliminateIte(Eq(i1, Add(i2, Ite(a, i3, i4), i5))),\n\t\t\t\tAnd(Or(Not(a),... | {
"fields": [],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/utils/ExprIteEliminator.java",
"identifier": "ExprIteEliminator",
"interfaces": "",
"methods": [
{
"class_method_signature": "ExprIteEliminator.ExprIteEliminator()",
"constructor": true,
"full_signature": "priv... | {
"body": "static <T extends Type> Expr<T> eliminateIte(final Expr<T> expr) {\n\t\treturn removeIte(propagateIte(expr));\n\t}",
"class_method_signature": "ExprIteEliminator.eliminateIte(final Expr<T> expr)",
"constructor": false,
"full_signature": "static Expr<T> eliminateIte(final Expr<T> expr)",
"identifier... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_89 | {
"fields": [
{
"declarator": "arg = ARG.create(new PartialOrdStub())",
"modifier": "private final",
"original_string": "private final ARG<State, Action> arg = ARG.create(new PartialOrdStub());",
"type": "ARG<State, Action>",
"var_name": "arg"
},
{
"declarator": "act = ... | {
"body": "@Test\n\tpublic void testCreationDesc() {\n\t\tnodes.sort(creationDesc());\n\t\tAssert.assertArrayEquals(new ArgNode[]{s12, s11, s21, s20, s10, s0}, nodes.toArray());\n\t}",
"class_method_signature": "ArgNodeComparatorsTest.testCreationDesc()",
"constructor": false,
"full_signature": "@Test public vo... | {
"fields": [],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/algorithm/ArgNodeComparators.java",
"identifier": "ArgNodeComparators",
"interfaces": "",
"methods": [
{
"class_method_signature": "ArgNodeComparators.ArgNodeComparators()",
"constructor": true,
"full_s... | {
"body": "public static ArgNodeComparator creationDesc() {\n\t\treturn invert(creationAsc());\n\t}",
"class_method_signature": "ArgNodeComparators.creationDesc()",
"constructor": false,
"full_signature": "public static ArgNodeComparator creationDesc()",
"identifier": "creationDesc",
"invocations": [
"i... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_31 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testMod() {\n\t\tassertEquals(Int(1), simplify(Mod(Int(6), Int(5))));\n\t\tassertEquals(Int(1), simplify(Mod(Int(6), Int(5))));\n\n\t\tassertEquals(Int(2), simplify(Mod(Int(5), Int(3))));\n\t\tassertEquals(Int(1), simplify(Mod(Int(-5), Int(3))));\n\t\tassertEquals(Int(2), simplify(Mod(... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_82 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "private final",
"original_string": "private final VarDecl<IntType> x = Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "x"
},
{
"declarator": "y = Var(\"y\", Int())",
"modifier": "pri... | {
"body": "@Test\n\tpublic void testBottom() {\n\t\t// (x>0) ---[assume x=0]--> (x>0)?\n\t\tfinal PredPrec prec = PredPrec.of(ImmutableList.of(Gt(x.getRef(), Int(0))));\n\t\tfinal PredState state = PredState.of(Gt(x.getRef(), Int(0)));\n\t\tfinal ExprAction action = new BasicStmtAction(Stmts.Assume(Eq(Int(0), x.getRe... | {
"fields": [
{
"declarator": "predAbstractor",
"modifier": "private final",
"original_string": "private final PredAbstractor predAbstractor;",
"type": "PredAbstractor",
"var_name": "predAbstractor"
}
],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/pr... | {
"body": "@Override\n\tpublic Collection<? extends PredState> getSuccStates(final PredState state, final ExprAction action,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t final PredPrec prec) {\n\t\tcheckNotNull(state);\n\t\tcheckNotNull(action);\n\t\tcheckNotNull(prec);\n\n\t\tfinal Collection<PredState> succStates = predAbstractor... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_94 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "private final",
"original_string": "private final VarDecl<IntType> x = Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "x"
},
{
"declarator": "y = Var(\"y\", Int())",
"modifier": "pri... | {
"body": "@Test\n\tpublic void testEquals() {\n\t\tfinal ExplPrec p1 = ExplPrec.empty();\n\t\tfinal ExplPrec p2 = ExplPrec.empty();\n\t\tfinal ExplPrec p3 = ExplPrec.of(Collections.emptySet());\n\t\tfinal ExplPrec p4 = ExplPrec.of(Collections.singleton(x));\n\t\tfinal ExplPrec p5 = ExplPrec.of(Collections.singleton(... | {
"fields": [
{
"declarator": "vars",
"modifier": "private final",
"original_string": "private final Set<VarDecl<?>> vars;",
"type": "Set<VarDecl<?>>",
"var_name": "vars"
},
{
"declarator": "EMPTY = new ExplPrec(Collections.emptySet())",
"modifier": "private stati... | {
"body": "@Override\n\tpublic boolean equals(final Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t} else if (obj instanceof ExplPrec) {\n\t\t\tfinal ExplPrec that = (ExplPrec) obj;\n\t\t\treturn this.getVars().equals(that.getVars());\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"class_method_si... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_4 | {
"fields": [
{
"declarator": "ca = Const(\"a\", Int())",
"modifier": "private final",
"original_string": "private final ConstDecl<IntType> ca = Const(\"a\", Int());",
"type": "ConstDecl<IntType>",
"var_name": "ca"
},
{
"declarator": "cb = Const(\"b\", Int())",
"m... | {
"body": "@Test\n\tpublic void testMultiary() {\n\t\tfinal Valuation val = ImmutableValuation.builder().put(ca, Int(5)).put(cb, Int(9)).build();\n\t\tAssert.assertEquals(val.toExpr(), And(Eq(ca.getRef(), Int(5)), Eq(cb.getRef(), Int(9))));\n\t}",
"class_method_signature": "ValuationTest.testMultiary()",
"constru... | {
"fields": [
{
"declarator": "HASH_SEED = 2141",
"modifier": "private static final",
"original_string": "private static final int HASH_SEED = 2141;",
"type": "int",
"var_name": "HASH_SEED"
}
],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/model/Valuation.jav... | {
"body": "public Expr<BoolType> toExpr() {\n\t\tfinal List<Expr<BoolType>> exprs = new ArrayList<>();\n\t\tfor (final Decl<?> decl : getDecls()) {\n\t\t\tfinal Expr<BoolType> expr = Eq(decl.getRef(), eval(decl).get());\n\t\t\texprs.add(expr);\n\t\t}\n\t\treturn SmartBoolExprs.And(exprs);\n\t}",
"class_method_signa... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_57 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIte() {\n\t\tassertEquals(a, simplify(Ite(True(), a, b)));\n\t\tassertEquals(b, simplify(Ite(False(), a, b)));\n\t\tassertEquals(a, simplify(Ite(True(), Ite(True(), Ite(True(), a, b), b), b)));\n\t}",
"class_method_signature": "ExprSimplifierTest.testIte()",
"constructor": fals... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_16 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRatNeg() {\n\t\tassertEquals(Rat(1, 2), simplify(Neg(Neg(Neg(Neg(Rat(1, 2)))))));\n\t\tassertEquals(Rat(-1, 2), simplify(Neg(Neg(Neg(Neg(Neg(Rat(1, 2))))))));\n\t}",
"class_method_signature": "ExprSimplifierTest.testRatNeg()",
"constructor": false,
"full_signature": "@Test pu... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_41 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvMul() {\n\t\tassertEquals(\n\t\t\tBv(new boolean[] {false, true, true, false}),\n\t\t\tsimplify(BvExprs.Mul(List.of(\n\t\t\t\tBv(new boolean[] {false, false, true, true}),\n\t\t\t\tBv(new boolean[] {false, false, true, false})\n\t\t\t)))\n\t\t);\n\t\tassertEquals(\n\t\t\tBvExprs.... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_36 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIntLeq() {\n\t\tassertEquals(True(), simplify(Leq(Int(3), Int(3))));\n\t\tassertEquals(False(), simplify(Leq(Int(3), Int(2))));\n\t\tassertEquals(True(), simplify(Leq(Int(3), Int(5))));\n\t\tassertEquals(True(), simplify(Leq(a, a)));\n\t}",
"class_method_signature": "ExprSimplifi... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_61 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testValuation() {\n\t\tfinal Valuation val = ImmutableValuation.builder().put(ca, Int(5)).put(cb, Int(9)).build();\n\n\t\tassertEquals(Int(14), simplify(Add(a, b), val));\n\t\tassertEquals(Add(c, Int(14)), simplify(Add(a, b, c), val));\n\t}",
"class_method_signature": "ExprSimplifier... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_77 | {
"fields": [
{
"declarator": "DX = Const(\"x\", Bool())",
"modifier": "private static final",
"original_string": "private static final Decl<BoolType> DX = Const(\"x\", Bool());",
"type": "Decl<BoolType>",
"var_name": "DX"
},
{
"declarator": "DY = Const(\"y\", Bool())",... | {
"body": "@Test\n\tpublic void test() {\n\t\t// Act\n\t\tfinal Expr<?> actualExpr = parser.expr();\n\n\t\t// Assert\n\t\tassertEquals(expectedExpr, actualExpr);\n\t}",
"class_method_signature": "CoreParserTest.test()",
"constructor": false,
"full_signature": "@Test public void test()",
"identifier": "test",
... | {
"fields": [
{
"declarator": "parser",
"modifier": "private final",
"original_string": "private final LispParser parser;",
"type": "LispParser",
"var_name": "parser"
},
{
"declarator": "interpreter",
"modifier": "private final",
"original_string": "private ... | {
"body": "public Expr<?> expr() {\n\t\tfinal SExpr sexpr = parser.sexpr();\n\t\tfinal Expr<?> expr = interpreter.expr(sexpr);\n\t\treturn expr;\n\t}",
"class_method_signature": "CoreParser.expr()",
"constructor": false,
"full_signature": "public Expr<?> expr()",
"identifier": "expr",
"invocations": [
"... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_98 | {
"fields": [],
"file": "subprojects/solver-z3/src/test/java/hu/bme/mit/theta/solver/z3/Z3SolverTest.java",
"identifier": "Z3SolverTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n\tpublic void testTrack() {\n\t\tfinal Solver solver = Z3SolverFactory.getInstance().createSolver();\n\n\t\tfinal ConstDecl<BoolType> ca = Const(\"a\", BoolExprs.Bool());\n\t\tfinal Expr<BoolType> expr = BoolExprs.And(ca.getRef(), True());\n\n\t\tsolver.push();\n\t\tsolver.track(expr);\n\n\t\tfinal ... | {
"fields": [
{
"declarator": "symbolTable",
"modifier": "private final",
"original_string": "private final Z3SymbolTable symbolTable;",
"type": "Z3SymbolTable",
"var_name": "symbolTable"
},
{
"declarator": "transformationManager",
"modifier": "private final",
... | {
"body": "@Override\n\tpublic void track(final Expr<BoolType> assertion) {\n\t\tcheckNotNull(assertion);\n\n\t\tassertions.add(assertion);\n\t\tfinal com.microsoft.z3.BoolExpr term = (com.microsoft.z3.BoolExpr) transformationManager.toTerm(assertion);\n\t\tfinal String label = String.format(ASSUMPTION_LABEL, labelNu... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_8 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testNot() {\n\t\tassertEquals(False(), simplify(Not(And(True(), True()))));\n\t\tassertEquals(True(), simplify(Not(And(False(), True()))));\n\t\tassertEquals(x, simplify(Not(Not(Not(Not(x))))));\n\t\tassertEquals(Not(x), simplify(Not(Not(Not(x)))));\n\t}",
"class_method_signature": "... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_20 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRatNeq() {\n\t\tassertEquals(False(), simplify(Neq(Rat(1, 2), Rat(1, 2))));\n\t\tassertEquals(True(), simplify(Neq(Rat(1, 2), Rat(-1, 2))));\n\t}",
"class_method_signature": "ExprSimplifierTest.testRatNeq()",
"constructor": false,
"full_signature": "@Test public void testRatN... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_21 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRatGeq() {\n\t\tassertEquals(True(), simplify(Geq(Rat(8, 4), Rat(2, 1))));\n\t\tassertEquals(True(), simplify(Geq(Rat(3, 4), Rat(2, 3))));\n\t\tassertEquals(True(), simplify(Geq(Rat(9, 4), Rat(2, 1))));\n\t\tassertEquals(False(), simplify(Geq(Rat(2, 1), Rat(9, 4))));\n\t}",
"clas... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_9 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testImply() {\n\t\tassertEquals(True(), simplify(Imply(False(), x)));\n\t\tassertEquals(True(), simplify(Imply(x, True())));\n\t\tassertEquals(x, simplify(Imply(True(), x)));\n\t\tassertEquals(Not(x), simplify(Imply(x, False())));\n\t\tassertEquals(False(), simplify(Imply(True(), False... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_76 | {
"fields": [
{
"declarator": "exprString",
"modifier": "@Parameter(value = 0)\n\tpublic",
"original_string": "@Parameter(value = 0)\n\tpublic String exprString;",
"type": "String",
"var_name": "exprString"
},
{
"declarator": "nPrimesOnX",
"modifier": "@Parameter(... | {
"body": "@Test\n\tpublic void test() {\n\t\t// Arrange\n\t\tfinal ConstDecl<BoolType> a = Const(\"a\", Bool());\n\t\tfinal VarDecl<BoolType> x = Var(\"x\", Bool());\n\t\tfinal VarDecl<BoolType> y = Var(\"y\", Bool());\n\n\t\tfinal CoreDslManager manager = new CoreDslManager();\n\t\tmanager.declare(a);\n\t\tmanager.... | {
"fields": [],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/utils/PrimeCounter.java",
"identifier": "PrimeCounter",
"interfaces": "",
"methods": [
{
"class_method_signature": "PrimeCounter.PrimeCounter()",
"constructor": true,
"full_signature": "private PrimeCounter()"... | {
"body": "static VarIndexing countPrimes(final Expr<?> expr) {\n\t\treturn collectPrimes(expr, 0).build();\n\t}",
"class_method_signature": "PrimeCounter.countPrimes(final Expr<?> expr)",
"constructor": false,
"full_signature": "static VarIndexing countPrimes(final Expr<?> expr)",
"identifier": "countPrimes"... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_99 | {
"fields": [
{
"declarator": "filepath",
"modifier": "@Parameter(0)\n\tpublic",
"original_string": "@Parameter(0)\n\tpublic String filepath;",
"type": "String",
"var_name": "filepath"
},
{
"declarator": "varCount",
"modifier": "@Parameter(1)\n\tpublic",
"or... | {
"body": "@Test\n\tpublic void test() throws IOException {\n\t\tfinal InputStream inputStream = getClass().getResourceAsStream(filepath);\n\t\tfinal CFA cfa = CfaDslManager.createCfa(inputStream);\n\t\tAssert.assertEquals(varCount, cfa.getVars().size());\n\t\tAssert.assertEquals(locCount, cfa.getLocs().size());\n\t\... | {
"fields": [],
"file": "subprojects/cfa/src/main/java/hu/bme/mit/theta/cfa/dsl/CfaDslManager.java",
"identifier": "CfaDslManager",
"interfaces": "",
"methods": [
{
"class_method_signature": "CfaDslManager.CfaDslManager()",
"constructor": true,
"full_signature": "private CfaDslManager()... | {
"body": "public static CFA createCfa(final String inputString) throws IOException {\n\t\tfinal InputStream stream = new ByteArrayInputStream(inputString.getBytes(StandardCharsets.UTF_8.name()));\n\t\treturn createCfa(stream);\n\t}",
"class_method_signature": "CfaDslManager.createCfa(final String inputString)",
... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_60 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testComplex() {\n\t\tassertEquals(True(), simplify(Iff(And(x, True()), Or(x, False()))));\n\t}",
"class_method_signature": "ExprSimplifierTest.testComplex()",
"constructor": false,
"full_signature": "@Test public void testComplex()",
"identifier": "testComplex",
"invocations"... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_37 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testIntLt() {\n\t\tassertEquals(False(), simplify(Lt(Int(3), Int(3))));\n\t\tassertEquals(False(), simplify(Lt(Int(3), Int(2))));\n\t\tassertEquals(True(), simplify(Lt(Int(3), Int(5))));\n\t\tassertEquals(False(), simplify(Lt(a, a)));\n\t}",
"class_method_signature": "ExprSimplifierT... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_40 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvNeg() {\n\t\tassertEquals(\n\t\t\tBv(new boolean[] {false, false, false, true}),\n\t\t\tsimplify(BvExprs.Neg(Bv(new boolean[] {true, true, true, true})))\n\t\t);\n\t\tassertEquals(\n\t\t\tBv(new boolean[] {false, false, false, true}),\n\t\t\tsimplify(BvExprs.Neg(BvExprs.Neg(Bv(ne... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_17 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRatMul() {\n\t\tassertEquals(Rat(1, 1), simplify(Mul(Rat(2, 1), Rat(1, 1), Rat(1, 2))));\n\t\tassertEquals(Rat(3, 4), simplify(Mul(Rat(3, 2), Rat(1, 1), Rat(1, 2))));\n\t\tassertEquals(Mul(Rat(3, 4), d), simplify(Mul(Rat(3, 2), d, Rat(1, 2))));\n\t\tassertEquals(Mul(Rat(3, 4), d), ... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_56 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRef() {\n\t\tfinal Valuation val = ImmutableValuation.builder().put(ca, Int(2)).build();\n\t\tassertEquals(a, simplify(a));\n\t\tassertEquals(Int(2), simplify(a, val));\n\t}",
"class_method_signature": "ExprSimplifierTest.testRef()",
"constructor": false,
"full_signature": "@... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_5 | {
"fields": [
{
"declarator": "ca = Const(\"a\", Int())",
"modifier": "private final",
"original_string": "private final ConstDecl<IntType> ca = Const(\"a\", Int());",
"type": "ConstDecl<IntType>",
"var_name": "ca"
},
{
"declarator": "cb = Const(\"b\", Int())",
"m... | {
"body": "@Test\n\tpublic void testLeq() {\n\t\tfinal Valuation v1 = ImmutableValuation.builder().put(ca, Int(1)).build();\n\t\tfinal Valuation v2 = ImmutableValuation.builder().put(ca, Int(2)).build();\n\t\tfinal Valuation v3 = ImmutableValuation.builder().put(cb, Int(1)).build();\n\t\tfinal Valuation v4 = Immutabl... | {
"fields": [
{
"declarator": "HASH_SEED = 2141",
"modifier": "private static final",
"original_string": "private static final int HASH_SEED = 2141;",
"type": "int",
"var_name": "HASH_SEED"
}
],
"file": "subprojects/core/src/main/java/hu/bme/mit/theta/core/model/Valuation.jav... | {
"body": "public boolean isLeq(final Valuation that) {\n\t\tif (that.getDecls().size() > this.getDecls().size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (final Decl<?> varDecl : that.getDecls()) {\n\t\t\tif (!that.eval(varDecl).equals(this.eval(varDecl))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_95 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "private final",
"original_string": "private final VarDecl<IntType> x = Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "x"
},
{
"declarator": "prec = ExplPrec.of(ImmutableList.of(x))",
... | {
"body": "@Test\n\tpublic void testNormal() {\n\t\tfinal ExprAction action = mock(ExprAction.class);\n\t\tdoReturn(Eq(Prime(x.getRef()), Add(x.getRef(), Int(1)))).when(action).toExpr();\n\t\twhen(action.nextIndexing()).thenReturn(VarIndexing.all(1));\n\n\t\tfinal Collection<? extends ExplState> succStates = transFun... | {
"fields": [
{
"declarator": "solver",
"modifier": "private final",
"original_string": "private final Solver solver;",
"type": "Solver",
"var_name": "solver"
}
],
"file": "subprojects/analysis/src/main/java/hu/bme/mit/theta/analysis/expl/ExplTransFunc.java",
"identifier": ... | {
"body": "@Override\n\tpublic Collection<? extends ExplState> getSuccStates(final ExplState state, final ExprAction action,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t final ExplPrec prec) {\n\t\tcheckNotNull(state);\n\t\tcheckNotNull(action);\n\t\tcheckNotNull(prec);\n\t\tfinal Collection<ExplState> succStates = ExprStates.creat... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_83 | {
"fields": [
{
"declarator": "x = Var(\"x\", Int())",
"modifier": "private final",
"original_string": "private final VarDecl<IntType> x = Var(\"x\", Int());",
"type": "VarDecl<IntType>",
"var_name": "x"
},
{
"declarator": "y = Var(\"y\", Int())",
"modifier": "pri... | {
"body": "@Test\n\tpublic void testEquals() {\n\t\tfinal PredPrec p0 = PredPrec.of();\n\t\tfinal PredPrec p1 = PredPrec.of(Collections.singleton(pred));\n\t\tfinal PredPrec p2 = PredPrec.of(Collections.singleton(pred));\n\n\t\tAssert.assertNotEquals(p0, p1);\n\t\tAssert.assertNotEquals(p0, p2);\n\t\tAssert.assertEqu... | {
"fields": [
{
"declarator": "predToNegMap",
"modifier": "private final",
"original_string": "private final Map<Expr<BoolType>, Expr<BoolType>> predToNegMap;",
"type": "Map<Expr<BoolType>, Expr<BoolType>>",
"var_name": "predToNegMap"
}
],
"file": "subprojects/analysis/src/ma... | {
"body": "@Override\n\tpublic boolean equals(final Object obj) {\n\t\tif (this == obj) {\n\t\t\treturn true;\n\t\t} else if (obj instanceof PredPrec) {\n\t\t\tfinal PredPrec that = (PredPrec) obj;\n\t\t\treturn this.predToNegMap.keySet().equals(that.predToNegMap.keySet());\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_43 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvMod() {\n\t\tassertEquals(\n\t\t\tBv(new boolean[] {false, false, false, true}),\n\t\t\tsimplify(BvExprs.SMod(\n\t\t\t\tBv(new boolean[] {false, true, false, false}),\n\t\t\t\tBv(new boolean[] {false, false, true, true})\n\t\t\t))\n\t\t);\n\t\tassertEquals(\n\t\t\tBv(new boolean[... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_14 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testRatAdd() {\n\t\tassertEquals(Rat(7, 12), simplify(Add(Rat(1, 3), Rat(1, 4))));\n\t\tassertEquals(Add(Rat(7, 12), d), simplify(Add(Rat(1, 3), d, Rat(1, 4))));\n\t\tassertEquals(Add(Rat(7, 12), d), simplify(Add(Rat(1, 3), Add(d, Rat(1, 4)))));\n\t}",
"class_method_signature": "Expr... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
39392321_55 | {
"fields": [
{
"declarator": "cx = Const(\"x\", Bool())",
"modifier": "private final",
"original_string": "private final ConstDecl<BoolType> cx = Const(\"x\", Bool());",
"type": "ConstDecl<BoolType>",
"var_name": "cx"
},
{
"declarator": "cy = Const(\"y\", Bool())",
... | {
"body": "@Test\n\tpublic void testBvLt() {\n\t\tassertEquals(\n\t\t\tFalse(),\n\t\t\tsimplify(BvExprs.ULt(\n\t\t\t\tBv(new boolean[] {false, true, false, false}),\n\t\t\t\tBv(new boolean[] {false, false, true, false})\n\t\t\t))\n\t\t);\n\t\tassertEquals(\n\t\t\tTrue(),\n\t\t\tsimplify(BvExprs.ULt(\n\t\t\t\tBv(new b... | {
"fields": [
{
"declarator": "TABLE = DispatchTable2.<Valuation, Expr<?>>builder()\n\n\t\t\t// Boolean\n\n\t\t\t.addCase(NotExpr.class, ExprSimplifier::simplifyNot)\n\n\t\t\t.addCase(ImplyExpr.class, ExprSimplifier::simplifyImply)\n\n\t\t\t.addCase(IffExpr.class, ExprSimplifier::simplifyIff)\n\n\t\t\t.addC... | {
"body": "@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Type> Expr<T> simplify(final Expr<T> expr, final Valuation valuation) {\n\t\treturn (Expr<T>) TABLE.dispatch(expr, valuation);\n\t}",
"class_method_signature": "ExprSimplifier.simplify(final Expr<T> expr, final Valuation valuation)",
"constru... | {
"created": "7/20/2015 3:34:13 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 39392321,
"size": null,
"stargazer_count": null,
"stars": 12,
"updates": "2019-12-01T13:34:28+00:00",
"url": "https://github.com/FTSRG/theta"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.