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 |
|---|---|---|---|---|---|---|---|---|
10070050 | <NME> engine.rb
<BEF> # frozen_string_literal: true
module Split
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActiveSupport.on_load(:action_controller) do
include Split::Helper
helper Split::Helper
include Split::CombinedExperimentsHelper
... | 4 | Reference ActionController directly when including split helpers (#602) | 4 | .rb | rb | mit | splitrb/split |
10070051 | <NME> engine.rb
<BEF> # frozen_string_literal: true
module Split
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActiveSupport.on_load(:action_controller) do
include Split::Helper
helper Split::Helper
include Split::CombinedExperimentsHelper
... | 4 | Reference ActionController directly when including split helpers (#602) | 4 | .rb | rb | mit | splitrb/split |
10070052 | <NME> engine.rb
<BEF> # frozen_string_literal: true
module Split
initializer "split" do |app|
if Split.configuration.include_rails_helper
ActiveSupport.on_load(:action_controller) do
include Split::Helper
helper Split::Helper
include Split::CombinedExperimentsHelper
... | 4 | Reference ActionController directly when including split helpers (#602) | 4 | .rb | rb | mit | splitrb/split |
10070053 | <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... | 85 | Add redis failover solution | 1 | .rb | rb | mit | splitrb/split |
10070054 | <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... | 85 | Add redis failover solution | 1 | .rb | rb | mit | splitrb/split |
10070055 | <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... | 85 | Add redis failover solution | 1 | .rb | rb | mit | splitrb/split |
10070056 | <NME> bench.js
<BEF> var Benchmark = require('benchmark');
var t = require('../transducers');
var _ = require('lodash');
var u = require('underscore');
var suite = Benchmark.Suite('transducers');
function addTen(x) { return x + 10; }
function double(x) { return x * 2; }
function even(x) { return x % 2 ===0; }
funct... | 1 | reset benchmark to original | 1 | .js | js | bsd-2-clause | jlongster/transducers.js |
10070057 | <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 | Remove extra space after method definition | 1 | .rb | rb | mit | splitrb/split |
10070058 | <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 | Remove extra space after method definition | 1 | .rb | rb | mit | splitrb/split |
10070059 | <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 | Remove extra space after method definition | 1 | .rb | rb | mit | splitrb/split |
10070060 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | Filter some more bots (#542) | 0 | .rb | rb | mit | splitrb/split |
10070061 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | Filter some more bots (#542) | 0 | .rb | rb | mit | splitrb/split |
10070062 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 3 | Filter some more bots (#542) | 0 | .rb | rb | mit | splitrb/split |
10070063 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
helper
metric
persistence
trial
version].each do |f|
require "split/#{f}"
require "split/experiment"
require "split/experiment_catalog"
require "split/extension... | 1 | include encapsulated_helper | 0 | .rb | rb | mit | splitrb/split |
10070064 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
helper
metric
persistence
trial
version].each do |f|
require "split/#{f}"
require "split/experiment"
require "split/experiment_catalog"
require "split/extension... | 1 | include encapsulated_helper | 0 | .rb | rb | mit | splitrb/split |
10070065 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
helper
metric
persistence
trial
version].each do |f|
require "split/#{f}"
require "split/experiment"
require "split/experiment_catalog"
require "split/extension... | 1 | include encapsulated_helper | 0 | .rb | rb | mit | splitrb/split |
10070066 | <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)
... | 3 | Fix Layout/TrailingWhitespace | 3 | .rb | rb | mit | splitrb/split |
10070067 | <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)
... | 3 | Fix Layout/TrailingWhitespace | 3 | .rb | rb | mit | splitrb/split |
10070068 | <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)
... | 3 | Fix Layout/TrailingWhitespace | 3 | .rb | rb | mit | splitrb/split |
10070069 | <NME> 6.0.gemfile
<BEF> ADDFILE
<MSG> Merge pull request #559 from edmilton/rails_6_beta
* Add appraisal config to Rails 6 beta 3.
Add 6.0 gemfile on travis.
<DFF> @@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "codeclimate-test-reporter"
+gem "rail... | 9 | Merge pull request #559 from edmilton/rails_6_beta | 0 | .gemfile | 0 | mit | splitrb/split |
10070070 | <NME> 6.0.gemfile
<BEF> ADDFILE
<MSG> Merge pull request #559 from edmilton/rails_6_beta
* Add appraisal config to Rails 6 beta 3.
Add 6.0 gemfile on travis.
<DFF> @@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "codeclimate-test-reporter"
+gem "rail... | 9 | Merge pull request #559 from edmilton/rails_6_beta | 0 | .gemfile | 0 | mit | splitrb/split |
10070071 | <NME> 6.0.gemfile
<BEF> ADDFILE
<MSG> Merge pull request #559 from edmilton/rails_6_beta
* Add appraisal config to Rails 6 beta 3.
Add 6.0 gemfile on travis.
<DFF> @@ -0,0 +1,9 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "appraisal"
+gem "codeclimate-test-reporter"
+gem "rail... | 9 | Merge pull request #559 from edmilton/rails_6_beta | 0 | .gemfile | 0 | mit | splitrb/split |
10070072 | <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
... | 4 | An experiment has a control alternative | 0 | .rb | rb | mit | splitrb/split |
10070073 | <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
... | 4 | An experiment has a control alternative | 0 | .rb | rb | mit | splitrb/split |
10070074 | <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
... | 4 | An experiment has a control alternative | 0 | .rb | rb | mit | splitrb/split |
10070075 | <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
... | 2 | return 0 if working out standard deviation would divide by zero | 0 | .rb | rb | mit | splitrb/split |
10070076 | <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
... | 2 | return 0 if working out standard deviation would divide by zero | 0 | .rb | rb | mit | splitrb/split |
10070077 | <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
... | 2 | return 0 if working out standard deviation would divide by zero | 0 | .rb | rb | mit | splitrb/split |
10070078 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 22 | Merge pull request #395 from pakallis/configuration-experiment | 28 | .rb | rb | mit | splitrb/split |
10070079 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 22 | Merge pull request #395 from pakallis/configuration-experiment | 28 | .rb | rb | mit | splitrb/split |
10070080 | <NME> configuration.rb
<BEF> # frozen_string_literal: true
module Split
class Configuration
attr_accessor :ignore_ip_addresses
attr_accessor :ignore_filter
attr_accessor :db_failover
attr_accessor :db_failover_on_db_error
attr_accessor :db_failover_allow_parameter_override
attr_accessor :allo... | 22 | Merge pull request #395 from pakallis/configuration-experiment | 28 | .rb | rb | mit | splitrb/split |
10070081 | <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... | 3 | finished method accept goals that are not passed as arrays | 3 | .rb | rb | mit | splitrb/split |
10070082 | <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... | 3 | finished method accept goals that are not passed as arrays | 3 | .rb | rb | mit | splitrb/split |
10070083 | <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... | 3 | finished method accept goals that are not passed as arrays | 3 | .rb | rb | mit | splitrb/split |
10070084 | <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... | 13 | Merge pull request #411 from ndelage/custom-persistence-adapter | 0 | .rb | rb | mit | splitrb/split |
10070085 | <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... | 13 | Merge pull request #411 from ndelage/custom-persistence-adapter | 0 | .rb | rb | mit | splitrb/split |
10070086 | <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... | 13 | Merge pull request #411 from ndelage/custom-persistence-adapter | 0 | .rb | rb | mit | splitrb/split |
10070087 | <NME> .gitignore
<BEF> *.gem
.bundle
Gemfile.lock
pkg/*
.idea
coverage
issues.rtf
dump.rdb
.gitignore
gemfiles/*.gemfile.lock
.DS_Store
<MSG> ignore compiled rubinius files
<DFF> @@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
+*.rbc
\ No newline at end of file
| 1 | ignore compiled rubinius files | 0 | gitignore | mit | splitrb/split | |
10070088 | <NME> .gitignore
<BEF> *.gem
.bundle
Gemfile.lock
pkg/*
.idea
coverage
issues.rtf
dump.rdb
.gitignore
gemfiles/*.gemfile.lock
.DS_Store
<MSG> ignore compiled rubinius files
<DFF> @@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
+*.rbc
\ No newline at end of file
| 1 | ignore compiled rubinius files | 0 | gitignore | mit | splitrb/split | |
10070089 | <NME> .gitignore
<BEF> *.gem
.bundle
Gemfile.lock
pkg/*
.idea
coverage
issues.rtf
dump.rdb
.gitignore
gemfiles/*.gemfile.lock
.DS_Store
<MSG> ignore compiled rubinius files
<DFF> @@ -2,3 +2,4 @@
.bundle
Gemfile.lock
pkg/*
+*.rbc
\ No newline at end of file
| 1 | ignore compiled rubinius files | 0 | gitignore | mit | splitrb/split | |
10070090 | <NME> stylesheet.ts
<BEF> import { strictEqual as equal, ok } from 'assert';
import { stylesheet as expandAbbreviation, resolveConfig, CSSAbbreviationScope } from '../src';
import score from '../src/stylesheet/score';
const defaultConfig = resolveConfig({
type: 'stylesheet',
options: {
'output.field': ... | 9 | [stylesheet] Changed `fz` to `fsz` snippet | 1 | .ts | ts | mit | emmetio/emmet |
10070091 | <NME> stylesheet.ts
<BEF> import { strictEqual as equal, ok } from 'assert';
import { stylesheet as expandAbbreviation, resolveConfig, CSSAbbreviationScope } from '../src';
import score from '../src/stylesheet/score';
const defaultConfig = resolveConfig({
type: 'stylesheet',
options: {
'output.field': ... | 9 | [stylesheet] Changed `fz` to `fsz` snippet | 1 | .ts | ts | mit | emmetio/emmet |
10070092 | <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 | Experiment.all only fetches from Redis | 10 | .rb | rb | mit | splitrb/split |
10070093 | <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 | Experiment.all only fetches from Redis | 10 | .rb | rb | mit | splitrb/split |
10070094 | <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 | Experiment.all only fetches from Redis | 10 | .rb | rb | mit | splitrb/split |
10070095 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 18 | Merge pull request #697 from knarewski/stop-crashing-on-non-hash-json | 4 | .rb | rb | mit | splitrb/split |
10070096 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 18 | Merge pull request #697 from knarewski/stop-crashing-on-non-hash-json | 4 | .rb | rb | mit | splitrb/split |
10070097 | <NME> cookie_adapter_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "rack/test"
describe Split::Persistence::CookieAdapter do
subject { described_class.new(context) }
shared_examples "sets cookies correctly" do
describe "#[] and #[]=" do
it "set and return the value for given... | 18 | Merge pull request #697 from knarewski/stop-crashing-on-non-hash-json | 4 | .rb | rb | mit | splitrb/split |
10070098 | <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... | 9 | add test instructions | 0 | .md | md | bsd-2-clause | jlongster/transducers.js |
10070099 | <NME> TODO
<BEF> PyPI feature replication
========================
* Make it possible to register users via distutils.
There should be a setting to turn this feature on/off for private PyPIs.
[taken-by: sverrej]
* Roles (co-owners/maintainers)
- One possible solution:
http://github.com/initcrash/d... | 3 | Added items to the TODO. | 0 | TODO | bsd-3-clause | ask/chishop | |
10070100 | <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... | 67 | Support finishing by metric | 0 | .rb | rb | mit | splitrb/split |
10070101 | <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... | 67 | Support finishing by metric | 0 | .rb | rb | mit | splitrb/split |
10070102 | <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... | 67 | Support finishing by metric | 0 | .rb | rb | mit | splitrb/split |
10070103 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Whoops. Forgot to update the delete path. | 1 | .erb | erb | mit | splitrb/split |
10070104 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Whoops. Forgot to update the delete path. | 1 | .erb | erb | mit | splitrb/split |
10070105 | <NME> _controls.erb
<BEF> <% if experiment.has_winner? %>
<form action="<%= url "/reopen?experiment=#{experiment.name}" %>" method='post' onclick="return confirmReopen()">
<input type="submit" value="Reopen Experiment">
</form>
<% else %>
<% if experiment.cohorting_disabled? %>
<form action="<%= url "/upd... | 1 | Whoops. Forgot to update the delete path. | 1 | .erb | erb | mit | splitrb/split |
10070106 | <NME> Rakefile
<BEF> #!/usr/bin/env rake
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new('spec')
task default: :spec
<MSG> Fix Layout/TrailingEmptyLines
<DFF> @@ -6,4 +6,4 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
-ta... | 1 | Fix Layout/TrailingEmptyLines | 1 | Rakefile | mit | splitrb/split | |
10070107 | <NME> Rakefile
<BEF> #!/usr/bin/env rake
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new('spec')
task default: :spec
<MSG> Fix Layout/TrailingEmptyLines
<DFF> @@ -6,4 +6,4 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
-ta... | 1 | Fix Layout/TrailingEmptyLines | 1 | Rakefile | mit | splitrb/split | |
10070108 | <NME> Rakefile
<BEF> #!/usr/bin/env rake
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new('spec')
task default: :spec
<MSG> Fix Layout/TrailingEmptyLines
<DFF> @@ -6,4 +6,4 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec')
-ta... | 1 | Fix Layout/TrailingEmptyLines | 1 | Rakefile | mit | splitrb/split | |
10070109 | <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... | 13 | Merge pull request #682 from splitrb/fix-string-literals | 13 | .gemspec | gemspec | mit | splitrb/split |
10070113 | <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... | 13 | Merge pull request #682 from splitrb/fix-string-literals | 13 | .gemspec | gemspec | mit | splitrb/split |
10070114 | <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... | 13 | Merge pull request #682 from splitrb/fix-string-literals | 13 | .gemspec | gemspec | mit | splitrb/split |
10070115 | <NME> metric.rb
<BEF> # frozen_string_literal: true
module Split
class Metric
attr_accessor :name
attr_accessor :experiments
def initialize(attrs = {})
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 2 | Add `disable_metrics` config to short circuit metrics lookup in Redis | 0 | .rb | rb | mit | splitrb/split |
10070116 | <NME> metric.rb
<BEF> # frozen_string_literal: true
module Split
class Metric
attr_accessor :name
attr_accessor :experiments
def initialize(attrs = {})
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 2 | Add `disable_metrics` config to short circuit metrics lookup in Redis | 0 | .rb | rb | mit | splitrb/split |
10070117 | <NME> metric.rb
<BEF> # frozen_string_literal: true
module Split
class Metric
attr_accessor :name
attr_accessor :experiments
def initialize(attrs = {})
attrs.each do |key, value|
if self.respond_to?("#{key}=")
self.send("#{key}=", value)
end
end
end
def sel... | 2 | Add `disable_metrics` config to short circuit metrics lookup in Redis | 0 | .rb | rb | mit | splitrb/split |
10070118 | <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... | 10 | Big refactoring of Experiment | 10 | .rb | rb | mit | splitrb/split |
10070119 | <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... | 10 | Big refactoring of Experiment | 10 | .rb | rb | mit | splitrb/split |
10070120 | <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... | 10 | Big refactoring of Experiment | 10 | .rb | rb | mit | splitrb/split |
10070121 | <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
... | 10 | Refactor initialize method | 13 | .rb | rb | mit | splitrb/split |
10070122 | <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
... | 10 | Refactor initialize method | 13 | .rb | rb | mit | splitrb/split |
10070123 | <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
... | 10 | Refactor initialize method | 13 | .rb | rb | mit | splitrb/split |
10070124 | <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... | 5 | Merge pull request #98 from stacksocial/persistence_adapters | 0 | .gemspec | gemspec | mit | splitrb/split |
10070125 | <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... | 5 | Merge pull request #98 from stacksocial/persistence_adapters | 0 | .gemspec | gemspec | mit | splitrb/split |
10070126 | <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... | 5 | Merge pull request #98 from stacksocial/persistence_adapters | 0 | .gemspec | gemspec | mit | splitrb/split |
10070127 | <NME> reset.css
<BEF> ADDFILE
<MSG> added reset css
<DFF> @@ -0,0 +1,48 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ul... | 48 | added reset css | 0 | .css | css | mit | splitrb/split |
10070128 | <NME> reset.css
<BEF> ADDFILE
<MSG> added reset css
<DFF> @@ -0,0 +1,48 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ul... | 48 | added reset css | 0 | .css | css | mit | splitrb/split |
10070129 | <NME> reset.css
<BEF> ADDFILE
<MSG> added reset css
<DFF> @@ -0,0 +1,48 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, font, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+dl, dt, dd, ul... | 48 | added reset css | 0 | .css | css | mit | splitrb/split |
10070130 | <NME> extract-abbreviation.ts
<BEF> import { deepStrictEqual, strictEqual, ok } from 'assert';
import extractAbbreviation, { ExtractOptions, ExtractedAbbreviation } from '../src/extract-abbreviation';
import isAtHTMLTag from '../src/extract-abbreviation/is-html';
import scanner from '../src/extract-abbreviation/reader'... | 1 | Minor code fixes | 1 | .ts | ts | mit | emmetio/emmet |
10070131 | <NME> extract-abbreviation.ts
<BEF> import { deepStrictEqual, strictEqual, ok } from 'assert';
import extractAbbreviation, { ExtractOptions, ExtractedAbbreviation } from '../src/extract-abbreviation';
import isAtHTMLTag from '../src/extract-abbreviation/is-html';
import scanner from '../src/extract-abbreviation/reader'... | 1 | Minor code fixes | 1 | .ts | ts | mit | emmetio/emmet |
10070132 | <NME> TODO
<BEF> * Maybe add a permission "can upload new release", so more than one
user can change the same project.
There should be a setting to turn this feature on/off for private PyPIs.
[taken-by: sverrej]
* Roles (co-owners/maintainers)
- One possible solution:
http://github.com/initcrash/dj... | 2 | Added TODO: "Add a pretty, user-friendly web site interface in addition to the API interface." | 0 | TODO | bsd-3-clause | ask/chishop | |
10070133 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 1 | removed extraneous end | 3 | .rb | rb | mit | splitrb/split |
10070134 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 1 | removed extraneous end | 3 | .rb | rb | mit | splitrb/split |
10070135 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "redis"
require "split/algorithms"
require "split/algorithms/block_randomization"
require "split/algorithms/weighted_sample"
require "split/algorithms/whiplash"
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/enc... | 1 | removed extraneous end | 3 | .rb | rb | mit | splitrb/split |
10070136 | <NME> rollup.config.js
<BEF> import { extname } from 'path';
import typescript from 'rollup-plugin-typescript2';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
input: './src/index.ts',
plugins: [nodeResolve(), json(), typescript({
tsconfigOverride: {
compilerOptions:... | 1 | Updated deps | 0 | .js | config | mit | emmetio/emmet |
10070137 | <NME> rollup.config.js
<BEF> import { extname } from 'path';
import typescript from 'rollup-plugin-typescript2';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
input: './src/index.ts',
plugins: [nodeResolve(), json(), typescript({
tsconfigOverride: {
compilerOptions:... | 1 | Updated deps | 0 | .js | config | mit | emmetio/emmet |
10070138 | <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... | 3 | Merge pull request #593 from splitrb/fix-ruby-warnings-pt2 | 3 | .rb | rb | mit | splitrb/split |
10070139 | <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... | 3 | Merge pull request #593 from splitrb/fix-ruby-warnings-pt2 | 3 | .rb | rb | mit | splitrb/split |
10070140 | <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... | 3 | Merge pull request #593 from splitrb/fix-ruby-warnings-pt2 | 3 | .rb | rb | mit | splitrb/split |
10070141 | <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 | Adding possibility to store overridden alternative | 0 | .rb | rb | mit | splitrb/split |
10070142 | <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 | Adding possibility to store overridden alternative | 0 | .rb | rb | mit | splitrb/split |
10070143 | <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 | Adding possibility to store overridden alternative | 0 | .rb | rb | mit | splitrb/split |
10070144 | <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... | 3 | Merge pull request #100 from iangreenleaf/session_errors | 3 | .rb | rb | mit | splitrb/split |
10070145 | <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... | 3 | Merge pull request #100 from iangreenleaf/session_errors | 3 | .rb | rb | mit | splitrb/split |
10070146 | <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... | 3 | Merge pull request #100 from iangreenleaf/session_errors | 3 | .rb | rb | mit | splitrb/split |
10070147 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(experiment_name, control, *alternatives)
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternatives as the third because the order of the hash is not preserved in ruby 1.8' if RUBY_VER... | 5 | replaced statement modifier with if for readability | 2 | .rb | rb | mit | splitrb/split |
10070148 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(experiment_name, control, *alternatives)
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternatives as the third because the order of the hash is not preserved in ruby 1.8' if RUBY_VER... | 5 | replaced statement modifier with if for readability | 2 | .rb | rb | mit | splitrb/split |
10070149 | <NME> helper.rb
<BEF> module Split
module Helper
def ab_test(experiment_name, control, *alternatives)
puts 'WARNING: You should always pass the control alternative through as the second argument with any other alternatives as the third because the order of the hash is not preserved in ruby 1.8' if RUBY_VER... | 5 | replaced statement modifier with if for readability | 2 | .rb | rb | mit | splitrb/split |