<commit_before>import {Injectable} from "@angular/core";
import {ProjectInfo} from "./types/project-info";
import {DatabaseInfo} from "./types/database-info";
import {BundleList} from "./types/bundle-list";
import {Http, URLSearchParams} from "@angular/http";
import {Observable, Observer, ConnectableObservable} from "rxjs/Rx";
import {SessionInfo} from "./types/session-info";
import {UploadInfo} from "./types/upload-info";
import {ServerResponse} from "./types/server-response";

@Injectable()
export class ProjectDataService {
	private infoObservable:ConnectableObservable<ProjectInfo>;
	private infoObserver:Observer<ProjectInfo>;
	private password:string;
	private url = 'https://www.phonetik.uni-muenchen.de/devel/emudb-manager/emudb-manager.php';
	private username:string;

	constructor(private http:Http) {
		this.createHotObservable();
	}

	private createHotObservable():void {
		this.infoObservable = Observable.create(observer => {
			this.infoObserver = observer;
		}).publishReplay(1);
		this.infoObservable.connect();
	}

	public fetchData():void {
		let params = new URLSearchParams();
		params.set('query', 'project_info');<commit_msg>change default URL<commit_after>import {Injectable} from "@angular/core";
import {ProjectInfo} from "./types/project-info";
import {DatabaseInfo} from "./types/database-info";
import {BundleList} from "./types/bundle-list";
import {Http, URLSearchParams} from "@angular/http";
import {Observable, Observer, ConnectableObservable} from "rxjs/Rx";
import {SessionInfo} from "./types/session-info";
import {UploadInfo} from "./types/upload-info";
import {ServerResponse} from "./types/server-response";

@Injectable()
export class ProjectDataService {
	private infoObservable:ConnectableObservable<ProjectInfo>;
	private infoObserver:Observer<ProjectInfo>;
	private password:string;
	private url = 'https://www.phonetik.uni-muenchen.de/devel/emuDB-manager/server-side/emudb-manager.php';
	private username:string;

	constructor(private http:Http) {
		this.createHotObservable();
	}

	private createHotObservable():void {
		this.infoObservable = Observable.create(observer => {
			this.infoObserver = observer;
		}).publishReplay(1);
		this.infoObservable.connect();
	}

	public fetchData():void {
		let params = new URLSearchParams();
		params.set('query', 'project_info');
{'fraction_non_alphanumeric': 0.14291863969005597, 'fraction_numerical': 0.0008609556607834697, 'mean_word_length': 6.150769230769231, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6936841', 'n_tokens_mistral': 712, 'n_tokens_neox': 685, 'n_words': 147}