<commit_before>require 'spec_helper'

vcr_options = { :cassette_name => "datatxt_element", :record => :new_episodes }

describe Datatxt::Nex, vcr: vcr_options do

  before(:all) do
    Datatxt.configure do |c|
      c.app_id = ""
      c.app_key = ""
      c.endpoint = "https://api.dandelion.eu/datatxt/"
    end
  end
  
  it "initialize a new nex request" do
    request = Datatxt::Nex.new
    expect(request).to be_an_instance_of(Datatxt::Nex)
  end

end<commit_msg>New App ID and App Key<commit_after>require 'spec_helper'

vcr_options = { :cassette_name => "datatxt_element", :record => :new_episodes }

describe Datatxt::Nex, vcr: vcr_options do

  before(:all) do
    Datatxt.configure do |c|
      # account: <NAME> <<EMAIL>>
      c.app_id = "e0bca290"
      c.app_key = "<KEY>"
      c.endpoint = "https://api.dandelion.eu/datatxt/"
    end
  end
  
  it "initialize a new nex request" do
    request = Datatxt::Nex.new
    expect(request).to be_an_instance_of(Datatxt::Nex)
  end

end
{'fraction_non_alphanumeric': 0.13052208835341367, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 3.3347826086956522, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2089924', 'n_tokens_mistral': 396, 'n_tokens_neox': 385, 'n_words': 81}