Skip to content

[Misdetection] Java files misdetected as lisp, c++ or jinja file #960

Open
@luckyservant

Description

@luckyservant

What should the file have been detected as? What has the file been misdetected as?
Java code misdetected as langs given in topic

Please link or attach the misdetected file below (Do NOT upload PII!)
arrays_global_twodim_runme.zip

cpp11_move_only_valuewrapper_runme.zip

director_classes_runme.zip

enum_thorough_proper_runme.zip

enum_thorough_typeunsafe_runme.zip

intermediary_classname_runme.zip

java_director_typemaps_runme.zip

datetime.txt --> this one is labeled as "ct_label": "c"

datetime_2.txt ---> labeled as "ct_label": "snap" archive

Additional context

OS : Windows 10
Got result by running magika python api

{
        "ct_label": "lisp",
        "description": "Lisp source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\arrays_global_twodim_runme.java",
        "group": "code",
        "mime_type": "text/x-lisp",
        "score": 0.7130163908004761,
        "sha256_hash": "933332e1dfb8b5efc378246d14bd85f17c904fe94f2106afeff610c001f9a77f"
  },
{
        "ct_label": "lisp",
        "description": "Lisp source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\enum_thorough_proper_runme.java",
        "group": "code",
        "mime_type": "text/x-lisp",
        "score": 0.6628528237342834,
        "sha256_hash": "749447f3a344833258f37c5914e1cae357248787c9e9f8a4140d85b475993c38"
 },
{
        "ct_label": "cpp",
        "description": "C++ source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\cpp11_move_only_valuewrapper_runme.java",
        "group": "code",
        "mime_type": "text/x-c",
        "score": 0.5267788171768188,
        "sha256_hash": "5bf4cb8c1547dfc58d24cab8c1326b842aa43c26d66dc862b386070fa89a30d0"        
},
{
        "ct_label": "cpp",
        "description": "C++ source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\director_classes_runme.java",
        "group": "code",
        "mime_type": "text/x-c",
        "score": 0.8575183153152466,
        "sha256_hash": "8492fcb77a111d9eee58d02e85f85ecbe9206c7191f3853f5a3651cbd85678c6"      
    },
{
        "ct_label": "lisp",
        "description": "Lisp source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\enum_thorough_typeunsafe_runme.java",
        "group": "code",
        "mime_type": "text/x-lisp",
        "score": 0.6263425946235657,
        "sha256_hash": "1962cd8619f194dc09ef36b4f45baeeaec581e887b842b9984a3956cabd0e7e6"
},
{
        "ct_label": "lisp",
        "description": "Lisp source",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\intermediary_classname_runme.java",
        "group": "code",
        "mime_type": "text/x-lisp",
        "score": 0.7667048573493958,
        "sha256_hash": "93a2ff3d311726a7f6f572f976570248c5d590865d3d47294c8aa071fb5d6b77"
    },
{
        "ct_label": "jinja",
        "description": "Jinja template",
        "file_path": "\\swigwin-4.3.0\\Examples\\test-suite\\java\\java_director_typemaps_runme.java",
        "group": "code",
        "mime_type": "text/x-jinja2-template",
        "score": 0.7011901140213013,
        "sha256_hash": "28ac76ce485a2115e5b829124d5c5c535a44b9f3590923351f73891ab6743b27"
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    misdetectionThis issue is about a misdetection on a content type currently supportedneeds triageThis issue still needs triage by one of the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions