<commit_before>require 'dropbox_sdk'

class ResourcesController < ApplicationController
  include DropBoxAccountsHelper
  include SessionsHelper

  before_filter :require_session


  # GET /resources
  # GET /resources.json
  def index
    @resources = Resource.where( :user_id => @current_user.id )
    Rails.logger.info("Resources = #{@resource}")

    # Temporary, just testing out search_for_teachermaps_folder()
    # if @current_user.has_google_account?

    #   @current_user.google_account.search_for_teachermaps_folder()
    # end
<commit_msg>have working prototype for searching for the file_id of /Apps/TeacherMaps Google Drive folder<commit_after>require 'dropbox_sdk'

class ResourcesController < ApplicationController
  include DropBoxAccountsHelper
  include SessionsHelper

  before_filter :require_session


  # GET /resources
  # GET /resources.json
  def index
    @resources = Resource.where( :user_id => @current_user.id )
    Rails.logger.info("Resources = #{@resource}")

    # Temporary, just testing out search_for_teachermaps_folder()
    if @current_user.has_google_account?

      @current_user.google_account.search_for_teachermaps_folder()
    end

{'fraction_non_alphanumeric': 0.08064516129032258, 'fraction_numerical': 0.0, 'mean_word_length': 4.723300970873787, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '397039', 'n_tokens_mistral': 357, 'n_tokens_neox': 341, 'n_words': 76}