<commit_before>#! /usr/bin/python
#------------------------------------------------------------------------------#
# builddeps.py
# by <NAME> on 29-10-2012
#
# Parses the given jml-build Makefile and returns a graph of all (well most)
# build dependencies for the supported target types.
#
# Supported target types are listed within Parser.func_map and is fairly simple
# to extend.
#
# The public interface of this module consists of Ext, Graph and
# parse_makefile(). The verbose, strict and quiet flags can also be used to
# change the chattyness of the script on stdout. Nothing else should be
# accessed.
#
#------------------------------------------------------------------------------#


import os
import re
import sys
import traceback


#------------------------------------------------------------------------------#
# DEBUG                                                                        #
#------------------------------------------------------------------------------#

verbose = False
strict = False
quiet = True

def print_dbg(msg):
    global verbose
    if verbose: print "// " + msg

def print_info(msg):
    global quiet
    if not quiet: print "// " + msg

def print_err(err, msg):
    global quiet
    if not quiet:
        errstr = "(%s)" % err if err else ""
        print "// ERROR%s: %s" % (errstr, msg)


#------------------------------------------------------------------------------#
# GRAPH                                                                        #
#------------------------------------------------------------------------------#

class Ext:
    SO            = ".so"
    EXE           = ".exe"
    MK            = ".mk"
    NODEJS_ADDON  = ".nodejs"
    NODEJS_MODULE = ".nodejs"
    NODEJS_TEST   = ".nodejs_test"

class Graph:
    def __init__(self):
        self.edges = {}
        self.order = []

    def add_vertex(self, src):
        if src in self.edges: return

        print_dbg("%s -> None" % src)
        self.edges[src] = []
        self.order.append(src)

    def add_edge(self, src, dest):
        print_dbg("%s -> %s" % (src, dest))

        self.add_vertex(src)
        self.edges[src].append(dest)
<commit_msg>Fixed the printed names of the nodejs dependencies.<commit_after>#! /usr/bin/python
#------------------------------------------------------------------------------#
# builddeps.py
# by <NAME> on 29-10-2012
#
# Parses the given jml-build Makefile and returns a graph of all (well most)
# build dependencies for the supported target types.
#
# Supported target types are listed within Parser.func_map and is fairly simple
# to extend.
#
# The public interface of this module consists of Ext, Graph and
# parse_makefile(). The verbose, strict and quiet flags can also be used to
# change the chattyness of the script on stdout. Nothing else should be
# accessed.
#
#------------------------------------------------------------------------------#


import os
import re
import sys
import traceback


#------------------------------------------------------------------------------#
# DEBUG                                                                        #
#------------------------------------------------------------------------------#

verbose = False
strict = False
quiet = True

def print_dbg(msg):
    global verbose
    if verbose: print "// " + msg

def print_info(msg):
    global quiet
    if not quiet: print "// " + msg

def print_err(err, msg):
    global quiet
    if not quiet:
        errstr = "(%s)" % err if err else ""
        print "// ERROR%s: %s" % (errstr, msg)


#------------------------------------------------------------------------------#
# GRAPH                                                                        #
#------------------------------------------------------------------------------#

class Ext:
    SO            = ".so"
    EXE           = ".exe"
    MK            = ".mk"
    NODEJS_ADDON  = ".nodejs_addon"
    NODEJS_MODULE = ".nodejs_module"
    NODEJS_TEST   = ".nodejs_test"

class Graph:
    def __init__(self):
        self.edges = {}
        self.order = []

    def add_vertex(self, src):
        if src in self.edges: return

        print_dbg("%s -> None" % src)
        self.edges[src] = []
        self.order.append(src)

    def add_edge(self, src, dest):
        print_dbg("%s -> %s" % (src, dest))

        self.add_vertex(src)
        self.edges[src].append(dest)

{'fraction_non_alphanumeric': 0.2982535722386029, 'fraction_numerical': 0.0036289408029031526, 'mean_word_length': 1.0521172638436482, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '854415', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1057, 'n_words': 349}