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 |
|---|---|---|---|---|---|---|---|---|
10069550 | <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 | Drop support for Rails 4.x series | 1 | .gemspec | gemspec | mit | splitrb/split |
10069551 | <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 | Drop support for Rails 4.x series | 1 | .gemspec | gemspec | mit | splitrb/split |
10069552 | <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"),
... | 4 | Projects now has owners, and you must be logged in to register/upload | 1 | .py | py | bsd-3-clause | ask/chishop |
10069553 | <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... | 82 | Merge branch 'callbacks' | 18 | .js | meow | mit | zacstewart/Meow |
10069557 | <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... | 82 | Merge branch 'callbacks' | 18 | .js | meow | mit | zacstewart/Meow |
10069558 | <NME> __init__.py
<BEF> from django.http import Http404
from django.shortcuts import render_to_response
from django.template import RequestContext
from djangopypi.models import Project, Release
from djangopypi.http import HttpResponseNotImplemented
from djangopypi.http import parse_distutils_request
from djangopypi.vi... | 2 | Some cosmetic changes to viniciuschagas code, + trying to organize views in a different way. | 1 | .py | py | bsd-3-clause | ask/chishop |
10069559 | <NME> http.py
<BEF> ADDFILE
<MSG> added unauthorized response class
<DFF> @@ -0,0 +1,48 @@
+""" http.py
+
+Copyright (c) 2009, Ask Solem
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redi... | 48 | added unauthorized response class | 0 | .py | py | bsd-3-clause | ask/chishop |
10069560 | <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 | Handle a subtle case with the config | 0 | .rb | rb | mit | splitrb/split |
10069561 | <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 | Handle a subtle case with the config | 0 | .rb | rb | mit | splitrb/split |
10069562 | <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 | Handle a subtle case with the config | 0 | .rb | rb | mit | splitrb/split |
10069563 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *altern... | 1 | [private-methods-in-controllers] prevents split helper-methods to become actions in the Rails controllers | 2 | .rb | rb | mit | splitrb/split |
10069564 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *altern... | 1 | [private-methods-in-controllers] prevents split helper-methods to become actions in the Rails controllers | 2 | .rb | rb | mit | splitrb/split |
10069565 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
module_function
def ab_test(metric_descriptor, control = nil, *alternatives)
begin
experiment = ExperimentCatalog.find_or_initialize(metric_descriptor, control, *altern... | 1 | [private-methods-in-controllers] prevents split helper-methods to become actions in the Rails controllers | 2 | .rb | rb | mit | splitrb/split |
10069566 | <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... | 30 | Merge pull request #389 from andreibondarev/rename-finished-method | 30 | .rb | rb | mit | splitrb/split |
10069567 | <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... | 30 | Merge pull request #389 from andreibondarev/rename-finished-method | 30 | .rb | rb | mit | splitrb/split |
10069568 | <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... | 30 | Merge pull request #389 from andreibondarev/rename-finished-method | 30 | .rb | rb | mit | splitrb/split |
10069569 | <NME> README.md
<BEF>
# transducers.js
A small library for generalized transformation of data. This provides a small amount a transformation functions that can be applied to any data structure. It is a direct port of Clojure's [transducers](http://blog.cognitect.com/blog/2014/8/6/transducers-are-coming) in JavaScript... | 6 | add todo | 1 | .md | md | bsd-2-clause | jlongster/transducers.js |
10069570 | <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 branch 'master' into refactoring | 1 | .rb | rb | mit | splitrb/split |
10069571 | <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 branch 'master' into refactoring | 1 | .rb | rb | mit | splitrb/split |
10069572 | <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 branch 'master' into refactoring | 1 | .rb | rb | mit | splitrb/split |
10069573 | <NME> alternative_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/alternative"
describe Split::Alternative do
let(:alternative) {
Split::Alternative.new("Basket", "basket_text")
}
let(:alternative2) {
Split::Alternative.new("Cart", "basket_text")
}
let!(:experiment... | 47 | Uncomment tests | 26 | .rb | rb | mit | splitrb/split |
10069574 | <NME> alternative_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/alternative"
describe Split::Alternative do
let(:alternative) {
Split::Alternative.new("Basket", "basket_text")
}
let(:alternative2) {
Split::Alternative.new("Cart", "basket_text")
}
let!(:experiment... | 47 | Uncomment tests | 26 | .rb | rb | mit | splitrb/split |
10069575 | <NME> alternative_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/alternative"
describe Split::Alternative do
let(:alternative) {
Split::Alternative.new("Basket", "basket_text")
}
let(:alternative2) {
Split::Alternative.new("Cart", "basket_text")
}
let!(:experiment... | 47 | Uncomment tests | 26 | .rb | rb | mit | splitrb/split |
10069576 | <NME> rating.ts
<BEF> ADDFILE
<MSG> refactor(modules/rating): Migrate sm-rating component to TS
<DFF> @@ -0,0 +1,173 @@
+///<reference path="../../../typings/angularjs/angular.d.ts"/>
+
+'use strict';
+
+const ratingConfig = {
+ max: 5,
+ size: '',
+ stateActive: 'active',
+ stateHover: 'selected',
+ sta... | 173 | refactor(modules/rating): Migrate sm-rating component to TS | 0 | .ts | ts | mit | Semantic-Org/Semantic-UI-Angular |
10069577 | <NME> rating.ts
<BEF> ADDFILE
<MSG> refactor(modules/rating): Migrate sm-rating component to TS
<DFF> @@ -0,0 +1,173 @@
+///<reference path="../../../typings/angularjs/angular.d.ts"/>
+
+'use strict';
+
+const ratingConfig = {
+ max: 5,
+ size: '',
+ stateActive: 'active',
+ stateHover: 'selected',
+ sta... | 173 | refactor(modules/rating): Migrate sm-rating component to TS | 0 | .ts | ts | mit | Semantic-Org/Semantic-UI-Angular |
10069578 | <NME> rating.ts
<BEF> ADDFILE
<MSG> refactor(modules/rating): Migrate sm-rating component to TS
<DFF> @@ -0,0 +1,173 @@
+///<reference path="../../../typings/angularjs/angular.d.ts"/>
+
+'use strict';
+
+const ratingConfig = {
+ max: 5,
+ size: '',
+ stateActive: 'active',
+ stateHover: 'selected',
+ sta... | 173 | refactor(modules/rating): Migrate sm-rating component to TS | 0 | .ts | ts | mit | Semantic-Org/Semantic-UI-Angular |
10069579 | <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 #342 from nfm/rescue-from-all-redis-errors | 1 | .rb | rb | mit | splitrb/split |
10069580 | <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 #342 from nfm/rescue-from-all-redis-errors | 1 | .rb | rb | mit | splitrb/split |
10069581 | <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 #342 from nfm/rescue-from-all-redis-errors | 1 | .rb | rb | mit | splitrb/split |
10069582 | <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 | Use fakeredis for testing (#412) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069583 | <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 | Use fakeredis for testing (#412) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069584 | <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 | Use fakeredis for testing (#412) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069585 | <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"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Added guard-rspec as a development dependency with a Guardfile | 0 | .gemspec | gemspec | mit | splitrb/split |
10069589 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Added guard-rspec as a development dependency with a Guardfile | 0 | .gemspec | gemspec | mit | splitrb/split |
10069590 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "split/version"
Gem::Specification.new do |s|
s.name = "split"
s.version = Split::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s... | 1 | Added guard-rspec as a development dependency with a Guardfile | 0 | .gemspec | gemspec | mit | splitrb/split |
10069591 | <NME> jquery.meow.css
<BEF> .meows {
position: fixed;
top: 0;
right: 0;
}
.meow {
position: relative;
margin: 20px 20px 0 0;
}
.meow .inner {
width: 300px;
min-height: 48px;
padding: 10px;
font-family: Helvetica, Arial, sans-serif;
font-size: 15px;
color: #fff;
text-shadow: 1px 1px 3px #000;
... | 5 | add microsoft prefixes | 0 | .css | meow | mit | zacstewart/Meow |
10069592 | <NME> jquery.meow.css
<BEF> .meows {
position: fixed;
top: 0;
right: 0;
}
.meow {
position: relative;
margin: 20px 20px 0 0;
}
.meow .inner {
width: 300px;
min-height: 48px;
padding: 10px;
font-family: Helvetica, Arial, sans-serif;
font-size: 15px;
color: #fff;
text-shadow: 1px 1px 3px #000;
... | 5 | add microsoft prefixes | 0 | .css | meow | mit | zacstewart/Meow |
10069593 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Helper do
include Split::Helper
describe "ab_test" do
it "should not raise an error when passed strings for alternatives" do
it "should not raise an error when passed strings for alternatives" do
expect ... | 4 | DRY spec | 19 | .rb | rb | mit | splitrb/split |
10069594 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Helper do
include Split::Helper
describe "ab_test" do
it "should not raise an error when passed strings for alternatives" do
it "should not raise an error when passed strings for alternatives" do
expect ... | 4 | DRY spec | 19 | .rb | rb | mit | splitrb/split |
10069595 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Helper do
include Split::Helper
describe "ab_test" do
it "should not raise an error when passed strings for alternatives" do
it "should not raise an error when passed strings for alternatives" do
expect ... | 4 | DRY spec | 19 | .rb | rb | mit | splitrb/split |
10069596 | <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... | 68 | Pull metric tests out of context, do own test init | 57 | .rb | rb | mit | splitrb/split |
10069597 | <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... | 68 | Pull metric tests out of context, do own test init | 57 | .rb | rb | mit | splitrb/split |
10069598 | <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... | 68 | Pull metric tests out of context, do own test init | 57 | .rb | rb | mit | splitrb/split |
10069599 | <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 | more readme | 1 | .md | md | bsd-2-clause | jlongster/transducers.js |
10069600 | <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
... | 87 | Move methods around | 84 | .rb | rb | mit | splitrb/split |
10069601 | <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
... | 87 | Move methods around | 84 | .rb | rb | mit | splitrb/split |
10069602 | <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
... | 87 | Move methods around | 84 | .rb | rb | mit | splitrb/split |
10069603 | <NME> transducers.js
<BEF>
// basic protocol helpers
var symbolExists = typeof Symbol !== 'undefined';
var protocols = {
iterator: symbolExists ? Symbol.iterator : '@@iterator'
};
function throwProtocolError(name, coll) {
throw new Error("don't know how to " + name + " collection: " +
coll);
}... | 0 | Merge pull request #31 from tgriesser/dead-code-removal | 13 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069604 | <NME> engine.rb
<BEF> module Split
class Engine < ::Rails::Engine
initializer "split" do |app|
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
end
end
end
::ActionController::Base.helper Split::CombinedExperimentsHelper
end
... | 5 | add include_rails_helper option | 3 | .rb | rb | mit | splitrb/split |
10069605 | <NME> engine.rb
<BEF> module Split
class Engine < ::Rails::Engine
initializer "split" do |app|
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
end
end
end
::ActionController::Base.helper Split::CombinedExperimentsHelper
end
... | 5 | add include_rails_helper option | 3 | .rb | rb | mit | splitrb/split |
10069606 | <NME> engine.rb
<BEF> module Split
class Engine < ::Rails::Engine
initializer "split" do |app|
ActionController::Base.send :include, Split::Helper
ActionController::Base.helper Split::Helper
end
end
end
::ActionController::Base.helper Split::CombinedExperimentsHelper
end
... | 5 | add include_rails_helper option | 3 | .rb | rb | mit | splitrb/split |
10069607 | <NME> __init__.py
<BEF> VERSION = (0, 2, 0)
__version__ = ".".join(map(str, VERSION))
"""
VERSION = (0, 1, 0)
__version__ = ".".join(map(str, VERSION))
<MSG> Bumped version to 0.2.0
<DFF> @@ -29,5 +29,5 @@ POSSIBILITY OF SUCH DAMAGE.
"""
-VERSION = (0, 1, 0)
+VERSION = (0, 2, 0)
__version__ = ".".join(map(str... | 1 | Bumped version to 0.2.0 | 1 | .py | py | bsd-3-clause | ask/chishop |
10069608 | <NME> urls.py
<BEF> # -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url, include
urlpatterns = patterns("",
# Simple PyPI
url(r'^/?$', "djangopypi.views.simple",
name="djangopypi-simple"),
url(r'^(?P<dist_name>[\w\d_\.\-]+)/(?P<version>[\w\.\d\-_]+)/?',
"djangopypi.... | 5 | cleaned up url patterns | 5 | .py | py | bsd-3-clause | ask/chishop |
10069609 | <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 | Sort experiments by whether that have winner and that's name at Experiment#all_active_first | 1 | .rb | rb | mit | splitrb/split |
10069610 | <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 | Sort experiments by whether that have winner and that's name at Experiment#all_active_first | 1 | .rb | rb | mit | splitrb/split |
10069611 | <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 | Sort experiments by whether that have winner and that's name at Experiment#all_active_first | 1 | .rb | rb | mit | splitrb/split |
10069612 | <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 | Clean up old versions of experiments from sessions | 0 | .rb | rb | mit | splitrb/split |
10069613 | <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 | Clean up old versions of experiments from sessions | 0 | .rb | rb | mit | splitrb/split |
10069614 | <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 | Clean up old versions of experiments from sessions | 0 | .rb | rb | mit | splitrb/split |
10069615 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 8 | Check to see if being run in Rails application and run in before_initialize | 1 | .rb | rb | mit | splitrb/split |
10069616 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 8 | Check to see if being run in Rails application and run in before_initialize | 1 | .rb | rb | mit | splitrb/split |
10069617 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 8 | Check to see if being run in Rails application and run in before_initialize | 1 | .rb | rb | mit | splitrb/split |
10069618 | <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... | 3 | Initial prettiness for Split dashboard | 1 | .erb | erb | mit | splitrb/split |
10069619 | <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... | 3 | Initial prettiness for Split dashboard | 1 | .erb | erb | mit | splitrb/split |
10069620 | <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... | 3 | Initial prettiness for Split dashboard | 1 | .erb | erb | mit | splitrb/split |
10069621 | <NME> LICENSE
<BEF> 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
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (t... | 1 | Merge branch 'master' of github.com:layflags/split | 1 | LICENSE | mit | splitrb/split | |
10069622 | <NME> LICENSE
<BEF> 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
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (t... | 1 | Merge branch 'master' of github.com:layflags/split | 1 | LICENSE | mit | splitrb/split | |
10069623 | <NME> LICENSE
<BEF> 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
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (t... | 1 | Merge branch 'master' of github.com:layflags/split | 1 | LICENSE | mit | splitrb/split | |
10069624 | <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);
}... | 34 | minor tweaks | 18 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069625 | <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 | Merge pull request #3 from kimagure/patch-1 | 2 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069626 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.4
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.4 | 1 | .rb | rb | mit | splitrb/split |
10069627 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.4
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.4 | 1 | .rb | rb | mit | splitrb/split |
10069628 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 6
PATCH = 3
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v0.6.4
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 6
- PATCH = 3
+ PATCH = 4
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
| 1 | v0.6.4 | 1 | .rb | rb | mit | splitrb/split |
10069629 | <NME> transducers.js
<BEF>
// basic protocol helpers
var symbolExists = typeof Symbol !== 'undefined';
// Basic duck typing to accept an ill-formed iterator that doesn't
// conform to the iterator protocol (all iterators should have the
// @@iterator method and return themselves, but some engines don't
... | 267 | support this context, improve various APIs | 206 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069630 | <NME> README.md
<BEF> # [Split](https://libraries.io/rubygems/split)
[](http://badge.fury.io/rb/split)
[](https://travis-ci.org/splitrb/split)
[
[](http://badge.fury.io/rb/split)
[](https://travis-ci.org/splitrb/split)
[
[](http://badge.fury.io/rb/split)
[](https://travis-ci.org/splitrb/split)
[
Rack::Utils.escape_html(text)
end
def url(*path_parts)
[ path_prefix, path_parts ].join("/").squeeze("/")
end
def path_prefix
request.env["SCRIPT_NAME"]
end
end
... | 3 | use the built in round helper | 1 | .rb | rb | mit | splitrb/split |
10069634 | <NME> helpers.rb
<BEF> # frozen_string_literal: true
module Split
module DashboardHelpers
def h(text)
Rack::Utils.escape_html(text)
end
def url(*path_parts)
[ path_prefix, path_parts ].join("/").squeeze("/")
end
def path_prefix
request.env["SCRIPT_NAME"]
end
end
... | 3 | use the built in round helper | 1 | .rb | rb | mit | splitrb/split |
10069635 | <NME> helpers.rb
<BEF> # frozen_string_literal: true
module Split
module DashboardHelpers
def h(text)
Rack::Utils.escape_html(text)
end
def url(*path_parts)
[ path_prefix, path_parts ].join("/").squeeze("/")
end
def path_prefix
request.env["SCRIPT_NAME"]
end
end
... | 3 | use the built in round helper | 1 | .rb | rb | mit | splitrb/split |
10069636 | <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 | Started to test the dashboard using Rack::Test | 0 | .gemspec | gemspec | mit | splitrb/split |
10069637 | <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 | Started to test the dashboard using Rack::Test | 0 | .gemspec | gemspec | mit | splitrb/split |
10069638 | <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 | Started to test the dashboard using Rack::Test | 0 | .gemspec | gemspec | mit | splitrb/split |
10069639 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.5"
end
<MSG> Merge pull request #79 from buddhamagnet/master
Refactoring and cleanup
<DFF> @@ -1,3 +1,6 @@
module Split
- VERSION = "0.4.5"
+ MAJOR = 0
+ MINOR = 4
+ TINY = 5
+ VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 4 | Merge pull request #79 from buddhamagnet/master | 1 | .rb | rb | mit | splitrb/split |
10069640 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.5"
end
<MSG> Merge pull request #79 from buddhamagnet/master
Refactoring and cleanup
<DFF> @@ -1,3 +1,6 @@
module Split
- VERSION = "0.4.5"
+ MAJOR = 0
+ MINOR = 4
+ TINY = 5
+ VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 4 | Merge pull request #79 from buddhamagnet/master | 1 | .rb | rb | mit | splitrb/split |
10069641 | <NME> version.rb
<BEF> module Split
VERSION = "0.4.5"
end
<MSG> Merge pull request #79 from buddhamagnet/master
Refactoring and cleanup
<DFF> @@ -1,3 +1,6 @@
module Split
- VERSION = "0.4.5"
+ MAJOR = 0
+ MINOR = 4
+ TINY = 5
+ VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 4 | Merge pull request #79 from buddhamagnet/master | 1 | .rb | rb | mit | splitrb/split |
10069642 | <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);
}... | 20 | fix recent interpose, takeNth and repeat transducers to use new protocol methods | 20 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069643 | <NME> setup.py
<BEF> #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import codecs
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
setup(
name='chishop',
version=__impo... | 53 | Made chishop/media a python package so it's incldued in the repo. | 2 | .py | py | bsd-3-clause | ask/chishop |
10069644 | <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],... | 10 | Added another dashboard spec | 0 | .rb | rb | mit | splitrb/split |
10069645 | <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],... | 10 | Added another dashboard spec | 0 | .rb | rb | mit | splitrb/split |
10069646 | <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],... | 10 | Added another dashboard spec | 0 | .rb | rb | mit | splitrb/split |
10069647 | <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 | Add deprecation warnings | 0 | .rb | rb | mit | splitrb/split |
10069648 | <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 | Add deprecation warnings | 0 | .rb | rb | mit | splitrb/split |
10069649 | <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 | Add deprecation warnings | 0 | .rb | rb | mit | splitrb/split |