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 |
|---|---|---|---|---|---|---|---|---|
10070750 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/experiment_catalog"
require "split/experiment"
require "split/user"
describe Split::User do
let(:user_keys) { { "link_color" => "blue" } }
let(:context) { double(session: { split: user_keys }) }
let(:experiment) { Split... | 17 | add a simple way to load users outside web session | 0 | .rb | rb | mit | splitrb/split |
10070751 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 0
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.1.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 0
+ MINOR = 1
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.1.0 | 1 | .rb | rb | mit | splitrb/split |
10070752 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 0
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.1.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 0
+ MINOR = 1
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.1.0 | 1 | .rb | rb | mit | splitrb/split |
10070753 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 0
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.1.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 0
+ MINOR = 1
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.1.0 | 1 | .rb | rb | mit | splitrb/split |
10070754 | <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... | 7 | Fix bug: overriding alternatives doesn't work for weighted alternatives | 0 | .rb | rb | mit | splitrb/split |
10070758 | <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 | Fix bug: overriding alternatives doesn't work for weighted alternatives | 0 | .rb | rb | mit | splitrb/split |
10070759 | <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 | Fix bug: overriding alternatives doesn't work for weighted alternatives | 0 | .rb | rb | mit | splitrb/split |
10070760 | <NME> _experiment.erb
<BEF> <% unless goal.nil? %>
<% experiment_class = "experiment experiment_with_goal" %>
<% else %>
<% experiment_class = "experiment" %>
<% end %>
<% experiment.calc_winning_alternatives %>
<%
extra_columns = []
experiment.alternatives.each do |alternative|
extra_info = alternative.ex... | 5 | Show confidence level instead of zscore in dashboard | 3 | .erb | erb | mit | splitrb/split |
10070761 | <NME> _experiment.erb
<BEF> <% unless goal.nil? %>
<% experiment_class = "experiment experiment_with_goal" %>
<% else %>
<% experiment_class = "experiment" %>
<% end %>
<% experiment.calc_winning_alternatives %>
<%
extra_columns = []
experiment.alternatives.each do |alternative|
extra_info = alternative.ex... | 5 | Show confidence level instead of zscore in dashboard | 3 | .erb | erb | mit | splitrb/split |
10070762 | <NME> _experiment.erb
<BEF> <% unless goal.nil? %>
<% experiment_class = "experiment experiment_with_goal" %>
<% else %>
<% experiment_class = "experiment" %>
<% end %>
<% experiment.calc_winning_alternatives %>
<%
extra_columns = []
experiment.alternatives.each do |alternative|
extra_info = alternative.ex... | 5 | Show confidence level instead of zscore in dashboard | 3 | .erb | erb | mit | splitrb/split |
10070763 | <NME> AUTHORS
<BEF> Ask Solem <askh@opera.com>
Rune Halvorsen <runeh@opera.com>
Russel Sim <russel.sim@vpac.org>
Brian Rosner <brosner@gmail.com>
Hugo Lopes Tavares <hltbra@gmail.com>
Sverre Johansen <sverre.johansen@gmail.com>
Bo Shi <bs@alum.mit.edu>
Carl Meyer <carl@dirtcircle.com>
Vinícius das Chagas Silva <vinimas... | 1 | Whoops, don't even know my own email address... | 1 | AUTHORS | bsd-3-clause | ask/chishop | |
10070764 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 1
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.2.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 1
+ MINOR = 2
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.2.0 | 1 | .rb | rb | mit | splitrb/split |
10070765 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 1
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.2.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 1
+ MINOR = 2
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.2.0 | 1 | .rb | rb | mit | splitrb/split |
10070766 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 2
MINOR = 1
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v2.2.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 2
- MINOR = 1
+ MINOR = 2
PATCH = 0
VERSION = [MAJOR, M... | 1 | v2.2.0 | 1 | .rb | rb | mit | splitrb/split |
10070767 | <NME> 7.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "codeclimate-test-reporter"
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 7.0"
gemspec path: "../"
<MSG> Merge pull request #675 from splitrb/enable-rb-31
Add Ruby 3.1
<DFF> @@ -5,5 +5,6 @@ source "https://rub... | 1 | Merge pull request #675 from splitrb/enable-rb-31 | 0 | .gemfile | 0 | mit | splitrb/split |
10070768 | <NME> 7.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "codeclimate-test-reporter"
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 7.0"
gemspec path: "../"
<MSG> Merge pull request #675 from splitrb/enable-rb-31
Add Ruby 3.1
<DFF> @@ -5,5 +5,6 @@ source "https://rub... | 1 | Merge pull request #675 from splitrb/enable-rb-31 | 0 | .gemfile | 0 | mit | splitrb/split |
10070769 | <NME> 7.0.gemfile
<BEF> source "https://rubygems.org"
gem "rubocop", require: false
gem "codeclimate-test-reporter"
gem "appraisal"
gem "codeclimate-test-reporter"
gem "rails", "~> 7.0"
gemspec path: "../"
<MSG> Merge pull request #675 from splitrb/enable-rb-31
Add Ruby 3.1
<DFF> @@ -5,5 +5,6 @@ source "https://rub... | 1 | Merge pull request #675 from splitrb/enable-rb-31 | 0 | .gemfile | 0 | mit | splitrb/split |
10070770 | <NME> urls.py
<BEF> # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url, include, handler404, handler500
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('')
# Serve static pages.
if settings.LOCAL_DEVELOPMENT:
urlpatterns += pa... | 1 | clean up MEDIA_URL: fixes #8, fixes #9 | 1 | .py | py | bsd-3-clause | ask/chishop |
10070771 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.5
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.5 | 1 | .rb | rb | mit | splitrb/split |
10070772 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.5
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.5 | 1 | .rb | rb | mit | splitrb/split |
10070773 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.5
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 4
+ PATCH = 5
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.5 | 1 | .rb | rb | mit | splitrb/split |
10070774 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 1 | Merge branch 'dashboard-environment' of github.com:rceee/split into rceee-dashboard-environment | 0 | .erb | erb | mit | splitrb/split |
10070775 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 1 | Merge branch 'dashboard-environment' of github.com:rceee/split into rceee-dashboard-environment | 0 | .erb | erb | mit | splitrb/split |
10070776 | <NME> layout.erb
<BEF> <!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<link href="<%= url 'reset.css' %>" media="screen" rel="stylesheet" type="text/css">
<link href="<%= url 'style.css' %>" media="screen" rel="stylesheet" type="text/css">
<script type="text/javascript... | 1 | Merge branch 'dashboard-environment' of github.com:rceee/split into rceee-dashboard-environment | 0 | .erb | erb | mit | splitrb/split |
10070777 | <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)

[
require "split/version"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email = ["andrewnez@gmail.com"]
s.homepage =... | 1 | Added License to gemspec | 0 | .gemspec | gemspec | mit | splitrb/split |
10070781 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email = ["andrewnez@gmail.com"]
s.homepage =... | 1 | Added License to gemspec | 0 | .gemspec | gemspec | mit | splitrb/split |
10070782 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email = ["andrewnez@gmail.com"]
s.homepage =... | 1 | Added License to gemspec | 0 | .gemspec | gemspec | mit | splitrb/split |
10070783 | <NME> settings.py
<BEF> from conf.default import *
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
LOCAL_DEVELOPMENT = True
if LOCAL_DEVELOPMENT:
import sys
sys.path.append(os.path.dirname(__file__))
# if you're sloppy.
DJANGOPYPI_ALLOW_VERSION_OVERWRITE = False
DJANGOPYPI_RELEASE_UPLOAD_TO = 'dists'
LOCAL_DEV... | 0 | syncing with ask repos | 1 | .py | py | bsd-3-clause | ask/chishop |
10070784 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

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

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

[ | 3 | .md | md | mit | splitrb/split |
10070787 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | fix to pass spec | 3 | .rb | rb | mit | splitrb/split |
10070788 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | fix to pass spec | 3 | .rb | rb | mit | splitrb/split |
10070789 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | fix to pass spec | 3 | .rb | rb | mit | splitrb/split |
10070790 | <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 | minor code cleanup | 1 | .rb | rb | mit | splitrb/split |
10070791 | <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 | minor code cleanup | 1 | .rb | rb | mit | splitrb/split |
10070792 | <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 | minor code cleanup | 1 | .rb | rb | mit | splitrb/split |
10070793 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 7 | Fix caching of winning alternative to prevent recalculation each time the dashboard is loaded | 0 | .rb | rb | mit | splitrb/split |
10070794 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 7 | Fix caching of winning alternative to prevent recalculation each time the dashboard is loaded | 0 | .rb | rb | mit | splitrb/split |
10070795 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 7 | Fix caching of winning alternative to prevent recalculation each time the dashboard is loaded | 0 | .rb | rb | mit | splitrb/split |
10070796 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Merge pull request #352 from craigmcnamara/fix-delete-path | 1 | .erb | erb | mit | splitrb/split |
10070797 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Merge pull request #352 from craigmcnamara/fix-delete-path | 1 | .erb | erb | mit | splitrb/split |
10070798 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Merge pull request #352 from craigmcnamara/fix-delete-path | 1 | .erb | erb | mit | splitrb/split |
10070799 | <NME> CHANGELOG.md
<BEF> ## 3.4.0 (November 9th, 2019)
Features:
- Force experiment does not count for metrics (@andrehjr, #637)
- Fix cleanup_old_versions! misbehaviour (@serggl, #661)
Features:
- Make goals accessible via on_trial_complete callbacks (@robin-phung, #625)
- Replace usage of SimpleRandom with RubyStat... | 5 | Add Changelog | 0 | .md | md | mit | splitrb/split |
10070800 | <NME> CHANGELOG.md
<BEF> ## 3.4.0 (November 9th, 2019)
Features:
- Force experiment does not count for metrics (@andrehjr, #637)
- Fix cleanup_old_versions! misbehaviour (@serggl, #661)
Features:
- Make goals accessible via on_trial_complete callbacks (@robin-phung, #625)
- Replace usage of SimpleRandom with RubyStat... | 5 | Add Changelog | 0 | .md | md | mit | splitrb/split |
10070801 | <NME> CHANGELOG.md
<BEF> ## 3.4.0 (November 9th, 2019)
Features:
- Force experiment does not count for metrics (@andrehjr, #637)
- Fix cleanup_old_versions! misbehaviour (@serggl, #661)
Features:
- Make goals accessible via on_trial_complete callbacks (@robin-phung, #625)
- Replace usage of SimpleRandom with RubyStat... | 5 | Add Changelog | 0 | .md | md | mit | splitrb/split |
10070802 | <NME> .gitignore
<BEF> build
node_modules
<MSG> ignore foo.js
<DFF> @@ -1,2 +1,3 @@
build
node_modules
+foo.js
\ No newline at end of file
| 1 | ignore foo.js | 0 | gitignore | bsd-2-clause | jlongster/transducers.js | |
10070803 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove dependency on Redis::Namespace (#425) | 1 | .gemspec | gemspec | mit | splitrb/split |
10070804 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove dependency on Redis::Namespace (#425) | 1 | .gemspec | gemspec | mit | splitrb/split |
10070805 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 0 | Remove dependency on Redis::Namespace (#425) | 1 | .gemspec | gemspec | mit | splitrb/split |
10070806 | <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 ... | 6 | Merge pull request #662 from splitrb/gh-actions | 2 | .rb | rb | mit | splitrb/split |
10070807 | <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 ... | 6 | Merge pull request #662 from splitrb/gh-actions | 2 | .rb | rb | mit | splitrb/split |
10070808 | <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 ... | 6 | Merge pull request #662 from splitrb/gh-actions | 2 | .rb | rb | mit | splitrb/split |
10070809 | <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 | Merge pull request #570 from giraffate/persist_alternative_weights | 2 | .rb | rb | mit | splitrb/split |
10070810 | <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 | Merge pull request #570 from giraffate/persist_alternative_weights | 2 | .rb | rb | mit | splitrb/split |
10070811 | <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 | Merge pull request #570 from giraffate/persist_alternative_weights | 2 | .rb | rb | mit | splitrb/split |
10070812 | <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
... | 0 | Remove unecessary code from Experiment#save | 1 | .rb | rb | mit | splitrb/split |
10070813 | <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
... | 0 | Remove unecessary code from Experiment#save | 1 | .rb | rb | mit | splitrb/split |
10070814 | <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
... | 0 | Remove unecessary code from Experiment#save | 1 | .rb | rb | mit | splitrb/split |
10070815 | <NME> expand.ts
<BEF> import { strictEqual as equal } from 'assert';
import expand, { resolveConfig } from '../src';
describe('Expand Abbreviation', () => {
describe('Markup', () => {
it('basic', () => {
equal(expand('ul>.item$*2'), '<ul>\n\t<li class="item1"></li>\n\t<li class="item2"></li>\n<... | 1 | Removed caching in markup abbreviation parser | 0 | .ts | ts | mit | emmetio/emmet |
10070816 | <NME> expand.ts
<BEF> import { strictEqual as equal } from 'assert';
import expand, { resolveConfig } from '../src';
describe('Expand Abbreviation', () => {
describe('Markup', () => {
it('basic', () => {
equal(expand('ul>.item$*2'), '<ul>\n\t<li class="item1"></li>\n\t<li class="item2"></li>\n<... | 1 | Removed caching in markup abbreviation parser | 0 | .ts | ts | mit | emmetio/emmet |
10070817 | <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)

[ {
'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... | 1 | Consistently use my own passed-in $ | 1 | .js | meow | mit | zacstewart/Meow |
10070821 | <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... | 1 | Consistently use my own passed-in $ | 1 | .js | meow | mit | zacstewart/Meow |
10070822 | <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... | 2 | Akriti/Sumedha - Now random_alternative method in experiment class uses the specified algorithm and not the default one. | 1 | .rb | rb | mit | splitrb/split |
10070823 | <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... | 2 | Akriti/Sumedha - Now random_alternative method in experiment class uses the specified algorithm and not the default one. | 1 | .rb | rb | mit | splitrb/split |
10070824 | <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... | 2 | Akriti/Sumedha - Now random_alternative method in experiment class uses the specified algorithm and not the default one. | 1 | .rb | rb | mit | splitrb/split |
10070825 | <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 | Simplify goals helper spec | 7 | .rb | rb | mit | splitrb/split |
10070826 | <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 | Simplify goals helper spec | 7 | .rb | rb | mit | splitrb/split |
10070827 | <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 | Simplify goals helper spec | 7 | .rb | rb | mit | splitrb/split |
10070828 | <NME> CHANGELOG.md
<BEF> ## 3.4.1 (November 12th, 2019)
Bugfixes:
- Bump minimum required redis to 4.2 (@andrehjr, #628)
- Removed repeated loading from config (@robin-phung, #619)
- Simplify RedisInterface usage when persisting Experiment alternatives (@andrehjr, #632)
- Remove redis_url impl. Deprecated on version 2... | 20 | Update CHANGELOG.md | 0 | .md | md | mit | splitrb/split |
10070829 | <NME> CHANGELOG.md
<BEF> ## 3.4.1 (November 12th, 2019)
Bugfixes:
- Bump minimum required redis to 4.2 (@andrehjr, #628)
- Removed repeated loading from config (@robin-phung, #619)
- Simplify RedisInterface usage when persisting Experiment alternatives (@andrehjr, #632)
- Remove redis_url impl. Deprecated on version 2... | 20 | Update CHANGELOG.md | 0 | .md | md | mit | splitrb/split |
10070830 | <NME> CHANGELOG.md
<BEF> ## 3.4.1 (November 12th, 2019)
Bugfixes:
- Bump minimum required redis to 4.2 (@andrehjr, #628)
- Removed repeated loading from config (@robin-phung, #619)
- Simplify RedisInterface usage when persisting Experiment alternatives (@andrehjr, #632)
- Remove redis_url impl. Deprecated on version 2... | 20 | Update CHANGELOG.md | 0 | .md | md | mit | splitrb/split |
10070831 | <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... | 9 | configurable duration, correcting title parameter, allowing use of html inside box | 3 | .js | meow | mit | zacstewart/Meow |
10070832 | <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... | 9 | configurable duration, correcting title parameter, allowing use of html inside box | 3 | .js | meow | mit | zacstewart/Meow |
10070833 | <NME> user_spec.rb
<BEF> require 'spec_helper'
require 'split/experiment_catalog'
require 'split/experiment'
require "split/user"
describe Split::User do
let(:user_keys) { { "link_color" => "blue" } }
let(:context) { double(session: { split: user_keys }) }
let(:experiment) { Split::Experiment.new("link_color") ... | 3 | Merge pull request #679 from splitrb/fix-layout-offenses | 3 | .rb | rb | mit | splitrb/split |
10070834 | <NME> user_spec.rb
<BEF> require 'spec_helper'
require 'split/experiment_catalog'
require 'split/experiment'
require "split/user"
describe Split::User do
let(:user_keys) { { "link_color" => "blue" } }
let(:context) { double(session: { split: user_keys }) }
let(:experiment) { Split::Experiment.new("link_color") ... | 3 | Merge pull request #679 from splitrb/fix-layout-offenses | 3 | .rb | rb | mit | splitrb/split |
10070835 | <NME> user_spec.rb
<BEF> require 'spec_helper'
require 'split/experiment_catalog'
require 'split/experiment'
require "split/user"
describe Split::User do
let(:user_keys) { { "link_color" => "blue" } }
let(:context) { double(session: { split: user_keys }) }
let(:experiment) { Split::Experiment.new("link_color") ... | 3 | Merge pull request #679 from splitrb/fix-layout-offenses | 3 | .rb | rb | mit | splitrb/split |
10070836 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/experiment_catalog"
describe Split::User do
let(:user_keys) { { 'link_color' => 'blue' } }
let(:context) { double(:session => { split: user_keys }) }
let(:experiment) { Split::Experiment.new('link_color') }
before(:e... | 1 | Merge pull request #678 from splitrb/fix-hash-syntax-offenses | 1 | .rb | rb | mit | splitrb/split |
10070837 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/experiment_catalog"
describe Split::User do
let(:user_keys) { { 'link_color' => 'blue' } }
let(:context) { double(:session => { split: user_keys }) }
let(:experiment) { Split::Experiment.new('link_color') }
before(:e... | 1 | Merge pull request #678 from splitrb/fix-hash-syntax-offenses | 1 | .rb | rb | mit | splitrb/split |
10070838 | <NME> user_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/experiment_catalog"
describe Split::User do
let(:user_keys) { { 'link_color' => 'blue' } }
let(:context) { double(:session => { split: user_keys }) }
let(:experiment) { Split::Experiment.new('link_color') }
before(:e... | 1 | Merge pull request #678 from splitrb/fix-hash-syntax-offenses | 1 | .rb | rb | mit | splitrb/split |
10070839 | <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... | 21 | Allow parameter overrides, even without Redis. | 0 | .rb | rb | mit | splitrb/split |
10070840 | <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... | 21 | Allow parameter overrides, even without Redis. | 0 | .rb | rb | mit | splitrb/split |
10070841 | <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... | 21 | Allow parameter overrides, even without Redis. | 0 | .rb | rb | mit | splitrb/split |
10070842 | <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)

[
if key
@redis_key = "#{self.class.config[:namespace]}:... | 1 | Fix Layout/SpaceAroundEqualsInParameterDefault | 1 | .rb | rb | mit | splitrb/split |