Search is not available for this dataset
id stringlengths 1 8 | text stringlengths 72 9.81M | addition_count int64 0 10k | commit_subject stringlengths 0 3.7k | deletion_count int64 0 8.43k | file_extension stringlengths 0 32 | lang stringlengths 1 94 | license stringclasses 10
values | repo_name stringlengths 9 59 |
|---|---|---|---|---|---|---|---|---|
10070550 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
OVERRIDE_PARAM_NAME = "ab_test"
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternatives as the third because the order of the hash is not preserved in ruby 1.8'
... | 6 | Allowing arrays to be passed to ab_test | 0 | .rb | rb | mit | splitrb/split |
10070551 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Fix Layout/CommentIndentation | 1 | .rb | rb | mit | splitrb/split |
10070552 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Fix Layout/CommentIndentation | 1 | .rb | rb | mit | splitrb/split |
10070553 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Fix Layout/CommentIndentation | 1 | .rb | rb | mit | splitrb/split |
10070554 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
// Meow queue
var default_meow_area,
meows = {
queue: {},
add: function (meow) {
this.queue[meow.timestamp] = meow;
},
get: function (timestamp) {
return this.queue[timestamp];
},
remove: funct... | 7 | woot. cut it down to one callable constructor. no more bindings | 5 | .js | meow | mit | zacstewart/Meow |
10070555 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
// Meow queue
var default_meow_area,
meows = {
queue: {},
add: function (meow) {
this.queue[meow.timestamp] = meow;
},
get: function (timestamp) {
return this.queue[timestamp];
},
remove: funct... | 7 | woot. cut it down to one callable constructor. no more bindings | 5 | .js | meow | mit | zacstewart/Meow |
10070556 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 2 | Merge pull request #216 from lbeder/master | 1 | .rb | rb | mit | splitrb/split |
10070557 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 2 | Merge pull request #216 from lbeder/master | 1 | .rb | rb | mit | splitrb/split |
10070558 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 2 | Merge pull request #216 from lbeder/master | 1 | .rb | rb | mit | splitrb/split |
10070559 | <NME> 4.0.gemfile.lock
<BEF> ADDFILE
<MSG> Test against multiple versions of rails
Managed using the Appraisal gem
Testing rails 3.0.20, 3.1.12, 3.2.13 and 4.0.rc1
<DFF> @@ -0,0 +1,118 @@
+PATH
+ remote: /Users/andrew/code/split
+ specs:
+ split (0.6.1)
+ redis (>= 2.1)
+ redis-namespace (>= 1.1.0)
+ ... | 118 | Test against multiple versions of rails | 0 | .lock | 0 | mit | splitrb/split |
10070560 | <NME> 4.0.gemfile.lock
<BEF> ADDFILE
<MSG> Test against multiple versions of rails
Managed using the Appraisal gem
Testing rails 3.0.20, 3.1.12, 3.2.13 and 4.0.rc1
<DFF> @@ -0,0 +1,118 @@
+PATH
+ remote: /Users/andrew/code/split
+ specs:
+ split (0.6.1)
+ redis (>= 2.1)
+ redis-namespace (>= 1.1.0)
+ ... | 118 | Test against multiple versions of rails | 0 | .lock | 0 | mit | splitrb/split |
10070561 | <NME> 4.0.gemfile.lock
<BEF> ADDFILE
<MSG> Test against multiple versions of rails
Managed using the Appraisal gem
Testing rails 3.0.20, 3.1.12, 3.2.13 and 4.0.rc1
<DFF> @@ -0,0 +1,118 @@
+PATH
+ remote: /Users/andrew/code/split
+ specs:
+ split (0.6.1)
+ redis (>= 2.1)
+ redis-namespace (>= 1.1.0)
+ ... | 118 | Test against multiple versions of rails | 0 | .lock | 0 | mit | splitrb/split |
10070562 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 13 | Enforce double quotes | 13 | .gemspec | gemspec | mit | splitrb/split |
10070563 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 13 | Enforce double quotes | 13 | .gemspec | gemspec | mit | splitrb/split |
10070564 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 13 | Enforce double quotes | 13 | .gemspec | gemspec | mit | splitrb/split |
10070565 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 11 | When loading active_experiments, it should not look into user's 'finished' keys | 0 | .rb | rb | mit | splitrb/split |
10070566 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 11 | When loading active_experiments, it should not look into user's 'finished' keys | 0 | .rb | rb | mit | splitrb/split |
10070567 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 11 | When loading active_experiments, it should not look into user's 'finished' keys | 0 | .rb | rb | mit | splitrb/split |
10070568 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 3 | Merge pull request #644 from TomasBarry/typo/correct-spelling-of-class-variable-in-trial | 3 | .rb | rb | mit | splitrb/split |
10070569 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 3 | Merge pull request #644 from TomasBarry/typo/correct-spelling-of-class-variable-in-trial | 3 | .rb | rb | mit | splitrb/split |
10070570 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 3 | Merge pull request #644 from TomasBarry/typo/correct-spelling-of-class-variable-in-trial | 3 | .rb | rb | mit | splitrb/split |
10070571 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.7.1
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 0
+ PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.7.1 | 1 | .rb | rb | mit | splitrb/split |
10070572 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.7.1
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 0
+ PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.7.1 | 1 | .rb | rb | mit | splitrb/split |
10070573 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.7.1
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 0
+ PATCH = 1
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.7.1 | 1 | .rb | rb | mit | splitrb/split |
10070574 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

[
[](http://badge.fury.io/rb/split)

[
[](http://badge.fury.io/rb/split)

[ {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 20 | Push metadata to ab_test block | 0 | .rb | rb | mit | splitrb/split |
10070578 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 20 | Push metadata to ab_test block | 0 | .rb | rb | mit | splitrb/split |
10070579 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 20 | Push metadata to ab_test block | 0 | .rb | rb | mit | splitrb/split |
10070580 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
// Meow queue
var default_meow_area,
meows = {
queue: {},
add: function (meow) {
this.queue[meow.timestamp] = meow;
},
get: function (timestamp) {
return this.queue[timestamp];
},
remove: funct... | 82 | closes #4 added callbacks and some better commenting | 18 | .js | meow | mit | zacstewart/Meow |
10070581 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
// Meow queue
var default_meow_area,
meows = {
queue: {},
add: function (meow) {
this.queue[meow.timestamp] = meow;
},
get: function (timestamp) {
return this.queue[timestamp];
},
remove: funct... | 82 | closes #4 added callbacks and some better commenting | 18 | .js | meow | mit | zacstewart/Meow |
10070582 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
OVERRIDE_PARAM_NAME = "ab_test"
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *alternatives)
... | 12 | Add helper method to display active experiments and their associated alternative | 0 | .rb | rb | mit | splitrb/split |
10070583 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
OVERRIDE_PARAM_NAME = "ab_test"
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *alternatives)
... | 12 | Add helper method to display active experiments and their associated alternative | 0 | .rb | rb | mit | splitrb/split |
10070584 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
OVERRIDE_PARAM_NAME = "ab_test"
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *alternatives)
... | 12 | Add helper method to display active experiments and their associated alternative | 0 | .rb | rb | mit | splitrb/split |
10070585 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Require a newer version of bundler | 1 | .gemspec | gemspec | mit | splitrb/split |
10070586 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Require a newer version of bundler | 1 | .gemspec | gemspec | mit | splitrb/split |
10070587 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Require a newer version of bundler | 1 | .gemspec | gemspec | mit | splitrb/split |
10070588 | <NME> experiment_catalog.rb
<BEF> module Split
class ExperimentCatalog
def self.all
Split.redis.smembers(:experiments).map {|e| find(e)}
end
# Return experiments without a winner (considered "active") first
# Return experiments without a winner (considered "active") first
def self.all_acti... | 3 | Merge pull request #253 from danielschwartz/master | 1 | .rb | rb | mit | splitrb/split |
10070589 | <NME> experiment_catalog.rb
<BEF> module Split
class ExperimentCatalog
def self.all
Split.redis.smembers(:experiments).map {|e| find(e)}
end
# Return experiments without a winner (considered "active") first
# Return experiments without a winner (considered "active") first
def self.all_acti... | 3 | Merge pull request #253 from danielschwartz/master | 1 | .rb | rb | mit | splitrb/split |
10070590 | <NME> experiment_catalog.rb
<BEF> module Split
class ExperimentCatalog
def self.all
Split.redis.smembers(:experiments).map {|e| find(e)}
end
# Return experiments without a winner (considered "active") first
# Return experiments without a winner (considered "active") first
def self.all_acti... | 3 | Merge pull request #253 from danielschwartz/master | 1 | .rb | rb | mit | splitrb/split |
10070591 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 2 | Merge pull request #363 from ccallebs/master | 1 | .erb | erb | mit | splitrb/split |
10070592 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 2 | Merge pull request #363 from ccallebs/master | 1 | .erb | erb | mit | splitrb/split |
10070593 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 2 | Merge pull request #363 from ccallebs/master | 1 | .erb | erb | mit | splitrb/split |
10070594 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.2.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.3"
+ VERSION = "0.2.4"
end
| 1 | Version 0.2.4 | 1 | .rb | rb | mit | splitrb/split |
10070595 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.2.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.3"
+ VERSION = "0.2.4"
end
| 1 | Version 0.2.4 | 1 | .rb | rb | mit | splitrb/split |
10070596 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.2.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.3"
+ VERSION = "0.2.4"
end
| 1 | Version 0.2.4 | 1 | .rb | rb | mit | splitrb/split |
10070597 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 4 | Allow algorithm configuration at experiment level | 0 | .rb | rb | mit | splitrb/split |
10070598 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 4 | Allow algorithm configuration at experiment level | 0 | .rb | rb | mit | splitrb/split |
10070599 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 4 | Allow algorithm configuration at experiment level | 0 | .rb | rb | mit | splitrb/split |
10070600 | <NME> 6.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 6.0.0.beta3"
gemspec path: "../"
<MSG> Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis
Bump Ruby/Rails versions on CI
<DFF> @@ -4,6 +4,6 @@ sourc... | 1 | Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis | 1 | .gemfile | 0 | mit | splitrb/split |
10070601 | <NME> 6.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 6.0.0.beta3"
gemspec path: "../"
<MSG> Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis
Bump Ruby/Rails versions on CI
<DFF> @@ -4,6 +4,6 @@ sourc... | 1 | Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis | 1 | .gemfile | 0 | mit | splitrb/split |
10070602 | <NME> 6.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 6.0.0.beta3"
gemspec path: "../"
<MSG> Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis
Bump Ruby/Rails versions on CI
<DFF> @@ -4,6 +4,6 @@ sourc... | 1 | Merge pull request #596 from splitrb/bump-ruby-rails-versions-travis | 1 | .gemfile | 0 | mit | splitrb/split |
10070603 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 30 | Added ability to reset an experiment from the dashboard | 0 | .rb | rb | mit | splitrb/split |
10070604 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 30 | Added ability to reset an experiment from the dashboard | 0 | .rb | rb | mit | splitrb/split |
10070605 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 30 | Added ability to reset an experiment from the dashboard | 0 | .rb | rb | mit | splitrb/split |
10070606 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 1 | Enable rubocop for specs too | 1 | .rb | rb | mit | splitrb/split |
10070607 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 1 | Enable rubocop for specs too | 1 | .rb | rb | mit | splitrb/split |
10070608 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 1 | Enable rubocop for specs too | 1 | .rb | rb | mit | splitrb/split |
10070609 | <NME> cookies_mock.rb
<BEF> ADDFILE
<MSG> * Implements Persistance Adapters and adds two standard ones:
* Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer
* Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the s... | 19 | * Implements Persistance Adapters and adds two standard ones: * Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer * Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the same version of the split test. * Allows fo... | 0 | .rb | rb | mit | splitrb/split |
10070610 | <NME> cookies_mock.rb
<BEF> ADDFILE
<MSG> * Implements Persistance Adapters and adds two standard ones:
* Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer
* Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the s... | 19 | * Implements Persistance Adapters and adds two standard ones: * Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer * Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the same version of the split test. * Allows fo... | 0 | .rb | rb | mit | splitrb/split |
10070611 | <NME> cookies_mock.rb
<BEF> ADDFILE
<MSG> * Implements Persistance Adapters and adds two standard ones:
* Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer
* Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the s... | 19 | * Implements Persistance Adapters and adds two standard ones: * Split::Persistence::SessionAdapter - Behaves exactly like the existing persistence layer * Split::Persistence::CookieAdapter - Stores the ab_user in the cookie so return visitors are always presented with the same version of the split test. * Allows fo... | 0 | .rb | rb | mit | splitrb/split |
10070612 | <NME> CODE_OF_CONDUCT.md
<BEF> ADDFILE
<MSG> Create CODE_OF_CONDUCT.md
<DFF> @@ -0,0 +1,74 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a... | 74 | Create CODE_OF_CONDUCT.md | 0 | .md | md | mit | splitrb/split |
10070613 | <NME> CODE_OF_CONDUCT.md
<BEF> ADDFILE
<MSG> Create CODE_OF_CONDUCT.md
<DFF> @@ -0,0 +1,74 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a... | 74 | Create CODE_OF_CONDUCT.md | 0 | .md | md | mit | splitrb/split |
10070614 | <NME> CODE_OF_CONDUCT.md
<BEF> ADDFILE
<MSG> Create CODE_OF_CONDUCT.md
<DFF> @@ -0,0 +1,74 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a... | 74 | Create CODE_OF_CONDUCT.md | 0 | .md | md | mit | splitrb/split |
10070615 | <NME> dashboard_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
require "split/dashboard"
describe Split::Dashboard do
include Rack::Test::Methods
class TestDashboard < Split::Dashboard
include Split::Helper
get "/my_experiment" do
ab_test(params[:experiment],... | 13 | Merge pull request #241 from swrobel/metrics-on-dashboard | 0 | .rb | rb | mit | splitrb/split |
10070616 | <NME> dashboard_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
require "split/dashboard"
describe Split::Dashboard do
include Rack::Test::Methods
class TestDashboard < Split::Dashboard
include Split::Helper
get "/my_experiment" do
ab_test(params[:experiment],... | 13 | Merge pull request #241 from swrobel/metrics-on-dashboard | 0 | .rb | rb | mit | splitrb/split |
10070617 | <NME> dashboard_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
require "split/dashboard"
describe Split::Dashboard do
include Rack::Test::Methods
class TestDashboard < Split::Dashboard
include Split::Helper
get "/my_experiment" do
ab_test(params[:experiment],... | 13 | Merge pull request #241 from swrobel/metrics-on-dashboard | 0 | .rb | rb | mit | splitrb/split |
10070618 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | add a on_before_experiment_delete and on_before_experiment_reset hook | 0 | .rb | rb | mit | splitrb/split |
10070619 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | add a on_before_experiment_delete and on_before_experiment_reset hook | 0 | .rb | rb | mit | splitrb/split |
10070620 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | add a on_before_experiment_delete and on_before_experiment_reset hook | 0 | .rb | rb | mit | splitrb/split |
10070621 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

[
[](http://badge.fury.io/rb/split)

[
[](http://badge.fury.io/rb/split)

[ { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 27 | Merge pull request #615 from robin-phung/master | 0 | .rb | rb | mit | splitrb/split |
10070628 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 27 | Merge pull request #615 from robin-phung/master | 0 | .rb | rb | mit | splitrb/split |
10070629 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 27 | Merge pull request #615 from robin-phung/master | 0 | .rb | rb | mit | splitrb/split |
10070630 | <NME> index.ts
<BEF> import markupAbbreviation, { Abbreviation } from '@emmetio/abbreviation';
import stylesheetAbbreviation, { CSSAbbreviation } from '@emmetio/css-abbreviation';
import parseMarkup, { stringify as stringifyMarkup } from './markup';
import parseStylesheet, {
stringify as stringifyStylesheet,
co... | 2 | Updated code layout for better typings | 2 | .ts | ts | mit | emmetio/emmet |
10070631 | <NME> index.ts
<BEF> import markupAbbreviation, { Abbreviation } from '@emmetio/abbreviation';
import stylesheetAbbreviation, { CSSAbbreviation } from '@emmetio/css-abbreviation';
import parseMarkup, { stringify as stringifyMarkup } from './markup';
import parseStylesheet, {
stringify as stringifyStylesheet,
co... | 2 | Updated code layout for better typings | 2 | .ts | ts | mit | emmetio/emmet |
10070632 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.5
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.5 | 1 | .rb | rb | mit | splitrb/split |
10070633 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.5
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.5 | 1 | .rb | rb | mit | splitrb/split |
10070634 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.5
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.5 | 1 | .rb | rb | mit | splitrb/split |
10070635 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove Sinatra Dependency for Split Dashboard | 1 | .gemspec | gemspec | mit | splitrb/split |
10070636 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove Sinatra Dependency for Split Dashboard | 1 | .gemspec | gemspec | mit | splitrb/split |
10070637 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove Sinatra Dependency for Split Dashboard | 1 | .gemspec | gemspec | mit | splitrb/split |
10070638 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
color-stop(0%,#576a7... | 10 | Gave that header some border radius. Headers love boarder radius. | 3 | .css | css | mit | splitrb/split |
10070639 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
color-stop(0%,#576a7... | 10 | Gave that header some border radius. Headers love boarder radius. | 3 | .css | css | mit | splitrb/split |
10070640 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
color-stop(0%,#576a7... | 10 | Gave that header some border radius. Headers love boarder radius. | 3 | .css | css | mit | splitrb/split |
10070641 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 2 | Update dev depenencies | 2 | .gemspec | gemspec | mit | splitrb/split |
10070642 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 2 | Update dev depenencies | 2 | .gemspec | gemspec | mit | splitrb/split |
10070643 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 2 | Update dev depenencies | 2 | .gemspec | gemspec | mit | splitrb/split |
10070644 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | Add hooks for experiment deletion and resetting. | 0 | .rb | rb | mit | splitrb/split |
10070645 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | Add hooks for experiment deletion and resetting. | 0 | .rb | rb | mit | splitrb/split |
10070646 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 10 | Add hooks for experiment deletion and resetting. | 0 | .rb | rb | mit | splitrb/split |
10070647 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 5 | Avoid hitting up on redis for robots/excluded users. | 0 | .rb | rb | mit | splitrb/split |
10070648 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 5 | Avoid hitting up on redis for robots/excluded users. | 0 | .rb | rb | mit | splitrb/split |
10070649 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 5 | Avoid hitting up on redis for robots/excluded users. | 0 | .rb | rb | mit | splitrb/split |