<commit_before>#!/usr/bin/env python
# Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

import os
import sys


def Main():
  def normjoin(*args):
    return os.path.normpath(os.path.join(*args))

  compiler = normjoin(sys.argv[0], os.pardir, os.pardir)
  tools = normjoin(compiler, os.pardir, 'tools')
  locations = {
    'compiler': compiler,
    'tools': tools,
    }

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "java %(compiler)s/sources java" % locations)
  if exit_code:
    return exit_code


  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "javatests %(compiler)s/test_sources javatests"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "corelib %(compiler)s/corelib_sources ../corelib/src"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "domlib %(compiler)s/domlib_sources ../client/dom dom.dart LICENSE README.google"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "htmllib %(compiler)s/htmllib_sources ../client/html/release html.dart htmlimpl.dart"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "jsonlib %(compiler)s/jsonlib_sources ../client/json json.dart"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "compiler_corelib "
                        "%(compiler)s/compiler_corelib_sources "<commit_msg>Remove deps on deleted files<commit_after>#!/usr/bin/env python
# Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

import os
import sys


def Main():
  def normjoin(*args):
    return os.path.normpath(os.path.join(*args))

  compiler = normjoin(sys.argv[0], os.pardir, os.pardir)
  tools = normjoin(compiler, os.pardir, 'tools')
  locations = {
    'compiler': compiler,
    'tools': tools,
    }

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "java %(compiler)s/sources java" % locations)
  if exit_code:
    return exit_code


  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "javatests %(compiler)s/test_sources javatests"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "corelib %(compiler)s/corelib_sources ../corelib/src"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "domlib %(compiler)s/domlib_sources ../client/dom dom.dart"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "htmllib %(compiler)s/htmllib_sources ../client/html/release html.dart htmlimpl.dart"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_systemlibrary_list.py "
                        "jsonlib %(compiler)s/jsonlib_sources ../client/json json.dart"
                        % locations)
  if exit_code:
    return exit_code

  exit_code = os.system("python %(compiler)s/generate_source_list.py "
                        "compiler_corelib "
                        "%(compiler)s/compiler_corelib_sources "
{'fraction_non_alphanumeric': 0.10325183954426774, 'fraction_numerical': 0.0023736055067647755, 'mean_word_length': 2.3285939968404423, 'pattern_counts': {'":': 0, '<': 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': '5094730', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1229, 'n_words': 278}