<commit_before>/*
 * Translation to JavaScript
 *
 * Requiring this module adds a gen() method to each of the AST classes.
 * Nothing is actually exported from this module.
 *
 * Generally, calling e.gen() where e is an expression node will return the
 * JavaScript translation as a string, while calling s.gen() where s is a
 * statement-level node will write its translation to standard output.
 *
 *   require("./backend/javascript-generator");
 *   program.gen();
 */
 // eslint-disable no-unused-vars

const Context = require("../context");
const Parser = require("../parser");
const Program = Parser.Program;
const Block = Parser.Block;
const Return = Parser.Return;
const Stmt = Parser.Stmt;
const Argument = Parser.Arg;
const StringLiteral = Parser.Stringlit;
<<<<<<< HEAD
const FuncCall = Parser.FuncCall;
=======
>>>>>>> origin/davidgenerator

const indentPadding = 2;
let indentLevel = 0;<commit_msg>i hate git<commit_after>/*
 * Translation to JavaScript
 *
 * Requiring this module adds a gen() method to each of the AST classes.
 * Nothing is actually exported from this module.
 *
 * Generally, calling e.gen() where e is an expression node will return the
 * JavaScript translation as a string, while calling s.gen() where s is a
 * statement-level node will write its translation to standard output.
 *
 *   require("./backend/javascript-generator");
 *   program.gen();
 */
 // eslint-disable no-unused-vars

const Context = require("../context");
const Parser = require("../parser");
const Program = Parser.Program;
const Block = Parser.Block;
const Return = Parser.Return;
const Stmt = Parser.Stmt;
const Argument = Parser.Arg;
const StringLiteral = Parser.Stringlit;
const FuncCall = Parser.FuncCall;

const indentPadding = 2;
let indentLevel = 0;
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.0022624434389140274, 'mean_word_length': 4.1574344023323615, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '3705205', 'n_tokens_mistral': 501, 'n_tokens_neox': 491, 'n_words': 191}