<commit_before>(function() {
  var Semanticolor, SemanticolorView, CompositeDisposable;

  SemanticolorView = require('./semanticolor-view');

  CompositeDisposable = require('atom').CompositeDisposable;

  var $ = require("atom-space-pen-views").$;
  var _ = require('lodash');

  var fs = require('fs');
  var path = require('path');

  var thisDir = path.dirname(__dirname);
  var lessFile = thisDir + '/styles/semanticolor.less';

  function hash(string) {
    return string.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0);
    var chr, hash, i, len;
    hash = 0;
    if (string.length === 0) {
      return hash;
    }
    i = 0;
    len = string.length;
    while (i < len) {
      chr = string.charCodeAt(i);
      hash = ((hash << 5) - hash) + chr;
      hash |= 0;
      i++;
    }
    return hash;
  }

  function colorIndex(string) {
    return (Math.abs(hash(string)) % colorDiversity) + 1;
  }

  var enabledGrammars = ".php";
  var enabledSourceObjects = ".variable, .function, .function-call";
  var colorDiversity = 96;
  var excludeSourceSelector = ".comment";
  var updatedCd = null;

  var affectedSourceSelector = ".variable, .function, .function-call, .entity, .class";
  module.exports = Semanticolor = {
    config: {
  		/*affectedGrammars: {
  			type: 'object',
  			properties: {
          enablePHP: {
            title: 'PHP Enabled',
            description: "Enable the PHP source selector \'.php\'",
            type: 'boolean',
            value: '.php',
            default: true
          },
          enableJavaScript: {
            title: 'JavaScript Enabled',
            description: "Enable the PHP source selector \'.js\' (Since Atom does not parse JS proper you need the language-javascript-semantic package)",
            type: 'boolean',
            value: '.js',
            default: true
          },
          enablePython: {
            title: 'Python Enabled',
            description: "Enable the PHP source selector \'.python\'",
            type: 'boolean',
            value: '.python',
            default: true
          },
          enableCoffeeScript: {
            title: 'CoffeeScript Enabled',
            description: "Enable the CoffeeScript source selector \'.coffee\'",
            type: 'boolean',
            value: '.coffee',
            default: true
          },
          enableHTML: {
            title: 'HTML Enabled',
            description: "Enable the HTML source selector \'.html\'",
            type: 'boolean',
            value: '.html',
            default: true
          },
          additionalGrammarSelectors: {
            title: 'Define additional Grammars by their selector',
            description: "Usually along the lines of \'.somelanguage\'",
            type: 'string',
            default: ''
          }
        }
  		},*/
      affectedSourceObjects: {
        title: 'Source objects to colorize',
        description: "What grammars you want to colorize. All objects of the same name are colored the same throughout",
  			type: 'object',
  			properties: {
          enableVariables: {
            title: 'Variables Enabled',
            description: "Enable variable selector \'.variable\'",
            type: 'boolean',
            default: true,
            value: '.variable'
          },
          enableFunctions: {
            title: 'Functions Enabled',
            description: "Enable function selector \'.function\'",
            type: 'boolean',
            default: true,
            value: '.function'
          },
          enableFunctionCalls: {
            title: 'Function Calls Enabled',
            description: "Enable function calls selector \'.function-call\'",
            type: 'boolean',
            default: true,
            value: '.function-call'
          },
          enableEntities: {
            title: 'Class Entities',
            description: "Enable entity selector \'.entity\'",
            type: 'boolean',
            default: true,
            value: '.entity'
          },
          enableClasses: {
            title: 'Class Names',
            description: "Enable class selector \'.class\'",
            type: 'boolean',
            default: true,
            value: '.class'
          },
          enableConstants: {
            title: 'Constants',
            description: "Enable constants selector \'.constant\'",
            type: 'boolean',
            default: true,
            value: '.constant'
          },
          enableHtmlTags: {
            title: 'HTML Tags',
            description: "Enable function selector \'.block\'",
            type: 'boolean',
            default: true,
            value: '.block'
          },
          additionalSelectors: {
            title: 'Define additional selectors for colorizing. All similar innerTexts are the same color.',
            description: "Usually along the lines of \'.comment, .example\'. Must be comma delimited!",
            type: 'string',
            default: ''
          }
        }
  		},
  		/*affectedSourceSelector: {
  			type: 'string',
  			'default': ".variable, .function, .function-call, .entity, .class, .block.html"
  		},*/
  		excludeSourceSelector: {
  			type: 'string',
  			'default': '.comment'
  		},
      colorDiversity: {
        type: 'integer',
        text: 'Affects how diverse the colors are.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 8,
        default: 96,
        maximum: 360
      },
      saturationLevelA1: {
        type: 'integer',
        text: 'Used for generating the additional colors.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 0,
        default: 100,
        maximum: 100
      },
      saturationLevelA2: {
        type: 'integer',
        text: 'Used for generating the additional colors.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 0,
        default: 10,
        maximum: 100
      },
      saturationLevelB1: {
        type: 'integer',
        text: 'Used for generating the additional colors.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 0,
        default: 75,
        maximum: 100
      },
      saturationLevelB2: {
        type: 'integer',
        text: 'Used for generating the additional colors.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 0,
        default: 75,
        maximum: 100
      }
  	},
    semanticolorView: SemanticolorView,
    modalPanel: SemanticolorView,
    selector: '.source',
    disableForSelector: '',
    subscriptions: null,<commit_msg>update settings text<commit_after>(function() {
  var Semanticolor, SemanticolorView, CompositeDisposable;

  SemanticolorView = require('./semanticolor-view');

  CompositeDisposable = require('atom').CompositeDisposable;

  var $ = require("atom-space-pen-views").$;
  var _ = require('lodash');

  var fs = require('fs');
  var path = require('path');

  var thisDir = path.dirname(__dirname);
  var lessFile = thisDir + '/styles/semanticolor.less';

  function hash(string) {
    return string.split("").reduce(function(a,b){a=((a<<5)-a)+b.charCodeAt(0);return a&a},0);
    var chr, hash, i, len;
    hash = 0;
    if (string.length === 0) {
      return hash;
    }
    i = 0;
    len = string.length;
    while (i < len) {
      chr = string.charCodeAt(i);
      hash = ((hash << 5) - hash) + chr;
      hash |= 0;
      i++;
    }
    return hash;
  }

  function colorIndex(string) {
    return (Math.abs(hash(string)) % colorDiversity) + 1;
  }

  var enabledGrammars = ".php";
  var enabledSourceObjects = ".variable, .function, .function-call";
  var colorDiversity = 96;
  var excludeSourceSelector = ".comment";
  var updatedCd = null;

  var affectedSourceSelector = ".variable, .function, .function-call, .entity, .class";
  module.exports = Semanticolor = {
    config: {
  		/*affectedGrammars: {
  			type: 'object',
  			properties: {
          enablePHP: {
            title: 'PHP Enabled',
            description: "Enable the PHP source selector \'.php\'",
            type: 'boolean',
            value: '.php',
            default: true
          },
          enableJavaScript: {
            title: 'JavaScript Enabled',
            description: "Enable the PHP source selector \'.js\' (Since Atom does not parse JS proper you need the language-javascript-semantic package)",
            type: 'boolean',
            value: '.js',
            default: true
          },
          enablePython: {
            title: 'Python Enabled',
            description: "Enable the PHP source selector \'.python\'",
            type: 'boolean',
            value: '.python',
            default: true
          },
          enableCoffeeScript: {
            title: 'CoffeeScript Enabled',
            description: "Enable the CoffeeScript source selector \'.coffee\'",
            type: 'boolean',
            value: '.coffee',
            default: true
          },
          enableHTML: {
            title: 'HTML Enabled',
            description: "Enable the HTML source selector \'.html\'",
            type: 'boolean',
            value: '.html',
            default: true
          },
          additionalGrammarSelectors: {
            title: 'Define additional Grammars by their selector',
            description: "Usually along the lines of \'.somelanguage\'",
            type: 'string',
            default: ''
          }
        }
  		},*/
      affectedSourceObjects: {
        title: 'Source objects to colorize',
        description: "What grammars you want to colorize. All objects of the same name are colored the same throughout",
  			type: 'object',
  			properties: {
          enableVariables: {
            title: 'Variables Enabled',
            description: "Enable variable selector \'.variable\'",
            type: 'boolean',
            default: true,
            value: '.variable'
          },
          enableFunctions: {
            title: 'Functions Enabled',
            description: "Enable function selector \'.function\'",
            type: 'boolean',
            default: true,
            value: '.function'
          },
          enableFunctionCalls: {
            title: 'Function Calls Enabled',
            description: "Enable function calls selector \'.function-call\'",
            type: 'boolean',
            default: true,
            value: '.function-call'
          },
          enableEntities: {
            title: 'Class Entities',
            description: "Enable entity selector \'.entity\'",
            type: 'boolean',
            default: true,
            value: '.entity'
          },
          enableClasses: {
            title: 'Class Names',
            description: "Enable class selector \'.class\'",
            type: 'boolean',
            default: true,
            value: '.class'
          },
          enableConstants: {
            title: 'Constants',
            description: "Enable constants selector \'.constant\'",
            type: 'boolean',
            default: true,
            value: '.constant'
          },
          enableHtmlTags: {
            title: 'HTML Tags',
            description: "Enable function selector \'.block\'",
            type: 'boolean',
            default: true,
            value: '.block'
          },
          additionalSelectors: {
            title: 'Define additional selectors for colorizing. All similar innerTexts are the same color.',
            description: "Usually along the lines of \'.comment, .example\'. Must be comma delimited!",
            type: 'string',
            default: ''
          }
        }
  		},
  		/*affectedSourceSelector: {
  			type: 'string',
  			'default': ".variable, .function, .function-call, .entity, .class, .block.html"
  		},*/
  		excludeSourceSelector: {
  			type: 'string',
  			'default': '.comment'
  		},
      colorDiversity: {
        type: 'integer',
        text: 'Affects how diverse the colors are.',
        description: 'Higher number will allow for more unique tokens and colors. Lower will limit the colors used.',
        minimum: 8,
        default: 96,
        maximum: 360
      },
      saturationLevelA1: {
        type: 'integer',
        text: 'Used for generating the additional colors using @hsl',
        description: 'See README on https://atom.io/packages/semanticolor',
        minimum: 0,
        default: 100,
        maximum: 100
      },
      saturationLevelA2: {
        type: 'integer',
        text: 'Used for generating the additional colors using @hsl',
        description: 'See README on https://atom.io/packages/semanticolor',
        minimum: 0,
        default: 10,
        maximum: 100
      },
      saturationLevelB1: {
        type: 'integer',
        text: 'Used for generating the additional colors using @hsl',
        description: 'See README on https://atom.io/packages/semanticolor',
        minimum: 0,
        default: 75,
        maximum: 100
      },
      saturationLevelB2: {
        type: 'integer',
        text: 'Used for generating the additional colors using @hsl',
        description: 'See README on https://atom.io/packages/semanticolor',
        minimum: 0,
        default: 75,
        maximum: 100
      }
  	},
    semanticolorView: SemanticolorView,
    modalPanel: SemanticolorView,
    selector: '.source',
    disableForSelector: '',
    subscriptions: null,
{'fraction_non_alphanumeric': 0.1181176812859117, 'fraction_numerical': 0.006691395737871845, 'mean_word_length': 1.8356362136522995, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '70089', 'n_tokens_mistral': 3787, 'n_tokens_neox': 3598, 'n_words': 1091}