<commit_before>var File = java.io.File;
/*
 wph 20140102 - warn if legacy 'mcserver/js-plugins' or 
 'mcserver/plugins/scriptcraft' directories are present
 */
module.exports = function( jsPluginsRootDir ) {
  var mcServerDir = new File(jsPluginsRootDir.canonicalPath).parentFile;
  if (mcServerDir == null){
    console.warn('Could not find parent directory for ' + jsPluginsRootDir.canonicalPath);
    return;
  }
  var legacyExists = false,
      legacyDirs = [
	new File( mcServerDir, 'js-plugins' ),
	new File( mcServerDir, 'plugins/scriptcraft' )
      ];

  for ( var i = 0; i < legacyDirs.length; i++ ) {
    if ( legacyDirs[i].exists() 
         && legacyDirs[i].isDirectory() ) {

      legacyExists = true; 

      console.warn('Legacy ScriptCraft directory %s was found. This directory is no longer used.',
	legacyDirs[i].canonicalPath);
      console.warn('Please put plugins in the ' + jsPluginsRootDir.canonicalPath + '/plugins directory');
    }
  }
  if ( legacyExists ) {
    console.info( 'Please note that the working directory for %s is %s', 
		  __plugin, jsPluginsRootDir.canonicalPath );
  }
};<commit_msg>fixes issue #306 - removed warning for plugins/scriptcraft folder<commit_after>var File = java.io.File;
/*
 wph 20140102 - warn if legacy 'mcserver/js-plugins' or 
 'mcserver/plugins/scriptcraft' directories are present
 */
module.exports = function( jsPluginsRootDir ) {
  var mcServerDir = new File(jsPluginsRootDir.canonicalPath).parentFile;
  if (mcServerDir == null){
    console.warn('Could not find parent directory for ' + jsPluginsRootDir.canonicalPath);
    return;
  }
  var legacyExists = false,
      legacyDirs = [
	new File( mcServerDir, 'js-plugins' )
      ];

  for ( var i = 0; i < legacyDirs.length; i++ ) {
    if ( legacyDirs[i].exists() 
         && legacyDirs[i].isDirectory() ) {

      legacyExists = true; 

      console.warn('Legacy ScriptCraft directory %s was found. This directory is no longer used.',
	legacyDirs[i].canonicalPath);
      console.warn('Please put plugins in the ' + jsPluginsRootDir.canonicalPath + '/plugins directory');
    }
  }
  if ( legacyExists ) {
    console.info( 'The working directory for %s is %s', 
		  __plugin, jsPluginsRootDir.canonicalPath );
  }
};
{'fraction_non_alphanumeric': 0.11932324131789848, 'fraction_numerical': 0.009349955476402494, 'mean_word_length': 3.4850299401197606, 'pattern_counts': {'":': 0, '<': 5, '<?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': '222824', 'n_tokens_mistral': 740, 'n_tokens_neox': 699, 'n_words': 184}