<commit_before>import { ActionTree, ActionContext } from 'vuex';
import { State, Parm, Sample, types } from '~/store/modules/windows';
import { RootState } from 'store';

const apiUrl = `${process.env.apiUrl2}/api/windows`;

export interface Actions<S, R> extends ActionTree<S, R> {
  getSamples(context: ActionContext<S, R>): Promise<void>;
  selectSample(context: ActionContext<S, R>, sample: Sample): Promise<void>;
}

export const actions: Actions<State, RootState> = {

  async getSamples({ commit }): Promise<void> {
      return new Promise<void>(async (resolve, reject) => {
          try {
              const data = await this.$axios.$get(apiUrl).then(res => {
                let fromItem = function(func, file, source) {
                  let id = file.Id + '.' + func.Name; //file.id is undefined
          
                  let parms = Array<Parm>();
<commit_msg>Modify apiurl value, windows to winrt<commit_after>import { ActionTree, ActionContext } from 'vuex';
import { State, Parm, Sample, types } from '~/store/modules/windows';
import { RootState } from 'store';

const apiUrl = `${process.env.apiUrl2}/api/winrt`;

export interface Actions<S, R> extends ActionTree<S, R> {
  getSamples(context: ActionContext<S, R>): Promise<void>;
  selectSample(context: ActionContext<S, R>, sample: Sample): Promise<void>;
}

export const actions: Actions<State, RootState> = {

  async getSamples({ commit }): Promise<void> {
      return new Promise<void>(async (resolve, reject) => {
          try {
              const data = await this.$axios.$get(apiUrl).then(res => {
                let fromItem = function(func, file, source) {
                  let id = file.Id + '.' + func.Name; //file.id is undefined
          
                  let parms = Array<Parm>();

{'fraction_non_alphanumeric': 0.14341957255343082, 'fraction_numerical': 0.0011248593925759281, 'mean_word_length': 3.080275229357798, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '1676953', 'n_tokens_mistral': 539, 'n_tokens_neox': 520, 'n_words': 145}