<commit_before>import { InjectionToken } from '@angular/core';

// Define an injection token for injecting globally into components.
// Use the name of the angularjs service as the injection token string
export const Unit = new InjectionToken('Unit');
export const User = new InjectionToken('User');
export const auth = new InjectionToken('auth');
export const currentUser = new InjectionToken('currentUser');
export const Task = new InjectionToken('Task');
export const taskService = new InjectionToken('taskService');
export const analyticsService = new InjectionToken('analyticsService');
export const CommentResourceService = new InjectionToken('CommentResourceService');
export const alertService = new InjectionToken('AlertService');
export const audioRecorder = new InjectionToken('audioRecorder');
export const audioRecorderService = new InjectionToken('recorderService');


// Define a provider for the above injection token...
// It will get the service from AngularJS via the factory
export const unitProvider = {
  provide: Unit,                          // When you need 'Unit' you
  useFactory: (i: any) => i.get('Unit'),  // get the AngularJS module
  deps: ['$injector']                     // using the upgrade injector.
};

export const userProvider = {
  provide: User,
  useFactory: (i: any) => i.get('User'),
  deps: ['$injector']
};

export const authProvider = {
  provide: auth,
  useFactory: (i: any) => i.get('auth'),
  deps: ['$injector']
};

export const currentUserProvider = {
  provide: currentUser,
  useFactory: (i: any) => i.get('currentUser'),
  deps: ['$injector']
};

export const taskServiceProvider = {
  provide: taskService,
  useFactory: (i: any) => i.get('taskService'),
  deps: ['$injector']
};

export const taskProvider = {
  provide: Task,
  useFactory: (i: any) => i.get('Task'),
  deps: ['$injector']
};

export const analyticsServiceProvider = {
  provide: analyticsService,
  useFactory: (i: any) => i.get('analyticsService'),
  deps: ['$injector']
};

export const alertServiceProvider = {
  provide: alertService,
  useFactory: (i: any) => i.get('alertService'),
  deps: ['$injector']
};

export const CommentResourceServiceProvider = {
  provide: CommentResourceService,
  useFactory: (i: any) => i.get('CommentResourceService'),
  deps: ['$injector']
};

export const AudioRecorderProvider = {
  provide: audioRecorder,
  useFactory: (i: any) => i.get('audioRecorder'),
  deps: ['$injector']
};

export const AudioRecorderServiceProvider = {
  provide: audioRecorderService,
  useFactory: (i: any) => i.get('recorderService'),
  deps: ['$injector']
};<commit_msg>CONFIG: Upgrade csv upload provider<commit_after>import { InjectionToken } from '@angular/core';

// Define an injection token for injecting globally into components.
// Use the name of the angularjs service as the injection token string
export const Unit = new InjectionToken('Unit');
export const User = new InjectionToken('User');
export const auth = new InjectionToken('auth');
export const currentUser = new InjectionToken('currentUser');
export const Task = new InjectionToken('Task');
export const taskService = new InjectionToken('taskService');
export const analyticsService = new InjectionToken('analyticsService');
export const CommentResourceService = new InjectionToken('CommentResourceService');
export const alertService = new InjectionToken('AlertService');
export const audioRecorder = new InjectionToken('audioRecorder');
export const audioRecorderService = new InjectionToken('recorderService');
export const csvUploadModalService = new InjectionToken('CsvUploadModalAngular');
export const csvResultModalService = new InjectionToken('CsvResultModalAngular');


// Define a provider for the above injection token...
// It will get the service from AngularJS via the factory
export const unitProvider = {
  provide: Unit,                          // When you need 'Unit' you
  useFactory: (i: any) => i.get('Unit'),  // get the AngularJS module
  deps: ['$injector']                     // using the upgrade injector.
};

export const userProvider = {
  provide: User,
  useFactory: (i: any) => i.get('User'),
  deps: ['$injector']
};

export const authProvider = {
  provide: auth,
  useFactory: (i: any) => i.get('auth'),
  deps: ['$injector']
};

export const currentUserProvider = {
  provide: currentUser,
  useFactory: (i: any) => i.get('currentUser'),
  deps: ['$injector']
};

export const taskServiceProvider = {
  provide: taskService,
  useFactory: (i: any) => i.get('taskService'),
  deps: ['$injector']
};

export const taskProvider = {
  provide: Task,
  useFactory: (i: any) => i.get('Task'),
  deps: ['$injector']
};

export const analyticsServiceProvider = {
  provide: analyticsService,
  useFactory: (i: any) => i.get('analyticsService'),
  deps: ['$injector']
};

export const alertServiceProvider = {
  provide: alertService,
  useFactory: (i: any) => i.get('alertService'),
  deps: ['$injector']
};

export const CommentResourceServiceProvider = {
  provide: CommentResourceService,
  useFactory: (i: any) => i.get('CommentResourceService'),
  deps: ['$injector']
};

export const AudioRecorderProvider = {
  provide: audioRecorder,
  useFactory: (i: any) => i.get('audioRecorder'),
  deps: ['$injector']
};

export const AudioRecorderServiceProvider = {
  provide: audioRecorderService,
  useFactory: (i: any) => i.get('recorderService'),
  deps: ['$injector']
};

export const CsvUploadModalProvider = {
  provide: csvUploadModalService,
  useFactory: (i: any) => i.get('CsvUploadModal'),
  deps: ['$injector']
};

export const CsvResultModalProvider = {
  provide: csvResultModalService,
  useFactory: (i: any) => i.get('CsvResultModal'),
  deps: ['$injector']
};
{'fraction_non_alphanumeric': 0.13679245283018868, 'fraction_numerical': 0.0, 'mean_word_length': 4.932642487046632, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4102819', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1664, 'n_words': 500}