<commit_before>module PubMed

  def self.included(mod)
    require 'bio'
  end

  # @options :email => :string, :number => 5, :year => :numeric,
  #  :authors => :array, :journal => :string, :terms => string
  # @render_options :fields => {
  #   :default => [:first_author, :year, :title],
  #   :values  => [:PMID, :first_author, :year, :journal, :title, :url],
  #   }
  # @config :menu => {:command => 'browser', :default_field => :url}
  # @desc Queries pubmed by term, author, journal and year
  def query(options={})
    query = String.new
    query << " #{options[:year]} [dp]" if options[:year]
    query << " #{options[:journal]} [ta]" if options[:journal]<commit_msg>Fix missing colon in boson options<commit_after># Originally from http://github.com/michaelbarton/pubmed-boson/raw/master/pubmed.rb
module PubMed

  def self.included(mod)
    require 'bio'
  end

  # @options :email => :string, :number => 5, :year => :numeric,
  #  :authors => :array, :journal => :string, :terms => :string
  # @render_options :fields => {
  #   :default => [:first_author, :year, :title],
  #   :values  => [:PMID, :first_author, :year, :journal, :title, :url],
  #   }
  # @config :menu => {:command => 'browser', :default_field => :url}
  # @desc Queries pubmed by term, author, journal and year
  def query(options={})
    query = String.new
    query << " #{options[:year]} [dp]" if options[:year]
    query << " #{options[:journal]} [ta]" if options[:journal]
{'fraction_non_alphanumeric': 0.19220246238030095, 'fraction_numerical': 0.0013679890560875513, 'mean_word_length': 3.9425675675675675, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, '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': '3124834', 'n_tokens_mistral': 509, 'n_tokens_neox': 484, 'n_words': 132}