Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameLoad With Call NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Yield NameLoad decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call NameLoad NameStore body Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call NameLoad keyword Str body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad Call NameLoad NameLoad Str NameStore body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Str ListLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call NameLoad Num Expr Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Call NameLoad Str attr NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Call NameLoad Str attr NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad attr NameLoad NameLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad Call NameLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad ListLoad Str Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body With Call NameLoad keyword Str body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call NameLoad With Call NameLoad Str NameStore body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults ListComp Call NameLoad NameLoad comprehension NameStore NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad keyword NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad With Call NameLoad Str NameStore body Expr Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Str Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad Call NameLoad Str Assign NameStore ListComp Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr Lambda arguments args defaults Call AttributeLoad Call NameLoad attr NameLoad NameLoad Str Str Call NameLoad Str Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body ClassDef bases NameLoad body Assign NameStore TupleLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore DictComp Call AttributeLoad Str attr NameLoad ListLoad Str Str Str comprehension NameStore Call NameLoad Num Num Num Assign NameStore BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr keyword NameLoad comprehension NameStore Call NameLoad Num Num FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad With Call NameLoad keyword Str body Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call NameLoad NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A shutil N/A StringIO N/A unittest N/A zipfile contextlib contextmanager N/A six pants.backend.jvm.zinc.zinc_analysis ZincAnalysis pants.backend.jvm.zinc.zinc_analysis_element ZincAnalysisElement pants.backend.jvm.zinc.zinc_analysis_parser ZincAnalysisParser pants.util.contextutil Timer environment_as temporary_dir N/A _TEST_DATA_SOURCE_ENV_VAR ZINC_ANALYSIS_TEST_DATA_SOURCE _temp_test_dir N/A N/A zipfile_name N/A N/A N/A Yields a test directory containing the files in the specified zipfile. N/A zipfile_path N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ testdata zipfile_name N/A N/A temporary_dir tmpdir N/A N/A zf N/A N/A zipfile ZipFile zipfile_path r N/A N/A N/A zf extractall tmpdir N/A N/A tmpdir N/A contextmanager ZincAnalysisTestBase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self maxDiff None N/A N/A self total_time 0 N/A _time N/A N/A self work msg N/A N/A N/A N/A Timer timer N/A N/A ret N/A work N/A elapsed N/A timer elapsed N/A N/A print N/A %s in %f seconds. N/A msg elapsed N/A N/A self total_time elapsed N/A ret N/A N/A ZincAnalysisTestSimple N/A ZincAnalysisTestBase N/A test_simple N/A N/A self N/A N/A N/A N/A environment_as ZINCUTILS_SORTED_ANALYSIS 1 N/A get_test_analysis_path N/A N/A name N/A N/A N/A N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ testdata simple name N/A get_analysis_text N/A N/A name N/A N/A N/A N/A open N/A get_test_analysis_path name r fp N/A N/A N/A N/A fp read N/A parse_analyis N/A N/A name N/A N/A N/A N/A N/A N/A ZincAnalysisParser parse_from_path N/A get_test_analysis_path name N/A analysis_to_string N/A N/A analysis N/A N/A N/A buf N/A N/A StringIO StringIO N/A N/A N/A analysis write buf N/A N/A N/A buf getvalue N/A N/A full_analysis N/A parse_analyis simple.analysis N/A analysis_splits N/A N/A full_analysis split N/A N/A /src/pants/examples/src/scala/org/pantsbuild/example/hello/welcome/Welcome.scala N/A /src/pants/examples/src/scala/org/pantsbuild/example/hello/exe/Exe.scala N/A N/A N/A self assertEquals N/A len analysis_splits 2 compare_split N/A N/A i N/A N/A N/A expected_filename N/A N/A simple_split{0}.analysis format i N/A expected_analyis N/A parse_analyis expected_filename N/A N/A N/A self assertTrue N/A N/A expected_analyis is_equal_to N/A analysis_splits N/A i N/A expected N/A get_analysis_text expected_filename N/A actual N/A analysis_to_string N/A analysis_splits N/A i N/A N/A N/A self assertMultiLineEqual expected actual N/A N/A N/A compare_split 0 N/A N/A compare_split 1 N/A merged_analysis N/A N/A ZincAnalysis merge analysis_splits N/A N/A N/A self assertTrue N/A N/A full_analysis is_equal_to merged_analysis N/A expected N/A get_analysis_text simple.analysis N/A actual N/A analysis_to_string merged_analysis N/A N/A N/A self assertMultiLineEqual expected actual N/A orig N/A iter N/A N/A N/A get_analysis_text simple.analysis splitlines True N/A expected_rebased N/A get_analysis_text simple.rebased.analysis N/A buf N/A N/A StringIO StringIO N/A N/A N/A N/A ZincAnalysisParser rebase orig buf /src/pants $PANTS_HOME N/A rebased N/A N/A buf getvalue N/A N/A N/A self assertMultiLineEqual expected_rebased rebased N/A orig N/A iter N/A N/A N/A get_analysis_text simple.analysis splitlines True N/A expected_filtered_rebased N/A get_analysis_text simple.rebased.filtered.analysis N/A buf N/A N/A StringIO StringIO N/A N/A N/A N/A ZincAnalysisParser rebase orig buf /src/pants $PANTS_HOME /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk N/A filtered_rebased N/A N/A buf getvalue N/A N/A N/A self assertMultiLineEqual expected_filtered_rebased filtered_rebased N/A infile N/A iter N/A N/A N/A get_analysis_text simple.analysis splitlines True N/A deps N/A N/A N/A ZincAnalysisParser parse_deps infile N/A f /src/pants/examples/src/scala/org/pantsbuild/example/hello/exe/Exe.scala N/A N/A N/A self assertItemsEqual N/A deps N/A f N/A /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/rt.jar /src/pants/examples/src/scala/org/pantsbuild/example/hello/welcome/Welcome.scala N/A N/A ZincAnalysisTestComplex N/A ZincAnalysisTestBase N/A test_complex N/A N/A self N/A N/A N/A N/A environment_as ZINCUTILS_SORTED_ANALYSIS 1 N/A N/A N/A N/A N/A os environ get _TEST_DATA_SOURCE_ENV_VAR N/A N/A N/A print N/A N/A 
>>>>>>>>> {} set: skipping test, generating canonical test data instead. format _TEST_DATA_SOURCE_ENV_VAR N/A N/A N/A self _generate_testworthy_splits N/A N/A parser N/A ZincAnalysisParser N/A N/A _temp_test_dir complex.zip testdir N/A N/A analysis_files N/A N/A N/A N/A os path join testdir f N/A f N/A N/A os listdir testdir N/A N/A N/A f endswith .analysis N/A N/A N/A f endswith .merged.analysis N/A num_analyses N/A len analysis_files parse N/A N/A f N/A N/A N/A N/A N/A parser parse_from_path f N/A N/A analyses N/A N/A self _time N/A N/A N/A N/A N/A N/A parse f N/A f analysis_files N/A Parsed %d files num_analyses N/A writeout_dir N/A N/A N/A os path join testdir write N/A N/A N/A os mkdir writeout_dir write N/A N/A file_name analysis N/A N/A N/A outpath N/A N/A N/A os path join writeout_dir file_name N/A N/A N/A analysis write_to_path outpath N/A _write_all N/A N/A N/A N/A N/A N/A analysis_file analysis N/A zip analysis_files analyses N/A N/A N/A write N/A N/A N/A os path basename analysis_file analysis N/A N/A N/A N/A self _time _write_all N/A Wrote %d files num_analyses N/A merged_analysis N/A N/A self _time N/A N/A N/A N/A N/A N/A ZincAnalysis merge analyses N/A Merged %d files num_analyses N/A merged_analysis_path N/A N/A N/A os path join writeout_dir merged.analysis N/A N/A N/A self _time N/A N/A N/A N/A N/A N/A merged_analysis write_to_path merged_analysis_path N/A Wrote merged analysis to %s merged_analysis_path N/A merged_analysis2 N/A N/A self _time N/A N/A N/A N/A N/A N/A parser parse_from_path merged_analysis_path N/A Read merged analysis from %s merged_analysis_path N/A expected_merged_analysis_path N/A N/A N/A os path join testdir all.merged.analysis N/A expected_merged_analysis N/A N/A self _time N/A N/A N/A N/A N/A N/A parser parse_from_path expected_merged_analysis_path N/A Read expected merged analysis from %s expected_merged_analysis_path N/A diffs N/A N/A merged_analysis diff merged_analysis2 N/A N/A N/A self assertTrue N/A N/A merged_analysis is_equal_to merged_analysis2 N/A N/A join N/A N/A N/A six u diff N/A diff diffs N/A diffs N/A N/A expected_merged_analysis diff merged_analysis2 N/A N/A N/A self assertTrue N/A N/A expected_merged_analysis is_equal_to merged_analysis2 N/A N/A join N/A N/A N/A six u diff N/A diff diffs N/A sources_per_analysis N/A N/A N/A N/A N/A a stamps sources keys N/A a analyses N/A split_analyses N/A N/A self _time N/A N/A N/A N/A N/A N/A merged_analysis2 split sources_per_analysis catchall True N/A Split back into %d analyses num_analyses N/A N/A N/A self assertEquals N/A num_analyses 1 N/A len split_analyses N/A catchall_analysis N/A split_analyses N/A -1 N/A N/A N/A self assertEquals 0 N/A len N/A N/A catchall_analysis stamps sources N/A splits_dir N/A N/A N/A os path join testdir splits N/A N/A N/A os mkdir splits_dir N/A N/A analysis_file analysis split_analysis N/A zip analysis_files analyses split_analyses N/A N/A outfile_path N/A N/A N/A os path join splits_dir N/A N/A N/A os path basename analysis_file N/A N/A N/A split_analysis write_to_path outfile_path N/A diffs N/A N/A analysis diff split_analysis N/A N/A N/A self assertTrue N/A N/A analysis is_equal_to split_analysis N/A N/A join N/A N/A N/A six u diff N/A diff diffs N/A N/A print N/A Total time: %f seconds N/A self total_time N/A _generate_testworthy_splits N/A N/A self N/A N/A N/A Take some non-canonical analysis files and generate test data from them.

    The resulting files will be "canonical". That is, merging and re-splitting them will yield
    the same files. Therefore the resulting files can be used as test data (after eyeballing them
    to ensure no pathologies).

    An easy way to generate input for this function is to run a scala compile on some targets using
    --strategy=isolated. Then .pants.d/compile/jvm/scala/isolated-analysis/ will contain a bunch
    of per-target analysis files.

    Those files can be anonymized (see anonymize_analysis.py), ideally with some non-ASCII words
    thrown in (as explained there), and then you can point this function to those anonymized
    files by setting ZINC_ANALYSIS_TEST_DATA_SOURCE=<dir> in the environment and running this test.

    Note: Yes, it's slightly problematic that we're using the very code we're testing to generate
    the test inputs. Hence the need to spot-check for obvious pathologies.
     N/A original_splits_dir N/A N/A N/A os environ get _TEST_DATA_SOURCE_ENV_VAR N/A canonical_dir N/A N/A N/A os path join original_splits_dir canonical N/A N/A N/A N/A os path exists canonical_dir N/A N/A N/A N/A shutil rmtree canonical_dir True N/A N/A N/A os mkdir canonical_dir N/A original_split_filenames N/A N/A N/A f decode utf-8 N/A f N/A N/A os listdir original_splits_dir N/A original_splits_files N/A N/A N/A N/A os path join original_splits_dir f N/A f original_split_filenames N/A N/A f endswith .analysis N/A parser N/A ZincAnalysisParser N/A original_split_analyses N/A N/A N/A parser parse_from_path f N/A f original_splits_files N/A merged_analysis N/A N/A ZincAnalysis merge original_split_analyses N/A N/A N/A merged_analysis write_to_path N/A N/A N/A os path join canonical_dir all.merged.analysis N/A sources_per_analysis N/A N/A N/A N/A N/A a stamps sources keys N/A a original_split_analyses N/A split_analyses N/A N/A merged_analysis split sources_per_analysis N/A N/A N/A os path dirname __file__ N/A N/A original_split_file split_analysis N/A zip original_splits_files split_analyses N/A N/A outpath N/A N/A N/A os path join canonical_dir N/A N/A N/A os path basename original_split_file N/A N/A N/A split_analysis write_to_path outpath N/A N/A print N/A N/A Wrote canonical analysis data to {} format canonical_dir N/A N/A ZincAnalysisTestLarge N/A ZincAnalysisTestBase N/A test_large N/A N/A self N/A N/A N/A parser N/A ZincAnalysisParser N/A N/A _temp_test_dir large.zip testdir N/A N/A N/A print N/A N/A Operating in test dir: {} format testdir N/A analysis_file_names N/A downstream.analysis upstream.analysis N/A analysis_files N/A N/A N/A N/A os path join testdir f N/A f analysis_file_names msg N/A N/A prefix N/A N/A N/A N/A N/A {0} [{1}] format prefix N/A N/A ,  join analysis_file_names N/A N/A analyses N/A N/A self _time N/A N/A N/A N/A N/A N/A N/A parser parse_from_path f N/A f analysis_files N/A msg Parsed N/A writeout_dir N/A N/A N/A os path join testdir write N/A N/A N/A os mkdir writeout_dir write N/A N/A file_name analysis N/A N/A N/A outpath N/A N/A N/A os path join writeout_dir file_name N/A N/A N/A analysis write_to_path outpath N/A _write_all N/A N/A N/A N/A N/A N/A analysis_file analysis N/A zip analysis_files analyses N/A N/A N/A write N/A N/A N/A os path basename analysis_file analysis N/A N/A N/A N/A self _time _write_all N/A msg Wrote N/A merged_analysis N/A N/A self _time N/A N/A N/A N/A N/A N/A ZincAnalysis merge analyses N/A msg Merged N/A merged_analysis_path N/A N/A N/A os path join testdir merged.analysis N/A N/A N/A self _time N/A N/A N/A N/A N/A N/A merged_analysis write_to_path merged_analysis_path N/A msg Wrote merge of N/A sources_per_analysis N/A N/A N/A N/A N/A a stamps sources keys N/A a analyses N/A N/A N/A self _time N/A N/A N/A N/A N/A N/A merged_analysis split sources_per_analysis catchall True N/A msg Split N/A rebased_analysis_path N/A N/A N/A os path join testdir rebased.merged.analysis N/A N/A N/A self _time N/A N/A N/A N/A N/A N/A N/A ZincAnalysisParser rebase_from_path merged_analysis_path rebased_analysis_path /Users/kermit/src/acme.web $PANTS_HOME N/A msg Rebase N/A N/A print N/A Total time: %f seconds N/A self total_time N/A N/A ZincAnalysisTestSorting N/A ZincAnalysisTestBase N/A FakeElement N/A ZincAnalysisElement N/A N/A headers N/A foo N/A test_sort N/A N/A self N/A N/A N/A unsorted_arg N/A N/A N/A {} format n N/A f1 f2 f0 N/A n N/A range 9 -1 -1 N/A expected N/A foo:
30 items
 N/A N/A join N/A N/A N/A {n} -> f0
{n} -> f1
{n} -> f2
 format n n N/A n N/A range 0 10 do_test N/A N/A elem N/A N/A N/A n N/A range 0 9 N/A N/A N/A N/A self assertEquals N/A f0 f1 f2 N/A N/A N/A elem args N/A 0 N/A N/A N/A {} format n N/A buf N/A N/A StringIO StringIO N/A N/A N/A elem write buf N/A output N/A N/A buf getvalue N/A N/A N/A self assertMultiLineEqual expected output N/A N/A always_sorted_elem N/A N/A self FakeElement N/A unsorted_arg always_sort True N/A N/A do_test always_sorted_elem N/A N/A environment_as ZINCUTILS_SORTED_ANALYSIS 1 N/A N/A unsorted_elem N/A N/A self FakeElement N/A unsorted_arg N/A N/A do_test unsorted_elem N/A N/A