<commit_before>require 'spec_helper'
class FeatureRelease
  class Storage

 	def initialize(options={})
 	  @store = options.fetch(:store)
 	end

 	def save(feature)
 	  persist(feature)
 	end


 	private

 	  def persist(feature)
 	  	@store.set("feature:#{feature.name}", feature.serialized)
 	  end

  end<commit_msg>add storage#get and storage#retrieve methods<commit_after>require 'spec_helper'
class FeatureRelease
  class Storage

 	def initialize(options={})
 	  @store = options.fetch(:store)
 	end

 	def save(feature)
 	  persist(feature)
 	end

 	def get(feature)
 	  retrieve(feature)
 	end


 	private

 	  def persist(feature)
 	  	@store.set("feature:#{feature.name}", feature.serialized)
 	  end

 	  def retrieve(feature)
 	  	@store.get("feature:#{feature.name}")
 	  end

  end
{'fraction_non_alphanumeric': 0.11166875784190715, 'fraction_numerical': 0.0, 'mean_word_length': 3.63953488372093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2205367', 'n_tokens_mistral': 301, 'n_tokens_neox': 260, 'n_words': 55}