<commit_before>import { Component, OnInit } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { LinkData } from '../shared/link-data';
import { MatSnackBar } from '@angular/material';
import { LinkRepositoryService } from '../shared/link-repository.service';
import { TableHandlerService } from '../shared/table-handler.service';
import { environment } from 'environments/environment';

@Component({
  selector: 'ks-link-input',
  templateUrl: './link-input.component.html',
  styleUrls: ['./link-input.component.scss']
})
export class LinkInputComponent implements OnInit {

  siteUrl: string = environment.site;
  linkInputMode: boolean = true;
  titles: string[] = ["Shorten your links", "Your short URL"];
  title: string = this.titles[0];
  longUrl: string = "";
  shortUrl: string = "";
  newLinkData: LinkData;
  iOSDevice: boolean = false;

  // Copy short URL to clipboard
  copy(textToCopy: string) {

    // Temporarily create invisible element on screen to copy text from
    let selBox = document.createElement('textarea');

    selBox.style.position = 'fixed';
    selBox.style.left = '0';
    selBox.style.top = '0';
    selBox.style.opacity = '0';
    selBox.value = textToCopy;

    document.body.appendChild(selBox);
    selBox.focus();
    selBox.select();

    document.execCommand('copy');
    document.body.removeChild(selBox);
<commit_msg>Fix incorrect env var name<commit_after>import { Component, OnInit } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { LinkData } from '../shared/link-data';
import { MatSnackBar } from '@angular/material';
import { LinkRepositoryService } from '../shared/link-repository.service';
import { TableHandlerService } from '../shared/table-handler.service';
import { environment } from 'environments/environment';

@Component({
  selector: 'ks-link-input',
  templateUrl: './link-input.component.html',
  styleUrls: ['./link-input.component.scss']
})
export class LinkInputComponent implements OnInit {

  siteUrl: string = environment.siteUrl;
  linkInputMode: boolean = true;
  titles: string[] = ["Shorten your links", "Your short URL"];
  title: string = this.titles[0];
  longUrl: string = "";
  shortUrl: string = "";
  newLinkData: LinkData;
  iOSDevice: boolean = false;

  // Copy short URL to clipboard
  copy(textToCopy: string) {

    // Temporarily create invisible element on screen to copy text from
    let selBox = document.createElement('textarea');

    selBox.style.position = 'fixed';
    selBox.style.left = '0';
    selBox.style.top = '0';
    selBox.style.opacity = '0';
    selBox.value = textToCopy;

    document.body.appendChild(selBox);
    selBox.focus();
    selBox.select();

    document.execCommand('copy');
    document.body.removeChild(selBox);

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0028429282160625444, 'mean_word_length': 4.090415913200723, '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': '4737100', 'n_tokens_mistral': 836, 'n_tokens_neox': 825, 'n_words': 208}