original_string: public static function getPackageName($source)
      {
          $ignore_yaml_files = ['blueprints', 'languages'];
  
          foreach (glob($source . '*.yaml') as $filename) {
              $name = strtolower(basename($filename, '.yaml'));
              if (in_array($name, $ignore_yaml_files)) {
                  continue;
              }
              return $name;
          }
          return false;
      }
code: public static function getPackageName($source)
      {
          $ignore_yaml_files = ['blueprints', 'languages'];
  
          foreach (glob($source . '*.yaml') as $filename) {
              $name = strtolower(basename($filename, '.yaml'));
              if (in_array($name, $ignore_yaml_files)) {
                  continue;
              }
              return $name;
          }
          return false;
      }
code_tokens: public static function getPackageName ( $ source ) { $ ignore_yaml_files = [ 'blueprints' , 'languages' ] ; foreach ( glob ( $ source . '*.yaml' ) as $ filename ) { $ name = strtolower ( basename ( $ filename , '.yaml' ) ) ; if ( in_array ( $ name , $ ignore_yaml_files ) ) { continue ; } return $ name ; } return false ; }
docstring: Try to guess the package name from the source files
  
  @param string $source
  @return bool|string
docstring_tokens: Try to guess the package name from the source files