<commit_before>/* @flow */

import type { Metadata } from './metadata'
import type { Callback } from './utils/func'

export type SideName =
  | "local"
  | "remote";

// eslint-disable-next-line no-undef
export interface Side {
  addFile (doc: Metadata, callback: Callback): void;
  addFolder (doc: Metadata, callback: Callback): void|Promise<*>;
  overwriteFile (doc: Metadata, old: Metadata, callback: Callback): void|Promise<*>;
  updateFileMetadata (doc: Metadata, old: Metadata, callback: Callback): void;
  updateFolder (doc: Metadata, old: Metadata, callback: Callback): void;
  moveFile (doc: Metadata, from: Metadata, callback: Callback): void;
  moveFolder (doc: Metadata, from: Metadata, callback: Callback): void;
  trash (doc: Metadata, callback: Callback): void;
  destroy (doc: Metadata, callback: Callback): void;
}
<commit_msg>side: Add async method definitions<commit_after>/* @flow */

import type { Metadata } from './metadata'
import type { Callback } from './utils/func'

export type SideName =
  | "local"
  | "remote";

// eslint-disable-next-line no-undef
export interface Side {
  addFile (doc: Metadata, callback: Callback): void;
  addFileAsync (doc: Metadata): Promise<*>;
  addFolder (doc: Metadata, callback: Callback): void|Promise<*>;
  addFolderAsync (doc: Metadata): Promise<*>;
  overwriteFile (doc: Metadata, old: Metadata, callback: Callback): void|Promise<*>;
  overwriteFileAsync (doc: Metadata, old: Metadata): Promise<*>;
  updateFileMetadata (doc: Metadata, old: Metadata, callback: Callback): void;
  updateFileMetadataAsync (doc: Metadata, old: Metadata): Promise<*>;
  updateFolder (doc: Metadata, old: Metadata, callback: Callback): void;
  updateFolderAsync (doc: Metadata, old: Metadata): Promise<*>;
  moveFile (doc: Metadata, from: Metadata, callback: Callback): void;
  moveFileAsync (doc: Metadata, from: Metadata): Promise<*>;
  moveFolder (doc: Metadata, from: Metadata, callback: Callback): void;
  moveFolderAsync (doc: Metadata, from: Metadata): Promise<*>;
  trash (doc: Metadata, callback: Callback): void;
  trashAsync (doc: Metadata): Promise<*>;
  destroy (doc: Metadata, callback: Callback): void;
  destroyAsync (doc: Metadata): Promise<*>;
}

{'fraction_non_alphanumeric': 0.14447463768115942, 'fraction_numerical': 0.0, 'mean_word_length': 5.51622418879056, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '5162128', 'n_tokens_mistral': 694, 'n_tokens_neox': 696, 'n_words': 222}