<commit_before>/*
 * This class contains mock generator code for labels
 */
export class LabelMockGenerator {

    private label: any;
    private allLabels: any;
    private BackgroundColors = ['#f7bd7f', '#c8eb79', '#9ecf99', '#ededed', '#7bdbc3', '#7cdbf3'];
    private colors = ['#303030'];

    /*
     * Creates the label structure.
     */
    public getAllLabels(): any {
      if (this.allLabels)
        return this.allLabels;
      else {
        return this.allLabels = [0, 1, 2, 3, 4, 5].map((i) => {
          return {
            attributes: {
              name: 'Example Label ' + i,
              "text-color": this.colors[i],
              "background-color": this.BackgroundColors[i]
            },
            links: {
              self: 'http://mock.service/api/spaces/space-id0/labels/label'+i
            },
            relationships: {
              'space': {
                'data': {
                  'id': 'space-id0',
                  'type': 'spaces'
                },
                'links': {
                  'self': 'http://mock.service/api/spaces/space-id0'
                }
              },
            },
            id: 'label' + i,<commit_msg>fix(mock): Updated label mock data response<commit_after>/*
 * This class contains mock generator code for labels
 */
export class LabelMockGenerator {

    private label: any;
    private allLabels: any;

    private labels = [
      {color: '#fbdebf', border: '#f39d3c'},
      {color: '#f7bd7f', border: '#f39d3c'},
      {color: '#fbeabc', border: '#f39d3c'},
      {color: '#9ecf99', border: '#6ec664'},
      {color: '#d1d1d1', border: '#bbbbbb'}
    ];

    /*
     * Creates the label structure.
     */
    public getAllLabels(): any {
      if (this.allLabels)
        return this.allLabels;
      else {
        return this.allLabels = this.labels.map((i) => {
          return {
            attributes: {
              name: 'Example Label ' + i,
              "text-color": "#000000",
              "background-color": i.color,
              "border-color": i.border
            },
            links: {
              self: 'http://mock.service/api/spaces/space-id0/labels/label'+i
            },
            relationships: {
              'space': {
                'data': {
                  'id': 'space-id0',
                  'type': 'spaces'
                },
                'links': {
                  'self': 'http://mock.service/api/spaces/space-id0'
                }
              },
            },
            id: 'label' + i,
{'fraction_non_alphanumeric': 0.14774066797642435, 'fraction_numerical': 0.022396856581532416, 'mean_word_length': 1.420152091254753, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 5, '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': '6807423', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 162}