<commit_before>require 'bio'
require 'gmars'
require 'n_c_b_i'

class CodingRegion < ActiveRecord::Base
  
  #  validates_presence_of :orientation
  
  has_many :coding_region_go_terms, :dependent => :destroy
  has_many :go_terms, 
    {:through => :coding_region_go_terms}
  belongs_to :gene
  has_many :cds, :dependent => :destroy
  has_many :coding_region_alternate_string_ids, :dependent => :destroy
  has_many :derisi20063d7_logmeans
  has_many :plasmodb_gene_list_entries
  has_many :plasmodb_gene_lists, :through => :plasmodb_gene_list_entries
  has_many :localisations, :through => :coding_region_localisations
  has_many :coding_region_localisations, :dependent => :destroy
  has_many :orthomcl_gene_coding_regions, :dependent => :destroy
  has_many :orthomcl_genes, :through => :orthomcl_gene_coding_regions
  has_one :annotation, :dependent => :destroy
  has_one :amino_acid_sequence, :dependent => :destroy
  has_one :transcript_sequence, :dependent => :destroy
  has_many :microarray_measurements, :dependent => :destroy
  has_many :microarray_timepoints, :through => :microarray_measurements
  has_many :expression_contexts, :dependent => :destroy
  has_many :expressed_localisations, :through => :expression_contexts, :source => :localisation
  has_many :integer_coding_region_measurements, :dependent => :destroy
  
  <commit_msg>fixed go.rb problem in coding_region_test<commit_after>require 'bio'
require 'gmars'
require 'n_c_b_i'
require 'go'

class CodingRegion < ActiveRecord::Base
  
  #  validates_presence_of :orientation
  
  has_many :coding_region_go_terms, :dependent => :destroy
  has_many :go_terms, 
    {:through => :coding_region_go_terms}
  belongs_to :gene
  has_many :cds, :dependent => :destroy
  has_many :coding_region_alternate_string_ids, :dependent => :destroy
  has_many :derisi20063d7_logmeans
  has_many :plasmodb_gene_list_entries
  has_many :plasmodb_gene_lists, :through => :plasmodb_gene_list_entries
  has_many :localisations, :through => :coding_region_localisations
  has_many :coding_region_localisations, :dependent => :destroy
  has_many :orthomcl_gene_coding_regions, :dependent => :destroy
  has_many :orthomcl_genes, :through => :orthomcl_gene_coding_regions
  has_one :annotation, :dependent => :destroy
  has_one :amino_acid_sequence, :dependent => :destroy
  has_one :transcript_sequence, :dependent => :destroy
  has_many :microarray_measurements, :dependent => :destroy
  has_many :microarray_timepoints, :through => :microarray_measurements
  has_many :expression_contexts, :dependent => :destroy
  has_many :expressed_localisations, :through => :expression_contexts, :source => :localisation
  has_many :integer_coding_region_measurements, :dependent => :destroy
  
  
{'fraction_non_alphanumeric': 0.09330406147091108, 'fraction_numerical': 0.0043907793633369925, 'mean_word_length': 6.994152046783626, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '2237624', 'n_tokens_mistral': 964, 'n_tokens_neox': 883, 'n_words': 180}