<commit_before>require "serrano/version"
require "serrano/request"
require "serrano/filterhandler"
require "serrano/cnrequest"
require "serrano/miner"
require "serrano/filters"
require "serrano/cross_cite"

require 'rexml/document'
require 'rexml/xpath'

# @!macro serrano_params
#   @param offset [Fixnum] Number of record to start at, from 1 to infinity.
#   @param limit [Fixnum] Number of results to return. Not relavant when searching with specific dois. Default: 20. Max: 1000
#   @param sample [Fixnum] Number of random results to return. when you use the sample parameter,
#   the limit and offset parameters are ignored.
#   @param sort [String] Field to sort on, one of score, relevance,
#   updated (date of most recent change to metadata. Currently the same as deposited),
#   deposited (time of most recent deposit), indexed (time of most recent index), or
#   published (publication date). Note: If the API call includes a query, then the sort
#   order will be by the relevance score. If no query is included, then the sort order
#   will be by DOI update date.
#   @param order [String] Sort order, one of 'asc' or 'desc'
#   @param facet [Boolean] Include facet results. Default: false
#   @param verbose [Boolean] Print request headers to stdout. Default: false

# @!macro serrano_options
#   @param options [Hash] Hash of options for configuring the request, passed on to Faraday.new
#     :timeout      - [Fixnum] open/read timeout Integer in seconds
#     :open_timeout - [Fixnum] read timeout Integer in seconds
#     :proxy        - [Hash] hash of proxy options
#       :uri - [String] Proxy Server URI
#       :user - [String] Proxy server username
#       :password - [String] Proxy server password
#     :params_encoder - [Hash] not sure what this is
#     :bind           - [Hash] A hash with host and port values
#     :boundary       - [String] of the boundary value
#     :oauth          - [Hash] A hash with OAuth details

##
# Serrano - The top level module for using methods
# to access Serrano APIs
#
# The following methods, matching the main Crossref API routes, are available:
# * works - Use the /works endpoint
# * members - Use the /members endpoint
# * prefixes - Use the /prefixes endpoint
# * funders - Use the /funders endpoint
# * journals - Use the /journals endpoint
# * types - Use the /types endpoint
# * licenses - Use the /licenses endpoint
#
# Additional methods
# * agency - test the registration agency for a DOI
#
# All routes return an array of hashes
# For example, if you want to inspect headers returned from the HTTP request,
# and parse the raw result in any way you wish.
#
# @see https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md for
# detailed description of the Crossref API
module Serrano
  extend Configuration

  define_setting :access_token
  define_setting :access_secret
  define_setting :elsevier_key<commit_msg>updated docs<commit_after>require "serrano/version"
require "serrano/request"
require "serrano/filterhandler"
require "serrano/cnrequest"
require "serrano/miner"
require "serrano/filters"
require "serrano/cross_cite"

require 'rexml/document'
require 'rexml/xpath'

# @!macro serrano_params
#   @param offset [Fixnum] Number of record to start at, from 1 to infinity.
#   @param limit [Fixnum] Number of results to return. Not relavant when searching with specific dois. Default: 20. Max: 1000
#   @param sample [Fixnum] Number of random results to return. when you use the sample parameter,
#   the limit and offset parameters are ignored.
#   @param sort [String] Field to sort on, one of score, relevance,
#   updated (date of most recent change to metadata. Currently the same as deposited),
#   deposited (time of most recent deposit), indexed (time of most recent index), or
#   published (publication date). Note: If the API call includes a query, then the sort
#   order will be by the relevance score. If no query is included, then the sort order
#   will be by DOI update date.
#   @param order [String] Sort order, one of 'asc' or 'desc'
#   @param facet [Boolean] Include facet results. Default: false
#   @param verbose [Boolean] Print request headers to stdout. Default: false

# @!macro serrano_options
#   @param options [Hash] Hash of options for configuring the request, passed on to Faraday.new
#     :timeout      - [Fixnum] open/read timeout Integer in seconds
#     :open_timeout - [Fixnum] read timeout Integer in seconds
#     :proxy        - [Hash] hash of proxy options
#       :uri - [String] Proxy Server URI
#       :user - [String] Proxy server username
#       :password - [String] Proxy server password
#     :params_encoder - [Hash] not sure what this is
#     :bind           - [Hash] A hash with host and port values
#     :boundary       - [String] of the boundary value
#     :oauth          - [Hash] A hash with OAuth details

##
# Serrano - The top level module for using methods
# to access Serrano APIs
#
# The following methods, matching the main Crossref API routes, are available:
# * `Serrano.works` - Use the /works endpoint
# * `Serrano.members` - Use the /members endpoint
# * `Serrano.prefixes` - Use the /prefixes endpoint
# * `Serrano.funders` - Use the /funders endpoint
# * `Serrano.journals` - Use the /journals endpoint
# * `Serrano.types` - Use the /types endpoint
# * `Serrano.licenses` - Use the /licenses endpoint
#
# Additional methods
# * `Serrano.agency` - test the registration agency for a DOI
# * `Serrano.content_negotiation` - Conent negotiation
# * `Serrano.text` - Text and data mining
# * `Serrano.citation_count` - Citation count
# * `Serrano.crosscite` - CrossCite
# * `Serrano.csl_styles` - get CSL styles
#
# All routes return an array of hashes
# For example, if you want to inspect headers returned from the HTTP request,
# and parse the raw result in any way you wish.
#
# @see https://github.com/CrossRef/rest-api-doc/blob/master/rest_api.md for
# detailed description of the Crossref API
module Serrano
  extend Configuration

  define_setting :access_token
  define_setting :access_secret
  define_setting :elsevier_key
{'fraction_non_alphanumeric': 0.08625778943916038, 'fraction_numerical': 0.0022958346999016072, 'mean_word_length': 3.641552511415525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4389516', 'n_tokens_mistral': 1801, 'n_tokens_neox': 1744, 'n_words': 761}