<commit_before>import {Injectable} from "@angular/core";
import {Http} from "@angular/http";
import {Observable} from "rxjs/Observable";
import {BaseService} from "./base-service";
import {Salt} from "../classes/salt";
import {SaltRequest} from "../classes/salt-request";

@Injectable()
export class SaltService extends BaseService {
	constructor(protected http: Http) {
		super(http);
	}

	private saltUrl = "api/salt/";

	salt(saltRequest: SaltRequest) : Observable<Salt> {
		return(this.http.post(this.saltUrl, saltRequest)
			.map(this.extractData)
			.catch(this.handleError));
	}
}<commit_msg>trying to turn salt into an array forever<commit_after>import {Injectable} from "@angular/core";
import {Http} from "@angular/http";
import {Observable} from "rxjs/Observable";
import {BaseService} from "./base-service";
import {Salt} from "../classes/salt";
import {SaltRequest} from "../classes/salt-request";

@Injectable()
export class SaltService extends BaseService {
	constructor(protected http: Http) {
		super(http);
	}

	private saltUrl = "api/salt/";

	salt(saltRequest: SaltRequest) : Observable<Salt[]> {
		return(this.http.post(this.saltUrl, saltRequest)
			.map(this.extractData)
			.catch(this.handleError));
	}
}
{'fraction_non_alphanumeric': 0.15472312703583063, 'fraction_numerical': 0.0, 'mean_word_length': 5.335051546391752, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4093695', 'n_tokens_mistral': 416, 'n_tokens_neox': 384, 'n_words': 95}