<commit_before>require 'sinatra/base'
require 'sinatra/config_file'
require './lib/yelp'

# /api/yelp/*
class YelpApi < Sinatra::Base
  @@enabled = false
  @@consumer_key = ''
  @@consumer_secret = ''
  @@token = ''
  @@token_secret = ''
  
  def self.enabled=(is_enabled)
    @@enabled = is_enabled
  end
  
  def self.consumer_key=(new_consumer_key)
    @@consumer_key = new_consumer_key
  end
  
  def self.consumer_secret=(new_consumer_secret)
    @@consumer_secret = new_consumer_secret
  end
  
  def self.token=(new_token)
    @@token = new_token
  end<commit_msg>Added a comment for Yelp's display requirements<commit_after>require 'sinatra/base'
require 'sinatra/config_file'
require './lib/yelp'

# /api/yelp/*
# Display requirements: http://www.yelp.com/developers/getting_started/display_requirements
class YelpApi < Sinatra::Base
  @@enabled = false
  @@consumer_key = ''
  @@consumer_secret = ''
  @@token = ''
  @@token_secret = ''
  
  def self.enabled=(is_enabled)
    @@enabled = is_enabled
  end
  
  def self.consumer_key=(new_consumer_key)
    @@consumer_key = new_consumer_key
  end
  
  def self.consumer_secret=(new_consumer_secret)
    @@consumer_secret = new_consumer_secret
  end
  
  def self.token=(new_token)
    @@token = new_token
  end
{'fraction_non_alphanumeric': 0.12381703470031545, 'fraction_numerical': 0.0, 'mean_word_length': 4.035714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4684380', 'n_tokens_mistral': 483, 'n_tokens_neox': 433, 'n_words': 80}