<commit_before>import {Injectable} from '@angular/core';
import {Observable, of} from 'rxjs';
import {Polygon} from '../app/models/Polygon';
import {EnvironmentService} from '../app/services/environment';

@Injectable()
export class EnvironmentServiceStub {

  candName = 'test';

  polygons = [
    new Polygon(
      [
        {x: 0, y: 0},
        {x: 0, y: 1},
        {x: 1, y: 1},
        {x: 1, y: 0},
      ],
      this.candName
    )
  ];

  getPolygons(jsonFile: string): Observable<Polygon[]> {
    return of(this.polygons);
  }
}<commit_msg>Add another polygon to stub.<commit_after>import {Injectable} from '@angular/core';
import {Observable, of} from 'rxjs';
import {Polygon} from '../app/models/Polygon';
import {EnvironmentService} from '../app/services/environment';

@Injectable()
export class EnvironmentServiceStub {
  candName = 'test';

  polygons = [
    new Polygon(
      [
        {x: 0, y: 0},
        {x: 0, y: 100},
        {x: 100, y: 0},
      ],
      this.candName
    ),
    new Polygon(
      [
        {x: 0, y: 100},
        {x: 100, y: 100},
        {x: 100, y: 0},
      ],
      this.candName
    ),
  ];

  getPolygons(jsonFile: string): Observable<Polygon[]> {
    return of(this.polygons);
  }
}
{'fraction_non_alphanumeric': 0.16693548387096774, 'fraction_numerical': 0.025806451612903226, 'mean_word_length': 2.485955056179775, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6610208', 'n_tokens_mistral': 473, 'n_tokens_neox': 441, 'n_words': 111}