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
10069650
<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 ...
13
Merge pull request #392 from pakallis/remove-duplication
9
.rb
rb
mit
splitrb/split
10069651
<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 ...
13
Merge pull request #392 from pakallis/remove-duplication
9
.rb
rb
mit
splitrb/split
10069652
<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 ...
13
Merge pull request #392 from pakallis/remove-duplication
9
.rb
rb
mit
splitrb/split
10069653
<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 ...
3
Merge pull request #122 from iangreenleaf/more_bots
0
.rb
rb
mit
splitrb/split
10069654
<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 ...
3
Merge pull request #122 from iangreenleaf/more_bots
0
.rb
rb
mit
splitrb/split
10069655
<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 ...
3
Merge pull request #122 from iangreenleaf/more_bots
0
.rb
rb
mit
splitrb/split
10069656
<NME> dashboard_helpers_spec.rb <BEF> ADDFILE <MSG> confidence_level helper should handle tiny z-scores <DFF> @@ -0,0 +1,12 @@ +require 'spec_helper' +require 'split/dashboard/helpers' + +include Split::DashboardHelpers + +describe Split::DashboardHelpers do + describe 'confidence_level' do + it 'should handle ver...
12
confidence_level helper should handle tiny z-scores
0
.rb
rb
mit
splitrb/split
10069657
<NME> dashboard_helpers_spec.rb <BEF> ADDFILE <MSG> confidence_level helper should handle tiny z-scores <DFF> @@ -0,0 +1,12 @@ +require 'spec_helper' +require 'split/dashboard/helpers' + +include Split::DashboardHelpers + +describe Split::DashboardHelpers do + describe 'confidence_level' do + it 'should handle ver...
12
confidence_level helper should handle tiny z-scores
0
.rb
rb
mit
splitrb/split
10069658
<NME> dashboard_helpers_spec.rb <BEF> ADDFILE <MSG> confidence_level helper should handle tiny z-scores <DFF> @@ -0,0 +1,12 @@ +require 'spec_helper' +require 'split/dashboard/helpers' + +include Split::DashboardHelpers + +describe Split::DashboardHelpers do + describe 'confidence_level' do + it 'should handle ver...
12
confidence_level helper should handle tiny z-scores
0
.rb
rb
mit
splitrb/split
10069659
<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"), ...
17
added missing metadata to schemas and datetime
2
.py
py
bsd-3-clause
ask/chishop
10069660
<NME> .rubocop_todo.yml <BEF> ADDFILE <MSG> Update rubocop.yml config <DFF> @@ -0,0 +1,699 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2019-10-21 18:09:14 -0300 using RuboCop version 0.75.1. +# The point is for the user to remove these configuration records +# one by one as the offen...
699
Update rubocop.yml config
0
.yml
rubocop_todo
mit
splitrb/split
10069661
<NME> .rubocop_todo.yml <BEF> ADDFILE <MSG> Update rubocop.yml config <DFF> @@ -0,0 +1,699 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2019-10-21 18:09:14 -0300 using RuboCop version 0.75.1. +# The point is for the user to remove these configuration records +# one by one as the offen...
699
Update rubocop.yml config
0
.yml
rubocop_todo
mit
splitrb/split
10069662
<NME> .rubocop_todo.yml <BEF> ADDFILE <MSG> Update rubocop.yml config <DFF> @@ -0,0 +1,699 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2019-10-21 18:09:14 -0300 using RuboCop version 0.75.1. +# The point is for the user to remove these configuration records +# one by one as the offen...
699
Update rubocop.yml config
0
.yml
rubocop_todo
mit
splitrb/split
10069663
<NME> redis_interface_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::RedisInterface do let(:list_name) { "list_name" } let(:set_name) { "set_name" } let(:interface) { described_class.new } describe "#persist_list" do subject(:persist_list) do interface.persist_lis...
0
Merge pull request #632 from splitrb/simplify-redis-interface
69
.rb
rb
mit
splitrb/split
10069664
<NME> redis_interface_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::RedisInterface do let(:list_name) { "list_name" } let(:set_name) { "set_name" } let(:interface) { described_class.new } describe "#persist_list" do subject(:persist_list) do interface.persist_lis...
0
Merge pull request #632 from splitrb/simplify-redis-interface
69
.rb
rb
mit
splitrb/split
10069665
<NME> redis_interface_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" describe Split::RedisInterface do let(:list_name) { "list_name" } let(:set_name) { "set_name" } let(:interface) { described_class.new } describe "#persist_list" do subject(:persist_list) do interface.persist_lis...
0
Merge pull request #632 from splitrb/simplify-redis-interface
69
.rb
rb
mit
splitrb/split
10069666
<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...
3
Update dependencies
3
.gemspec
gemspec
mit
splitrb/split
10069667
<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...
3
Update dependencies
3
.gemspec
gemspec
mit
splitrb/split
10069668
<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...
3
Update dependencies
3
.gemspec
gemspec
mit
splitrb/split
10069669
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
6
Clarify finished with first option being a hash
0
.md
md
mit
splitrb/split
10069670
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
6
Clarify finished with first option being a hash
0
.md
md
mit
splitrb/split
10069671
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
6
Clarify finished with first option being a hash
0
.md
md
mit
splitrb/split
10069672
<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...
16
Merge pull request #176 from bmarini/trial-hooks
0
.rb
rb
mit
splitrb/split
10069673
<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...
16
Merge pull request #176 from bmarini/trial-hooks
0
.rb
rb
mit
splitrb/split
10069674
<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...
16
Merge pull request #176 from bmarini/trial-hooks
0
.rb
rb
mit
splitrb/split
10069675
<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...
33
create an option to disable split testing
1
.rb
rb
mit
splitrb/split
10069676
<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...
33
create an option to disable split testing
1
.rb
rb
mit
splitrb/split
10069677
<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...
33
create an option to disable split testing
1
.rb
rb
mit
splitrb/split
10069678
<NME> lorem.ts <BEF> import { ok, strictEqual as equal } from 'assert'; import expand from '../src'; function wordCount(str: string): number { return str.split(' ').length; } function splitLines(str: string): string[] { return str.split(/\n/); } describe('Lorem Ipsum generator', () => { it('single', () =...
4
Support lorem word range
0
.ts
ts
mit
emmetio/emmet
10069679
<NME> lorem.ts <BEF> import { ok, strictEqual as equal } from 'assert'; import expand from '../src'; function wordCount(str: string): number { return str.split(' ').length; } function splitLines(str: string): string[] { return str.split(/\n/); } describe('Lorem Ipsum generator', () => { it('single', () =...
4
Support lorem word range
0
.ts
ts
mit
emmetio/emmet
10069680
<NME> loadclassifiers.py <BEF> ADDFILE <MSG> Merge branch 'runeh/master' <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 +projects. On the other hand it can b...
53
Merge branch 'runeh/master'
0
.py
py
bsd-3-clause
ask/chishop
10069681
<NME> session_adapter_spec.rb <BEF> # frozen_string_literal: true describe Split::Persistence::SessionAdapter do let(:context) { mock(session: {}) } subject { Split::Persistence::SessionAdapter.new(context) } describe "#[] and #[]=" do describe "#[] and #[]=" do it "should set and return the value for gi...
1
Replaces 1.9 style hashes with 1.8
1
.rb
rb
mit
splitrb/split
10069682
<NME> session_adapter_spec.rb <BEF> # frozen_string_literal: true describe Split::Persistence::SessionAdapter do let(:context) { mock(session: {}) } subject { Split::Persistence::SessionAdapter.new(context) } describe "#[] and #[]=" do describe "#[] and #[]=" do it "should set and return the value for gi...
1
Replaces 1.9 style hashes with 1.8
1
.rb
rb
mit
splitrb/split
10069683
<NME> session_adapter_spec.rb <BEF> # frozen_string_literal: true describe Split::Persistence::SessionAdapter do let(:context) { mock(session: {}) } subject { Split::Persistence::SessionAdapter.new(context) } describe "#[] and #[]=" do describe "#[] and #[]=" do it "should set and return the value for gi...
1
Replaces 1.9 style hashes with 1.8
1
.rb
rb
mit
splitrb/split
10069684
<NME> experiment_spec.rb <BEF> ADDFILE <MSG> Pseudo coding up the experiment class <DFF> @@ -0,0 +1,27 @@ +require 'spec_helper' +require 'multivariate/experiment' + +describe Multivariate::Experiment do + it "should have a name" do + experiment = Multivariate::Experiment.new('basket_text', 'Basket', "Cart") + e...
27
Pseudo coding up the experiment class
0
.rb
rb
mit
splitrb/split
10069685
<NME> experiment_spec.rb <BEF> ADDFILE <MSG> Pseudo coding up the experiment class <DFF> @@ -0,0 +1,27 @@ +require 'spec_helper' +require 'multivariate/experiment' + +describe Multivariate::Experiment do + it "should have a name" do + experiment = Multivariate::Experiment.new('basket_text', 'Basket', "Cart") + e...
27
Pseudo coding up the experiment class
0
.rb
rb
mit
splitrb/split
10069686
<NME> experiment_spec.rb <BEF> ADDFILE <MSG> Pseudo coding up the experiment class <DFF> @@ -0,0 +1,27 @@ +require 'spec_helper' +require 'multivariate/experiment' + +describe Multivariate::Experiment do + it "should have a name" do + experiment = Multivariate::Experiment.new('basket_text', 'Basket', "Cart") + e...
27
Pseudo coding up the experiment class
0
.rb
rb
mit
splitrb/split
10069687
<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
Update fakeredis, fixes #428
1
.gemspec
gemspec
mit
splitrb/split
10069688
<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
Update fakeredis, fixes #428
1
.gemspec
gemspec
mit
splitrb/split
10069689
<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
Update fakeredis, fixes #428
1
.gemspec
gemspec
mit
splitrb/split
10069690
<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
Merge pull request #661 from serggl/cleanup_old_versions
3
.rb
rb
mit
splitrb/split
10069691
<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
Merge pull request #661 from serggl/cleanup_old_versions
3
.rb
rb
mit
splitrb/split
10069692
<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
Merge pull request #661 from serggl/cleanup_old_versions
3
.rb
rb
mit
splitrb/split
10069693
<NME> Gemfile <BEF> source "http://rubygems.org" gemspec gemspec gem "rubocop", require: false gem "matrix" gem "codeclimate-test-reporter" <MSG> Merge pull request #137 from cifarelli/patch-1 Use secure Rubygems URL <DFF> @@ -1,3 +1,3 @@ -source "http://rubygems.org" +source "https://rubygems.org" gemspec
1
Merge pull request #137 from cifarelli/patch-1
1
Gemfile
mit
splitrb/split
10069694
<NME> Gemfile <BEF> source "http://rubygems.org" gemspec gemspec gem "rubocop", require: false gem "matrix" gem "codeclimate-test-reporter" <MSG> Merge pull request #137 from cifarelli/patch-1 Use secure Rubygems URL <DFF> @@ -1,3 +1,3 @@ -source "http://rubygems.org" +source "https://rubygems.org" gemspec
1
Merge pull request #137 from cifarelli/patch-1
1
Gemfile
mit
splitrb/split
10069695
<NME> Gemfile <BEF> source "http://rubygems.org" gemspec gemspec gem "rubocop", require: false gem "matrix" gem "codeclimate-test-reporter" <MSG> Merge pull request #137 from cifarelli/patch-1 Use secure Rubygems URL <DFF> @@ -1,3 +1,3 @@ -source "http://rubygems.org" +source "https://rubygems.org" gemspec
1
Merge pull request #137 from cifarelli/patch-1
1
Gemfile
mit
splitrb/split
10069696
<NME> helper_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" # TODO change some of these tests to use Rack::Test describe Split::Helper do include Split::Helper let(:experiment) { Split::ExperimentCatalog.find_or_create("link_color", "blue", "red") } describe "ab_test" do it "shou...
5
Merge pull request #27 from econsultancy/26-handle-unstarted-experiments
0
.rb
rb
mit
splitrb/split
10069697
<NME> helper_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" # TODO change some of these tests to use Rack::Test describe Split::Helper do include Split::Helper let(:experiment) { Split::ExperimentCatalog.find_or_create("link_color", "blue", "red") } describe "ab_test" do it "shou...
5
Merge pull request #27 from econsultancy/26-handle-unstarted-experiments
0
.rb
rb
mit
splitrb/split
10069698
<NME> helper_spec.rb <BEF> # frozen_string_literal: true require "spec_helper" # TODO change some of these tests to use Rack::Test describe Split::Helper do include Split::Helper let(:experiment) { Split::ExperimentCatalog.find_or_create("link_color", "blue", "red") } describe "ab_test" do it "shou...
5
Merge pull request #27 from econsultancy/26-handle-unstarted-experiments
0
.rb
rb
mit
splitrb/split
10069699
<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
Refactor Alternative a little
8
.rb
rb
mit
splitrb/split
10069700
<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
Refactor Alternative a little
8
.rb
rb
mit
splitrb/split
10069701
<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
Refactor Alternative a little
8
.rb
rb
mit
splitrb/split
10069702
<NME> alternative.rb <BEF> ADDFILE <MSG> pseudo alternative class <DFF> @@ -0,0 +1,17 @@ +module Multivariate + class Alternative + attr_accessor :name + + def initialize(name) + @name = name + end + + def participant_count + # number of users who have been given this alternative + end + + ...
17
pseudo alternative class
0
.rb
rb
mit
splitrb/split
10069703
<NME> alternative.rb <BEF> ADDFILE <MSG> pseudo alternative class <DFF> @@ -0,0 +1,17 @@ +module Multivariate + class Alternative + attr_accessor :name + + def initialize(name) + @name = name + end + + def participant_count + # number of users who have been given this alternative + end + + ...
17
pseudo alternative class
0
.rb
rb
mit
splitrb/split
10069704
<NME> alternative.rb <BEF> ADDFILE <MSG> pseudo alternative class <DFF> @@ -0,0 +1,17 @@ +module Multivariate + class Alternative + attr_accessor :name + + def initialize(name) + @name = name + end + + def participant_count + # number of users who have been given this alternative + end + + ...
17
pseudo alternative class
0
.rb
rb
mit
splitrb/split
10069705
<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...
3
Added bundler as a development dependency
2
.gemspec
gemspec
mit
splitrb/split
10069706
<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...
3
Added bundler as a development dependency
2
.gemspec
gemspec
mit
splitrb/split
10069707
<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...
3
Added bundler as a development dependency
2
.gemspec
gemspec
mit
splitrb/split
10069708
<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); ...
2
isFunction should return the boolean value
2
.js
js
bsd-2-clause
jlongster/transducers.js
10069709
<NME> forms.py <BEF> import os from django import forms from django.conf import settings from djangopypi.models import Project, Classifier, Release from django.utils.translation import ugettext_lazy as _ class ProjectForm(forms.ModelForm): class Meta: model = Project exclude = ['owner', 'classifie...
9
have to delete previous file before creating the new release.
8
.py
py
bsd-3-clause
ask/chishop
10069710
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Add `expire_seconds:` TTL option to RedisAdapter
0
.rb
rb
mit
splitrb/split
10069711
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Add `expire_seconds:` TTL option to RedisAdapter
0
.rb
rb
mit
splitrb/split
10069712
<NME> redis_adapter.rb <BEF> # frozen_string_literal: true module Split module Persistence class RedisAdapter DEFAULT_CONFIG = { namespace: "persistence" }.freeze attr_reader :redis_key def initialize(context, key = nil) if key @redis_key = "#{self.class.config[:namespace]}:...
2
Add `expire_seconds:` TTL option to RedisAdapter
0
.rb
rb
mit
splitrb/split
10069713
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
0
Remove obsolete cache clear left over from before refactoring
4
.rb
rb
mit
splitrb/split
10069714
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
0
Remove obsolete cache clear left over from before refactoring
4
.rb
rb
mit
splitrb/split
10069715
<NME> experiment_catalog.rb <BEF> # frozen_string_literal: true module Split class ExperimentCatalog # Return all experiments def self.all # Call compact to prevent nil experiments from being returned -- seems to happen during gem upgrades Split.redis.smembers(:experiments).map { |e| find(e) }.co...
0
Remove obsolete cache clear left over from before refactoring
4
.rb
rb
mit
splitrb/split
10069716
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Remove unused Gemfiles from tests
1
.md
md
mit
splitrb/split
10069717
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Remove unused Gemfiles from tests
1
.md
md
mit
splitrb/split
10069718
<NME> README.md <BEF> # [Split](https://libraries.io/rubygems/split) [![Gem Version](https://badge.fury.io/rb/split.svg)](http://badge.fury.io/rb/split) ![Build status](https://github.com/splitrb/split/actions/workflows/ci.yml/badge.svg?branch=main) [![Code Climate](https://codeclimate.com/github/splitrb/split/badges/...
1
Remove unused Gemfiles from tests
1
.md
md
mit
splitrb/split
10069719
<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...
12
Merge pull request #115 from iangreenleaf/control_failover
0
.rb
rb
mit
splitrb/split
10069720
<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...
12
Merge pull request #115 from iangreenleaf/control_failover
0
.rb
rb
mit
splitrb/split
10069721
<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...
12
Merge pull request #115 from iangreenleaf/control_failover
0
.rb
rb
mit
splitrb/split
10069722
<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> Sverre Johansen <sverre.johansen@gmail.com> Bo Shi <bs@alum.mit.edu> Carl Meyer <carl@dirtcircle.com> Vinícius das Chagas Silva <vini...
1
Addded Michael Richardson to AUTHORS
0
AUTHORS
bsd-3-clause
ask/chishop
10069723
<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 ...
1
Use empty string directly instead of casting nil
1
.rb
rb
mit
splitrb/split
10069724
<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 ...
1
Use empty string directly instead of casting nil
1
.rb
rb
mit
splitrb/split
10069725
<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 ...
1
Use empty string directly instead of casting nil
1
.rb
rb
mit
splitrb/split
10069726
<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
Failing test for extraneous experiment completions
0
.rb
rb
mit
splitrb/split
10069727
<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
Failing test for extraneous experiment completions
0
.rb
rb
mit
splitrb/split
10069728
<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
Failing test for extraneous experiment completions
0
.rb
rb
mit
splitrb/split
10069729
<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],...
31
Add ability to initialize experiments
0
.rb
rb
mit
splitrb/split
10069730
<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],...
31
Add ability to initialize experiments
0
.rb
rb
mit
splitrb/split
10069731
<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],...
31
Add ability to initialize experiments
0
.rb
rb
mit
splitrb/split
10069732
<NME> README.md <BEF> # transducers.js A small library for generalized transformation of data. This provides a bunch of 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. Read...
1
fix typo
1
.md
md
bsd-2-clause
jlongster/transducers.js
10069733
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 1 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v1.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 1 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v1.4.1
1
.rb
rb
mit
splitrb/split
10069734
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 1 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v1.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 1 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v1.4.1
1
.rb
rb
mit
splitrb/split
10069735
<NME> version.rb <BEF> # frozen_string_literal: true module Split MAJOR = 1 MINOR = 4 PATCH = 0 VERSION = [MAJOR, MINOR, PATCH].join('.') end <MSG> v1.4.1 <DFF> @@ -2,6 +2,6 @@ module Split MAJOR = 1 MINOR = 4 - PATCH = 0 + PATCH = 1 VERSION = [MAJOR, MINOR, PATCH].join('.') end
1
v1.4.1
1
.rb
rb
mit
splitrb/split
10069736
<NME> models.py <BEF> import os from django.conf import settings from django.db import models from django.utils.translation import ugettext_lazy as _ from django.contrib.auth.models import User OS_NAMES = ( ("aix", "AIX"), ("beos", "BeOS"), ("debian", "Debian Linux"), ("dos", "DOS"), ...
1
Fix syntax error
1
.py
py
bsd-3-clause
ask/chishop
10069737
<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 #312 from splitrb/dont-use-capture-helper
7
.rb
rb
mit
splitrb/split
10069738
<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 #312 from splitrb/dont-use-capture-helper
7
.rb
rb
mit
splitrb/split
10069739
<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 #312 from splitrb/dont-use-capture-helper
7
.rb
rb
mit
splitrb/split
10069740
<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
Experiment control test
0
.rb
rb
mit
splitrb/split
10069741
<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
Experiment control test
0
.rb
rb
mit
splitrb/split
10069742
<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
Experiment control test
0
.rb
rb
mit
splitrb/split
10069743
<NME> zscore.rb <BEF> # frozen_string_literal: true module Split class Zscore include Math def self.calculate(p1, n1, p2, n2) # p_1 = Pa = proportion of users who converted within the experiment split (conversion rate) # p_2 = Pc = proportion of users who converted within the control split (conv...
0
Fix Layout/EmptyLinesAroundMethodBody
1
.rb
rb
mit
splitrb/split
10069744
<NME> zscore.rb <BEF> # frozen_string_literal: true module Split class Zscore include Math def self.calculate(p1, n1, p2, n2) # p_1 = Pa = proportion of users who converted within the experiment split (conversion rate) # p_2 = Pc = proportion of users who converted within the control split (conv...
0
Fix Layout/EmptyLinesAroundMethodBody
1
.rb
rb
mit
splitrb/split
10069745
<NME> zscore.rb <BEF> # frozen_string_literal: true module Split class Zscore include Math def self.calculate(p1, n1, p2, n2) # p_1 = Pa = proportion of users who converted within the experiment split (conversion rate) # p_2 = Pc = proportion of users who converted within the control split (conv...
0
Fix Layout/EmptyLinesAroundMethodBody
1
.rb
rb
mit
splitrb/split
10069746
<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 ...
18
Merge pull request #323 from davidgrieser/allow_env_in_config
0
.rb
rb
mit
splitrb/split
10069747
<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 ...
18
Merge pull request #323 from davidgrieser/allow_env_in_config
0
.rb
rb
mit
splitrb/split
10069748
<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 ...
18
Merge pull request #323 from davidgrieser/allow_env_in_config
0
.rb
rb
mit
splitrb/split
10069749
<NME> alternative_spec.rb <BEF> ADDFILE <MSG> Added alternative tests <DFF> @@ -0,0 +1,95 @@ +require 'spec_helper' +require 'split/alternative' + +describe Split::Alternative do + before(:each) { Split.redis.flushall } + + it "should have a name" do + experiment = Split::Experiment.new('basket_text', 'Basket', "C...
95
Added alternative tests
0
.rb
rb
mit
splitrb/split