<commit_before>require "vidsigner_api/version"

module VidsignerApi

  if ENV[:vidsigner_path] and defined? Rails != "constant"
    config_path = "#{ENV[:vidsigner_path]}/config/vidsigner_api_config.yml"
    DATA =  File.exists?(config_path) ? YAML.load_file(config_path) : raise "Config file doesn't exist"
  end

  def devices(env = nil)
    self.request("get", "devices", nil, env)
  end

  def create_document(data, env = nil)<commit_msg>Syntax error corrected.<commit_after>require "vidsigner_api/version"

module VidsignerApi

  if ENV[:vidsigner_path] and defined? Rails != "constant"
    config_path = "#{ENV[:vidsigner_path]}/config/vidsigner_api_config.yml"
    DATA = File.exists?(config_path) ? YAML.load_file(config_path) : raise IOError.new("Config file doesn't exist")
  end

  def devices(env = nil)
    self.request("get", "devices", nil, env)
  end

  def create_document(data, env = nil)
{'fraction_non_alphanumeric': 0.1280353200883002, 'fraction_numerical': 0.0, 'mean_word_length': 5.046666666666667, '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': '5790816', 'n_tokens_mistral': 332, 'n_tokens_neox': 308, 'n_words': 67}