<commit_before>// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

import BeatmapJson from './beatmap-json';

export function isValid(x: BeatmapJson | BeatmapJsonExtended): x is BeatmapJsonExtended {
  return (x as BeatmapJsonExtended).accuracy != null;
}

// TODO: incomplete
export default interface BeatmapJsonExtended extends BeatmapJson {
  accuracy: number;
  ar: number;
  beatmapset_id: number;
  convert: boolean | null;
  count_circles: number;
  count_sliders: number;
  count_spinners: number;
  cs: number;
  deleted_at: string | null;
  drain: number;
  failtimes?: BeatmapFailTimesArray;
  hit_length: number;
  last_updated: string;
  mode_int: number;
  passcount: number;
  playcount: number;
  ranked: number;
  status: string;
  total_length: number;
  url: string;
}<commit_msg>alsl remove this duplicate<commit_after>// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

import BeatmapJson from './beatmap-json';

export function isValid(x: BeatmapJson | BeatmapJsonExtended): x is BeatmapJsonExtended {
  return (x as BeatmapJsonExtended).accuracy != null;
}

// TODO: incomplete
export default interface BeatmapJsonExtended extends BeatmapJson {
  accuracy: number;
  ar: number;
  convert: boolean | null;
  count_circles: number;
  count_sliders: number;
  count_spinners: number;
  cs: number;
  deleted_at: string | null;
  drain: number;
  failtimes?: BeatmapFailTimesArray;
  hit_length: number;
  last_updated: string;
  mode_int: number;
  passcount: number;
  playcount: number;
  ranked: number;
  status: string;
  total_length: number;
  url: string;
}
{'fraction_non_alphanumeric': 0.09110867178924259, 'fraction_numerical': 0.0021953896816684962, 'mean_word_length': 4.5920245398773005, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2557079', 'n_tokens_mistral': 577, 'n_tokens_neox': 571, 'n_words': 191}