<commit_before>import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";

import {Status} from "../classes/status";
import {Category} from "../classes/category";
import {Observable} from "rxjs/Observable";

@Injectable ()
export class CategoryService  {

	constructor(protected http : HttpClient) {

	}
	//define the API endpoint
	private categoryUrl = "api/category/";

	// call to the Profile API and get a Profile object by its id
	getCategory(id: number) : Observable<Category> {
		return(this.http.get<Category>(this.categoryUrl + id));
	}

	// call to the API to grab an array of profiles based on the user input
	getCategoryByCategoryName (categoryName: string) :Observable<Category[]> {
		return(this.http.get<Category[]>(this.categoryUrl + "?categoryName=" + categoryName));
	}
}<commit_msg>fixed compile warnings and errors<commit_after>import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";

import {Status} from "../classes/status";
import {Category} from "../classes/category";
import {Observable} from "rxjs/Observable";

@Injectable ()
export class CategoryService  {

	constructor(protected http : HttpClient) {

	}
	//define the API endpoint
	private categoryUrl = "api/category/";

	// call to the Profile API and get a Profile object by its id
	getCategory(id: string) : Observable<Category> {
		return(this.http.get<Category>(this.categoryUrl + id));
	}

	// call to the API to grab an array of profiles based on the user input
	getCategoryByCategoryName (categoryName: string) :Observable<Category[]> {
		return(this.http.get<Category[]>(this.categoryUrl + "?categoryName=" + categoryName));
	}
}
{'fraction_non_alphanumeric': 0.13167259786476868, 'fraction_numerical': 0.0, 'mean_word_length': 5.046594982078853, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1196092', 'n_tokens_mistral': 497, 'n_tokens_neox': 487, 'n_words': 152}