<commit_before>Registry WS Client 
---------------------

This project provides the WS client to the registry web services. It implements the GBIF Registry API.

The registry-ws client can be configured in the following ways:

     i)  in read-only mode, or
     ii) read-write mode, controlled by the GbifApplicationAuthModule

i) Read only usage is demonstrated with:

      Properties props = new Properties();
      // set this to the web service URL.  It might be localhost:8080 for local development
      props.setProperty("registry.ws.url", "http://api.gbif.org/v0.9/");
      Injector webserviceClient = Guice.createInjector(new RegistryWsClientModule(props), new AnonymousAuthModule());
      DatasetService ds = injector.getInstance(DatasetService.class);

ii) Read write usage is demonstrated with:

      Properties props = new Properties();
      // set this to the web service URL.  It might be localhost:8080 for local development
      props.setProperty("registry.ws.url", "http://api.gbif.org/v0.9/");
      props.setProperty("application.key", "gbif.registry-ws-client-it");
      props.setProperty("application.secret", "6a55ca16c053e269a9602c02922b30ce49c49be3a68bb2d8908b24d7c1");
      // Create authentication module, and set principal name, equal to a GBIF User unique account name
      GbifApplicationAuthModule auth = new GbifApplicationAuthModule(props);
      auth.setPrincipal("admin");
      Injector webserviceClient = Guice.createInjector(new RegistryWsClientModule(props), auth);
      DatasetService ds = injector.getInstance(DatasetService.class);<commit_msg>example now points to api v1<commit_after>Registry WS Client
---------------------

This project provides the WS client to the registry web services. It implements the GBIF Registry API.

The registry-ws client can be configured in the following ways:

     i)  in read-only mode, or
     ii) read-write mode, controlled by the GbifApplicationAuthModule

i) Read only usage is demonstrated with:

      Properties props = new Properties();
      // set this to the web service URL.  It might be localhost:8080 for local development
      props.setProperty("registry.ws.url", "http://api.gbif.org/v1/");
      Injector webserviceClient = Guice.createInjector(new RegistryWsClientModule(props), new AnonymousAuthModule());
      DatasetService ds = injector.getInstance(DatasetService.class);

ii) Read write usage is demonstrated with:

      Properties props = new Properties();
      // set this to the web service URL.  It might be localhost:8080 for local development
      props.setProperty("registry.ws.url", "http://api.gbif.org/v1/");
      props.setProperty("application.key", "gbif.registry-ws-client-it");
      props.setProperty("application.secret", "6a55ca16c053e269a9602c02922b30ce49c49be3a68bb2d8908b24d7c1");
      // Create authentication module, and set principal name, equal to a GBIF User unique account name
      GbifApplicationAuthModule auth = new GbifApplicationAuthModule(props);
      auth.setPrincipal("admin");
      Injector webserviceClient = Guice.createInjector(new RegistryWsClientModule(props), auth);
      DatasetService ds = injector.getInstance(DatasetService.class);

{'fraction_non_alphanumeric': 0.09928192319700281, 'fraction_numerical': 0.030908523259444272, 'mean_word_length': 3.8693009118541033, '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': '2203829', 'n_tokens_mistral': 939, 'n_tokens_neox': 870, 'n_words': 278}