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 |
|---|---|---|---|---|---|---|---|---|
10069350 | <NME> version.rb
<BEF> module Split
VERSION = "0.3.1"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.2
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.3.1"
+ VERSION = "0.3.2"
end
| 1 | Version 0.3.2 | 1 | .rb | rb | mit | splitrb/split |
10069351 | <NME> version.rb
<BEF> module Split
VERSION = "0.3.1"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.2
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.3.1"
+ VERSION = "0.3.2"
end
| 1 | Version 0.3.2 | 1 | .rb | rb | mit | splitrb/split |
10069352 | <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... | 1 | Corrects documentation for ignoring ip addresses. | 1 | .rb | rb | mit | splitrb/split |
10069353 | <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... | 1 | Corrects documentation for ignoring ip addresses. | 1 | .rb | rb | mit | splitrb/split |
10069354 | <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... | 1 | Corrects documentation for ignoring ip addresses. | 1 | .rb | rb | mit | splitrb/split |
10069355 | <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... | 4 | Added warning for ruby 1.8 users who pass a single hash of alterntives | 4 | .rb | rb | mit | splitrb/split |
10069356 | <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... | 4 | Added warning for ruby 1.8 users who pass a single hash of alterntives | 4 | .rb | rb | mit | splitrb/split |
10069357 | <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... | 4 | Added warning for ruby 1.8 users who pass a single hash of alterntives | 4 | .rb | rb | mit | splitrb/split |
10069358 | <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... | 8 | added specs to flush out jruby issues | 0 | .rb | rb | mit | splitrb/split |
10069359 | <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... | 8 | added specs to flush out jruby issues | 0 | .rb | rb | mit | splitrb/split |
10069360 | <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... | 8 | added specs to flush out jruby issues | 0 | .rb | rb | mit | splitrb/split |
10069361 | <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... | 135 | Merge pull request #97 from iangreenleaf/experiments_config | 1 | .rb | rb | mit | splitrb/split |
10069362 | <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... | 135 | Merge pull request #97 from iangreenleaf/experiments_config | 1 | .rb | rb | mit | splitrb/split |
10069363 | <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... | 135 | Merge pull request #97 from iangreenleaf/experiments_config | 1 | .rb | rb | mit | splitrb/split |
10069364 | <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... | 42 | refactoring I did on last monday | 86 | .js | meow | mit | zacstewart/Meow |
10069365 | <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... | 42 | refactoring I did on last monday | 86 | .js | meow | mit | zacstewart/Meow |
10069366 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
describe Split::DashboardHelpers do
describe "confidence_level" do
it "should handle very small numbers" do
expect(confidence_level(Complex(2e-18, -0... | 2 | Suppress `warning: BigDecimal.new is deprecated;` in specs | 2 | .rb | rb | mit | splitrb/split |
10069367 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
describe Split::DashboardHelpers do
describe "confidence_level" do
it "should handle very small numbers" do
expect(confidence_level(Complex(2e-18, -0... | 2 | Suppress `warning: BigDecimal.new is deprecated;` in specs | 2 | .rb | rb | mit | splitrb/split |
10069368 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
describe Split::DashboardHelpers do
describe "confidence_level" do
it "should handle very small numbers" do
expect(confidence_level(Complex(2e-18, -0... | 2 | Suppress `warning: BigDecimal.new is deprecated;` in specs | 2 | .rb | rb | mit | splitrb/split |
10069369 | <NME> transducers.js
<BEF>
// basic protocol helpers
var symbolExists = typeof Symbol !== 'undefined';
var protocols = {
coll);
}
function fulfillsProtocol(obj, name) {
if(name === 'iterator') {
// Accept ill-formed iterators that don't conform to the
// protocol by accepting just next()... | 32 | new readme | 31 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069370 | <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 | Handle redis connection exception error properly | 1 | .rb | rb | mit | splitrb/split |
10069371 | <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 | Handle redis connection exception error properly | 1 | .rb | rb | mit | splitrb/split |
10069372 | <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 | Handle redis connection exception error properly | 1 | .rb | rb | mit | splitrb/split |
10069373 | <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)

[:
class Meta:
model = Project
exclude = ['owner', 'classifie... | 18 | Remove previous file if it already exists. | 2 | .py | py | bsd-3-clause | ask/chishop |
10069377 | <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 #22 from ryanlecompte/master | 1 | .rb | rb | mit | splitrb/split |
10069378 | <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 #22 from ryanlecompte/master | 1 | .rb | rb | mit | splitrb/split |
10069379 | <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 #22 from ryanlecompte/master | 1 | .rb | rb | mit | splitrb/split |
10069380 | <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... | 7 | Small test tweaks | 5 | .rb | rb | mit | splitrb/split |
10069381 | <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... | 7 | Small test tweaks | 5 | .rb | rb | mit | splitrb/split |
10069382 | <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... | 7 | Small test tweaks | 5 | .rb | rb | mit | splitrb/split |
10069383 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

[ | 6 | .md | md | mit | splitrb/split |
10069384 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

[ | 6 | .md | md | mit | splitrb/split |
10069385 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

[ | 6 | .md | md | mit | splitrb/split |
10069386 | <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 | Added minimum version requirement to simple-random | 1 | .gemspec | gemspec | mit | splitrb/split |
10069387 | <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 | Added minimum version requirement to simple-random | 1 | .gemspec | gemspec | mit | splitrb/split |
10069388 | <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 | Added minimum version requirement to simple-random | 1 | .gemspec | gemspec | mit | splitrb/split |
10069389 | <NME> persistence.rb
<BEF> # frozen_string_literal: true
module Split
module Persistence
require "split/persistence/cookie_adapter"
require "split/persistence/dual_adapter"
ADAPTERS = {
:cookie => Split::Persistence::CookieAdapter,
:session => Split::Persistence::SessionAdapter
}
def... | 4 | Merge pull request #301 from ipoval/code-gardening | 7 | .rb | rb | mit | splitrb/split |
10069390 | <NME> persistence.rb
<BEF> # frozen_string_literal: true
module Split
module Persistence
require "split/persistence/cookie_adapter"
require "split/persistence/dual_adapter"
ADAPTERS = {
:cookie => Split::Persistence::CookieAdapter,
:session => Split::Persistence::SessionAdapter
}
def... | 4 | Merge pull request #301 from ipoval/code-gardening | 7 | .rb | rb | mit | splitrb/split |
10069391 | <NME> persistence.rb
<BEF> # frozen_string_literal: true
module Split
module Persistence
require "split/persistence/cookie_adapter"
require "split/persistence/dual_adapter"
ADAPTERS = {
:cookie => Split::Persistence::CookieAdapter,
:session => Split::Persistence::SessionAdapter
}
def... | 4 | Merge pull request #301 from ipoval/code-gardening | 7 | .rb | rb | mit | splitrb/split |
10069392 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context){ "some context" }
let(:just_adapter){ Class.new }
let(:selected_adapter_instance){ double }
let(:selected_adapter){
c = Class.new
expect(c).to receive(:new){ ... | 81 | Improve Dual Adapter | 67 | .rb | rb | mit | splitrb/split |
10069393 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context){ "some context" }
let(:just_adapter){ Class.new }
let(:selected_adapter_instance){ double }
let(:selected_adapter){
c = Class.new
expect(c).to receive(:new){ ... | 81 | Improve Dual Adapter | 67 | .rb | rb | mit | splitrb/split |
10069394 | <NME> dual_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Persistence::DualAdapter do
let(:context){ "some context" }
let(:just_adapter){ Class.new }
let(:selected_adapter_instance){ double }
let(:selected_adapter){
c = Class.new
expect(c).to receive(:new){ ... | 81 | Improve Dual Adapter | 67 | .rb | rb | mit | splitrb/split |
10069395 | <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)

[ | 0 | .rb | rb | mit | splitrb/split |
10069399 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
describe Split::DashboardHelpers do
describe "confidence_level" do
it "should handle very small numbers" do
expect(confidence_level(Complex(2e-18, -0... | 14 | Avoid crashing on Ruby 2.4 for numeric strings (#470) | 0 | .rb | rb | mit | splitrb/split |
10069400 | <NME> dashboard_helpers_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/dashboard/helpers"
include Split::DashboardHelpers
describe Split::DashboardHelpers do
describe "confidence_level" do
it "should handle very small numbers" do
expect(confidence_level(Complex(2e-18, -0... | 14 | Avoid crashing on Ruby 2.4 for numeric strings (#470) | 0 | .rb | rb | mit | splitrb/split |
10069401 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Trial do
it "should be initializeable" do
experiment = mock('experiment')
alternative = mock('alternative')
trial = Split::Trial.new(:experiment => experiment, :alternative => alternative)
trial.experiment.... | 6 | Collapse :alternative_name and :alternative options | 4 | .rb | rb | mit | splitrb/split |
10069402 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Trial do
it "should be initializeable" do
experiment = mock('experiment')
alternative = mock('alternative')
trial = Split::Trial.new(:experiment => experiment, :alternative => alternative)
trial.experiment.... | 6 | Collapse :alternative_name and :alternative options | 4 | .rb | rb | mit | splitrb/split |
10069403 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Trial do
it "should be initializeable" do
experiment = mock('experiment')
alternative = mock('alternative')
trial = Split::Trial.new(:experiment => experiment, :alternative => alternative)
trial.experiment.... | 6 | Collapse :alternative_name and :alternative options | 4 | .rb | rb | mit | splitrb/split |
10069404 | <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::User.new(double(session: {})) }
before(:each) ... | 4 | Run tests in a random order | 0 | .rb | rb | mit | splitrb/split |
10069408 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
Dir['./spec/support/*.rb'].each { |f| require f }
def session
@session ||= {}
end
extend RSpec::SharedContext
let(:mock_user) { Split::User.new(double(session: {})) }
before(:each) ... | 4 | Run tests in a random order | 0 | .rb | rb | mit | splitrb/split |
10069409 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
Dir['./spec/support/*.rb'].each { |f| require f }
def session
@session ||= {}
end
extend RSpec::SharedContext
let(:mock_user) { Split::User.new(double(session: {})) }
before(:each) ... | 4 | Run tests in a random order | 0 | .rb | rb | mit | splitrb/split |
10069410 | <NME> block_randomization_spec.rb
<BEF> ADDFILE
<MSG> added block randomization algorithm and specs (#475)
* added block randomization algorithm and specs
* added BlockRandomization explanation to README
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Algorithms::BlockRandomization do
+
+ let(:e... | 32 | added block randomization algorithm and specs (#475) | 0 | .rb | rb | mit | splitrb/split |
10069411 | <NME> block_randomization_spec.rb
<BEF> ADDFILE
<MSG> added block randomization algorithm and specs (#475)
* added block randomization algorithm and specs
* added BlockRandomization explanation to README
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Algorithms::BlockRandomization do
+
+ let(:e... | 32 | added block randomization algorithm and specs (#475) | 0 | .rb | rb | mit | splitrb/split |
10069412 | <NME> block_randomization_spec.rb
<BEF> ADDFILE
<MSG> added block randomization algorithm and specs (#475)
* added block randomization algorithm and specs
* added BlockRandomization explanation to README
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Algorithms::BlockRandomization do
+
+ let(:e... | 32 | added block randomization algorithm and specs (#475) | 0 | .rb | rb | mit | splitrb/split |
10069413 | <NME> README.md
<BEF>
# transducers.js
A small library for generalized transformation of data. This provides a small amount a transformation functions that can be applied to any data structure. It is a direct port of Clojure's [transducers](http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming) in JavaScript... | 1 | update readme | 1 | .md | md | bsd-2-clause | jlongster/transducers.js |
10069414 | <NME> TODO
<BEF> * Add a pretty, user-friendly web site interface in addition to
the API interface.
* Maybe add a permission "can upload new release", so more than one
user can change the same project.
[taken-by: sverrej]
* Roles (co-owners/maintainers)
- One possible solution:
http://github.com/in... | 2 | Added TODO: "Should a project have co-owners?" | 1 | TODO | bsd-3-clause | ask/chishop | |
10069415 | <NME> configuration_spec.rb
<BEF> ADDFILE
<MSG> Allow for easier overiding of the robot regex via a configuration object
<DFF> @@ -0,0 +1,9 @@
+require 'spec_helper'
+
+describe Split::Configuration do
+ it "should provide default values" do
+ config = Split::Configuration.new
+
+ config.robot_regex.should eql(... | 9 | Allow for easier overiding of the robot regex via a configuration object | 0 | .rb | rb | mit | splitrb/split |
10069416 | <NME> configuration_spec.rb
<BEF> ADDFILE
<MSG> Allow for easier overiding of the robot regex via a configuration object
<DFF> @@ -0,0 +1,9 @@
+require 'spec_helper'
+
+describe Split::Configuration do
+ it "should provide default values" do
+ config = Split::Configuration.new
+
+ config.robot_regex.should eql(... | 9 | Allow for easier overiding of the robot regex via a configuration object | 0 | .rb | rb | mit | splitrb/split |
10069417 | <NME> configuration_spec.rb
<BEF> ADDFILE
<MSG> Allow for easier overiding of the robot regex via a configuration object
<DFF> @@ -0,0 +1,9 @@
+require 'spec_helper'
+
+describe Split::Configuration do
+ it "should provide default values" do
+ config = Split::Configuration.new
+
+ config.robot_regex.should eql(... | 9 | Allow for easier overiding of the robot regex via a configuration object | 0 | .rb | rb | mit | splitrb/split |
10069418 | <NME> checkbox.spec.js
<BEF> ADDFILE
<MSG> Add checkbox tests
<DFF> @@ -0,0 +1,100 @@
+describe('Semantic-UI: Elements - smCheckbox', function() {
+ 'use strict';
+
+ var $scope, $compile, $rootScope;
+
+ beforeEach(module('semantic.ui.elements.checkbox'));
+
+ beforeEach(inject(function(_$rootScope_, _$compile_) ... | 100 | Add checkbox tests | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10069419 | <NME> checkbox.spec.js
<BEF> ADDFILE
<MSG> Add checkbox tests
<DFF> @@ -0,0 +1,100 @@
+describe('Semantic-UI: Elements - smCheckbox', function() {
+ 'use strict';
+
+ var $scope, $compile, $rootScope;
+
+ beforeEach(module('semantic.ui.elements.checkbox'));
+
+ beforeEach(inject(function(_$rootScope_, _$compile_) ... | 100 | Add checkbox tests | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10069420 | <NME> checkbox.spec.js
<BEF> ADDFILE
<MSG> Add checkbox tests
<DFF> @@ -0,0 +1,100 @@
+describe('Semantic-UI: Elements - smCheckbox', function() {
+ 'use strict';
+
+ var $scope, $compile, $rootScope;
+
+ beforeEach(module('semantic.ui.elements.checkbox'));
+
+ beforeEach(inject(function(_$rootScope_, _$compile_) ... | 100 | Add checkbox tests | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10069421 | <NME> 4.2.gemfile
<BEF> ADDFILE
<MSG> Test against rails 4.2 and ruby 2.2
<DFF> @@ -0,0 +1,8 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "rails", "~> 4.2.0"
+
+gemspec :path => "../"
| 8 | Test against rails 4.2 and ruby 2.2 | 0 | .gemfile | 2 | mit | splitrb/split |
10069422 | <NME> 4.2.gemfile
<BEF> ADDFILE
<MSG> Test against rails 4.2 and ruby 2.2
<DFF> @@ -0,0 +1,8 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "rails", "~> 4.2.0"
+
+gemspec :path => "../"
| 8 | Test against rails 4.2 and ruby 2.2 | 0 | .gemfile | 2 | mit | splitrb/split |
10069423 | <NME> 4.2.gemfile
<BEF> ADDFILE
<MSG> Test against rails 4.2 and ruby 2.2
<DFF> @@ -0,0 +1,8 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "rails", "~> 4.2.0"
+
+gemspec :path => "../"
| 8 | Test against rails 4.2 and ruby 2.2 | 0 | .gemfile | 2 | mit | splitrb/split |
10069424 | <NME> README.md
<BEF>
# transducers.js
A small library for generalized transformation of data. This provides a small amount a transformation functions that can be applied to any data structure. It is a direct port of Clojure's [transducers](http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming) in JavaScript... | 2 | moar readme | 2 | .md | md | bsd-2-clause | jlongster/transducers.js |
10069425 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 8 | Merge pull request #126 from iangreenleaf/safe_json_parsing | 1 | .rb | rb | mit | splitrb/split |
10069426 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 8 | Merge pull request #126 from iangreenleaf/safe_json_parsing | 1 | .rb | rb | mit | splitrb/split |
10069427 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 8 | Merge pull request #126 from iangreenleaf/safe_json_parsing | 1 | .rb | rb | mit | splitrb/split |
10069428 | <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"),
... | 2 | Remove HTTP basic auth for now | 4 | .py | py | bsd-3-clause | ask/chishop |
10069429 | <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);
}... | 0 | remove extraneous isArray from bad merge | 3 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069430 | <NME> engine.rb
<BEF> # frozen_string_literal: true
class Engine < ::Rails::Engine
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
ActionController::Base.send :in... | 6 | Merge pull request #586 from hasghari/lazy-load-action-controller | 4 | .rb | rb | mit | splitrb/split |
10069431 | <NME> engine.rb
<BEF> # frozen_string_literal: true
class Engine < ::Rails::Engine
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
ActionController::Base.send :in... | 6 | Merge pull request #586 from hasghari/lazy-load-action-controller | 4 | .rb | rb | mit | splitrb/split |
10069432 | <NME> engine.rb
<BEF> # frozen_string_literal: true
class Engine < ::Rails::Engine
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
ActionController::Base.send :in... | 6 | Merge pull request #586 from hasghari/lazy-load-action-controller | 4 | .rb | rb | mit | splitrb/split |
10069433 | <NME> transducers.js
<BEF> var transducers =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if... | 32 | update browser bundle | 31 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069434 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Helper
def ab_test(experiment_name, control=nil, *alternatives)
if RUBY_VERSION.match(/1\.8/) && alternatives.length.zero?
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternati... | 1 | Don't spit out 1.8 errors for preloaded config | 1 | .rb | rb | mit | splitrb/split |
10069435 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Helper
def ab_test(experiment_name, control=nil, *alternatives)
if RUBY_VERSION.match(/1\.8/) && alternatives.length.zero?
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternati... | 1 | Don't spit out 1.8 errors for preloaded config | 1 | .rb | rb | mit | splitrb/split |
10069436 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Helper
def ab_test(experiment_name, control=nil, *alternatives)
if RUBY_VERSION.match(/1\.8/) && alternatives.length.zero?
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternati... | 1 | Don't spit out 1.8 errors for preloaded config | 1 | .rb | rb | mit | splitrb/split |
10069437 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 9 | Eliminate extra RedisAdapter hget | 6 | .rb | rb | mit | splitrb/split |
10069438 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 9 | Eliminate extra RedisAdapter hget | 6 | .rb | rb | mit | splitrb/split |
10069439 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 9 | Eliminate extra RedisAdapter hget | 6 | .rb | rb | mit | splitrb/split |
10069440 | <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 | Merge pull request #1 from harrystech/show_active_experiments | 0 | .rb | rb | mit | splitrb/split |
10069441 | <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 | Merge pull request #1 from harrystech/show_active_experiments | 0 | .rb | rb | mit | splitrb/split |
10069442 | <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 | Merge pull request #1 from harrystech/show_active_experiments | 0 | .rb | rb | mit | splitrb/split |
10069443 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require 'split/user'
describe Split::User do
let(:context) do
double(:session => { split: { 'link_color' => 'blue' } })
end
before(:each) do
@subject = described_class.new(context)
before(:each) do
@subject = described_c... | 15 | Updated spec file | 8 | .rb | rb | mit | splitrb/split |
10069444 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require 'split/user'
describe Split::User do
let(:context) do
double(:session => { split: { 'link_color' => 'blue' } })
end
before(:each) do
@subject = described_class.new(context)
before(:each) do
@subject = described_c... | 15 | Updated spec file | 8 | .rb | rb | mit | splitrb/split |
10069445 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require 'split/user'
describe Split::User do
let(:context) do
double(:session => { split: { 'link_color' => 'blue' } })
end
before(:each) do
@subject = described_class.new(context)
before(:each) do
@subject = described_c... | 15 | Updated spec file | 8 | .rb | rb | mit | splitrb/split |
10069446 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Merge pull request #619 from robin-phung/cleanup-experiment-init | 15 | .rb | rb | mit | splitrb/split |
10069447 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Merge pull request #619 from robin-phung/cleanup-experiment-init | 15 | .rb | rb | mit | splitrb/split |
10069448 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternative_probabilities
attr_accessor :metadata
attr_reader :alternatives
attr_reader :resettable
DEFAULT_OPTIONS = {
resettable: true
... | 1 | Merge pull request #619 from robin-phung/cleanup-experiment-init | 15 | .rb | rb | mit | splitrb/split |
10069449 | <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 |