<commit_before>require 'net/http/persistent' # @see http://rubygems.org/gems/net-http-persistent
require 'rdf'                 # @see http://rubygems.org/gems/rdf
require 'rdf/ntriples'        # @see http://rubygems.org/gems/rdf

module SPARQL
  ##
  # A SPARQL client for RDF.rb.
  #
  # @see http://www.w3.org/TR/sparql11-query/
  # @see http://www.w3.org/TR/sparql11-results-json/
  class Client
    autoload :Query,      'sparql/client/query'
    autoload :Repository, 'sparql/client/repository'
    autoload :VERSION,    'sparql/client/version'

    class ClientError < StandardError; end
    class MalformedQuery < ClientError; end
    class ServerError < StandardError; end

    RESULT_BOOL = 'text/boolean'.freeze # Sesame-specific
    RESULT_JSON = 'application/sparql-results+json'.freeze
    RESULT_XML  = 'application/sparql-results+xml'.freeze
    ACCEPT_JSON = {'Accept' => RESULT_JSON}.freeze
    ACCEPT_XML  = {'Accept' => RESULT_XML}.freeze

    # @return [RDF::URI]
    attr_reader :url

    # @return [Hash{String => String}]
    attr_reader :headers
<commit_msg>Defined the SPARQL::Client::RESULT_BRTR and ACCEPT_BRTR constants.<commit_after>require 'net/http/persistent' # @see http://rubygems.org/gems/net-http-persistent
require 'rdf'                 # @see http://rubygems.org/gems/rdf
require 'rdf/ntriples'        # @see http://rubygems.org/gems/rdf

module SPARQL
  ##
  # A SPARQL client for RDF.rb.
  #
  # @see http://www.w3.org/TR/sparql11-query/
  # @see http://www.w3.org/TR/sparql11-results-json/
  class Client
    autoload :Query,      'sparql/client/query'
    autoload :Repository, 'sparql/client/repository'
    autoload :VERSION,    'sparql/client/version'

    class ClientError < StandardError; end
    class MalformedQuery < ClientError; end
    class ServerError < StandardError; end

    RESULT_JSON = 'application/sparql-results+json'.freeze
    RESULT_XML  = 'application/sparql-results+xml'.freeze
    RESULT_BOOL = 'text/boolean'.freeze                           # Sesame-specific
    RESULT_BRTR = 'application/x-binary-rdf-results-table'.freeze # Sesame-specific
    ACCEPT_JSON = {'Accept' => RESULT_JSON}.freeze
    ACCEPT_XML  = {'Accept' => RESULT_XML}.freeze
    ACCEPT_BRTR = {'Accept' => RESULT_BRTR}.freeze

    # @return [RDF::URI]
    attr_reader :url

    # @return [Hash{String => String}]
    attr_reader :headers

{'fraction_non_alphanumeric': 0.1312026913372582, 'fraction_numerical': 0.005046257359125316, 'mean_word_length': 3.1663747810858145, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '4852052', 'n_tokens_mistral': 854, 'n_tokens_neox': 825, 'n_words': 147}