<commit_before>USING: editors io.pathnames io.standard-paths kernel make
math.parser ;
IN: editors.cot

SINGLETON: cot
cot editor-class set-global

: find-cot-bundle-path ( -- path/f )
    "com.coteditor.CotEditor" find-native-bundle [
        "Contents/MacOS/cot" append-path
    ] [
        f
    ] if* ;

M: cot editor-command ( file line -- command )
    [ find-cot-bundle-path , "-l" , # , ] { } make ;<commit_msg>editors.cot: minor fixes.<commit_after>USING: editors io.pathnames io.standard-paths kernel make
math.parser ;
IN: editors.cot

SINGLETON: cot
cot editor-class set-global

: find-cot-bundle-path ( -- path/f )
    "com.coteditor.CotEditor" find-native-bundle [
        "Contents/MacOS/cot" append-path
    ] [
        f
    ] if* ;

M: cot editor-command ( file line -- command )
    [ find-cot-bundle-path , "-l" , number>string , , ] { } make ;
{'fraction_non_alphanumeric': 0.14583333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 2.6965811965811968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2460884', 'n_tokens_mistral': 316, 'n_tokens_neox': 301, 'n_words': 65}