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
10069450
<NME> combined_experiments_helper.rb <BEF> # frozen_string_literal: true module CombinedExperimentsHelper def ab_combined_test(metric_descriptor, control = nil, *alternatives) return nil unless experiment = find_combined_experiment(metric_descriptor) raise(Split::InvalidExperimentsFormatError, 'Unabl...
1
Fix error message interpolation
1
.rb
rb
mit
splitrb/split
10069451
<NME> combined_experiments_helper.rb <BEF> # frozen_string_literal: true module CombinedExperimentsHelper def ab_combined_test(metric_descriptor, control = nil, *alternatives) return nil unless experiment = find_combined_experiment(metric_descriptor) raise(Split::InvalidExperimentsFormatError, 'Unabl...
1
Fix error message interpolation
1
.rb
rb
mit
splitrb/split
10069452
<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...
5
Upgrade development dependencies
5
.gemspec
gemspec
mit
splitrb/split
10069453
<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...
5
Upgrade development dependencies
5
.gemspec
gemspec
mit
splitrb/split
10069454
<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...
5
Upgrade development dependencies
5
.gemspec
gemspec
mit
splitrb/split
10069455
<NME> user.rb <BEF> module Split class User extend Forwardable class User extend Forwardable def_delegators :@user, :keys, :[], :[]=, :delete attr_reader :user def initialize(context, adapter = nil) @user = adapter || Split::Persistence.adapter.new(context) @cleaned_up = false e...
2
Fix loadorder issues (#479)
0
.rb
rb
mit
splitrb/split
10069456
<NME> user.rb <BEF> module Split class User extend Forwardable class User extend Forwardable def_delegators :@user, :keys, :[], :[]=, :delete attr_reader :user def initialize(context, adapter = nil) @user = adapter || Split::Persistence.adapter.new(context) @cleaned_up = false e...
2
Fix loadorder issues (#479)
0
.rb
rb
mit
splitrb/split
10069457
<NME> user.rb <BEF> module Split class User extend Forwardable class User extend Forwardable def_delegators :@user, :keys, :[], :[]=, :delete attr_reader :user def initialize(context, adapter = nil) @user = adapter || Split::Persistence.adapter.new(context) @cleaned_up = false e...
2
Fix loadorder issues (#479)
0
.rb
rb
mit
splitrb/split
10069458
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 0 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.0 <DFF> @@ -1,7 +1,7 @@ # frozen_string_literal: true module Split MAJOR = 3 - MINOR = 0 + MINOR = 1 PATCH = 0 VERSION = [MAJOR, M...
1
v3.1.0
1
.rb
rb
mit
splitrb/split
10069459
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 0 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.0 <DFF> @@ -1,7 +1,7 @@ # frozen_string_literal: true module Split MAJOR = 3 - MINOR = 0 + MINOR = 1 PATCH = 0 VERSION = [MAJOR, M...
1
v3.1.0
1
.rb
rb
mit
splitrb/split
10069460
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 0 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.0 <DFF> @@ -1,7 +1,7 @@ # frozen_string_literal: true module Split MAJOR = 3 - MINOR = 0 + MINOR = 1 PATCH = 0 VERSION = [MAJOR, M...
1
v3.1.0
1
.rb
rb
mit
splitrb/split
10069461
<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) ...
8
Convience function around enumerating a user's current active experiments which also honors the 'db_failover' option. (#1) (#487)
0
.rb
rb
mit
splitrb/split
10069462
<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) ...
8
Convience function around enumerating a user's current active experiments which also honors the 'db_failover' option. (#1) (#487)
0
.rb
rb
mit
splitrb/split
10069463
<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) ...
8
Convience function around enumerating a user's current active experiments which also honors the 'db_failover' option. (#1) (#487)
0
.rb
rb
mit
splitrb/split
10069464
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.4.1
1
.rb
rb
mit
splitrb/split
10069465
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.4.1
1
.rb
rb
mit
splitrb/split
10069466
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.4.1
1
.rb
rb
mit
splitrb/split
10069467
<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") end describe "ab_test" do it "sh...
13
added specs to cover parameters to ab_test method
0
.rb
rb
mit
splitrb/split
10069468
<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") end describe "ab_test" do it "sh...
13
added specs to cover parameters to ab_test method
0
.rb
rb
mit
splitrb/split
10069469
<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") end describe "ab_test" do it "sh...
13
added specs to cover parameters to ab_test method
0
.rb
rb
mit
splitrb/split
10069470
<NME> helper.rb <BEF> # frozen_string_literal: true module Split module Helper OVERRIDE_PARAM_NAME = "ab_test" module_function experiment_name, goals = normalize_experiment(experiment_label) if control.nil? && alternatives.length.zero? exp = Split.configuration.experiment_for(experimen...
4
Merge pull request #117 from tamird/patch-1
4
.rb
rb
mit
splitrb/split
10069471
<NME> helper.rb <BEF> # frozen_string_literal: true module Split module Helper OVERRIDE_PARAM_NAME = "ab_test" module_function experiment_name, goals = normalize_experiment(experiment_label) if control.nil? && alternatives.length.zero? exp = Split.configuration.experiment_for(experimen...
4
Merge pull request #117 from tamird/patch-1
4
.rb
rb
mit
splitrb/split
10069472
<NME> helper.rb <BEF> # frozen_string_literal: true module Split module Helper OVERRIDE_PARAM_NAME = "ab_test" module_function experiment_name, goals = normalize_experiment(experiment_label) if control.nil? && alternatives.length.zero? exp = Split.configuration.experiment_for(experimen...
4
Merge pull request #117 from tamird/patch-1
4
.rb
rb
mit
splitrb/split
10069473
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
1
Fix Style/AndOr
1
.rb
rb
mit
splitrb/split
10069474
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
1
Fix Style/AndOr
1
.rb
rb
mit
splitrb/split
10069475
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
1
Fix Style/AndOr
1
.rb
rb
mit
splitrb/split
10069476
<NME> README <BEF> ========================================= ChiShop/DjangoPyPI ========================================= :Version: 0.1 Installation ============ Install dependencies:: $ python bootstrap.py --distribute $ ./bin/buildout Initial configuration --------------------- :: $ $EDITOR chishop/s...
2
Merge branch 'bshi/master'
2
README
bsd-3-clause
ask/chishop
10069477
<NME> transducers.js <BEF> // basic protocol helpers var symbolExists = typeof Symbol !== 'undefined'; var protocols = { iterator: symbolExists ? Symbol.iterator : '@@iterator' coll); } function fullfillsProtocols(obj /* names ... */) { var names = Array.prototype.slice.call(arguments, 1); r...
4
Merge pull request #4 from kimagure/patch-2
4
.js
js
bsd-2-clause
jlongster/transducers.js
10069478
<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") } ['red', 'blue'].should include...
8
adding support for declaring an alternative to be the "winner" so that it will always be returned
10
.rb
rb
mit
splitrb/split
10069479
<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") } ['red', 'blue'].should include...
8
adding support for declaring an alternative to be the "winner" so that it will always be returned
10
.rb
rb
mit
splitrb/split
10069480
<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") } ['red', 'blue'].should include...
8
adding support for declaring an alternative to be the "winner" so that it will always be returned
10
.rb
rb
mit
splitrb/split
10069481
<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' require 'complex' if RUBY_VERSION.match(/1\.8/) Dir['./spec/support/*.rb'].each { |f| require f } module...
0
Removed a couple old ruby 1.8 hacks (#456)
1
.rb
rb
mit
splitrb/split
10069482
<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' require 'complex' if RUBY_VERSION.match(/1\.8/) Dir['./spec/support/*.rb'].each { |f| require f } module...
0
Removed a couple old ruby 1.8 hacks (#456)
1
.rb
rb
mit
splitrb/split
10069483
<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' require 'complex' if RUBY_VERSION.match(/1\.8/) Dir['./spec/support/*.rb'].each { |f| require f } module...
0
Removed a couple old ruby 1.8 hacks (#456)
1
.rb
rb
mit
splitrb/split
10069484
<NME> configuration_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::Configuration do before(:each) { @config = Split::Configuration.new } it "should provide a default value for ignore_ip_addresses" do expect(@config.ignore_ip_addresses).to eq([]) end it "should provide ...
12
add tests for cookie length config
0
.rb
rb
mit
splitrb/split
10069485
<NME> configuration_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::Configuration do before(:each) { @config = Split::Configuration.new } it "should provide a default value for ignore_ip_addresses" do expect(@config.ignore_ip_addresses).to eq([]) end it "should provide ...
12
add tests for cookie length config
0
.rb
rb
mit
splitrb/split
10069486
<NME> configuration_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::Configuration do before(:each) { @config = Split::Configuration.new } it "should provide a default value for ignore_ip_addresses" do expect(@config.ignore_ip_addresses).to eq([]) end it "should provide ...
12
add tests for cookie length config
0
.rb
rb
mit
splitrb/split
10069487
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Add CodeTriage badge to splitrb/split (#512)
0
.md
md
mit
splitrb/split
10069488
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Add CodeTriage badge to splitrb/split (#512)
0
.md
md
mit
splitrb/split
10069489
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Add CodeTriage badge to splitrb/split (#512)
0
.md
md
mit
splitrb/split
10069490
<NME> helpers.rb <BEF> ADDFILE <MSG> Extracted dashboard helpers into a module for easier testing <DFF> @@ -0,0 +1,46 @@ +module Split + module DashboardHelpers + def url(*path_parts) + [ path_prefix, path_parts ].join("/").squeeze('/') + end + + def path_prefix + request.env['SCRIPT_NAME'] + en...
46
Extracted dashboard helpers into a module for easier testing
0
.rb
rb
mit
splitrb/split
10069491
<NME> helpers.rb <BEF> ADDFILE <MSG> Extracted dashboard helpers into a module for easier testing <DFF> @@ -0,0 +1,46 @@ +module Split + module DashboardHelpers + def url(*path_parts) + [ path_prefix, path_parts ].join("/").squeeze('/') + end + + def path_prefix + request.env['SCRIPT_NAME'] + en...
46
Extracted dashboard helpers into a module for easier testing
0
.rb
rb
mit
splitrb/split
10069492
<NME> helpers.rb <BEF> ADDFILE <MSG> Extracted dashboard helpers into a module for easier testing <DFF> @@ -0,0 +1,46 @@ +module Split + module DashboardHelpers + def url(*path_parts) + [ path_prefix, path_parts ].join("/").squeeze('/') + end + + def path_prefix + request.env['SCRIPT_NAME'] + en...
46
Extracted dashboard helpers into a module for easier testing
0
.rb
rb
mit
splitrb/split
10069493
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
3
Merge pull request #317 from lackac/patch-1
3
.md
md
mit
splitrb/split
10069494
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
3
Merge pull request #317 from lackac/patch-1
3
.md
md
mit
splitrb/split
10069495
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
3
Merge pull request #317 from lackac/patch-1
3
.md
md
mit
splitrb/split
10069496
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 1 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 1 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.1.1
1
.rb
rb
mit
splitrb/split
10069497
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 1 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 1 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.1.1
1
.rb
rb
mit
splitrb/split
10069498
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 3 MINOR = 1 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v3.1.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 3 MINOR = 1 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v3.1.1
1
.rb
rb
mit
splitrb/split
10069499
<NME> AUTHORS <BEF> Ask Solem <askh@opera.com> Russell Sim <russell.sim@gmail.com> Brian Rosner <brosner@gmail.com> Hugo Lopes Tavares <hltbra@gmail.com> Sverre Johansen <sverre.johansen@gmail.com> Bo Shi <bs@alum.mit.edu> Carl Meyer <carl@dirtcircle.com> Vinícius das Chagas Silva <vinimaster@gmail.com> Vanderson Mota ...
1
Added runeh to the authors file.
0
AUTHORS
bsd-3-clause
ask/chishop
10069500
<NME> transducers.js <BEF> // basic protocol helpers var symbolExists = typeof Symbol !== 'undefined'; var protocols = { iterator: symbolExists ? Symbol.iterator : '@@iterator' }; function throwProtocolError(name, coll) { throw new Error("don't know how to " + name + " collection: " + coll); }...
14
small bit of code cleanup
15
.js
js
bsd-2-clause
jlongster/transducers.js
10069501
<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
Call compact within Split::ExperimentCatalog.all
1
.rb
rb
mit
splitrb/split
10069502
<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
Call compact within Split::ExperimentCatalog.all
1
.rb
rb
mit
splitrb/split
10069503
<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
Call compact within Split::ExperimentCatalog.all
1
.rb
rb
mit
splitrb/split
10069504
<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
mocked out redis
0
.gemspec
gemspec
mit
splitrb/split
10069505
<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
mocked out redis
0
.gemspec
gemspec
mit
splitrb/split
10069506
<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
mocked out redis
0
.gemspec
gemspec
mit
splitrb/split
10069507
<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...
7
respect manual start configuration after an experiment has been deleted
0
.rb
rb
mit
splitrb/split
10069508
<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...
7
respect manual start configuration after an experiment has been deleted
0
.rb
rb
mit
splitrb/split
10069509
<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...
7
respect manual start configuration after an experiment has been deleted
0
.rb
rb
mit
splitrb/split
10069510
<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...
1
Merge pull request #67 from iangreenleaf/incorrect_completions
1
.rb
rb
mit
splitrb/split
10069511
<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...
1
Merge pull request #67 from iangreenleaf/incorrect_completions
1
.rb
rb
mit
splitrb/split
10069512
<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...
1
Merge pull request #67 from iangreenleaf/incorrect_completions
1
.rb
rb
mit
splitrb/split
10069513
<NME> transducers.js <BEF> // basic protocol helpers var symbolExists = typeof Symbol !== 'undefined'; var protocols = { iterator: symbolExists ? Symbol.iterator : '@@iterator' }; function throwProtocolError(name, coll) { throw new Error("don't know how to " + name + " collection: " + coll); }...
123
fix conflicts
13
.js
js
bsd-2-clause
jlongster/transducers.js
10069514
<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...
14
Merge pull request #613 from splitrb/fix-allow_multiple_experiments-control-with-versions
2
.rb
rb
mit
splitrb/split
10069515
<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...
14
Merge pull request #613 from splitrb/fix-allow_multiple_experiments-control-with-versions
2
.rb
rb
mit
splitrb/split
10069516
<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...
14
Merge pull request #613 from splitrb/fix-allow_multiple_experiments-control-with-versions
2
.rb
rb
mit
splitrb/split
10069517
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Merge pull request #409 from karmakaze/issue-403-expires-seconds-for-redis-adapter
0
.rb
rb
mit
splitrb/split
10069518
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Merge pull request #409 from karmakaze/issue-403-expires-seconds-for-redis-adapter
0
.rb
rb
mit
splitrb/split
10069519
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Merge pull request #409 from karmakaze/issue-403-expires-seconds-for-redis-adapter
0
.rb
rb
mit
splitrb/split
10069520
<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
Gracefully handle finish for experiments that have not been started
0
.rb
rb
mit
splitrb/split
10069521
<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
Gracefully handle finish for experiments that have not been started
0
.rb
rb
mit
splitrb/split
10069522
<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
Gracefully handle finish for experiments that have not been started
0
.rb
rb
mit
splitrb/split
10069523
<NME> ci.yml <BEF> name: split on: [push] jobs: test: strategy: matrix: include: - gemfile: 5.2.gemfile ruby: 2.5 - gemfile: 5.2.gemfile ruby: 2.6 - gemfile: 5.2.gemfile ruby: 2.7 - gemfile: 6.0.gemfile ruby...
1
Merge pull request #683 from splitrb/update-actions-checkout-v3
1
.yml
github/workflows/ci
mit
splitrb/split
10069524
<NME> ci.yml <BEF> name: split on: [push] jobs: test: strategy: matrix: include: - gemfile: 5.2.gemfile ruby: 2.5 - gemfile: 5.2.gemfile ruby: 2.6 - gemfile: 5.2.gemfile ruby: 2.7 - gemfile: 6.0.gemfile ruby...
1
Merge pull request #683 from splitrb/update-actions-checkout-v3
1
.yml
github/workflows/ci
mit
splitrb/split
10069525
<NME> ci.yml <BEF> name: split on: [push] jobs: test: strategy: matrix: include: - gemfile: 5.2.gemfile ruby: 2.5 - gemfile: 5.2.gemfile ruby: 2.6 - gemfile: 5.2.gemfile ruby: 2.7 - gemfile: 6.0.gemfile ruby...
1
Merge pull request #683 from splitrb/update-actions-checkout-v3
1
.yml
github/workflows/ci
mit
splitrb/split
10069526
<NME> trial_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/trial" describe Split::Trial do let(:user) { mock_user } trial = Split::Trial.new(:experiment => experiment, :alternative => alternative) trial.experiment.should == experiment trial.alternative.should == alterna...
1
if no goal is specified, the variable should be set to be an empty array.
0
.rb
rb
mit
splitrb/split
10069527
<NME> trial_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/trial" describe Split::Trial do let(:user) { mock_user } trial = Split::Trial.new(:experiment => experiment, :alternative => alternative) trial.experiment.should == experiment trial.alternative.should == alterna...
1
if no goal is specified, the variable should be set to be an empty array.
0
.rb
rb
mit
splitrb/split
10069528
<NME> trial_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/trial" describe Split::Trial do let(:user) { mock_user } trial = Split::Trial.new(:experiment => experiment, :alternative => alternative) trial.experiment.should == experiment trial.alternative.should == alterna...
1
if no goal is specified, the variable should be set to be an empty array.
0
.rb
rb
mit
splitrb/split
10069529
<NME> spec_helper.rb <BEF> # frozen_string_literal: true ENV["RACK_ENV"] = "test" require "rubygems" require "bundler/setup" require "simplecov" SimpleCov.start RSpec.configure do |config| config.order = 'random' end def session Split.configuration = Split::Configuration.new Split.redis = Redis.new S...
6
Moved all state resetting into rspec before block
0
.rb
rb
mit
splitrb/split
10069530
<NME> spec_helper.rb <BEF> # frozen_string_literal: true ENV["RACK_ENV"] = "test" require "rubygems" require "bundler/setup" require "simplecov" SimpleCov.start RSpec.configure do |config| config.order = 'random' end def session Split.configuration = Split::Configuration.new Split.redis = Redis.new S...
6
Moved all state resetting into rspec before block
0
.rb
rb
mit
splitrb/split
10069531
<NME> spec_helper.rb <BEF> # frozen_string_literal: true ENV["RACK_ENV"] = "test" require "rubygems" require "bundler/setup" require "simplecov" SimpleCov.start RSpec.configure do |config| config.order = 'random' end def session Split.configuration = Split::Configuration.new Split.redis = Redis.new S...
6
Moved all state resetting into rspec before block
0
.rb
rb
mit
splitrb/split
10069532
<NME> configuration_spec.rb <BEF> require 'spec_helper' describe Split::Configuration do it "should provide default values" do config = Split::Configuration.new config.ignore_ip_addresses.should eql([]) config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|S...
26
Merge pull request #87 from andrew/documenting-bots
11
.rb
rb
mit
splitrb/split
10069533
<NME> configuration_spec.rb <BEF> require 'spec_helper' describe Split::Configuration do it "should provide default values" do config = Split::Configuration.new config.ignore_ip_addresses.should eql([]) config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|S...
26
Merge pull request #87 from andrew/documenting-bots
11
.rb
rb
mit
splitrb/split
10069534
<NME> configuration_spec.rb <BEF> require 'spec_helper' describe Split::Configuration do it "should provide default values" do config = Split::Configuration.new config.ignore_ip_addresses.should eql([]) config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|S...
26
Merge pull request #87 from andrew/documenting-bots
11
.rb
rb
mit
splitrb/split
10069535
<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...
2
Correct syntax
2
.js
meow
mit
zacstewart/Meow
10069536
<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...
2
Correct syntax
2
.js
meow
mit
zacstewart/Meow
10069537
<NME> dashboard_helpers_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/dashboard/helpers" include Split::DashboardHelpers describe Split::DashboardHelpers do confidence_level(Complex(2e-18, -0.03)).should eql('No Change') end it "should consider a z-score of 1.96 < z ...
2
Merge pull request #96 from thomasmaas/master
5
.rb
rb
mit
splitrb/split
10069538
<NME> dashboard_helpers_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/dashboard/helpers" include Split::DashboardHelpers describe Split::DashboardHelpers do confidence_level(Complex(2e-18, -0.03)).should eql('No Change') end it "should consider a z-score of 1.96 < z ...
2
Merge pull request #96 from thomasmaas/master
5
.rb
rb
mit
splitrb/split
10069539
<NME> dashboard_helpers_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/dashboard/helpers" include Split::DashboardHelpers describe Split::DashboardHelpers do confidence_level(Complex(2e-18, -0.03)).should eql('No Change') end it "should consider a z-score of 1.96 < z ...
2
Merge pull request #96 from thomasmaas/master
5
.rb
rb
mit
splitrb/split
10069540
<NME> alternative_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/alternative" describe Split::Alternative do let(:alternative) { Split::Alternative.new("Basket", "basket_text") } let(:alternative2) { Split::Alternative.new("Cart", "basket_text") } let!(:experiment...
2
whitespace
2
.rb
rb
mit
splitrb/split
10069541
<NME> alternative_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/alternative" describe Split::Alternative do let(:alternative) { Split::Alternative.new("Basket", "basket_text") } let(:alternative2) { Split::Alternative.new("Cart", "basket_text") } let!(:experiment...
2
whitespace
2
.rb
rb
mit
splitrb/split
10069542
<NME> alternative_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" require "split/alternative" describe Split::Alternative do let(:alternative) { Split::Alternative.new("Basket", "basket_text") } let(:alternative2) { Split::Alternative.new("Cart", "basket_text") } let!(:experiment...
2
whitespace
2
.rb
rb
mit
splitrb/split
10069543
<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 ...
5
Merge pull request #393 from pakallis/dry-experiment-initialize
9
.rb
rb
mit
splitrb/split
10069544
<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 ...
5
Merge pull request #393 from pakallis/dry-experiment-initialize
9
.rb
rb
mit
splitrb/split
10069545
<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 ...
5
Merge pull request #393 from pakallis/dry-experiment-initialize
9
.rb
rb
mit
splitrb/split
10069546
<NME> user.rb <BEF> # frozen_string_literal: true require "forwardable" module Split class User extend Forwardable @user = Split::Persistence.adapter.new(context) end def cleanup_old_experiments user.keys.each do |key| experiment = ExperimentCatalog.find key_without_version(key) ...
29
* Growing the user abstraction * Refactoring
1
.rb
rb
mit
splitrb/split
10069547
<NME> user.rb <BEF> # frozen_string_literal: true require "forwardable" module Split class User extend Forwardable @user = Split::Persistence.adapter.new(context) end def cleanup_old_experiments user.keys.each do |key| experiment = ExperimentCatalog.find key_without_version(key) ...
29
* Growing the user abstraction * Refactoring
1
.rb
rb
mit
splitrb/split
10069548
<NME> user.rb <BEF> # frozen_string_literal: true require "forwardable" module Split class User extend Forwardable @user = Split::Persistence.adapter.new(context) end def cleanup_old_experiments user.keys.each do |key| experiment = ExperimentCatalog.find key_without_version(key) ...
29
* Growing the user abstraction * Refactoring
1
.rb
rb
mit
splitrb/split
10069549
<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
Drop support for Rails 4.x series
1
.gemspec
gemspec
mit
splitrb/split