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 |
|---|---|---|---|---|---|---|---|---|
10069850 | <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 |
10069851 | <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 |
10069852 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
experiment = Split::Experiment.new('basket_text', 'Basket', "Cart")
experiment.name.should eql('basket_text')
end
it "should have alternatives... | 3 | whitespace | 3 | .rb | rb | mit | splitrb/split |
10069853 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
experiment = Split::Experiment.new('basket_text', 'Basket', "Cart")
experiment.name.should eql('basket_text')
end
it "should have alternatives... | 3 | whitespace | 3 | .rb | rb | mit | splitrb/split |
10069854 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
experiment = Split::Experiment.new('basket_text', 'Basket', "Cart")
experiment.name.should eql('basket_text')
end
it "should have alternatives... | 3 | whitespace | 3 | .rb | rb | mit | splitrb/split |
10069855 | <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... | 21 | Saving an experiment multiple times should not create duplicate alternatives | 0 | .rb | rb | mit | splitrb/split |
10069856 | <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... | 21 | Saving an experiment multiple times should not create duplicate alternatives | 0 | .rb | rb | mit | splitrb/split |
10069857 | <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... | 21 | Saving an experiment multiple times should not create duplicate alternatives | 0 | .rb | rb | mit | splitrb/split |
10069858 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
describe Split::DashboardHelpers do
describe 'confidence_level' do
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
... | 13 | Merge pull request #221 from caser/zscore-fix | 3 | .rb | rb | mit | splitrb/split |
10069859 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
describe Split::DashboardHelpers do
describe 'confidence_level' do
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
... | 13 | Merge pull request #221 from caser/zscore-fix | 3 | .rb | rb | mit | splitrb/split |
10069860 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
describe Split::DashboardHelpers do
describe 'confidence_level' do
it 'should handle very small numbers' do
confidence_level(Complex(2e-18, -0.03)).should eql('No Change')
end
... | 13 | Merge pull request #221 from caser/zscore-fix | 3 | .rb | rb | mit | splitrb/split |
10069861 | <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)

[
end
<MSG> v3.0.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
- MAJOR = 2
- MINOR = 2
+ MAJOR = 3
+ MINOR = 0
PATCH = 0
VERS... | 2 | v3.0.0 | 2 | .rb | rb | mit | splitrb/split |
10069865 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v3.0.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
- MAJOR = 2
- MINOR = 2
+ MAJOR = 3
+ MINOR = 0
PATCH = 0
VERS... | 2 | v3.0.0 | 2 | .rb | rb | mit | splitrb/split |
10069866 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v3.0.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
- MAJOR = 2
- MINOR = 2
+ MAJOR = 3
+ MINOR = 0
PATCH = 0
VERS... | 2 | v3.0.0 | 2 | .rb | rb | mit | splitrb/split |
10069867 | <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 error initialization | 1 | .rb | rb | mit | splitrb/split |
10069868 | <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 error initialization | 1 | .rb | rb | mit | splitrb/split |
10069869 | <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 error initialization | 1 | .rb | rb | mit | splitrb/split |
10069870 | <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 | Looser rack-test dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10069871 | <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 | Looser rack-test dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10069872 | <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 | Looser rack-test dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10069873 | <NME> encapsulated_helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::EncapsulatedHelper do
include Split::EncapsulatedHelper
def params
raise NoMethodError, "This method is not really defined"
end
describe "ab_test" do
before do
allow_any_instance_of(Spli... | 1 | Fix warning: ambiguous first argument; put parentheses or a space even after `/' operator | 1 | .rb | rb | mit | splitrb/split |
10069874 | <NME> encapsulated_helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::EncapsulatedHelper do
include Split::EncapsulatedHelper
def params
raise NoMethodError, "This method is not really defined"
end
describe "ab_test" do
before do
allow_any_instance_of(Spli... | 1 | Fix warning: ambiguous first argument; put parentheses or a space even after `/' operator | 1 | .rb | rb | mit | splitrb/split |
10069875 | <NME> encapsulated_helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::EncapsulatedHelper do
include Split::EncapsulatedHelper
def params
raise NoMethodError, "This method is not really defined"
end
describe "ab_test" do
before do
allow_any_instance_of(Spli... | 1 | Fix warning: ambiguous first argument; put parentheses or a space even after `/' operator | 1 | .rb | rb | mit | splitrb/split |
10069876 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese spider',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
attr_accessor :db_failover_allow_parameter_override
... | 16 | Add more bot user agents | 2 | .rb | rb | mit | splitrb/split |
10069877 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese spider',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
attr_accessor :db_failover_allow_parameter_override
... | 16 | Add more bot user agents | 2 | .rb | rb | mit | splitrb/split |
10069878 | <NME> configuration.rb
<BEF> module Split
class Configuration
BOTS = {
'Baidu' => 'Chinese spider',
'Gigabot' => 'Gigabot spider',
'Googlebot' => 'Google spider',
'libwww-perl' => 'Perl client-server library loved by script kids',
attr_accessor :db_failover_allow_parameter_override
... | 16 | Add more bot user agents | 2 | .rb | rb | mit | splitrb/split |
10069879 | <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... | 41 | Added tests | 0 | .rb | rb | mit | splitrb/split |
10069880 | <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... | 41 | Added tests | 0 | .rb | rb | mit | splitrb/split |
10069881 | <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... | 41 | Added tests | 0 | .rb | rb | mit | splitrb/split |
10069882 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.3
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.3 | 1 | .rb | rb | mit | splitrb/split |
10069883 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.3
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.3 | 1 | .rb | rb | mit | splitrb/split |
10069884 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.3
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.3 | 1 | .rb | rb | mit | splitrb/split |
10069885 | <NME> expand.ts
<BEF> import { strictEqual as equal } from 'assert';
import expand, { resolveConfig } from '../src';
describe('Expand Abbreviation', () => {
describe('Markup', () => {
it('basic', () => {
equal(expand('input[value="text$"]*2'), '<input type="text" value="text1"><input type="text... | 5 | Initial implementation of reversed attribute merge | 0 | .ts | ts | mit | emmetio/emmet |
10069886 | <NME> expand.ts
<BEF> import { strictEqual as equal } from 'assert';
import expand, { resolveConfig } from '../src';
describe('Expand Abbreviation', () => {
describe('Markup', () => {
it('basic', () => {
equal(expand('input[value="text$"]*2'), '<input type="text" value="text1"><input type="text... | 5 | Initial implementation of reversed attribute merge | 0 | .ts | ts | mit | emmetio/emmet |
10069887 | <NME> README
<BEF> =========================================
ChiShop/DjangoPyPI
=========================================
:Version: 0.1
Installation
============
Install dependencies::
$ python bootstrap.py --distribute
$ ./bin/buildout
Initial configuration
Initial configuration
---------------------
... | 7 | Added note about media/dists ownership | 0 | README | bsd-3-clause | ask/chishop | |
10069888 | <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],... | 5 | Increment participant count when `force_alternative` pushed | 3 | .rb | rb | mit | splitrb/split |
10069889 | <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],... | 5 | Increment participant count when `force_alternative` pushed | 3 | .rb | rb | mit | splitrb/split |
10069890 | <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],... | 5 | Increment participant count when `force_alternative` pushed | 3 | .rb | rb | mit | splitrb/split |
10069891 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 1 | chore(project): Add tsconfig.json file and cleanup | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10069892 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 1 | chore(project): Add tsconfig.json file and cleanup | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10069893 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 1 | chore(project): Add tsconfig.json file and cleanup | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10069894 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.4
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069895 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.4
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069896 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 1
MINOR = 4
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v1.4.4
<DFF> @@ -2,6 +2,6 @@
module Split
MAJOR = 1
MINOR = 4
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v1.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069897 | <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... | 3 | Fix unused variable warnings on specs | 3 | .rb | rb | mit | splitrb/split |
10069898 | <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... | 3 | Fix unused variable warnings on specs | 3 | .rb | rb | mit | splitrb/split |
10069899 | <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... | 3 | Fix unused variable warnings on specs | 3 | .rb | rb | mit | splitrb/split |
10069900 | <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.licenses = ['MIT']
s.email = ["andrewnez@gmail.com"]
s.homepa... | 1 | Update split.gemspec | 1 | .gemspec | gemspec | mit | splitrb/split |
10069901 | <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.licenses = ['MIT']
s.email = ["andrewnez@gmail.com"]
s.homepa... | 1 | Update split.gemspec | 1 | .gemspec | gemspec | mit | splitrb/split |
10069902 | <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.licenses = ['MIT']
s.email = ["andrewnez@gmail.com"]
s.homepa... | 1 | Update split.gemspec | 1 | .gemspec | gemspec | mit | splitrb/split |
10069903 | <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
... | 3 | A much cleaner alternative reset | 1 | .rb | rb | mit | splitrb/split |
10069904 | <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
... | 3 | A much cleaner alternative reset | 1 | .rb | rb | mit | splitrb/split |
10069905 | <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
... | 3 | A much cleaner alternative reset | 1 | .rb | rb | mit | splitrb/split |
10069906 | <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 ... | 1 | Merge pull request #131 from dimko/patch-2 | 1 | .rb | rb | mit | splitrb/split |
10069907 | <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 ... | 1 | Merge pull request #131 from dimko/patch-2 | 1 | .rb | rb | mit | splitrb/split |
10069908 | <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 ... | 1 | Merge pull request #131 from dimko/patch-2 | 1 | .rb | rb | mit | splitrb/split |
10069909 | <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
... | 5 | whitespace | 5 | .rb | rb | mit | splitrb/split |
10069910 | <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
... | 5 | whitespace | 5 | .rb | rb | mit | splitrb/split |
10069911 | <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
... | 5 | whitespace | 5 | .rb | rb | mit | splitrb/split |
10069912 | <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... | 8 | Ignore previewing requests (#531) | 0 | .rb | rb | mit | splitrb/split |
10069913 | <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... | 8 | Ignore previewing requests (#531) | 0 | .rb | rb | mit | splitrb/split |
10069914 | <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... | 8 | Ignore previewing requests (#531) | 0 | .rb | rb | mit | splitrb/split |
10069915 | <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
... | 2 | Merge pull request #640 from splitrb/reduce-extra-hset-call | 2 | .rb | rb | mit | splitrb/split |
10069916 | <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
... | 2 | Merge pull request #640 from splitrb/reduce-extra-hset-call | 2 | .rb | rb | mit | splitrb/split |
10069917 | <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
... | 2 | Merge pull request #640 from splitrb/reduce-extra-hset-call | 2 | .rb | rb | mit | splitrb/split |
10069918 | <NME> AUTHORS
<BEF> Ask Solem <askh@opera.com>
Rune Halvorsen <runeh@opera.com>
Russell Sim <russell.sim@gmail.com>
Brian Rosner <brosner@gmail.com>
Hugo Lopes Tavares <hltbra@gmail.com>
Bo Shi <bs@alum.mit.edu>
Carl Meyer <carl@dirtcircle.com>
Vinícius das Chagas Silva <vinimaster@gmail.com>
Vanderson Mota dos Santos ... | 1 | Added Sverre Johansen to AUTHORS | 0 | AUTHORS | bsd-3-clause | ask/chishop | |
10069919 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> Version 0.7.3
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | Version 0.7.3 | 1 | .rb | rb | mit | splitrb/split |
10069920 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> Version 0.7.3
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | Version 0.7.3 | 1 | .rb | rb | mit | splitrb/split |
10069921 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 7
PATCH = 2
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> Version 0.7.3
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 7
- PATCH = 2
+ PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | Version 0.7.3 | 1 | .rb | rb | mit | splitrb/split |
10069922 | <NME> dashboard.js
<BEF> function confirmReset() {
var agree=confirm("This will delete all data for this experiment?");
if (agree)
return true;
else
return false;
}
function confirmDelete() {
var agree=confirm("Are you sure you want to delete this experiment and all its data?");
if (agree)
return... | 11 | refactor dashboard js | 15 | .js | js | mit | splitrb/split |
10069923 | <NME> dashboard.js
<BEF> function confirmReset() {
var agree=confirm("This will delete all data for this experiment?");
if (agree)
return true;
else
return false;
}
function confirmDelete() {
var agree=confirm("Are you sure you want to delete this experiment and all its data?");
if (agree)
return... | 11 | refactor dashboard js | 15 | .js | js | mit | splitrb/split |
10069924 | <NME> dashboard.js
<BEF> function confirmReset() {
var agree=confirm("This will delete all data for this experiment?");
if (agree)
return true;
else
return false;
}
function confirmDelete() {
var agree=confirm("Are you sure you want to delete this experiment and all its data?");
if (agree)
return... | 11 | refactor dashboard js | 15 | .js | js | mit | splitrb/split |
10069925 | <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);
}... | 4 | Merge remote-tracking branch 'origin/master' | 0 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069926 | <NME> FUNDING.yml
<BEF> # These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: emmet
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift p... | 1 | Update FUNDING.yml | 1 | .yml | github/FUNDING | mit | emmetio/emmet |
10069927 | <NME> FUNDING.yml
<BEF> # These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: emmet
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift p... | 1 | Update FUNDING.yml | 1 | .yml | github/FUNDING | mit | emmetio/emmet |
10069928 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.3"
+ VERSION = "0.4.4"
end
| 1 | Version 0.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069929 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.3"
+ VERSION = "0.4.4"
end
| 1 | Version 0.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069930 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.3"
end
VERSION = "4.0.1"
end
<MSG> Version 0.4.4
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.4.3"
+ VERSION = "0.4.4"
end
| 1 | Version 0.4.4 | 1 | .rb | rb | mit | splitrb/split |
10069931 | <NME> loadclassifiers.py
<BEF> ADDFILE
<MSG> Added management command for loading classifiers from pypi
<DFF> @@ -0,0 +1,53 @@
+"""
+Management command for loading all the known classifiers from the official
+pypi, or from a file/url.
+
+Note, pypi docs says to not add classifiers that are not used in submitted
+proje... | 53 | Added management command for loading classifiers from pypi | 0 | .py | py | bsd-3-clause | ask/chishop |
10069932 | <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... | 2 | Merge pull request #28 from econsultancy/tidy-up | 2 | .rb | rb | mit | splitrb/split |
10069937 | <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 | Merge pull request #28 from econsultancy/tidy-up | 2 | .rb | rb | mit | splitrb/split |
10069938 | <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 | Merge pull request #28 from econsultancy/tidy-up | 2 | .rb | rb | mit | splitrb/split |
10069939 | <NME> utils.py
<BEF> ADDFILE
<MSG> improved distutils POST data handling based on how PyPI actually does it
<DFF> @@ -0,0 +1,38 @@
+import sys
+import traceback
+
+from django.core.files.uploadedfile import SimpleUploadedFile
+from django.utils.datastructures import MultiValueDict
+
+
+def transmute(f):
+ if hasatt... | 38 | improved distutils POST data handling based on how PyPI actually does it | 0 | .py | py | bsd-3-clause | ask/chishop |
10069940 | <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... | 8 | fix user participating alternative not found (#536) | 0 | .rb | rb | mit | splitrb/split |
10069941 | <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... | 8 | fix user participating alternative not found (#536) | 0 | .rb | rb | mit | splitrb/split |
10069942 | <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... | 8 | fix user participating alternative not found (#536) | 0 | .rb | rb | mit | splitrb/split |
10069943 | <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)

[
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 0 | Back out `Split.configuration.disable_metrics` | 2 | .rb | rb | mit | splitrb/split |
10069947 | <NME> metric.rb
<BEF> # frozen_string_literal: true
module Split
class Metric
attr_accessor :name
attr_accessor :experiments
def initialize(attrs = {})
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 0 | Back out `Split.configuration.disable_metrics` | 2 | .rb | rb | mit | splitrb/split |
10069948 | <NME> metric.rb
<BEF> # frozen_string_literal: true
module Split
class Metric
attr_accessor :name
attr_accessor :experiments
def initialize(attrs = {})
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 0 | Back out `Split.configuration.disable_metrics` | 2 | .rb | rb | mit | splitrb/split |
10069949 | <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 | conversion rate is 0..1 as of 7672b5b373d18b5d43e88a65355d357a18dc5957 | 1 | .rb | rb | mit | splitrb/split |