<commit_before>require File.expand_path('../../../spec_helper', __FILE__)

module ProjectSpecs
  describe AbstractBuildPhase do

    before do
      # Can't initialize AbstractBuildPhase directly
      @phase = @project.new(PBXCopyFilesBuildPhase)
    end

    it "has an empty list of (build) files" do
      @phase.files.should == []
    end

    it "is initialized with the default buildActionMask" do
      @phase.build_action_mask.should == "2147483647"
    end

    it "is initialized with the default runOnlyForDeploymentPostprocessing" do
      @phase.run_only_for_deployment_postprocessing.should == "0"
    end

    if "is initialized with empty comments" do
      @phase.comments.should == ""
    end

    it "can add a file reference to its build files" do
      file = @project.new_file('some/file')
      @phase.add_file_reference(file)
      @phase.files_references.should.include file
    end

    it "returns the files it's associated with through its build files" do
      file = @project.new_file('some/file')
      @phase.add_file_reference(file)
      @phase.files_references.should == [file]<commit_msg>Fix typo and bad test.<commit_after>require File.expand_path('../../../spec_helper', __FILE__)

module ProjectSpecs
  describe AbstractBuildPhase do

    before do
      # Can't initialize AbstractBuildPhase directly
      @phase = @project.new(PBXCopyFilesBuildPhase)
    end

    it "has an empty list of (build) files" do
      @phase.files.should == []
    end

    it "is initialized with the default buildActionMask" do
      @phase.build_action_mask.should == "2147483647"
    end

    it "is initialized with the default runOnlyForDeploymentPostprocessing" do
      @phase.run_only_for_deployment_postprocessing.should == "0"
    end

    it "is initialized with empty comments" do
      @phase.comments.should.be.nil
    end

    it "can add a file reference to its build files" do
      file = @project.new_file('some/file')
      @phase.add_file_reference(file)
      @phase.files_references.should.include file
    end

    it "returns the files it's associated with through its build files" do
      file = @project.new_file('some/file')
      @phase.add_file_reference(file)
      @phase.files_references.should == [file]
{'fraction_non_alphanumeric': 0.0915929203539823, 'fraction_numerical': 0.009734513274336283, 'mean_word_length': 3.187037037037037, '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': '4809821', 'n_tokens_mistral': 681, 'n_tokens_neox': 652, 'n_words': 189}