<commit_before>import { Component, OnInit } from '@angular/core';
import { PocketService, PocketEntries, PocketEntry } from '../pocket.service';
import { NewsletterService } from '../newsletter.service';
import { DatabaseService } from '../database.service';
import { Message, MenuItem, ConfirmationService } from 'primeng/primeng';
import { FirebaseAuthState, FirebaseListObservable } from 'angularfire2';

interface SelectItem {

  label: string
  value: string

}

@Component({
  selector: 'app-newsletter',
  templateUrl: './newsletter.component.html',
  styleUrls: ['./newsletter.component.css']
})
export class NewsletterComponent implements OnInit {

  newsEntries: Array<PocketEntry> = [];
  messages: Array<Message> = [];

  currentPocketEntry : PocketEntry;
  oldPocketEntry : PocketEntry;

  newsletters: Array<SelectItem> = [];
  newsletterToLoad = '';

  exportContent = '';
  displayRenderedDialog = false;
  displayExportDialog = false;
  displayEditDialog = false;
  displaySaveAsDialog = false;

  displayImages = true;
  displayLinks = true;
  displayExcerpts = true;
  displayTags = true;

  isDirty = false;

  newsletterName = "sample";
  newsletterNameSaveAs = "";

  exportMenuItems: MenuItem[];
  saveMenuItems: MenuItem[];

  constructor(private newsletterService: NewsletterService, private databaseService: DatabaseService, private confirmationService: ConfirmationService) {

  }

  private getExportMenuItems() : Array<MenuItem> {
    return [
    {label: 'Markdown', icon: 'fa-asterisk', command: () => {
      this.OnExportMarkdown();
    }},
    {label: 'HTML', icon: 'fa-code', command: () => {
      this.OnExportHtml();
    }},
      {label: 'Rendered HTML', icon: 'fa-html5', command: () => {
        this.OnExportRenderedHtml();
      }},
      ];
  }
<commit_msg>Default links to be off.<commit_after>import { Component, OnInit } from '@angular/core';
import { PocketService, PocketEntries, PocketEntry } from '../pocket.service';
import { NewsletterService } from '../newsletter.service';
import { DatabaseService } from '../database.service';
import { Message, MenuItem, ConfirmationService } from 'primeng/primeng';
import { FirebaseAuthState, FirebaseListObservable } from 'angularfire2';

interface SelectItem {

  label: string
  value: string

}

@Component({
  selector: 'app-newsletter',
  templateUrl: './newsletter.component.html',
  styleUrls: ['./newsletter.component.css']
})
export class NewsletterComponent implements OnInit {

  newsEntries: Array<PocketEntry> = [];
  messages: Array<Message> = [];

  currentPocketEntry : PocketEntry;
  oldPocketEntry : PocketEntry;

  newsletters: Array<SelectItem> = [];
  newsletterToLoad = '';

  exportContent = '';
  displayRenderedDialog = false;
  displayExportDialog = false;
  displayEditDialog = false;
  displaySaveAsDialog = false;

  displayImages = true;
  displayLinks = false;
  displayExcerpts = true;
  displayTags = true;

  isDirty = false;

  newsletterName = "sample";
  newsletterNameSaveAs = "";

  exportMenuItems: MenuItem[];
  saveMenuItems: MenuItem[];

  constructor(private newsletterService: NewsletterService, private databaseService: DatabaseService, private confirmationService: ConfirmationService) {

  }

  private getExportMenuItems() : Array<MenuItem> {
    return [
    {label: 'Markdown', icon: 'fa-asterisk', command: () => {
      this.OnExportMarkdown();
    }},
    {label: 'HTML', icon: 'fa-code', command: () => {
      this.OnExportHtml();
    }},
      {label: 'Rendered HTML', icon: 'fa-html5', command: () => {
        this.OnExportRenderedHtml();
      }},
      ];
  }

{'fraction_non_alphanumeric': 0.1336469286109574, 'fraction_numerical': 0.0011068068622025456, 'mean_word_length': 4.331858407079646, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3095281', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1050, 'n_words': 238}