<commit_before>'use strict';

function SoundJSDirectorGroup (name, options) {

  if (!(this instanceof SoundJSDirectorGroup)) {
    return new SoundJSDirectorGroupProto(name, options);
  }
  
  var argsLen = arguments.length;
  
  if (1 === argsLen) {
    switch (typeof name) {
      case 'string': {
        options = SoundJSDirector.extend(DEFAULT_OPTIONS);
        options.name = name;
      } break;
      case 'object': {
        options = name;
        name = options.name;
      } break;
    }
  }
  
  else if (0 === argsLen) {
    throw 'SoundJSDirector.Group there is no passed arguments';
  }
  
  if (!(name && 'string' === typeof name)) {
    throw 'SoundJSDirector.Group cannot initialize new sounds group without name';
  }

  this.name = name;

  // Parse options.
  this.options = SoundJSDirector.extend(
    SoundJSDirector.parseOptions(options),<commit_msg>Fixed instance chcking in SoundJSDirector.Group constructor<commit_after>'use strict';

function SoundJSDirectorGroup (name, options) {

  if (!(this instanceof SoundJSDirectorGroup)) {
    return new SoundJSDirectorGroup(name, options);
  }
  
  var argsLen = arguments.length;
  
  if (1 === argsLen) {
    switch (typeof name) {
      case 'string': {
        options = SoundJSDirector.extend(DEFAULT_OPTIONS);
        options.name = name;
      } break;
      case 'object': {
        options = name;
        name = options.name;
      } break;
    }
  }
  
  else if (0 === argsLen) {
    throw 'SoundJSDirector.Group there is no passed arguments';
  }
  
  if (!(name && 'string' === typeof name)) {
    throw 'SoundJSDirector.Group cannot initialize new sounds group without name';
  }

  this.name = name;

  // Parse options.
  this.options = SoundJSDirector.extend(
    SoundJSDirector.parseOptions(options),
{'fraction_non_alphanumeric': 0.11532033426183844, 'fraction_numerical': 0.0022284122562674096, 'mean_word_length': 2.879049676025918, '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': '4698983', 'n_tokens_mistral': 563, 'n_tokens_neox': 539, 'n_words': 144}