<commit_before>
require "feature_flags/version"
require "feature_flags/feature"
require "feature_flags/configuration"
require "feature_flags/engine"
require "active_support/dependencies"

module FeatureFlags
  # Your code goes here...\
  mattr_accessor :app_root
  
  def self.enabled?(feature)
    feature = Feature.where(:name => feature).first

    if feature.present? 
      feature.status? ? true : false
    elsif
      Feature.create!(:name => feature, :status => true)
      return true
    end
    
  end

  def self.set_disabled?(feature)
    feature = Feature.where(:name => feature).first
    (feature.present? && feature.update_attributes(:status => false)) ? true : false
  end

end
<commit_msg>feature create fix<commit_after>
require "feature_flags/version"
require "feature_flags/configuration"
require "feature_flags/engine"
require "active_support/dependencies"

module FeatureFlags
  # Your code goes here...\
  mattr_accessor :app_root

  def self.enabled?(feature_name)
    feature = Feature.where(:name => feature_name).first

    if feature.present? 
      feature.status? ? true : false
    elsif
      Feature.create!(:name => feature_name, :status => true)
      return true
    end
    
  end

  def self.set_disabled?(feature_name)
    feature = Feature.where(:name => feature_name).first
    (feature.present? && feature.update_attributes(:status => false)) ? true : false
  end

end

{'fraction_non_alphanumeric': 0.10961810466760961, 'fraction_numerical': 0.0, 'mean_word_length': 3.748322147651007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1161886', 'n_tokens_mistral': 419, 'n_tokens_neox': 411, 'n_words': 100}