<commit_before>import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

@Injectable()
export class FormService {
	private phenotypesUrl = 'http://private-de10f-seqpipe.apiary-mock.com/phenotypes';

	constructor (private http: Http) {}

	getPhenotypes(){
		return this.http.get(this.phenotypesUrl).map(response => response.json());
	}

	getPresentInChild(){
		return this.http.get('http://localhost:4200/assets/present.in.child.json').map(response => response.json());
	}

	getPresentInParent(){
		return this.http.get('http://localhost:4200/assets/present.in.parent.json').map(response => response.json());
	}

	getEffectTypes(){
		return this.http.get('http://localhost:4200/assets/effect.types.json').map(response => response.json());
	}

	getChildGender(){
		return this.http.get('http://localhost:4200/assets/child-gender.json').map(response => response.json());
	}

	getStudyTypes(){
		return this.http.get('http://localhost:4200/assets/study-types.json').map(response => response.json());
	}

	getVariantTypes(){
		return this.http.get('http://localhost:4200/assets/variant-types.json').map(response => response.json());
	}
}<commit_msg>Now the form service requests the api.<commit_after>import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';

@Injectable()
export class FormService {
	private phenotypesUrl = 'http://private-de10f-seqpipe.apiary-mock.com/phenotypes';

	constructor (private http: Http) {}

	getPhenotypes(){
		return this.http.get('http://localhost:3000/api/phenotypes').map(response => response.json());
	}

	getPresentInChild(){
		return this.http.get('http://localhost:4200/assets/present.in.child.json').map(response => response.json());
	}

	getPresentInParent(){
		return this.http.get('http://localhost:4200/assets/present.in.parent.json').map(response => response.json());
	}

	getEffectTypes(){
		return this.http.get('http://localhost:3000/api/effect-types').map(response => response.json());
	}

	getChildGender(){
		return this.http.get('http://localhost:3000/api/child-gender').map(response => response.json());
	}

	getStudyTypes(){
		return this.http.get('http://localhost:3000/api/study-types').map(response => response.json());
	}

	getVariantTypes(){
		return this.http.get('http://localhost:3000/api/variant-types').map(response => response.json());
	}
}
{'fraction_non_alphanumeric': 0.1882728360590347, 'fraction_numerical': 0.022337455125648185, 'mean_word_length': 5.285714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6339339', 'n_tokens_mistral': 869, 'n_tokens_neox': 786, 'n_words': 112}