<commit_before>import { Injectable } from '@angular/core';
import { Http, URLSearchParams } from '@angular/http';

@Injectable()
export class SoundcloudService {
  public basePath: string = 'https://api.soundcloud.com/tracks';
  private _clientId: string = '<KEY>';

  constructor(private _http: Http) {
  }

  public getTrack(trackId: number) {
    let params = new URLSearchParams();
    params.set('client_id', this._clientId);
    let url = this.basePath + `/${trackId}`;
    return this._http.get(url, {search: params});
  }

  public search(searchTerm: string) {
    let params = new URLSearchParams();
    params.set('client_id', this._clientId);
    params.set('q', searchTerm);
    return this._http.get(this.basePath, {search: params});
  }
}<commit_msg>Set search limit to 200<commit_after>import { Injectable } from '@angular/core';
import { Http, URLSearchParams } from '@angular/http';

@Injectable()
export class SoundcloudService {
  public basePath: string = 'https://api.soundcloud.com/tracks';
  private _clientId: string = '<KEY>';

  constructor(private _http: Http) {
  }

  public getTrack(trackId: number) {
    let params = new URLSearchParams();
    params.set('client_id', this._clientId);
    let url = this.basePath + `/${trackId}`;
    return this._http.get(url, {search: params});
  }

  public search(searchTerm: string) {
    const LIMIT: number = 200;
    let params = new URLSearchParams();
    params.set('client_id', this._clientId);
    params.set('q', searchTerm);
    params.set('limit', LIMIT);
    return this._http.get(this.basePath, {search: params});
  }
}
{'fraction_non_alphanumeric': 0.15115552779512806, 'fraction_numerical': 0.0037476577139287947, 'mean_word_length': 4.184466019417476, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3623931', 'n_tokens_mistral': 512, 'n_tokens_neox': 504, 'n_words': 122}