<commit_before>package fi.otavanopisto.kuntaapi.server.integrations.ptv;

import javax.enterprise.context.Dependent;
import javax.inject.Inject;

import fi.otavanopisto.kuntaapi.server.settings.SystemSettingController;
import fi.otavanopisto.restfulptv.client.ElectronicChannelsApi;
import fi.otavanopisto.restfulptv.client.OrganizationServicesApi;
import fi.otavanopisto.restfulptv.client.OrganizationsApi;
import fi.otavanopisto.restfulptv.client.PhoneChannelsApi;
import fi.otavanopisto.restfulptv.client.PrintableFormChannelsApi;
import fi.otavanopisto.restfulptv.client.ServiceLocationChannelsApi;
import fi.otavanopisto.restfulptv.client.ServicesApi;
import fi.otavanopisto.restfulptv.client.StatutoryDescriptionsApi;
import fi.otavanopisto.restfulptv.client.WebPageChannelsApi;

@Dependent
public class PtvApi {
  
  @Inject
  private PtvClient client;
  
  @Inject
  private SystemSettingController systemSettingController;
  
  public OrganizationsApi getOrganizationApi() {
    return new OrganizationsApi(getBaseUrl(), client);
  }

  public StatutoryDescriptionsApi getStatutoryDescriptionsApi() {
    return new StatutoryDescriptionsApi(getBaseUrl(), client);
  }

  public ServicesApi getServicesApi() {
    return new ServicesApi(getBaseUrl(), client);
  }

  public WebPageChannelsApi getWebPageChannelsApi() {
    return new WebPageChannelsApi(getBaseUrl(), client);
  }<commit_msg>Changed ptv api to be application scoped<commit_after>package fi.otavanopisto.kuntaapi.server.integrations.ptv;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;

import fi.otavanopisto.kuntaapi.server.settings.SystemSettingController;
import fi.otavanopisto.restfulptv.client.ElectronicChannelsApi;
import fi.otavanopisto.restfulptv.client.OrganizationServicesApi;
import fi.otavanopisto.restfulptv.client.OrganizationsApi;
import fi.otavanopisto.restfulptv.client.PhoneChannelsApi;
import fi.otavanopisto.restfulptv.client.PrintableFormChannelsApi;
import fi.otavanopisto.restfulptv.client.ServiceLocationChannelsApi;
import fi.otavanopisto.restfulptv.client.ServicesApi;
import fi.otavanopisto.restfulptv.client.StatutoryDescriptionsApi;
import fi.otavanopisto.restfulptv.client.WebPageChannelsApi;

@ApplicationScoped
public class PtvApi {
  
  @Inject
  private PtvClient client;
  
  @Inject
  private SystemSettingController systemSettingController;
  
  public OrganizationsApi getOrganizationApi() {
    return new OrganizationsApi(getBaseUrl(), client);
  }

  public StatutoryDescriptionsApi getStatutoryDescriptionsApi() {
    return new StatutoryDescriptionsApi(getBaseUrl(), client);
  }

  public ServicesApi getServicesApi() {
    return new ServicesApi(getBaseUrl(), client);
  }

  public WebPageChannelsApi getWebPageChannelsApi() {
    return new WebPageChannelsApi(getBaseUrl(), client);
  }
{'fraction_non_alphanumeric': 0.07954945441745864, 'fraction_numerical': 0.0, 'mean_word_length': 6.743869209809264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5529758', 'n_tokens_mistral': 895, 'n_tokens_neox': 881, 'n_words': 138}