<commit_before>from __future__ import print_function

from pipeline.compilers import SubProcessCompiler
from os.path import dirname
from django.conf import settings


import pdb

class BrowserifyCompiler(SubProcessCompiler):
    output_extension = 'js'

    def match_file(self, filename):
        return filename.endswith('cjsx')

    def compile_file(self, infile, outfile, outdated=False, force=False):
        command = "%s %s %s %s > %s" % (
            getattr(settings, 'PIPELINE_BROWSERIFY_VARS', ''),
            getattr(settings, 'PIPELINE_BROWSERIFY_BINARY', '/usr/bin/env browserify'),
            getattr(settings, 'PIPELINE_BROWSERIFY_ARGUMENTS', '-t coffee-reactify --extension=".cjsx" --extension=".coffee"'),
            infile,
            outfile
        )

        return self.execute_command(command, cwd=dirname(infile))<commit_msg>remove pdb from testing<commit_after>from __future__ import print_function

from pipeline.compilers import SubProcessCompiler
from os.path import dirname
from django.conf import settings


class BrowserifyCompiler(SubProcessCompiler):
    output_extension = 'js'

    def match_file(self, filename):
        return filename.endswith('cjsx')

    def compile_file(self, infile, outfile, outdated=False, force=False):
        command = "%s %s %s %s > %s" % (
            getattr(settings, 'PIPELINE_BROWSERIFY_VARS', ''),
            getattr(settings, 'PIPELINE_BROWSERIFY_BINARY', '/usr/bin/env browserify'),
            getattr(settings, 'PIPELINE_BROWSERIFY_ARGUMENTS', '-t coffee-reactify --extension=".cjsx" --extension=".coffee"'),
            infile,
            outfile
        )

        return self.execute_command(command, cwd=dirname(infile))
{'fraction_non_alphanumeric': 0.11019929660023446, 'fraction_numerical': 0.0, 'mean_word_length': 3.503957783641161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3483540', 'n_tokens_mistral': 534, 'n_tokens_neox': 513, 'n_words': 112}