<commit_before>/* global gl */
/* eslint-disable no-param-reassign */

((gl) => {
  const goFetch = (that, vue) =>
    that.$http.get(`/api/v3/projects/${that.scope}/pipelines`)
      .then((response) => {
        vue.set(that, 'pipelines', JSON.parse(response.body));
      }, () => {
        console.error('API Error for Pipelines');
      });

  gl.PipelineStore = class {
    fetchDataLoop(Vue) {
      setInterval(() => {
        console.log('DID IT');
        goFetch(this, Vue);
      }, 30000);
    }

    fetchCommits(vue) {
      this.$http.get(`/api/v3/projects/${this.scope}/repository/commits`)
        .then((response) => {
          vue.set(this, 'commits', JSON.parse(response.body));
        }, () => {
          console.error('API Error for Pipelines');
        })<commit_msg>pagination exists - will become dynamic soon<commit_after>/* global gl */
/* eslint-disable no-param-reassign */

((gl) => {
  const goFetch = (that, vue) =>
    that.$http.get(`/api/v3/projects/${that.scope}/pipelines?per_page=5&page=1`)
      .then((response) => {
        vue.set(that, 'pipelines', JSON.parse(response.body));
      }, () => {
        console.error('API Error for Pipelines');
      });

  gl.PipelineStore = class {
    fetchDataLoop(Vue) {
      setInterval(() => {
        console.log('DID IT');
        goFetch(this, Vue);
      }, 30000);
    }

    fetchCommits(vue) {
      this.$http.get(`/api/v3/projects/${this.scope}/repository/commits?per_page=5&page=1`)
        .then((response) => {
          vue.set(this, 'commits', JSON.parse(response.body));
        }, () => {
          console.error('API Error for Pipelines');
        })
{'fraction_non_alphanumeric': 0.19637462235649547, 'fraction_numerical': 0.010876132930513595, 'mean_word_length': 2.4356846473029043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '4149745', 'n_tokens_mistral': 566, 'n_tokens_neox': 549, 'n_words': 81}