<commit_before>﻿using System;
using System.Collections.Generic;


namespace KERBALISM {


public static class Features
{
  public static void detect()
  {
    // set user-specified features
    Reliability = Settings.Reliability;
    Signal = Settings.Signal;
    Science = Settings.Science;
    SpaceWeather = Settings.SpaceWeather;
    Automation = Settings.Automation;

    // force-disable some features based on mods detected
    Reliability &= !Lib.HasAssembly("TestFlight");
    Signal &= !Lib.HasAssembly("RemoteTech");
    Science &= !Lib.HasAssembly("ScienceRelay");

    // detect all modifiers in use by current profile
    HashSet<string> modifiers = new HashSet<string>();
    foreach(Rule rule in Profile.rules)
    {
      foreach(string s in rule.modifiers) modifiers.Add(s);
    }
    foreach(Process process in Profile.processes)
    {
      foreach(string s in process.modifiers) modifiers.Add(s);
    }<commit_msg>do not disable Science anymore if ScienceRelay is detected<commit_after>﻿using System;
using System.Collections.Generic;


namespace KERBALISM {


public static class Features
{
  public static void detect()
  {
    // set user-specified features
    Reliability = Settings.Reliability;
    Signal = Settings.Signal;
    Science = Settings.Science;
    SpaceWeather = Settings.SpaceWeather;
    Automation = Settings.Automation;

    // force-disable some features based on mods detected
    Reliability &= !Lib.HasAssembly("TestFlight");
    Signal &= !Lib.HasAssembly("RemoteTech");

    // detect all modifiers in use by current profile
    HashSet<string> modifiers = new HashSet<string>();
    foreach(Rule rule in Profile.rules)
    {
      foreach(string s in rule.modifiers) modifiers.Add(s);
    }
    foreach(Process process in Profile.processes)
    {
      foreach(string s in process.modifiers) modifiers.Add(s);
    }
{'fraction_non_alphanumeric': 0.0969989281886388, 'fraction_numerical': 0.0, 'mean_word_length': 3.5205811138014527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6850431', 'n_tokens_mistral': 545, 'n_tokens_neox': 517, 'n_words': 146}