<commit_before>import {AfterViewInit, Component, OnInit} from '@angular/core';
import {Location} from '@angular/common';
import {ActivatedRoute, Router} from "@angular/router";
declare let ga: Function;
import {Chart} from 'chart.js';
import { Http, Response } from '@angular/http';
import {ClipboardService} from "../shared/appraisal/clipboard.service";

@Component({
               selector: 'jhi-item-stock', templateUrl: './item-stock.component.html', styles: []
           })
export class ItemStockComponent implements OnInit, AfterViewInit {

    loading = true;
    data: any;
    private systemName: string;
    private typeId: number;
    showCopiedPrice: boolean;

    constructor(public router: Router, private route: ActivatedRoute, private http: Http,
                private location: Location, private clipboard: ClipboardService) {
    }

    backClicked() {
        this.location.back();
    }

    ngOnInit() {
        this.route.params.subscribe((params) => {
            this.systemName = params['systemName'];
            this.typeId = params['typeId'];
        });
    }

    ngAfterViewInit() {
        this.load(this.typeId, this.systemName);
    }

    private load(typeId: number, systemName: string) {
        this.http.get('api/stock/doctrines/item-stock/' + systemName + '/' + typeId).map((res: Response) => {
            return res.json();
        }).subscribe((data) => {
            this.data = data;
            this.loading = false;<commit_msg>fixed visibility<commit_after>import {AfterViewInit, Component, OnInit} from '@angular/core';
import {Location} from '@angular/common';
import {ActivatedRoute, Router} from "@angular/router";
declare let ga: Function;
import {Chart} from 'chart.js';
import { Http, Response } from '@angular/http';
import {ClipboardService} from "../shared/appraisal/clipboard.service";

@Component({
               selector: 'jhi-item-stock', templateUrl: './item-stock.component.html', styles: []
           })
export class ItemStockComponent implements OnInit, AfterViewInit {

    loading = true;
    data: any;
    systemName: string;
    showCopiedPrice: boolean;
    private typeId: number;

    constructor(public router: Router, private route: ActivatedRoute, private http: Http,
                private location: Location, private clipboard: ClipboardService) {
    }

    backClicked() {
        this.location.back();
    }

    ngOnInit() {
        this.route.params.subscribe((params) => {
            this.systemName = params['systemName'];
            this.typeId = params['typeId'];
        });
    }

    ngAfterViewInit() {
        this.load(this.typeId, this.systemName);
    }

    private load(typeId: number, systemName: string) {
        this.http.get('api/stock/doctrines/item-stock/' + systemName + '/' + typeId).map((res: Response) => {
            return res.json();
        }).subscribe((data) => {
            this.data = data;
            this.loading = false;
{'fraction_non_alphanumeric': 0.13690274483226025, 'fraction_numerical': 0.0, 'mean_word_length': 2.8689384010484926, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2009918', 'n_tokens_mistral': 845, 'n_tokens_neox': 825, 'n_words': 195}