<commit_before>import BaseModel from '../BaseModel';
import app from '../../app';
import Image from './Image';
import Moderator from './Moderator';
import Colors from './Colors';
import Contact from './Contact';
import { decimalToInteger, integerToDecimal } from '../../utils/currency';

export default class extends BaseModel {
  defaults() {
    return {
      about: '',
      handle: '',
      location: '',
      moderator: false,
      name: `OB ${(Math.floor(Math.random() * 2116316159) + 60466176).toString(36)}`,
      nsfw: false,
      shortDescription: '',
      avatarHashes: new Image(),
      headerHashes: new Image(),
      vendor: false,
      colors: new Colors(),
      contactInfo: new Contact(),
      stats: new BaseModel(),
    };
  }

  url() {
    return app.getServerUrl(`ob/profile/${app.profile.id}`);
  }

  // todo: set peerId instead of ID when setting ID.
  get idAttribute() {
    return 'peerID';
  }

  get nested() {
    return {<commit_msg>fixing bug in the profile url<commit_after>import BaseModel from '../BaseModel';
import app from '../../app';
import Image from './Image';
import Moderator from './Moderator';
import Colors from './Colors';
import Contact from './Contact';
import { decimalToInteger, integerToDecimal } from '../../utils/currency';

export default class extends BaseModel {
  defaults() {
    return {
      about: '',
      handle: '',
      location: '',
      moderator: false,
      name: `OB ${(Math.floor(Math.random() * 2116316159) + 60466176).toString(36)}`,
      nsfw: false,
      shortDescription: '',
      avatarHashes: new Image(),
      headerHashes: new Image(),
      vendor: false,
      colors: new Colors(),
      contactInfo: new Contact(),
      stats: new BaseModel(),
    };
  }

  url() {
    return app.getServerUrl(`ob/profile/${this.id}`);
  }

  // todo: set peerId instead of ID when setting ID.
  get idAttribute() {
    return 'peerID';
  }

  get nested() {
    return {
{'fraction_non_alphanumeric': 0.15521628498727735, 'fraction_numerical': 0.020356234096692113, 'mean_word_length': 2.7880539499036607, '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': '3368840', 'n_tokens_mistral': 607, 'n_tokens_neox': 582, 'n_words': 175}