<commit_before>class SparqlEndpointsController < ThingsController

  def new
    super
#    @thing.uri = current_user.new_ontotext_repository(@thing)
  end

  private
    def sparql_endpoint_params
      params.require(:sparql_endpoint).permit(:public, :name, :description, :license, :keyword_list) ## Rails 4 strong params usage
    end

end<commit_msg>Added invocation of new ontotext repository when adding SPARQL endpoint details.<commit_after>class SparqlEndpointsController < ThingsController

  def new
    super
  end

  private
    def fill_default_values_if_empty
      fill_name_if_empty
      if @thing.uri.blank?
        @thing.uri = current_user.new_ontotext_repository(@thing)
      end
    end

    def sparql_endpoint_params
      params.require(:sparql_endpoint).permit(:public, :name, :description, :license, :keyword_list) ## Rails 4 strong params usage
    end

end
{'fraction_non_alphanumeric': 0.07223476297968397, 'fraction_numerical': 0.002257336343115124, 'mean_word_length': 4.097701149425287, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2226870', 'n_tokens_mistral': 273, 'n_tokens_neox': 260, 'n_words': 64}