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 |
|---|---|---|---|---|---|---|---|---|
10071650 | <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... | 1 | Added TweetmemeBot. | 0 | .rb | rb | mit | splitrb/split |
10071651 | <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... | 1 | Added TweetmemeBot. | 0 | .rb | rb | mit | splitrb/split |
10071652 | <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... | 1 | Added TweetmemeBot. | 0 | .rb | rb | mit | splitrb/split |
10071653 | <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 | Merge pull request #255 from andrew/secure-params | 0 | .rb | rb | mit | splitrb/split |
10071654 | <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 | Merge pull request #255 from andrew/secure-params | 0 | .rb | rb | mit | splitrb/split |
10071655 | <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 | Merge pull request #255 from andrew/secure-params | 0 | .rb | rb | mit | splitrb/split |
10071656 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 4 | spec copy change | 4 | .rb | rb | mit | splitrb/split |
10071657 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 4 | spec copy change | 4 | .rb | rb | mit | splitrb/split |
10071658 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 4 | spec copy change | 4 | .rb | rb | mit | splitrb/split |
10071659 | <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 Brent Tubbs to AUTHORS | 0 | AUTHORS | bsd-3-clause | ask/chishop | |
10071660 | <NME> utils.ts
<BEF> import Scanner from '@emmetio/scanner';
import { EMAttribute, EMLiteral, EMNode, EMElement, EMGroup } from '@emmetio/abbreviation';
import { Container } from './walk';
/**
* Creates deep copy of given abbreviation node
*/
export function clone<T extends Container>(node: T): T {
const copy: T... | 7 | Token-based scanner (WIP) | 46 | .ts | ts | mit | emmetio/emmet |
10071661 | <NME> utils.ts
<BEF> import Scanner from '@emmetio/scanner';
import { EMAttribute, EMLiteral, EMNode, EMElement, EMGroup } from '@emmetio/abbreviation';
import { Container } from './walk';
/**
* Creates deep copy of given abbreviation node
*/
export function clone<T extends Container>(node: T): T {
const copy: T... | 7 | Token-based scanner (WIP) | 46 | .ts | ts | mit | emmetio/emmet |
10071662 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "multivariate/version"
Gem::Specification.new do |s|
s.name = "multivariate"
s.version = Multivariate::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email ... | 5 | Renamed the project to Split | 5 | .gemspec | gemspec | mit | splitrb/split |
10071663 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "multivariate/version"
Gem::Specification.new do |s|
s.name = "multivariate"
s.version = Multivariate::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email ... | 5 | Renamed the project to Split | 5 | .gemspec | gemspec | mit | splitrb/split |
10071664 | <NME> split.gemspec
<BEF> # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "multivariate/version"
Gem::Specification.new do |s|
s.name = "multivariate"
s.version = Multivariate::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Andrew Nesbitt"]
s.email ... | 5 | Renamed the project to Split | 5 | .gemspec | gemspec | mit | splitrb/split |
10071665 | <NME> settings.py
<BEF> # Django settings for djangopypi project.
import os
# ####
# This are the settings you're most likely to change
# when running the chishop servber.
# If this is true errors will have informative error pages.
DEBUG = True
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
# Absolute p... | 7 | Added buildout.cfg and moved dev stuff into separate settings file | 25 | .py | py | bsd-3-clause | ask/chishop |
10071666 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
if experiment.winner
ret = experiment.winner.name
else
if forced_alternative = override(experiment.key, alternatives)
ret = forced_alternative
else
begin_experiment(experiment, exper... | 1 | fixed for overriding alternative on versioned experiment | 1 | .rb | rb | mit | splitrb/split |
10071667 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
if experiment.winner
ret = experiment.winner.name
else
if forced_alternative = override(experiment.key, alternatives)
ret = forced_alternative
else
begin_experiment(experiment, exper... | 1 | fixed for overriding alternative on versioned experiment | 1 | .rb | rb | mit | splitrb/split |
10071668 | <NME> helper.rb
<BEF> # frozen_string_literal: true
module Split
module Helper
if experiment.winner
ret = experiment.winner.name
else
if forced_alternative = override(experiment.key, alternatives)
ret = forced_alternative
else
begin_experiment(experiment, exper... | 1 | fixed for overriding alternative on versioned experiment | 1 | .rb | rb | mit | splitrb/split |
10071669 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 8 | Merge pull request #3 from bitzesty/master | 0 | .rb | rb | mit | splitrb/split |
10071670 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 8 | Merge pull request #3 from bitzesty/master | 0 | .rb | rb | mit | splitrb/split |
10071671 | <NME> experiment_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "time"
describe Split::Experiment do
def new_experiment(goals = [])
Split::Experiment.new("link_color", alternatives: ["blue", "red", "green"], goals: goals)
end
def alternative(color)
Split::Alternative.new(colo... | 8 | Merge pull request #3 from bitzesty/master | 0 | .rb | rb | mit | splitrb/split |
10071672 | <NME> divider.spec.js
<BEF> ADDFILE
<MSG> Merge branch 'master' into semantic-ui-elements-radio-button
<DFF> @@ -0,0 +1,25 @@
+describe('Semantic-UI: Elements - smDivider', function() {
+ 'use strict';
+
+ var $scope, $compile;
+
+ beforeEach(module('semantic.ui.elements.divider'));
+
+ beforeEach(inject(function(... | 25 | Merge branch 'master' into semantic-ui-elements-radio-button | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071673 | <NME> divider.spec.js
<BEF> ADDFILE
<MSG> Merge branch 'master' into semantic-ui-elements-radio-button
<DFF> @@ -0,0 +1,25 @@
+describe('Semantic-UI: Elements - smDivider', function() {
+ 'use strict';
+
+ var $scope, $compile;
+
+ beforeEach(module('semantic.ui.elements.divider'));
+
+ beforeEach(inject(function(... | 25 | Merge branch 'master' into semantic-ui-elements-radio-button | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071674 | <NME> divider.spec.js
<BEF> ADDFILE
<MSG> Merge branch 'master' into semantic-ui-elements-radio-button
<DFF> @@ -0,0 +1,25 @@
+describe('Semantic-UI: Elements - smDivider', function() {
+ 'use strict';
+
+ var $scope, $compile;
+
+ beforeEach(module('semantic.ui.elements.divider'));
+
+ beforeEach(inject(function(... | 25 | Merge branch 'master' into semantic-ui-elements-radio-button | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071675 | <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',... | 9 | Fix #625 (#626) | 0 | .ts | ts | mit | emmetio/emmet |
10071676 | <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',... | 9 | Fix #625 (#626) | 0 | .ts | ts | mit | emmetio/emmet |
10071677 | <NME> forms.py
<BEF> import os
from django import forms
from django.conf import settings
from djangopypi.models import Project, Classifier, Release
from django.utils.translation import ugettext_lazy as _
class ProjectForm(forms.ModelForm):
class Meta:
model = Project
exclude = ['owner', 'classifie... | 1 | Also delete the previous release entry. | 0 | .py | py | bsd-3-clause | ask/chishop |
10071678 | <NME> radioButton.spec.js
<BEF> ADDFILE
<MSG> test(smRadioButton): Added unit tests for smRadioButton directive
<DFF> @@ -0,0 +1,77 @@
+describe('Semantic-UI: Elements - smRadioButton', function() {
+ 'use strict';
+
+ var $scope, $compile, html;
+
+ beforeEach(module('semantic.ui.elements.radioButton'));
+
+ befo... | 77 | test(smRadioButton): Added unit tests for smRadioButton directive | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071679 | <NME> radioButton.spec.js
<BEF> ADDFILE
<MSG> test(smRadioButton): Added unit tests for smRadioButton directive
<DFF> @@ -0,0 +1,77 @@
+describe('Semantic-UI: Elements - smRadioButton', function() {
+ 'use strict';
+
+ var $scope, $compile, html;
+
+ beforeEach(module('semantic.ui.elements.radioButton'));
+
+ befo... | 77 | test(smRadioButton): Added unit tests for smRadioButton directive | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071680 | <NME> radioButton.spec.js
<BEF> ADDFILE
<MSG> test(smRadioButton): Added unit tests for smRadioButton directive
<DFF> @@ -0,0 +1,77 @@
+describe('Semantic-UI: Elements - smRadioButton', function() {
+ 'use strict';
+
+ var $scope, $compile, html;
+
+ beforeEach(module('semantic.ui.elements.radioButton'));
+
+ befo... | 77 | test(smRadioButton): Added unit tests for smRadioButton directive | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071681 | <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 }
require "fakeredis"
fakeredis = Redis.new
RSpec.conf... | 9 | Fix variations reset across page loads for multiple=control and improve coverage (#432) | 7 | .rb | rb | mit | splitrb/split |
10071682 | <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 }
require "fakeredis"
fakeredis = Redis.new
RSpec.conf... | 9 | Fix variations reset across page loads for multiple=control and improve coverage (#432) | 7 | .rb | rb | mit | splitrb/split |
10071683 | <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 }
require "fakeredis"
fakeredis = Redis.new
RSpec.conf... | 9 | Fix variations reset across page loads for multiple=control and improve coverage (#432) | 7 | .rb | rb | mit | splitrb/split |
10071684 | <NME> dashboard.rb
<BEF> # frozen_string_literal: true
require "sinatra/base"
require "split"
require "bigdecimal"
require "split/dashboard/helpers"
require "split/dashboard/pagination_helpers"
module Split
class Dashboard < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))
set :views, "#{dir}/... | 1 | Merge pull request #687 from TSMMark/patch-1 | 1 | .rb | rb | mit | splitrb/split |
10071685 | <NME> dashboard.rb
<BEF> # frozen_string_literal: true
require "sinatra/base"
require "split"
require "bigdecimal"
require "split/dashboard/helpers"
require "split/dashboard/pagination_helpers"
module Split
class Dashboard < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))
set :views, "#{dir}/... | 1 | Merge pull request #687 from TSMMark/patch-1 | 1 | .rb | rb | mit | splitrb/split |
10071686 | <NME> dashboard.rb
<BEF> # frozen_string_literal: true
require "sinatra/base"
require "split"
require "bigdecimal"
require "split/dashboard/helpers"
require "split/dashboard/pagination_helpers"
module Split
class Dashboard < Sinatra::Base
dir = File.dirname(File.expand_path(__FILE__))
set :views, "#{dir}/... | 1 | Merge pull request #687 from TSMMark/patch-1 | 1 | .rb | rb | mit | splitrb/split |
10071687 | <NME> parser.ts
<BEF> import { equal, throws } from 'assert';
import parser, { CSSFunction, CSSKeyword, CSSString, CSSNumber } from '../src/index';
import stringify from './assets/strinfigy';
describe('CSS Abbreviation parser', () => {
const parse = (abbr: string) => stringify(parser(abbr));
const expand = (abbr: ... | 10 | Fixed unit tests in CSS abbreviation parser | 10 | .ts | ts | mit | emmetio/emmet |
10071688 | <NME> parser.ts
<BEF> import { equal, throws } from 'assert';
import parser, { CSSFunction, CSSKeyword, CSSString, CSSNumber } from '../src/index';
import stringify from './assets/strinfigy';
describe('CSS Abbreviation parser', () => {
const parse = (abbr: string) => stringify(parser(abbr));
const expand = (abbr: ... | 10 | Fixed unit tests in CSS abbreviation parser | 10 | .ts | ts | mit | emmetio/emmet |
10071689 | <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"),
... | 2 | Added authentication for register+upload, and projects now has owners. | 0 | .py | py | bsd-3-clause | ask/chishop |
10071690 | <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 | Merge branch 'russell/master' | 1 | .py | py | bsd-3-clause | ask/chishop |
10071691 | <NME> ci.yml
<BEF> name: split
on: [push]
jobs:
test:
strategy:
matrix:
include:
- gemfile: 5.2.gemfile
ruby: 2.5
- gemfile: 5.2.gemfile
ruby: 2.6
- gemfile: 5.2.gemfile
ruby: 2.7
- gemfile: 6.0.gemfile
ruby... | 2 | Add Ruby 3.1 to the matrix | 2 | .yml | github/workflows/ci | mit | splitrb/split |
10071692 | <NME> ci.yml
<BEF> name: split
on: [push]
jobs:
test:
strategy:
matrix:
include:
- gemfile: 5.2.gemfile
ruby: 2.5
- gemfile: 5.2.gemfile
ruby: 2.6
- gemfile: 5.2.gemfile
ruby: 2.7
- gemfile: 6.0.gemfile
ruby... | 2 | Add Ruby 3.1 to the matrix | 2 | .yml | github/workflows/ci | mit | splitrb/split |
10071693 | <NME> ci.yml
<BEF> name: split
on: [push]
jobs:
test:
strategy:
matrix:
include:
- gemfile: 5.2.gemfile
ruby: 2.5
- gemfile: 5.2.gemfile
ruby: 2.6
- gemfile: 5.2.gemfile
ruby: 2.7
- gemfile: 6.0.gemfile
ruby... | 2 | Add Ruby 3.1 to the matrix | 2 | .yml | github/workflows/ci | mit | splitrb/split |
10071694 | <NME> parser.ts
<BEF> import { strictEqual as equal, throws } from 'assert';
import parser from '../src/parser';
import tokenizer from '../src/tokenizer';
import stringify from './assets/stringify';
import { ParserOptions } from '../src';
const parse = (abbr: string, options?: ParserOptions) => parser(tokenizer(abbr),... | 1 | FIxed issue with parsing empty attribute set | 0 | .ts | ts | mit | emmetio/emmet |
10071695 | <NME> parser.ts
<BEF> import { strictEqual as equal, throws } from 'assert';
import parser from '../src/parser';
import tokenizer from '../src/tokenizer';
import stringify from './assets/stringify';
import { ParserOptions } from '../src';
const parse = (abbr: string, options?: ParserOptions) => parser(tokenizer(abbr),... | 1 | FIxed issue with parsing empty attribute set | 0 | .ts | ts | mit | emmetio/emmet |
10071696 | <NME> rating.spec.js
<BEF> ADDFILE
<MSG> Merge pull request #15 from mxth/master
Rating directive
<DFF> @@ -0,0 +1,336 @@
+describe('Semantic-UI: Elements - smRating', function() {
+ 'use strict';
+
+ var $rootScope, $compile, element;
+
+ beforeEach(module('semantic.ui.elements.rating'));
+
+ beforeEach(inject(fu... | 336 | Merge pull request #15 from mxth/master | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071697 | <NME> rating.spec.js
<BEF> ADDFILE
<MSG> Merge pull request #15 from mxth/master
Rating directive
<DFF> @@ -0,0 +1,336 @@
+describe('Semantic-UI: Elements - smRating', function() {
+ 'use strict';
+
+ var $rootScope, $compile, element;
+
+ beforeEach(module('semantic.ui.elements.rating'));
+
+ beforeEach(inject(fu... | 336 | Merge pull request #15 from mxth/master | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071698 | <NME> rating.spec.js
<BEF> ADDFILE
<MSG> Merge pull request #15 from mxth/master
Rating directive
<DFF> @@ -0,0 +1,336 @@
+describe('Semantic-UI: Elements - smRating', function() {
+ 'use strict';
+
+ var $rootScope, $compile, element;
+
+ beforeEach(module('semantic.ui.elements.rating'));
+
+ beforeEach(inject(fu... | 336 | Merge pull request #15 from mxth/master | 0 | .js | spec | mit | Semantic-Org/Semantic-UI-Angular |
10071699 | <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 | Stop adding tests that user isn't participating to session #103 | 3 | .rb | rb | mit | splitrb/split |
10071700 | <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 | Stop adding tests that user isn't participating to session #103 | 3 | .rb | rb | mit | splitrb/split |
10071701 | <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 | Stop adding tests that user isn't participating to session #103 | 3 | .rb | rb | mit | splitrb/split |
10071702 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 9 | Stops clean_old_versions from removing finished experiments which have reset => false | 0 | .rb | rb | mit | splitrb/split |
10071703 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 9 | Stops clean_old_versions from removing finished experiments which have reset => false | 0 | .rb | rb | mit | splitrb/split |
10071704 | <NME> helper_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
# TODO change some of these tests to use Rack::Test
describe Split::Helper do
include Split::Helper
let(:experiment) {
Split::ExperimentCatalog.find_or_create("link_color", "blue", "red")
}
describe "ab_test" do
it "shou... | 9 | Stops clean_old_versions from removing finished experiments which have reset => false | 0 | .rb | rb | mit | splitrb/split |
10071705 | <NME> demo.js
<BEF> ADDFILE
<MSG> Merge pull request #38 from matheuspoleza/feature/components
Rename elements for components
<DFF> @@ -0,0 +1,2 @@
+angular
+ .module('demo', ['semantic.ui.components.divider']);
| 2 | Merge pull request #38 from matheuspoleza/feature/components | 0 | .js | js | mit | Semantic-Org/Semantic-UI-Angular |
10071706 | <NME> demo.js
<BEF> ADDFILE
<MSG> Merge pull request #38 from matheuspoleza/feature/components
Rename elements for components
<DFF> @@ -0,0 +1,2 @@
+angular
+ .module('demo', ['semantic.ui.components.divider']);
| 2 | Merge pull request #38 from matheuspoleza/feature/components | 0 | .js | js | mit | Semantic-Org/Semantic-UI-Angular |
10071707 | <NME> demo.js
<BEF> ADDFILE
<MSG> Merge pull request #38 from matheuspoleza/feature/components
Rename elements for components
<DFF> @@ -0,0 +1,2 @@
+angular
+ .module('demo', ['semantic.ui.components.divider']);
| 2 | Merge pull request #38 from matheuspoleza/feature/components | 0 | .js | js | mit | Semantic-Org/Semantic-UI-Angular |
10071708 | <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 rake as development dependency | 0 | .gemspec | gemspec | mit | splitrb/split |
10071709 | <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 rake as development dependency | 0 | .gemspec | gemspec | mit | splitrb/split |
10071710 | <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 rake as development dependency | 0 | .gemspec | gemspec | mit | splitrb/split |
10071711 | <NME> tokenizer.ts
<BEF> import { deepEqual } from 'assert';
import tokenize from '../src/tokenizer';
describe('Tokenizer', () => {
it('numeric values', () => {
deepEqual(tokenize('p10'), [
{ type: 'Literal', value: 'p', start: 0, end: 1 },
{ type: 'NumberValue', value: 10, rawValue... | 112 | Unit-tests for CSS abbreviation tokenizer | 17 | .ts | ts | mit | emmetio/emmet |
10071712 | <NME> tokenizer.ts
<BEF> import { deepEqual } from 'assert';
import tokenize from '../src/tokenizer';
describe('Tokenizer', () => {
it('numeric values', () => {
deepEqual(tokenize('p10'), [
{ type: 'Literal', value: 'p', start: 0, end: 1 },
{ type: 'NumberValue', value: 10, rawValue... | 112 | Unit-tests for CSS abbreviation tokenizer | 17 | .ts | ts | mit | emmetio/emmet |
10071713 | <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... | 1 | Merge pull request #268 from caser/beta-probabilities | 1 | .rb | rb | mit | splitrb/split |
10071714 | <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... | 1 | Merge pull request #268 from caser/beta-probabilities | 1 | .rb | rb | mit | splitrb/split |
10071715 | <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... | 1 | Merge pull request #268 from caser/beta-probabilities | 1 | .rb | rb | mit | splitrb/split |
10071716 | <NME> redis_adapter_spec.rb
<BEF> ADDFILE
<MSG> Added Persistence::RedisAdapter
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Persistence::RedisAdapter do
+
+ let(:context) { nil }
+
+ subject { Split::Persistence::RedisAdapter.new(context) }
+
+ describe "#[] and #[]=" do
+ it "should set and... | 32 | Added Persistence::RedisAdapter | 0 | .rb | rb | mit | splitrb/split |
10071717 | <NME> redis_adapter_spec.rb
<BEF> ADDFILE
<MSG> Added Persistence::RedisAdapter
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Persistence::RedisAdapter do
+
+ let(:context) { nil }
+
+ subject { Split::Persistence::RedisAdapter.new(context) }
+
+ describe "#[] and #[]=" do
+ it "should set and... | 32 | Added Persistence::RedisAdapter | 0 | .rb | rb | mit | splitrb/split |
10071718 | <NME> redis_adapter_spec.rb
<BEF> ADDFILE
<MSG> Added Persistence::RedisAdapter
<DFF> @@ -0,0 +1,32 @@
+require "spec_helper"
+
+describe Split::Persistence::RedisAdapter do
+
+ let(:context) { nil }
+
+ subject { Split::Persistence::RedisAdapter.new(context) }
+
+ describe "#[] and #[]=" do
+ it "should set and... | 32 | Added Persistence::RedisAdapter | 0 | .rb | rb | mit | splitrb/split |
10071719 | <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... | 1 | Revise spec - black box spec over white box spec | 2 | .rb | rb | mit | splitrb/split |
10071720 | <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... | 1 | Revise spec - black box spec over white box spec | 2 | .rb | rb | mit | splitrb/split |
10071721 | <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... | 1 | Revise spec - black box spec over white box spec | 2 | .rb | rb | mit | splitrb/split |
10071722 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v3.3.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 3
- MINOR = 2
+ MINOR = 3
PATCH = 0
VERSION = [MAJOR, M... | 1 | v3.3.0 | 1 | .rb | rb | mit | splitrb/split |
10071723 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v3.3.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 3
- MINOR = 2
+ MINOR = 3
PATCH = 0
VERSION = [MAJOR, M... | 1 | v3.3.0 | 1 | .rb | rb | mit | splitrb/split |
10071724 | <NME> version.rb
<BEF> # frozen_string_literal: true
module Split
MAJOR = 3
MINOR = 2
PATCH = 0
VERSION = [MAJOR, MINOR, PATCH].join('.')
end
<MSG> v3.3.0
<DFF> @@ -1,7 +1,7 @@
# frozen_string_literal: true
module Split
MAJOR = 3
- MINOR = 2
+ MINOR = 3
PATCH = 0
VERSION = [MAJOR, M... | 1 | v3.3.0 | 1 | .rb | rb | mit | splitrb/split |
10071725 | <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... | 4 | Decouple experiment starting from Split::Helper | 3 | .gemspec | gemspec | mit | splitrb/split |
10071726 | <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... | 4 | Decouple experiment starting from Split::Helper | 3 | .gemspec | gemspec | mit | splitrb/split |
10071727 | <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... | 4 | Decouple experiment starting from Split::Helper | 3 | .gemspec | gemspec | mit | splitrb/split |
10071728 | <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],... | 47 | Add reopen experiment action to dashboard | 0 | .rb | rb | mit | splitrb/split |
10071729 | <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],... | 47 | Add reopen experiment action to dashboard | 0 | .rb | rb | mit | splitrb/split |
10071730 | <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],... | 47 | Add reopen experiment action to dashboard | 0 | .rb | rb | mit | splitrb/split |
10071731 | <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);
}... | 1 | Exposes isReduced on public API | 0 | .js | js | bsd-2-clause | jlongster/transducers.js |
10071732 | <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... | 15 | implemented finished helper method | 0 | .rb | rb | mit | splitrb/split |
10071733 | <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... | 15 | implemented finished helper method | 0 | .rb | rb | mit | splitrb/split |
10071734 | <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... | 15 | implemented finished helper method | 0 | .rb | rb | mit | splitrb/split |
10071735 | <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... | 57 | Use a config file to define experiments | 1 | .rb | rb | mit | splitrb/split |
10071736 | <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... | 57 | Use a config file to define experiments | 1 | .rb | rb | mit | splitrb/split |
10071737 | <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... | 57 | Use a config file to define experiments | 1 | .rb | rb | mit | splitrb/split |
10071738 | <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',... | 13 | Explicit types on abbreviation nodes | 0 | .ts | ts | mit | emmetio/emmet |
10071739 | <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',... | 13 | Explicit types on abbreviation nodes | 0 | .ts | ts | mit | emmetio/emmet |
10071740 | <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
... | 16 | Extract extract_alternatives_from_options | 10 | .rb | rb | mit | splitrb/split |
10071741 | <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
... | 16 | Extract extract_alternatives_from_options | 10 | .rb | rb | mit | splitrb/split |
10071742 | <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
... | 16 | Extract extract_alternatives_from_options | 10 | .rb | rb | mit | splitrb/split |
10071743 | <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"),
... | 3 | Shortened fields used with UNIQUE contraint since MySQL wont allow more than 1000 bytes (~333 utf8 characters) for indexes. | 3 | .py | py | bsd-3-clause | ask/chishop |
10071744 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 12 | Do not storage alternative in cookie if experiment has a winner (#539) | 0 | .rb | rb | mit | splitrb/split |
10071745 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 12 | Do not storage alternative in cookie if experiment has a winner (#539) | 0 | .rb | rb | mit | splitrb/split |
10071746 | <NME> trial_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
require "split/trial"
describe Split::Trial do
let(:user) { mock_user }
let(:alternatives) { ["basket", "cart"] }
let(:experiment) do
Split::Experiment.new("basket_text", alternatives: alternatives).save
end
it "should be ini... | 12 | Do not storage alternative in cookie if experiment has a winner (#539) | 0 | .rb | rb | mit | splitrb/split |
10071747 | <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... | 18 | Some styling and readability. | 14 | .rb | rb | mit | splitrb/split |
10071748 | <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... | 18 | Some styling and readability. | 14 | .rb | rb | mit | splitrb/split |
10071749 | <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... | 18 | Some styling and readability. | 14 | .rb | rb | mit | splitrb/split |