{"size": 373, "ext": "js", "max_stars_repo_path": "src/core/query_parser.js", "max_stars_repo_name": "yuxuan-ji/lunastra", "max_stars_repo_stars_event_min_datetime": "2019-04-15T17:50:12.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-05T23:38:02.000Z", "max_issues_repo_path": "src/core/query_parser.js", "max_issues_repo_name": "yuxuan-ji/lunastra", "max_issues_repo_issues_event_min_datetime": "2019-06-14T21:48:47.000Z", "max_issues_repo_issues_event_max_datetime": "2021-07-29T05:49:46.000Z", "max_forks_repo_path": "src/core/query_parser.js", "max_forks_repo_name": "yuxuan-ji/lunastra", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": 13, "max_forks_count": null, "avg_line_length": 17.7619047619, "max_line_length": 70, "alphanum_fraction": 0.6032171582}
/**
 * Utility class to convert a user query into a model understandable
 * by the Lunastra Index
 */
export class QueryParser {

  /**
   * Build the query into a model understandable by the Lunastra Index
   * @param  {String} query
   * @return {Object} model
   */
  static build(query) {
    var model = {
      q: "",
      config: {}
    };
    return model;
  }

}
