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 |
|---|---|---|---|---|---|---|---|---|
10071350 | <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 | Bug in spec expectation | 1 | .rb | rb | mit | splitrb/split |
10071351 | <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 | Bug in spec expectation | 1 | .rb | rb | mit | splitrb/split |
10071352 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 6 | Merge pull request #304 from ipoval/code-gardening | 4 | .rb | rb | mit | splitrb/split |
10071353 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 6 | Merge pull request #304 from ipoval/code-gardening | 4 | .rb | rb | mit | splitrb/split |
10071354 | <NME> spec_helper.rb
<BEF> # frozen_string_literal: true
ENV["RACK_ENV"] = "test"
require "rubygems"
require "bundler/setup"
require "simplecov"
SimpleCov.start
require "split"
require "ostruct"
require "yaml"
Dir["./spec/support/*.rb"].each { |f| require f }
module GlobalSharedContext
extend RSpec::SharedConte... | 6 | Merge pull request #304 from ipoval/code-gardening | 4 | .rb | rb | mit | splitrb/split |
10071355 | <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 | Checks for defined?(request) on Helper#exclude_visitor? | 1 | .rb | rb | mit | splitrb/split |
10071356 | <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 | Checks for defined?(request) on Helper#exclude_visitor? | 1 | .rb | rb | mit | splitrb/split |
10071357 | <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 | Checks for defined?(request) on Helper#exclude_visitor? | 1 | .rb | rb | mit | splitrb/split |
10071358 | <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 | Fix Layout/ElseAlignment | 1 | .rb | rb | mit | splitrb/split |
10071359 | <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 | Fix Layout/ElseAlignment | 1 | .rb | rb | mit | splitrb/split |
10071360 | <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 | Fix Layout/ElseAlignment | 1 | .rb | rb | mit | splitrb/split |
10071361 | <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... | 11 | Merge pull request #582 from splitrb/fix-active-experiments-without-finished-keys | 0 | .rb | rb | mit | splitrb/split |
10071362 | <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... | 11 | Merge pull request #582 from splitrb/fix-active-experiments-without-finished-keys | 0 | .rb | rb | mit | splitrb/split |
10071363 | <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... | 11 | Merge pull request #582 from splitrb/fix-active-experiments-without-finished-keys | 0 | .rb | rb | mit | splitrb/split |
10071364 | <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],... | 2 | Fixed bug with Time mocking in RSpec to make the tests pass. | 2 | .rb | rb | mit | splitrb/split |
10071365 | <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],... | 2 | Fixed bug with Time mocking in RSpec to make the tests pass. | 2 | .rb | rb | mit | splitrb/split |
10071366 | <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],... | 2 | Fixed bug with Time mocking in RSpec to make the tests pass. | 2 | .rb | rb | mit | splitrb/split |
10071367 | <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 '/'
last_response.should be_ok
end
end
let(:bl... | 22 | added dashboard reset test | 0 | .rb | rb | mit | splitrb/split |
10071368 | <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 '/'
last_response.should be_ok
end
end
let(:bl... | 22 | added dashboard reset test | 0 | .rb | rb | mit | splitrb/split |
10071369 | <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 '/'
last_response.should be_ok
end
end
let(:bl... | 22 | added dashboard reset test | 0 | .rb | rb | mit | splitrb/split |
10071370 | <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', () =... | 7 | More unit tests for Lorem ipsum generator | 0 | .ts | ts | mit | emmetio/emmet |
10071371 | <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', () =... | 7 | More unit tests for Lorem ipsum generator | 0 | .ts | ts | mit | emmetio/emmet |
10071372 | <NME> lorem.ts
<BEF> ADDFILE
<MSG> Support Lorem Ipsum generator
<DFF> @@ -0,0 +1,47 @@
+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.sp... | 47 | Support Lorem Ipsum generator | 0 | .ts | ts | mit | emmetio/emmet |
10071373 | <NME> lorem.ts
<BEF> ADDFILE
<MSG> Support Lorem Ipsum generator
<DFF> @@ -0,0 +1,47 @@
+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.sp... | 47 | Support Lorem Ipsum generator | 0 | .ts | ts | mit | emmetio/emmet |
10071374 | <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 | Add pry gem | 0 | .gemspec | gemspec | mit | splitrb/split |
10071375 | <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 | Add pry gem | 0 | .gemspec | gemspec | mit | splitrb/split |
10071376 | <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 | Add pry gem | 0 | .gemspec | gemspec | mit | splitrb/split |
10071377 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)

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

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

[
end
def alternative
@alternative ||= if experiment.winner
experiment.winner
... | 1 | Replace winner existance checks with has_winner? to be more readable | 1 | .rb | rb | mit | splitrb/split |
10071381 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
end
def alternative
@alternative ||= if experiment.winner
experiment.winner
... | 1 | Replace winner existance checks with has_winner? to be more readable | 1 | .rb | rb | mit | splitrb/split |
10071382 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
end
def alternative
@alternative ||= if experiment.winner
experiment.winner
... | 1 | Replace winner existance checks with has_winner? to be more readable | 1 | .rb | rb | mit | splitrb/split |
10071383 | <NME> jquery.meow.css
<BEF> .meows {
position: fixed;
top: 0;
right: 0;
}
.meow {
margin: 20px 20px 0 0;
position: relative;
}
.meow .inner {
background: #191919;
zoom: 1;
filter: alpha(opacity = 75);
background: rgba(25, 25, 25, .75);
border: 2px solid transparent;
-moz-border-radius: 10px;
-we... | 62 | Merge pull request #12 from shpoonj/master | 42 | .css | meow | mit | zacstewart/Meow |
10071384 | <NME> jquery.meow.css
<BEF> .meows {
position: fixed;
top: 0;
right: 0;
}
.meow {
margin: 20px 20px 0 0;
position: relative;
}
.meow .inner {
background: #191919;
zoom: 1;
filter: alpha(opacity = 75);
background: rgba(25, 25, 25, .75);
border: 2px solid transparent;
-moz-border-radius: 10px;
-we... | 62 | Merge pull request #12 from shpoonj/master | 42 | .css | meow | mit | zacstewart/Meow |
10071385 | <NME> convert.ts
<BEF> import { equal } from 'assert';
import parser, { ParserOptions } from '../src';
import stringify from './assets/stringify-node';
function parse(abbr: string, options?: ParserOptions) {
return stringify(parser(abbr, options));
}
describe('Convert token abbreviations', () => {
it('basic',... | 10 | Attach repeater to unrolled group content | 10 | .ts | ts | mit | emmetio/emmet |
10071386 | <NME> convert.ts
<BEF> import { equal } from 'assert';
import parser, { ParserOptions } from '../src';
import stringify from './assets/stringify-node';
function parse(abbr: string, options?: ParserOptions) {
return stringify(parser(abbr, options));
}
describe('Convert token abbreviations', () => {
it('basic',... | 10 | Attach repeater to unrolled group content | 10 | .ts | ts | mit | emmetio/emmet |
10071387 | <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... | 31 | Merge pull request #78 from dimko/master | 37 | .rb | rb | mit | splitrb/split |
10071388 | <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... | 31 | Merge pull request #78 from dimko/master | 37 | .rb | rb | mit | splitrb/split |
10071389 | <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... | 31 | Merge pull request #78 from dimko/master | 37 | .rb | rb | mit | splitrb/split |
10071390 | <NME> index.ts
<BEF> import markupAbbreviation, { Abbreviation } from '@emmetio/abbreviation';
import stylesheetAbbreviation, { CSSAbbreviation } from '@emmetio/css-abbreviation';
import parseMarkup, { stringify as stringifyMarkup } from './markup';
import parseStylesheet, {
stringify as stringifyStylesheet,
co... | 1 | Export more interfaces | 1 | .ts | ts | mit | emmetio/emmet |
10071391 | <NME> index.ts
<BEF> import markupAbbreviation, { Abbreviation } from '@emmetio/abbreviation';
import stylesheetAbbreviation, { CSSAbbreviation } from '@emmetio/css-abbreviation';
import parseMarkup, { stringify as stringifyMarkup } from './markup';
import parseStylesheet, {
stringify as stringifyStylesheet,
co... | 1 | Export more interfaces | 1 | .ts | ts | mit | emmetio/emmet |
10071392 | <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
... | 8 | memoize for performance. | 4 | .rb | rb | mit | splitrb/split |
10071393 | <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
... | 8 | memoize for performance. | 4 | .rb | rb | mit | splitrb/split |
10071394 | <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
... | 8 | memoize for performance. | 4 | .rb | rb | mit | splitrb/split |
10071395 | <NME> .rspec
<BEF> ADDFILE
<MSG> Add default rspec configuration to display the slowest specs on the suite
<DFF> @@ -0,0 +1,1 @@
+--profile
\ No newline at end of file
| 1 | Add default rspec configuration to display the slowest specs on the suite | 0 | rspec | mit | splitrb/split | |
10071396 | <NME> .rspec
<BEF> ADDFILE
<MSG> Add default rspec configuration to display the slowest specs on the suite
<DFF> @@ -0,0 +1,1 @@
+--profile
\ No newline at end of file
| 1 | Add default rspec configuration to display the slowest specs on the suite | 0 | rspec | mit | splitrb/split | |
10071397 | <NME> .rspec
<BEF> ADDFILE
<MSG> Add default rspec configuration to display the slowest specs on the suite
<DFF> @@ -0,0 +1,1 @@
+--profile
\ No newline at end of file
| 1 | Add default rspec configuration to display the slowest specs on the suite | 0 | rspec | mit | splitrb/split | |
10071398 | <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)
... | 2 | Deprecated methods will be removed in 2.0.0 | 2 | .rb | rb | mit | splitrb/split |
10071399 | <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)
... | 2 | Deprecated methods will be removed in 2.0.0 | 2 | .rb | rb | mit | splitrb/split |
10071400 | <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)
... | 2 | Deprecated methods will be removed in 2.0.0 | 2 | .rb | rb | mit | splitrb/split |
10071401 | <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... | 17 | Respect experiment defaults when loading experiments in initializer. | 0 | .rb | rb | mit | splitrb/split |
10071402 | <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... | 17 | Respect experiment defaults when loading experiments in initializer. | 0 | .rb | rb | mit | splitrb/split |
10071403 | <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... | 17 | Respect experiment defaults when loading experiments in initializer. | 0 | .rb | rb | mit | splitrb/split |
10071404 | <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... | 17 | Merge pull request #40 from andreas/master | 1 | .rb | rb | mit | splitrb/split |
10071405 | <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... | 17 | Merge pull request #40 from andreas/master | 1 | .rb | rb | mit | splitrb/split |
10071406 | <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... | 17 | Merge pull request #40 from andreas/master | 1 | .rb | rb | mit | splitrb/split |
10071407 | <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__))
ADMINS = (
('chishop', 'example@example.org'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'
DATABASE_... | 4 | Added email config to settings.py | 0 | .py | py | bsd-3-clause | ask/chishop |
10071408 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternatives
def initialize(name, options = {})
options = {
:resettable => true,
}.merge(options)
@name = name.to_s
alts = o... | 33 | Merge pull request #224 from nberger/refactor-experiment-initialize | 17 | .rb | rb | mit | splitrb/split |
10071409 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternatives
def initialize(name, options = {})
options = {
:resettable => true,
}.merge(options)
@name = name.to_s
alts = o... | 33 | Merge pull request #224 from nberger/refactor-experiment-initialize | 17 | .rb | rb | mit | splitrb/split |
10071410 | <NME> experiment.rb
<BEF> # frozen_string_literal: true
module Split
class Experiment
attr_accessor :name
attr_accessor :goals
attr_accessor :alternatives
def initialize(name, options = {})
options = {
:resettable => true,
}.merge(options)
@name = name.to_s
alts = o... | 33 | Merge pull request #224 from nberger/refactor-experiment-initialize | 17 | .rb | rb | mit | splitrb/split |
10071411 | <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... | 20 | allow for a custom exclude logic | 0 | .rb | rb | mit | splitrb/split |
10071412 | <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... | 20 | allow for a custom exclude logic | 0 | .rb | rb | mit | splitrb/split |
10071413 | <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... | 20 | allow for a custom exclude logic | 0 | .rb | rb | mit | splitrb/split |
10071414 | <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 | Adds David Cramer to AUTHORS | 0 | AUTHORS | bsd-3-clause | ask/chishop | |
10071415 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Looser bundler dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10071416 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Looser bundler dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10071417 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Looser bundler dependency | 1 | .gemspec | gemspec | mit | splitrb/split |
10071418 | <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__))
ADMINS = (
('chishop', 'example@example.org'),
)
# change to False if you do not want Django's default se... | 1 | Set REGISTRATION_OPEN in settings | 0 | .py | py | bsd-3-clause | ask/chishop |
10071419 | <NME> CHANGELOG.md
<BEF> ## 4.0.1 (December 30th, 2021)
Bugfixes:
- ab_test must return metadata on error or if split is disabled/excluded user (@andrehjr, #622)
- Fix versioned experiments when used with allow_multiple_experiments=control (@andrehjr, #613)
- Only block Pinterest bot (@huoxito, #606)
- Respect experim... | 3 | update changelog | 0 | .md | md | mit | splitrb/split |
10071420 | <NME> CHANGELOG.md
<BEF> ## 4.0.1 (December 30th, 2021)
Bugfixes:
- ab_test must return metadata on error or if split is disabled/excluded user (@andrehjr, #622)
- Fix versioned experiments when used with allow_multiple_experiments=control (@andrehjr, #613)
- Only block Pinterest bot (@huoxito, #606)
- Respect experim... | 3 | update changelog | 0 | .md | md | mit | splitrb/split |
10071421 | <NME> CHANGELOG.md
<BEF> ## 4.0.1 (December 30th, 2021)
Bugfixes:
- ab_test must return metadata on error or if split is disabled/excluded user (@andrehjr, #622)
- Fix versioned experiments when used with allow_multiple_experiments=control (@andrehjr, #613)
- Only block Pinterest bot (@huoxito, #606)
- Respect experim... | 3 | update changelog | 0 | .md | md | mit | splitrb/split |
10071422 | <NME> TODO
<BEF> * Write a tutorial on how to set up the server, registering projects, and
how to upload releases.
* Make it possible to register users via distutils.
(There should be a setting to turn this feature on/off).
There should be a setting to turn this feature on/off for private PyPIs.
[taken-by: sve... | 3 | Removed done todo item | 4 | TODO | bsd-3-clause | ask/chishop | |
10071423 | <NME> stylesheet.ts
<BEF> ADDFILE
<MSG> Working implementation of CSS snippets resolver
<DFF> @@ -0,0 +1,50 @@
+import { strictEqual as equal } from 'assert';
+import { stylesheet as expandAbbreviation, parseStylesheetSnippets, resolveConfig } from '../src';
+
+const defaultConfig = resolveConfig({
+ type: 'stylesh... | 50 | Working implementation of CSS snippets resolver | 0 | .ts | ts | mit | emmetio/emmet |
10071424 | <NME> stylesheet.ts
<BEF> ADDFILE
<MSG> Working implementation of CSS snippets resolver
<DFF> @@ -0,0 +1,50 @@
+import { strictEqual as equal } from 'assert';
+import { stylesheet as expandAbbreviation, parseStylesheetSnippets, resolveConfig } from '../src';
+
+const defaultConfig = resolveConfig({
+ type: 'stylesh... | 50 | Working implementation of CSS snippets resolver | 0 | .ts | ts | mit | emmetio/emmet |
10071425 | <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... | 4 | push out updated benchmark link from post; update browser build | 7 | .js | js | bsd-2-clause | jlongster/transducers.js |
10071426 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 2 | refactor(components): Migrate sm-buttom component to TS | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10071427 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 2 | refactor(components): Migrate sm-buttom component to TS | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10071428 | <NME> webpack.config.js
<BEF> var path = require('path');
var webpack = require('webpack');
var VERSION = require('./package.json').version;
var banner =
'/*!\n' +
' * Semantic-UI AngularJS integration\n' +
' * https://github.com/semantic-org/semantic-ui-angular\n' +
' * @license MIT\n' +
' * v' + VERSION + ... | 2 | refactor(components): Migrate sm-buttom component to TS | 1 | .js | config | mit | Semantic-Org/Semantic-UI-Angular |
10071429 | <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 #544 from splitrb/exclude-visitor-before-loading-experiment | 0 | .rb | rb | mit | splitrb/split |
10071430 | <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 #544 from splitrb/exclude-visitor-before-loading-experiment | 0 | .rb | rb | mit | splitrb/split |
10071431 | <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 #544 from splitrb/exclude-visitor-before-loading-experiment | 0 | .rb | rb | mit | splitrb/split |
10071432 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<p class="intro">The list below contains all the registered experiments along with the numbe... | 1 | Extracted dashboard experiment html into a partial | 71 | .erb | erb | mit | splitrb/split |
10071433 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<p class="intro">The list below contains all the registered experiments along with the numbe... | 1 | Extracted dashboard experiment html into a partial | 71 | .erb | erb | mit | splitrb/split |
10071434 | <NME> index.erb
<BEF> <% if @experiments.any? %>
<p class="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
<p class="intro">The list below contains all the registered experiments along with the numbe... | 1 | Extracted dashboard experiment html into a partial | 71 | .erb | erb | mit | splitrb/split |
10071435 | <NME> whiplash.rb
<BEF> # frozen_string_literal: true
# A multi-armed bandit implementation inspired by
# @aaronsw and victorykit/whiplash
module Split
module Algorithms
module Whiplash
class << self
end
private
def self.arm_guess(participants, completions)
a = [participa... | 6 | Whiplash: use all_completed_count instead of completed_count to take goal completions into account | 6 | .rb | rb | mit | splitrb/split |
10071436 | <NME> whiplash.rb
<BEF> # frozen_string_literal: true
# A multi-armed bandit implementation inspired by
# @aaronsw and victorykit/whiplash
module Split
module Algorithms
module Whiplash
class << self
end
private
def self.arm_guess(participants, completions)
a = [participa... | 6 | Whiplash: use all_completed_count instead of completed_count to take goal completions into account | 6 | .rb | rb | mit | splitrb/split |
10071437 | <NME> whiplash.rb
<BEF> # frozen_string_literal: true
# A multi-armed bandit implementation inspired by
# @aaronsw and victorykit/whiplash
module Split
module Algorithms
module Whiplash
class << self
end
private
def self.arm_guess(participants, completions)
a = [participa... | 6 | Whiplash: use all_completed_count instead of completed_count to take goal completions into account | 6 | .rb | rb | mit | splitrb/split |
10071438 | <NME> parser.ts
<BEF> import { strictEqual as equal, throws } from 'assert';
import parser, { ParseOptions, FunctionCall } from '../src/parser';
import tokenizer from '../src/tokenizer';
import stringify from './assets/stringify';
const parse = (abbr: string, opt?: ParseOptions) => parser(tokenizer(abbr), opt);
const ... | 3 | Support slash in CSS attribute values | 0 | .ts | ts | mit | emmetio/emmet |
10071439 | <NME> parser.ts
<BEF> import { strictEqual as equal, throws } from 'assert';
import parser, { ParseOptions, FunctionCall } from '../src/parser';
import tokenizer from '../src/tokenizer';
import stringify from './assets/stringify';
const parse = (abbr: string, opt?: ParseOptions) => parser(tokenizer(abbr), opt);
const ... | 3 | Support slash in CSS attribute values | 0 | .ts | ts | mit | emmetio/emmet |
10071440 | <NME> LICENSE
<BEF> ADDFILE
<MSG> Added license
<DFF> @@ -0,0 +1,20 @@
+Copyright (c) 2011 Andrew Nesbitt
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+withou... | 20 | Added license | 0 | LICENSE | mit | splitrb/split | |
10071441 | <NME> LICENSE
<BEF> ADDFILE
<MSG> Added license
<DFF> @@ -0,0 +1,20 @@
+Copyright (c) 2011 Andrew Nesbitt
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+withou... | 20 | Added license | 0 | LICENSE | mit | splitrb/split | |
10071442 | <NME> LICENSE
<BEF> ADDFILE
<MSG> Added license
<DFF> @@ -0,0 +1,20 @@
+Copyright (c) 2011 Andrew Nesbitt
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+withou... | 20 | Added license | 0 | LICENSE | mit | splitrb/split | |
10071443 | <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 | Merge pull request #391 from pakallis/remove-obsolete-code-save-metadata | 1 | .rb | rb | mit | splitrb/split |
10071444 | <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 | Merge pull request #391 from pakallis/remove-obsolete-code-save-metadata | 1 | .rb | rb | mit | splitrb/split |
10071445 | <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 | Merge pull request #391 from pakallis/remove-obsolete-code-save-metadata | 1 | .rb | rb | mit | splitrb/split |
10071446 | <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 | Change Release.license to TextField (someone seems to be sending their whole LICENSE.txt file!) | 1 | .py | py | bsd-3-clause | ask/chishop |
10071447 | <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... | 6 | Only trigger completion callback with valid Trial | 0 | .rb | rb | mit | splitrb/split |
10071448 | <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... | 6 | Only trigger completion callback with valid Trial | 0 | .rb | rb | mit | splitrb/split |
10071449 | <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... | 6 | Only trigger completion callback with valid Trial | 0 | .rb | rb | mit | splitrb/split |