<commit_before>import { Component } from '@angular/core';
import { SessionService } from './session.service';
import { DataService } from './data.service';
import { OnInit } from '@angular/core';

import { Clip } from './clip';

@Component({
  selector: 'breadboard',
  template: `
  `,
})

export class BreadboardComponent implements OnInit {

  constructor(public sessionService: SessionService, 
              public dataService: DataService) { }
  ngOnInit(): void {
    this.dataService.getData();
    this.dataService.getFile();
  }

}
<commit_msg>Updated breadboard to provide a click option for data retrieval source<commit_after>import { Component } from '@angular/core';
import { DataService } from './data.service';

import { Clip } from './clip';

@Component({
  selector: 'breadboard',
  template: `
  <div style="text-align: center">
    <button (click)="this.click_remote()">Pull from remote</button>
    <button (click)="this.click_local()">Pull from local</button>
  </div>
  `,
})

export class BreadboardComponent {
  constructor(
    public dataService: DataService,
  ) {}

  click_remote(): void {
    this.dataService.getData();
    this.dataService.getFile();
    this.dataService.startStore();
  }

  click_local(): void {
    this.dataService.database.get("clips").then(results => {
      this.dataService.clips = results.clips;
      console.log(results.clips);
    });
    this.dataService.getFile();
    this.dataService.startStore();
  }
}

{'fraction_non_alphanumeric': 0.1489795918367347, 'fraction_numerical': 0.0, 'mean_word_length': 3.870860927152318, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '5900725', 'n_tokens_mistral': 448, 'n_tokens_neox': 436, 'n_words': 97}