<commit_before>import {BigInt} from './../node_modules/bigint.ts/bigint';
import {UTF8, Hexadecimal, ByteArray} from './../node_modules/encode.ts/encode';
import {Hash, HashType} from './../node_modules/hash.ts/hash';

export {HashType} from './../node_modules/hash.ts/hash';
export {BigInt} from './../node_modules/bigint.ts/bigint';



export class Routines {


  /**
   * x contains the user's password mixed with a salt.
   */
  public static computeX(s: BigInt, I: string, P: string, hashType?: HashType) : BigInt {
    var here = UTF8.getBytes(`${I}:${P}`);
    var id = Hexadecimal.getBytes(Routines.hashString(here));
    var salt  = Hexadecimal.getBytes(s.toString(16));
    var total = ByteArray.concat(salt, id);<commit_msg>moved to jspm<commit_after>import {BigInt} from 'bigint.ts/bigint';
import {UTF8, Hexadecimal, ByteArray} from 'encode.ts/encode';
import {Hash, HashType} from 'hash.ts/hash';

export {HashType} from 'hash.ts/hash';
export {BigInt} from 'bigint.ts/bigint';



export class Routines {


  /**
   * x contains the user's password mixed with a salt.
   */
  public static computeX(s: BigInt, I: string, P: string, hashType?: HashType) : BigInt {
    var here = UTF8.getBytes(`${I}:${P}`);
    var id = Hexadecimal.getBytes(Routines.hashString(here));
    var salt  = Hexadecimal.getBytes(s.toString(16));
    var total = ByteArray.concat(salt, id);
{'fraction_non_alphanumeric': 0.16376811594202897, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 4.058608058608058, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4844361', 'n_tokens_mistral': 501, 'n_tokens_neox': 476, 'n_words': 119}