<commit_before>9require 'jira_lib/jira_interface.rb'

class ProjectsController < ApplicationController
	skip_before_filter :login_required, :only => [:index, :show]

  before_filter :get_project, :only => [:show, :edit, :update, :destroy]
  before_filter :get_terms_and_conditions_text, :only => [:new, :create]
  
  deny :show, :edit, :update, :destroy, :exec => :project_unapproved_and_user_not_site_admin?, :redirect_to => :projects
  deny :show, :edit, :update, :destroy, :exec => :project_private_and_user_not_member?, :redirect_to => :projects
  
  allow :new, :create, :user => :is_registered_user?
  allow :edit, :update, :user => :is_project_administrator_for?, :redirect_to => :project
  allow :destroy, :user => :is_site_admin?, :redirect_to => :project

  def index
    @tags = Project.tag_counts
    @levels = (1 .. 5).map { |i| "level-#{i}" }
    <commit_msg>fix for cookies<commit_after>require 'jira_lib/jira_interface.rb'

class ProjectsController < ApplicationController
	skip_before_filter :login_required, :only => [:index, :show]

  before_filter :get_project, :only => [:show, :edit, :update, :destroy]
  before_filter :get_terms_and_conditions_text, :only => [:new, :create]
  
  deny :show, :edit, :update, :destroy, :exec => :project_unapproved_and_user_not_site_admin?, :redirect_to => :projects
  deny :show, :edit, :update, :destroy, :exec => :project_private_and_user_not_member?, :redirect_to => :projects
  
  allow :new, :create, :user => :is_registered_user?
  allow :edit, :update, :user => :is_project_administrator_for?, :redirect_to => :project
  allow :destroy, :user => :is_site_admin?, :redirect_to => :project

  def index
    @tags = Project.tag_counts
    @levels = (1 .. 5).map { |i| "level-#{i}" }
    
{'fraction_non_alphanumeric': 0.1522610188895249, 'fraction_numerical': 0.0028620492272467086, 'mean_word_length': 5.64638783269962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '4808251', 'n_tokens_mistral': 614, 'n_tokens_neox': 603, 'n_words': 136}