<commit_before>import { Component } from '@angular/core';
import { faAward, faCheck, faChevronLeft, faChevronRight, faFile, faFileArchive, faFileCode, faFilePdf, faHistory, faHourglassHalf, faList, faPaperPlane, faSignInAlt, faSignOutAlt, faSpinner } from '@fortawesome/free-solid-svg-icons';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { DateTime, Duration } from 'luxon';
import { interval } from 'rxjs';
import { map, startWith } from 'rxjs/operators';
import { Auth, getAuth, setAuth } from './auth';
import { ContestQueryService } from './contest-query.service';
import { LoginDialogComponent } from './login-dialog/login-dialog.component';
import { scoreRanges } from './problem-material';
import { SubmissionDialogComponent } from './submission-dialog/submission-dialog.component';
import { SubmissionListDialogComponent } from './submission-list-dialog/submission-list-dialog.component';
import { SubmissionQueryService } from './submission-query.service';
import { SubmitDialogComponent } from './submit-dialog/submit-dialog.component';
import { ContestQuery_contestView_problems as ContestProblem } from './__generated__/ContestQuery';
import { SubmissionListQuery_contestView_problem_submissions as Submission } from './__generated__/SubmissionListQuery';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  faPaperPlane = faPaperPlane;
  faCheck = faCheck;
  faSignInAlt = faSignInAlt;
  faSignOutAlt = faSignOutAlt;
  faList = faList;
  faFilePdf = faFilePdf;
  faHistory = faHistory;
  faSpinner = faSpinner;
  faChevronLeft = faChevronLeft;
  faChevronRight = faChevronRight;
  faHourglassHalf = faHourglassHalf;
  faAward = faAward;
  
  mimeTypeIcons = {
    'application/pdf': faFilePdf,
    'text/plain': faFileCode,
    'application/gzip': faFileArchive,
    'application/zip': faFileArchive,
  };
  faFile = faFile;
  
  focusMode = false;

  constructor(
    private contestQueryService: ContestQueryService,
    private submissionQueryService: SubmissionQueryService,
    private modal: NgbModal,
  ) { }

  get userId() {<commit_msg>web: change icon for text and code attachment<commit_after>import { Component } from '@angular/core';
import {
  faAward,
  faCheck,
  faChevronLeft,
  faChevronRight,
  faFile,
  faFileArchive,
  faFilePdf,
  faHistory,
  faHourglassHalf,
  faList,
  faPaperPlane,
  faSignInAlt,
  faSignOutAlt,
  faSpinner,
  faFileAlt,
} from '@fortawesome/free-solid-svg-icons';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { DateTime, Duration } from 'luxon';
import { interval } from 'rxjs';
import { map, startWith } from 'rxjs/operators';
import { Auth, getAuth, setAuth } from './auth';
import { ContestQueryService } from './contest-query.service';
import { LoginDialogComponent } from './login-dialog/login-dialog.component';
import { scoreRanges } from './problem-material';
import { SubmissionDialogComponent } from './submission-dialog/submission-dialog.component';
import { SubmissionListDialogComponent } from './submission-list-dialog/submission-list-dialog.component';
import { SubmissionQueryService } from './submission-query.service';
import { SubmitDialogComponent } from './submit-dialog/submit-dialog.component';
import { ContestQuery_contestView_problems as ContestProblem } from './__generated__/ContestQuery';
import { SubmissionListQuery_contestView_problem_submissions as Submission } from './__generated__/SubmissionListQuery';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  faPaperPlane = faPaperPlane;
  faCheck = faCheck;
  faSignInAlt = faSignInAlt;
  faSignOutAlt = faSignOutAlt;
  faList = faList;
  faFilePdf = faFilePdf;
  faHistory = faHistory;
  faSpinner = faSpinner;
  faChevronLeft = faChevronLeft;
  faChevronRight = faChevronRight;
  faHourglassHalf = faHourglassHalf;
  faAward = faAward;

  mimeTypeIcons = {
    'application/pdf': faFilePdf,
    'text/plain': faFileAlt,
    'application/gzip': faFileArchive,
    'application/zip': faFileArchive,
  };
  faFile = faFile;

  focusMode = false;

  constructor(
    private contestQueryService: ContestQueryService,
    private submissionQueryService: SubmissionQueryService,
    private modal: NgbModal,
  ) { }

  get userId() {
{'fraction_non_alphanumeric': 0.11457149352125483, 'fraction_numerical': 0.0, 'mean_word_length': 5.043956043956044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7389015', 'n_tokens_mistral': 1421, 'n_tokens_neox': 1376, 'n_words': 297}