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 |
|---|---|---|---|---|---|---|---|---|
10069750 | <NME> alternative_spec.rb
<BEF> ADDFILE
<MSG> Added alternative tests
<DFF> @@ -0,0 +1,95 @@
+require 'spec_helper'
+require 'split/alternative'
+
+describe Split::Alternative do
+ before(:each) { Split.redis.flushall }
+
+ it "should have a name" do
+ experiment = Split::Experiment.new('basket_text', 'Basket', "C... | 95 | Added alternative tests | 0 | .rb | rb | mit | splitrb/split |
10069751 | <NME> alternative_spec.rb
<BEF> ADDFILE
<MSG> Added alternative tests
<DFF> @@ -0,0 +1,95 @@
+require 'spec_helper'
+require 'split/alternative'
+
+describe Split::Alternative do
+ before(:each) { Split.redis.flushall }
+
+ it "should have a name" do
+ experiment = Split::Experiment.new('basket_text', 'Basket', "C... | 95 | Added alternative tests | 0 | .rb | rb | mit | splitrb/split |
10069752 | <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... | 32 | Merge pull request #108 from iangreenleaf/graceful_failure | 17 | .rb | rb | mit | splitrb/split |
10069753 | <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... | 32 | Merge pull request #108 from iangreenleaf/graceful_failure | 17 | .rb | rb | mit | splitrb/split |
10069754 | <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... | 32 | Merge pull request #108 from iangreenleaf/graceful_failure | 17 | .rb | rb | mit | splitrb/split |
10069755 | <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 | Don't record participation once a winner is chosen | 1 | .rb | rb | mit | splitrb/split |
10069756 | <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 | Don't record participation once a winner is chosen | 1 | .rb | rb | mit | splitrb/split |
10069757 | <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 | Don't record participation once a winner is chosen | 1 | .rb | rb | mit | splitrb/split |
10069758 | <NME> urls.py
<BEF> # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url, include
urlpatterns = patterns("djangopypi.views",
# Simple PyPI
url(r'^/?$', "djangopypi.views.simple",
name="djangopypi-simple"),
url(r'^(?P<dist_name>[\w\d_\-]+)/(?P<version>[\w\.\d\-_]+)/?',
... | 2 | Allow "." in project names. | 2 | .py | py | bsd-3-clause | ask/chishop |
10069759 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.5
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.4"
+ VERSION = "0.4.5"
end
| 1 | Version 0.4.5 | 1 | .rb | rb | mit | splitrb/split |
10069760 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.5
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.4"
+ VERSION = "0.4.5"
end
| 1 | Version 0.4.5 | 1 | .rb | rb | mit | splitrb/split |
10069761 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.5
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.4"
+ VERSION = "0.4.5"
end
| 1 | Version 0.4.5 | 1 | .rb | rb | mit | splitrb/split |
10069762 | <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... | 11 | Return nil if Experiment#find does not match an experiment | 5 | .rb | rb | mit | splitrb/split |
10069763 | <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... | 11 | Return nil if Experiment#find does not match an experiment | 5 | .rb | rb | mit | splitrb/split |
10069764 | <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... | 11 | Return nil if Experiment#find does not match an experiment | 5 | .rb | rb | mit | splitrb/split |
10069765 | <NME> markup.ts
<BEF> import { strictEqual } from 'assert';
import parse from '../src/markup';
import resolveConfig from '../src/config';
import { ResolvedConfig } from '../src/types';
import stringify from './assets/stringify';
const defaultConfig = resolveConfig({ type: 'markup' });
// Reset snippets to keep raw sni... | 83 | Support XSL, JSX and BEM addons | 12 | .ts | ts | mit | emmetio/emmet |
10069766 | <NME> markup.ts
<BEF> import { strictEqual } from 'assert';
import parse from '../src/markup';
import resolveConfig from '../src/config';
import { ResolvedConfig } from '../src/types';
import stringify from './assets/stringify';
const defaultConfig = resolveConfig({ type: 'markup' });
// Reset snippets to keep raw sni... | 83 | Support XSL, JSX and BEM addons | 12 | .ts | ts | mit | emmetio/emmet |
10069767 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese search engine',
'Sogou' => 'Chinese search engine',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
'lwp... | 25 | Categorize & alphabetize bot list | 20 | .rb | rb | mit | splitrb/split |
10069768 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese search engine',
'Sogou' => 'Chinese search engine',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
'lwp... | 25 | Categorize & alphabetize bot list | 20 | .rb | rb | mit | splitrb/split |
10069769 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese search engine',
'Sogou' => 'Chinese search engine',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
'lwp... | 25 | Categorize & alphabetize bot list | 20 | .rb | rb | mit | splitrb/split |
10069770 | <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 | Merge pull request #105 from controlshift/master | 0 | .gemspec | gemspec | mit | splitrb/split |
10069771 | <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 | Merge pull request #105 from controlshift/master | 0 | .gemspec | gemspec | mit | splitrb/split |
10069772 | <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 | Merge pull request #105 from controlshift/master | 0 | .gemspec | gemspec | mit | splitrb/split |
10069773 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
end
end
expect(confidence_leve... | 9 | Add confidence helper tests. | 1 | .rb | rb | mit | splitrb/split |
10069774 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
end
end
expect(confidence_leve... | 9 | Add confidence helper tests. | 1 | .rb | rb | mit | splitrb/split |
10069775 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
end
end
expect(confidence_leve... | 9 | Add confidence helper tests. | 1 | .rb | rb | mit | splitrb/split |
10069776 | <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 | Merge pull request #25 from lautis/lazy-redis | 0 | .gemspec | gemspec | mit | splitrb/split |
10069777 | <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 | Merge pull request #25 from lautis/lazy-redis | 0 | .gemspec | gemspec | mit | splitrb/split |
10069778 | <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 | Merge pull request #25 from lautis/lazy-redis | 0 | .gemspec | gemspec | mit | splitrb/split |
10069779 | <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 | more useless checks | 4 | .rb | rb | mit | splitrb/split |
10069780 | <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 | more useless checks | 4 | .rb | rb | mit | splitrb/split |
10069781 | <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 | more useless checks | 4 | .rb | rb | mit | splitrb/split |
10069782 | <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)
... | 1 | Merge pull request #245 from andrew/db_failover-fix | 1 | .rb | rb | mit | splitrb/split |
10069783 | <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)
... | 1 | Merge pull request #245 from andrew/db_failover-fix | 1 | .rb | rb | mit | splitrb/split |
10069784 | <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)
... | 1 | Merge pull request #245 from andrew/db_failover-fix | 1 | .rb | rb | mit | splitrb/split |
10069785 | <NME> style.css
<BEF> html { background:#efefef; font-family:Arial, Verdana, sans-serif; font-size:13px; }
body { padding:0; margin:0; }
.header { background:#000; padding:8px 5% 0 5%; border-bottom:1px solid #444;border-bottom:5px solid #0080FF;}
.header h1 { color:#333; font-size:90%; font-weight:bold; margin-bottom... | 162 | Reformatted dashboard css | 42 | .css | css | mit | splitrb/split |
10069786 | <NME> style.css
<BEF> html { background:#efefef; font-family:Arial, Verdana, sans-serif; font-size:13px; }
body { padding:0; margin:0; }
.header { background:#000; padding:8px 5% 0 5%; border-bottom:1px solid #444;border-bottom:5px solid #0080FF;}
.header h1 { color:#333; font-size:90%; font-weight:bold; margin-bottom... | 162 | Reformatted dashboard css | 42 | .css | css | mit | splitrb/split |
10069787 | <NME> style.css
<BEF> html { background:#efefef; font-family:Arial, Verdana, sans-serif; font-size:13px; }
body { padding:0; margin:0; }
.header { background:#000; padding:8px 5% 0 5%; border-bottom:1px solid #444;border-bottom:5px solid #0080FF;}
.header h1 { color:#333; font-size:90%; font-weight:bold; margin-bottom... | 162 | Reformatted dashboard css | 42 | .css | css | mit | splitrb/split |
10069788 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<input type="text" placeholder="Begin typing to filter" id="filter" />
<input type="butto... | 3 | Implement filtering dashboard by active/complete experiments. | 1 | .erb | erb | mit | splitrb/split |
10069789 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<input type="text" placeholder="Begin typing to filter" id="filter" />
<input type="butto... | 3 | Implement filtering dashboard by active/complete experiments. | 1 | .erb | erb | mit | splitrb/split |
10069790 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<input type="text" placeholder="Begin typing to filter" id="filter" />
<input type="butto... | 3 | Implement filtering dashboard by active/complete experiments. | 1 | .erb | erb | mit | splitrb/split |
10069791 | <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 | Merge pull request #583 from giraffate/remove_rubyforge_project | 2 | .gemspec | gemspec | mit | splitrb/split |
10069792 | <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 | Merge pull request #583 from giraffate/remove_rubyforge_project | 2 | .gemspec | gemspec | mit | splitrb/split |
10069793 | <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 | Merge pull request #583 from giraffate/remove_rubyforge_project | 2 | .gemspec | gemspec | mit | splitrb/split |
10069794 | <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... | 1 | Fix code styles | 1 | .rb | rb | mit | splitrb/split |
10069795 | <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... | 1 | Fix code styles | 1 | .rb | rb | mit | splitrb/split |
10069796 | <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... | 1 | Fix code styles | 1 | .rb | rb | mit | splitrb/split |
10069797 | <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... | 9 | Merge pull request #33 from layflags/master | 3 | .rb | rb | mit | splitrb/split |
10069798 | <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... | 9 | Merge pull request #33 from layflags/master | 3 | .rb | rb | mit | splitrb/split |
10069799 | <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... | 9 | Merge pull request #33 from layflags/master | 3 | .rb | rb | mit | splitrb/split |
10069800 | <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 | Relax bundler version slightly to make travis happy | 1 | .gemspec | gemspec | mit | splitrb/split |
10069801 | <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 | Relax bundler version slightly to make travis happy | 1 | .gemspec | gemspec | mit | splitrb/split |
10069802 | <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 | Relax bundler version slightly to make travis happy | 1 | .gemspec | gemspec | mit | splitrb/split |
10069803 | <NME> models.py
<BEF> import os
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
OS_NAMES = (
("aix", "AIX"),
("beos", "BeOS"),
("debian", "Debian Linux"),
("dos", "DOS"),
... | 1 | Include project name and platform in the Release`s __unicode__ | 1 | .py | py | bsd-3-clause | ask/chishop |
10069804 | <NME> cookie_adapter.rb
<BEF> # frozen_string_literal: true
require "json"
module Persistence
class CookieAdapter
EXPIRES = Time.now + 31536000 # One year from now
def initialize(context)
@cookies = context.send(:cookies)
end
def [](key)
end
def [](key)
has... | 6 | allow cookie length configuration | 3 | .rb | rb | mit | splitrb/split |
10069805 | <NME> cookie_adapter.rb
<BEF> # frozen_string_literal: true
require "json"
module Persistence
class CookieAdapter
EXPIRES = Time.now + 31536000 # One year from now
def initialize(context)
@cookies = context.send(:cookies)
end
def [](key)
end
def [](key)
has... | 6 | allow cookie length configuration | 3 | .rb | rb | mit | splitrb/split |
10069806 | <NME> cookie_adapter.rb
<BEF> # frozen_string_literal: true
require "json"
module Persistence
class CookieAdapter
EXPIRES = Time.now + 31536000 # One year from now
def initialize(context)
@cookies = context.send(:cookies)
end
def [](key)
end
def [](key)
has... | 6 | allow cookie length configuration | 3 | .rb | rb | mit | splitrb/split |
10069807 | <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)

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

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

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

[ { true }
let!(:combine... | 3 | Fix combined experiments (#502) | 3 | .rb | rb | mit | splitrb/split |
10069817 | <NME> combined_experiments_helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/combined_experiments_helper"
describe Split::CombinedExperimentsHelper do
include Split::CombinedExperimentsHelper
describe "ab_combined_test" do
let!(:config_enabled) { true }
let!(:combine... | 3 | Fix combined experiments (#502) | 3 | .rb | rb | mit | splitrb/split |
10069818 | <NME> combined_experiments_helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/combined_experiments_helper"
describe Split::CombinedExperimentsHelper do
include Split::CombinedExperimentsHelper
describe "ab_combined_test" do
let!(:config_enabled) { true }
let!(:combine... | 3 | Fix combined experiments (#502) | 3 | .rb | rb | mit | splitrb/split |
10069819 | <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... | 5 | Table tidy | 4 | .css | css | mit | splitrb/split |
10069820 | <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... | 5 | Table tidy | 4 | .css | css | mit | splitrb/split |
10069821 | <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... | 5 | Table tidy | 4 | .css | css | mit | splitrb/split |
10069822 | <NME> zscore.rb
<BEF> # frozen_string_literal: true
module Split
class Zscore
include Math
def self.calculate(p1, n1, p2, n2)
# p_1 = Pa = proportion of users who converted within the experiment split (conversion rate)
# p_2 = Pc = proportion of users who converted within the control split (conv... | 1 | Merge pull request #681 from splitrb/fix-rubocop-offenses | 1 | .rb | rb | mit | splitrb/split |
10069823 | <NME> zscore.rb
<BEF> # frozen_string_literal: true
module Split
class Zscore
include Math
def self.calculate(p1, n1, p2, n2)
# p_1 = Pa = proportion of users who converted within the experiment split (conversion rate)
# p_2 = Pc = proportion of users who converted within the control split (conv... | 1 | Merge pull request #681 from splitrb/fix-rubocop-offenses | 1 | .rb | rb | mit | splitrb/split |
10069824 | <NME> zscore.rb
<BEF> # frozen_string_literal: true
module Split
class Zscore
include Math
def self.calculate(p1, n1, p2, n2)
# p_1 = Pa = proportion of users who converted within the experiment split (conversion rate)
# p_2 = Pc = proportion of users who converted within the control split (conv... | 1 | Merge pull request #681 from splitrb/fix-rubocop-offenses | 1 | .rb | rb | mit | splitrb/split |
10069825 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context) { "some context" }
let(:logged_in_adapter_instance) { double }
let(:logged_in_adapter) do
Class.new.tap { |c| allow(c).to receive(:new) { logged_in_adapter_instance... | 2 | Decrement participant count when overriding version | 0 | .rb | rb | mit | splitrb/split |
10069826 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context) { "some context" }
let(:logged_in_adapter_instance) { double }
let(:logged_in_adapter) do
Class.new.tap { |c| allow(c).to receive(:new) { logged_in_adapter_instance... | 2 | Decrement participant count when overriding version | 0 | .rb | rb | mit | splitrb/split |
10069827 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context) { "some context" }
let(:logged_in_adapter_instance) { double }
let(:logged_in_adapter) do
Class.new.tap { |c| allow(c).to receive(:new) { logged_in_adapter_instance... | 2 | Decrement participant count when overriding version | 0 | .rb | rb | mit | splitrb/split |
10069828 | <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... | 2 | changed name of enabled flag | 2 | .rb | rb | mit | splitrb/split |
10069829 | <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... | 2 | changed name of enabled flag | 2 | .rb | rb | mit | splitrb/split |
10069830 | <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... | 2 | changed name of enabled flag | 2 | .rb | rb | mit | splitrb/split |
10069831 | <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)
... | 1 | Fix binding of ignore_filter (#533) | 1 | .rb | rb | mit | splitrb/split |
10069832 | <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)
... | 1 | Fix binding of ignore_filter (#533) | 1 | .rb | rb | mit | splitrb/split |
10069833 | <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)
... | 1 | Fix binding of ignore_filter (#533) | 1 | .rb | rb | mit | splitrb/split |
10069834 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 0 | Remove Explicit Return (#441) | 1 | .rb | rb | mit | splitrb/split |
10069835 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 0 | Remove Explicit Return (#441) | 1 | .rb | rb | mit | splitrb/split |
10069836 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 0 | Remove Explicit Return (#441) | 1 | .rb | rb | mit | splitrb/split |
10069837 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 4 | An alternative can load its experiment | 0 | .rb | rb | mit | splitrb/split |
10069838 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 4 | An alternative can load its experiment | 0 | .rb | rb | mit | splitrb/split |
10069839 | <NME> alternative.rb
<BEF> # frozen_string_literal: true
module Split
class Alternative
attr_accessor :name
attr_accessor :experiment_name
attr_accessor :weight
attr_accessor :recorded_info
def initialize(name, experiment_name)
@experiment_name = experiment_name
if Hash === name
... | 4 | An alternative can load its experiment | 0 | .rb | rb | mit | splitrb/split |
10069840 | <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],... | 30 | Fix `force_aleternative` for experiments with incremented version | 10 | .rb | rb | mit | splitrb/split |
10069841 | <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],... | 30 | Fix `force_aleternative` for experiments with incremented version | 10 | .rb | rb | mit | splitrb/split |
10069842 | <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],... | 30 | Fix `force_aleternative` for experiments with incremented version | 10 | .rb | rb | mit | splitrb/split |
10069843 | <NME> CHANGELOG.md
<BEF> ## 3.2.0 (September 21st, 2017)
Features:
- Remove redis_url impl. Deprecated on version 2.2 (@andrehjr, #631)
- Remove thread_safe config as redis-rb is thread_safe by default (@andrehjr, #630)
- Fix typo of in `Split::Trial` class variable (TomasBarry, #644)
- Single HSET to update values, i... | 23 | Update changelog for 3.3.0 | 0 | .md | md | mit | splitrb/split |
10069844 | <NME> CHANGELOG.md
<BEF> ## 3.2.0 (September 21st, 2017)
Features:
- Remove redis_url impl. Deprecated on version 2.2 (@andrehjr, #631)
- Remove thread_safe config as redis-rb is thread_safe by default (@andrehjr, #630)
- Fix typo of in `Split::Trial` class variable (TomasBarry, #644)
- Single HSET to update values, i... | 23 | Update changelog for 3.3.0 | 0 | .md | md | mit | splitrb/split |
10069845 | <NME> CHANGELOG.md
<BEF> ## 3.2.0 (September 21st, 2017)
Features:
- Remove redis_url impl. Deprecated on version 2.2 (@andrehjr, #631)
- Remove thread_safe config as redis-rb is thread_safe by default (@andrehjr, #630)
- Fix typo of in `Split::Trial` class variable (TomasBarry, #644)
- Single HSET to update values, i... | 23 | Update changelog for 3.3.0 | 0 | .md | md | mit | splitrb/split |
10069846 | <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)

[![Code Climate](https://codeclimate.com/github/splitrb/split/badges/... | 1 | Removing the comment which says reboot required for new experiment config to take effect | 2 | .md | md | mit | splitrb/split |
10069849 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 2 | Remove thread_safe config as redis-rb is thread_safe by default since 2.2 | 2 | .rb | rb | mit | splitrb/split |