<commit_before>class ScrapersController < ApplicationController
  before_filter :authenticate_user!, except: :show
  
  def new
    # Get the list of repositories
    # TODO Move this to an initializer
    Octokit.auto_paginate = true
    client = Octokit::Client.new :access_token => current_user.access_token
    @repos = client.repositories(nil, sort: :pushed)
    @scraper = Scraper.new
  end

  def create
    # Get the rest of the info from the API<commit_msg>Don't need to be logged in to download data<commit_after>class ScrapersController < ApplicationController
  before_filter :authenticate_user!, except: [:show, :data]
  
  def new
    # Get the list of repositories
    # TODO Move this to an initializer
    Octokit.auto_paginate = true
    client = Octokit::Client.new :access_token => current_user.access_token
    @repos = client.repositories(nil, sort: :pushed)
    @scraper = Scraper.new
  end

  def create
    # Get the rest of the info from the API
{'fraction_non_alphanumeric': 0.07312049433573635, 'fraction_numerical': 0.0, 'mean_word_length': 3.764705882352941, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3937848', 'n_tokens_mistral': 308, 'n_tokens_neox': 292, 'n_words': 96}