<commit_before>using System.IO;
using System.Linq;
using System.Collections.Immutable;
using System.Collections.Generic;
using Bud.Plugins.Build;
using Bud.Plugins.Deps;
using System.Threading.Tasks;

namespace Bud.Plugins.Projects {

  public static class Project {

    public static Settings AddProject(this Settings build, string id, string baseDir, IPlugin plugin = null) {
      var projectKey = ProjectKey(id);
      return build
        .Apply(projectKey, new ProjectPlugin(id, baseDir).With(plugin));
    }

    public static Key ProjectKey(string id) {
      return new Key(id).In(ProjectKeys.Project);
    }

    public static ImmutableDictionary<string, Key> GetAllProjects(this IConfig buildConfiguration) {
      return buildConfiguration.Evaluate(ProjectKeys.Projects);
    }

    public static Key GetProject(this IConfig context, string id) {
      return GetAllProjects(context)[id];
    }
  }

}
<commit_msg>Removed unused imports.<commit_after>using System.Collections.Immutable;

namespace Bud.Plugins.Projects {
  public static class Project {
    public static Settings AddProject(this Settings build, string id, string baseDir, IPlugin plugin = null) {
      var projectKey = ProjectKey(id);
      return build
        .Apply(projectKey, new ProjectPlugin(id, baseDir).With(plugin));
    }

    public static Key ProjectKey(string id) {
      return new Key(id).In(ProjectKeys.Project);
    }

    public static ImmutableDictionary<string, Key> GetAllProjects(this IConfig buildConfiguration) {
      return buildConfiguration.Evaluate(ProjectKeys.Projects);
    }

    public static Key GetProject(this IConfig context, string id) {
      return GetAllProjects(context)[id];
    }
  }
}
{'fraction_non_alphanumeric': 0.08942139099941554, 'fraction_numerical': 0.0, 'mean_word_length': 3.947976878612717, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2548261', 'n_tokens_mistral': 477, 'n_tokens_neox': 468, 'n_words': 128}