<commit_before>{
  "main": {
    "prefix": "main",
    "body": [
      "public static void main(String[] args) {",
      "\t$1",
      "}"
    ],
    "description": "Public static main method"
  },
  "sysout": {
    "prefix": "sysout",
    "body": [
      "System.out.println($1);"
    ],
    "description": "Print to standard out"
  },
  "syserr": {
    "prefix": "syserr",
    "body": [
      "System.err.println($1);"
    ],
    "description": "Print to standard err"
  },
  "foreach": {
    "prefix": "foreach",
    "body": [
      "for (${type} ${var} : ${iterable}) {",
      "\t$4",
      "}"
    ],
    "description": "Enhanced for loop"
  },
  "Public constructor": {
    "prefix": "ctor",
    "body": [
      "public ${name}($1) {",
      "\tsuper();",
      "\t$0",
      "}"
    ],
    "description": "Public constructor"
  },
  "Class Definition": {
    "prefix": "class",
    "body": [
      "/**",
      " * ${name}",
      " */",
      "public class ${name} {",
      "",
      "\tpublic ${name} (${parameters}) {",
      "\t\t$0",
      "\t}",
      "}"
    ],
    "description": "Class Definition"
  },
  "Interface Definition": {
    "prefix": "interface",
    "body": [
      "/**",
      " * ${name}",
      " */",
      "public interface ${name} {",
      "\t$0",
      "}"
    ],
    "description": "Interface Definition"
  },
  "if": {
    "prefix": "if",
    "body": [
      "if (${condition}) {",
      "\t$2",
      "}"
    ],
    "description": "if statement"
  },
  "ifelse": {
    "prefix": "ifelse",
    "body": [
      "if (${condition}) {",
      "\t$2",
      "} else {",
      "\t$3",
      "}"
    ],
    "description": "if/else statement"
  },
  "ifnull": {
    "prefix": "ifnull",
    "body": [
      "if (${condition} == null) {",
      "\t$2",
      "}"
    ],
    "description": "if statement checking for null"
  },
  "ifnotnull": {
    "prefix": "ifnotnull",
    "body": [
      "if (${condition} != null) {",
      "\t$2",
      "}"
    ],
    "description": "if statement checking for not null"
  },
  "trycatch": {
    "prefix": "try_catch",
    "body": [
      "try {",
      "\t$1",
      "} catch (${Exception} ${e}) {",
      "\t$4//${TODO}: handle exception",
      "}"
    ],
    "description": "try/catch block"
  },
  "private_method": {
    "prefix": "private_method",
    "body": [
      "private ${Type} ${name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "private method"
  },
  "Public method": {
    "prefix": "public_method",
    "body": [
      "public ${Type} ${name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "public method"
  },
  "Private static method": {
    "prefix": "private_static_method",
    "body": [
      "private static ${Type} ${name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "private static method"
  },
  "Public static method": {
    "prefix": "public_static_method",
    "body": [
      "public static ${Type} ${name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "public static method"
  },
  "Protected Method": {
    "prefix": "protected_method",
    "body": [
      "protected ${Type} ${name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "Protected method"
  },
  "Switch Statement": {
    "prefix": "switch",
    "body": [
      "switch (${key}) {",
      "\tcase ${value}:",
      "\t\t$0",
      "\t\tbreak;",
      "",
      "\tdefault:",
      "\t\tbreak;",
      "}"
    ],
    "description": "Switch Statement"
  },
  "While Statement": {
    "prefix": "while",
    "body": [
      "while (${condition}) {",
      "\t$0",
      "}"
    ],
    "description": "While Statement"
  },
  "Do-While Statement": {
    "prefix": "dowhile",
    "body": [
      "do {",
      "\t$0",
      "} while (${condition});"
    ],
    "description": "Do-While Statement"
  }
}<commit_msg>Use proper placeholder syntax in snippets. Fixes #217<commit_after>{
  "main": {
    "prefix": "main",
    "body": [
      "public static void main(String[] args) {",
      "\t$1",
      "}"
    ],
    "description": "Public static main method"
  },
  "sysout": {
    "prefix": "sysout",
    "body": [
      "System.out.println($1);"
    ],
    "description": "Print to standard out"
  },
  "syserr": {
    "prefix": "syserr",
    "body": [
      "System.err.println($1);"
    ],
    "description": "Print to standard err"
  },
  "foreach": {
    "prefix": "foreach",
    "body": [
      "for (${0:type} ${1:var} : ${2:iterable}) {",
      "\t$3",
      "}"
    ],
    "description": "Enhanced for loop"
  },
  "Public constructor": {
    "prefix": "ctor",
    "body": [
      "public ${1:name}($2) {",
      "\tsuper();",
      "\t$0",
      "}"
    ],
    "description": "Public constructor"
  },
  "Class Definition": {
    "prefix": "class",
    "body": [
      "/**",
      " * ${1:name}",
      " */",
      "public class ${1:name} {",
      "",
      "\tpublic ${1:name} (${2:parameters}) {",
      "\t\t$0",
      "\t}",
      "}"
    ],
    "description": "Class Definition"
  },
  "Interface Definition": {
    "prefix": "interface",
    "body": [
      "/**",
      " * ${1:name}",
      " */",
      "public interface ${1:name} {",
      "\t$0",
      "}"
    ],
    "description": "Interface Definition"
  },
  "if": {
    "prefix": "if",
    "body": [
      "if (${1:condition}) {",
      "\t$0",
      "}"
    ],
    "description": "if statement"
  },
  "ifelse": {
    "prefix": "ifelse",
    "body": [
      "if (${1:condition}) {",
      "\t$2",
      "} else {",
      "\t$3",
      "}"
    ],
    "description": "if/else statement"
  },
  "ifnull": {
    "prefix": "ifnull",
    "body": [
      "if (${1:condition} == null) {",
      "\t$2",
      "}"
    ],
    "description": "if statement checking for null"
  },
  "ifnotnull": {
    "prefix": "ifnotnull",
    "body": [
      "if (${1:condition} != null) {",
      "\t$2",
      "}"
    ],
    "description": "if statement checking for not null"
  },
  "trycatch": {
    "prefix": "try_catch",
    "body": [
      "try {",
      "\t$1",
      "} catch (${2:Exception} ${3:e}) {",
      "\t$4//${5:TODO}: handle exception",
      "}"
    ],
    "description": "try/catch block"
  },
  "private_method": {
    "prefix": "private_method",
    "body": [
      "private ${1:Type} ${2:name}($3) {",
      "\t$4",
      "}"
    ],
    "description": "private method"
  },
  "Public method": {
    "prefix": "public_method",
    "body": [
      "public ${1:Type} ${2:name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "public method"
  },
  "Private static method": {
    "prefix": "private_static_method",
    "body": [
      "private static ${1:Type} ${2:name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "private static method"
  },
  "Public static method": {
    "prefix": "public_static_method",
    "body": [
      "public static ${1:Type} ${2:name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "public static method"
  },
  "Protected Method": {
    "prefix": "protected_method",
    "body": [
      "protected ${1:Type} ${2:name}(${3}) {",
      "\t$4",
      "}"
    ],
    "description": "Protected method"
  },
  "Switch Statement": {
    "prefix": "switch",
    "body": [
      "switch (${1:key}) {",
      "\tcase ${2:value}:",
      "\t\t$0",
      "\t\tbreak;",
      "",
      "\tdefault:",
      "\t\tbreak;",
      "}"
    ],
    "description": "Switch Statement"
  },
  "While Statement": {
    "prefix": "while",
    "body": [
      "while (${1:condition}) {",
      "\t$0",
      "}"
    ],
    "description": "While Statement"
  },
  "Do-While Statement": {
    "prefix": "dowhile",
    "body": [
      "do {",
      "\t$0",
      "} while (${1:condition});"
    ],
    "description": "Do-While Statement"
  }
}
{'fraction_non_alphanumeric': 0.24807494866529775, 'fraction_numerical': 0.011550308008213552, 'mean_word_length': 2.0053991515618974, 'pattern_counts': {'":': 160, '<': 3, '<?xml version=': 0, '>': 3, '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': '4509491', 'n_tokens_mistral': 2842, 'n_tokens_neox': 2822, 'n_words': 529}