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 |
|---|---|---|---|---|---|---|---|---|
10069250 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069251 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069252 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069253 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069254 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069255 | <NME> TextAreaInputHandler.cs
<BEF> // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including with... | 10 | Better handling of gestures in RoutedCommand | 0 | .cs | cs | mit | AvaloniaUI/AvaloniaEdit |
10069256 | <NME> jsgrid.tests.js <BEF> $(function() { var Grid = jsGrid.Grid, JSGRID = "JSGrid", JSGRID_DATA_KEY = JSGRID; Grid.prototype.updateOnResize = false; module("basic"); test("default creation", function() { var gridOptions = { simpleOption: "test", complexOption: { a: "subtest", b: 1, c: {} } }, grid = new Grid("#jsGrid... | 132 | Core: Support Promise/A to be returned from controller methods | 0 | .js | tests | mit | tabalinas/jsgrid |
10069257 | <NME> jsgrid.tests.js <BEF> $(function() { var Grid = jsGrid.Grid, JSGRID = "JSGrid", JSGRID_DATA_KEY = JSGRID; Grid.prototype.updateOnResize = false; module("basic"); test("default creation", function() { var gridOptions = { simpleOption: "test", complexOption: { a: "subtest", b: 1, c: {} } }, grid = new Grid("#jsGrid... | 132 | Core: Support Promise/A to be returned from controller methods | 0 | .js | tests | mit | tabalinas/jsgrid |
10069258 | <NME> jsgrid.tests.js
<BEF> $(function() {
var Grid = jsGrid.Grid,
JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID;
Grid.prototype.updateOnResize = false;
module("basic");
test("default creation", function() {
var gridOptions = {
simpleOption: "test",
... | 2 | Core: Hide unavalable pager nav buttons | 1 | .js | tests | mit | tabalinas/jsgrid |
10069259 | <NME> jsgrid.tests.js
<BEF> $(function() {
var Grid = jsGrid.Grid,
JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID;
Grid.prototype.updateOnResize = false;
module("basic");
test("default creation", function() {
var gridOptions = {
simpleOption: "test",
... | 2 | Core: Hide unavalable pager nav buttons | 1 | .js | tests | mit | tabalinas/jsgrid |
10069260 | <NME> jsgrid.core.js
<BEF> (function(window, $, undefined) {
var JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID,
JSGRID_ROW_DATA_KEY = "JSGridItem",
JSGRID_EDIT_ROW_DATA_KEY = "JSGridEditRow",
SORT_ORDER_ASC = "asc",
SORT_ORDER_DESC = "desc",
FIRST_PAGE_PLACEHOLDER = ... | 5 | Merge branch 'master' of https://github.com/tabalinas/jsgrid | 0 | .js | core | mit | tabalinas/jsgrid |
10069261 | <NME> jsgrid.core.js
<BEF> (function(window, $, undefined) {
var JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID,
JSGRID_ROW_DATA_KEY = "JSGridItem",
JSGRID_EDIT_ROW_DATA_KEY = "JSGridEditRow",
SORT_ORDER_ASC = "asc",
SORT_ORDER_DESC = "desc",
FIRST_PAGE_PLACEHOLDER = ... | 5 | Merge branch 'master' of https://github.com/tabalinas/jsgrid | 0 | .js | core | mit | tabalinas/jsgrid |
10069262 | <NME> db.js
<BEF> (function() {
var db = {
loadData: function(filter) {
return $.grep(this.clients, function(client) {
return (!filter.Name || client.Name.indexOf(filter.Name) > -1)
&& (filter.Age === undefined || client.Age === filter.Age)
... | 1 | Demos: Empty country name is empty string | 1 | .js | js | mit | tabalinas/jsgrid |
10069263 | <NME> db.js
<BEF> (function() {
var db = {
loadData: function(filter) {
return $.grep(this.clients, function(client) {
return (!filter.Name || client.Name.indexOf(filter.Name) > -1)
&& (filter.Age === undefined || client.Age === filter.Age)
... | 1 | Demos: Empty country name is empty string | 1 | .js | js | mit | tabalinas/jsgrid |
10069264 | <NME> jsgrid.sort-strategies.js
<BEF> (function(jsGrid, $, undefined) {
var sortStrategies = {
string: function(str1, str2) {
return str1.localeCompare(str2);
},
number: function(n1, n2) {
return n1 - n2;
},
date: function(dt1, dt2) {... | 31 | Merge pull request #7 from ReneHezser/master | 22 | .js | sort-strategies | mit | tabalinas/jsgrid |
10069265 | <NME> jsgrid.sort-strategies.js
<BEF> (function(jsGrid, $, undefined) {
var sortStrategies = {
string: function(str1, str2) {
return str1.localeCompare(str2);
},
number: function(n1, n2) {
return n1 - n2;
},
date: function(dt1, dt2) {... | 31 | Merge pull request #7 from ReneHezser/master | 22 | .js | sort-strategies | mit | tabalinas/jsgrid |
10069266 | <NME> theme.css
<BEF> .jsgrid-grid-header,
.jsgrid-grid-body,
.jsgrid-header-row > .jsgrid-header-cell,
.jsgrid-filter-row > .jsgrid-cell,
.jsgrid-insert-row > .jsgrid-cell,
.jsgrid-edit-row > .jsgrid-cell {
border: 1px solid #e9e9e9;
}
.jsgrid-header-row > .jsgrid-header-cell {
border-top: 0;
}
.jsgrid-heade... | 16 | Theme: No side borders for first and last table cells | 0 | .css | css | mit | tabalinas/jsgrid |
10069267 | <NME> theme.css
<BEF> .jsgrid-grid-header,
.jsgrid-grid-body,
.jsgrid-header-row > .jsgrid-header-cell,
.jsgrid-filter-row > .jsgrid-cell,
.jsgrid-insert-row > .jsgrid-cell,
.jsgrid-edit-row > .jsgrid-cell {
border: 1px solid #e9e9e9;
}
.jsgrid-header-row > .jsgrid-header-cell {
border-top: 0;
}
.jsgrid-heade... | 16 | Theme: No side borders for first and last table cells | 0 | .css | css | mit | tabalinas/jsgrid |
10069268 | <NME> LumenPassport.php
<BEF> <?php
namespace Dusterio\LumenPassport;
use Illuminate\Support\Arr;
use Laravel\Passport\Passport;
use DateTimeInterface;
use Carbon\Carbon;
use Laravel\Lumen\Application;
use Laravel\Lumen\Routing\Router;
class LumenPassport
{
/**
* Allow simultaneous logins for users
*
... | 2 | r Correct namespaces | 2 | .php | php | mit | dusterio/lumen-passport |
10069269 | <NME> jsgrid.core.js
<BEF> (function(window, $, undefined) {
var JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID,
JSGRID_ROW_DATA_KEY = "JSGridItem",
JSGRID_EDIT_ROW_DATA_KEY = "JSGridEditRow",
SORT_ORDER_ASC = "asc",
SORT_ORDER_DESC = "desc",
FIRST_PAGE_PLACEHOLDER = ... | 6 | Core: Controller by default is an object with $.noop CRUD methods | 1 | .js | core | mit | tabalinas/jsgrid |
10069270 | <NME> jsgrid.core.js
<BEF> (function(window, $, undefined) {
var JSGRID = "JSGrid",
JSGRID_DATA_KEY = JSGRID,
JSGRID_ROW_DATA_KEY = "JSGridItem",
JSGRID_EDIT_ROW_DATA_KEY = "JSGridEditRow",
SORT_ORDER_ASC = "asc",
SORT_ORDER_DESC = "desc",
FIRST_PAGE_PLACEHOLDER = ... | 6 | Core: Controller by default is an object with $.noop CRUD methods | 1 | .js | core | mit | tabalinas/jsgrid |
10069271 | <NME> jsgrid.tests.js <BEF> $(function() { var Grid = jsGrid.Grid, JSGRID = "JSGrid", JSGRID_DATA_KEY = JSGRID; Grid.prototype.updateOnResize = false; module("basic"); test("default creation", function() { var gridOptions = { simpleOption: "test", complexOption: { a: "subtest", b: 1, c: {} } }, grid = new Grid("#jsGrid... | 1,557 | Formatting: Reformat tests code | 1,557 | .js | tests | mit | tabalinas/jsgrid |
10069272 | <NME> jsgrid.tests.js <BEF> $(function() { var Grid = jsGrid.Grid, JSGRID = "JSGrid", JSGRID_DATA_KEY = JSGRID; Grid.prototype.updateOnResize = false; module("basic"); test("default creation", function() { var gridOptions = { simpleOption: "test", complexOption: { a: "subtest", b: 1, c: {} } }, grid = new Grid("#jsGrid... | 1,557 | Formatting: Reformat tests code | 1,557 | .js | tests | mit | tabalinas/jsgrid |
10069273 | <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... | 13 | added sticky meows feature with inifite timeout | 8 | .js | meow | mit | zacstewart/Meow |
10069274 | <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... | 13 | added sticky meows feature with inifite timeout | 8 | .js | meow | mit | zacstewart/Meow |
10069275 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
before(:each) { @config = Split::Configuration.new }
it "should provide default values" do
@config.ignore_ip_addresses.should eql([])
@config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivia... | 18 | split config specs into multiple tests | 4 | .rb | rb | mit | splitrb/split |
10069276 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
before(:each) { @config = Split::Configuration.new }
it "should provide default values" do
@config.ignore_ip_addresses.should eql([])
@config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivia... | 18 | split config specs into multiple tests | 4 | .rb | rb | mit | splitrb/split |
10069277 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
before(:each) { @config = Split::Configuration.new }
it "should provide default values" do
@config.ignore_ip_addresses.should eql([])
@config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivia... | 18 | split config specs into multiple tests | 4 | .rb | rb | mit | splitrb/split |
10069278 | <NME> jquery.meow.js
<BEF> // jQuery Meow by Zachary Stewart (zacstewart.com)
//
// Copyright (c) 2011 Zachary Stewart
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restricti... | 54 | Merge branch 'refactor' | 92 | .js | meow | mit | zacstewart/Meow |
10069279 | <NME> jquery.meow.js
<BEF> // jQuery Meow by Zachary Stewart (zacstewart.com)
//
// Copyright (c) 2011 Zachary Stewart
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restricti... | 54 | Merge branch 'refactor' | 92 | .js | meow | mit | zacstewart/Meow |
10069280 | <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);
}... | 128 | convert closures into objects | 181 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069281 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "split/#{f}"
end
require 'split/engine' if defined?(Rails)
require 'redis/namespace'
module Split
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/encapsulated_helper"
require "split/exceptions"
require "split/e... | 1 | Rails 2.3.x compatibility patch. | 1 | .rb | rb | mit | splitrb/split |
10069282 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "split/#{f}"
end
require 'split/engine' if defined?(Rails)
require 'redis/namespace'
module Split
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/encapsulated_helper"
require "split/exceptions"
require "split/e... | 1 | Rails 2.3.x compatibility patch. | 1 | .rb | rb | mit | splitrb/split |
10069283 | <NME> split.rb
<BEF> # frozen_string_literal: true
require "split/#{f}"
end
require 'split/engine' if defined?(Rails)
require 'redis/namespace'
module Split
require "split/alternative"
require "split/cache"
require "split/configuration"
require "split/encapsulated_helper"
require "split/exceptions"
require "split/e... | 1 | Rails 2.3.x compatibility patch. | 1 | .rb | rb | mit | splitrb/split |
10069284 | <NME> webpack.config.js
<BEF> ADDFILE
<MSG> release
<DFF> @@ -0,0 +1,19 @@
+var webpack = require('webpack');
+
+var config = {
+ cache: true,
+ entry: './transducers.js',
+ output: {
+ filename: './dist/transducers.js',
+ library: 'transducers'
+ },
+ plugins: []
+};
+
+if(process.env.NODE_ENV === 'product... | 19 | release | 0 | .js | config | bsd-2-clause | jlongster/transducers.js |
10069285 | <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... | 19 | More specs for participant counts | 1 | .rb | rb | mit | splitrb/split |
10069286 | <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... | 19 | More specs for participant counts | 1 | .rb | rb | mit | splitrb/split |
10069287 | <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... | 19 | More specs for participant counts | 1 | .rb | rb | mit | splitrb/split |
10069288 | <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... | 0 | added better firefox 3 support | 1 | .js | meow | mit | zacstewart/Meow |
10069289 | <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... | 0 | added better firefox 3 support | 1 | .js | meow | mit | zacstewart/Meow |
10069290 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Configuration do
before(:each) { @config = Split::Configuration.new }
it "should provide a default value for ignore_ip_addresses" do
expect(@config.ignore_ip_addresses).to eq([])
end
it "should provide ... | 5 | Merge pull request #140 from themgt/master | 0 | .rb | rb | mit | splitrb/split |
10069291 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Configuration do
before(:each) { @config = Split::Configuration.new }
it "should provide a default value for ignore_ip_addresses" do
expect(@config.ignore_ip_addresses).to eq([])
end
it "should provide ... | 5 | Merge pull request #140 from themgt/master | 0 | .rb | rb | mit | splitrb/split |
10069292 | <NME> configuration_spec.rb
<BEF> # frozen_string_literal: true
require "spec_helper"
describe Split::Configuration do
before(:each) { @config = Split::Configuration.new }
it "should provide a default value for ignore_ip_addresses" do
expect(@config.ignore_ip_addresses).to eq([])
end
it "should provide ... | 5 | Merge pull request #140 from themgt/master | 0 | .rb | rb | mit | splitrb/split |
10069293 | <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... | 15 | improving options | 9 | .js | meow | mit | zacstewart/Meow |
10069294 | <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... | 15 | improving options | 9 | .js | meow | mit | zacstewart/Meow |
10069295 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
var current_id = 0;
function Meow() {
this.id = 0;
this.message = '';
this.timestamp = Date.now();
this.duration = 2400;
this.draw = function() {
that = this;
console.log(this.message);
$('#meows').append($('<... | 8 | stored each setTimeout instance within the meow it destroys | 9 | .js | meow | mit | zacstewart/Meow |
10069296 | <NME> jquery.meow.js
<BEF> (function ($, window) {
'use strict';
var current_id = 0;
function Meow() {
this.id = 0;
this.message = '';
this.timestamp = Date.now();
this.duration = 2400;
this.draw = function() {
that = this;
console.log(this.message);
$('#meows').append($('<... | 8 | stored each setTimeout instance within the meow it destroys | 9 | .js | meow | mit | zacstewart/Meow |
10069297 | <NME> README.md
<BEF> ADDFILE
<MSG> added readme
<DFF> @@ -0,0 +1,4 @@
+jQuery Meow
+===========
+
+A plugin to provide Growl-like notifications. Will support bindings for various jQuery events and ability to 'meow' the content of a bound element (e.g. a Rails flash on load) or a message passed as an argument (e.g. bu... | 4 | added readme | 0 | .md | md | mit | zacstewart/Meow |
10069298 | <NME> README.md
<BEF> ADDFILE
<MSG> added readme
<DFF> @@ -0,0 +1,4 @@
+jQuery Meow
+===========
+
+A plugin to provide Growl-like notifications. Will support bindings for various jQuery events and ability to 'meow' the content of a bound element (e.g. a Rails flash on load) or a message passed as an argument (e.g. bu... | 4 | added readme | 0 | .md | md | mit | zacstewart/Meow |
10069299 | <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 | Fix broken specs in developement environment (#557) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069300 | <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 | Fix broken specs in developement environment (#557) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069301 | <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 | Fix broken specs in developement environment (#557) | 0 | .gemspec | gemspec | mit | splitrb/split |
10069302 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 1 | Fix Layout/EndAlignment | 1 | .rb | rb | mit | splitrb/split |
10069303 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 1 | Fix Layout/EndAlignment | 1 | .rb | rb | mit | splitrb/split |
10069304 | <NME> trial.rb
<BEF> # frozen_string_literal: true
module Split
class Trial
attr_accessor :goals
attr_accessor :experiment
attr_writer :metadata
def initialize(attrs = {})
self.experiment = attrs.delete(:experiment)
self.alternative = attrs.delete(:alternative)
self.metadata = ... | 1 | Fix Layout/EndAlignment | 1 | .rb | rb | mit | splitrb/split |
10069305 | <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 | Tiny whitespace fix | 1 | .rb | rb | mit | splitrb/split |
10069306 | <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 | Tiny whitespace fix | 1 | .rb | rb | mit | splitrb/split |
10069307 | <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 | Tiny whitespace fix | 1 | .rb | rb | mit | splitrb/split |
10069308 | <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}/... | 0 | we don't need to call save on an experiment when setting the winner | 1 | .rb | rb | mit | splitrb/split |
10069309 | <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}/... | 0 | we don't need to call save on an experiment when setting the winner | 1 | .rb | rb | mit | splitrb/split |
10069310 | <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}/... | 0 | we don't need to call save on an experiment when setting the winner | 1 | .rb | rb | mit | splitrb/split |
10069311 | <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 | Updated dependency for redis-namespace to 1.1.0 | 1 | .gemspec | gemspec | mit | splitrb/split |
10069312 | <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 | Updated dependency for redis-namespace to 1.1.0 | 1 | .gemspec | gemspec | mit | splitrb/split |
10069313 | <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 | Updated dependency for redis-namespace to 1.1.0 | 1 | .gemspec | gemspec | mit | splitrb/split |
10069314 | <NME> jquery.meow.blackcat.css
<BEF> ADDFILE
<MSG> move restyle to themes folder
<DFF> @@ -0,0 +1,120 @@
+/* blackcat theme by Flip Stewart | github.com/shpoonj */
+
+.meows {
+ position: fixed;
+ top: 0;
+ right: 0;
+}
+
+.meow {
+ position: relative;
+ margin: 12px 12px 0 0;
+}
+
+.meow .inner {
+ display: blo... | 120 | move restyle to themes folder | 0 | .css | meow | mit | zacstewart/Meow |
10069315 | <NME> jquery.meow.blackcat.css
<BEF> ADDFILE
<MSG> move restyle to themes folder
<DFF> @@ -0,0 +1,120 @@
+/* blackcat theme by Flip Stewart | github.com/shpoonj */
+
+.meows {
+ position: fixed;
+ top: 0;
+ right: 0;
+}
+
+.meow {
+ position: relative;
+ margin: 12px 12px 0 0;
+}
+
+.meow .inner {
+ display: blo... | 120 | move restyle to themes folder | 0 | .css | meow | mit | zacstewart/Meow |
10069316 | <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... | 2 | Whitespace tweaks | 2 | .rb | rb | mit | splitrb/split |
10069317 | <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... | 2 | Whitespace tweaks | 2 | .rb | rb | mit | splitrb/split |
10069318 | <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... | 2 | Whitespace tweaks | 2 | .rb | rb | mit | splitrb/split |
10069319 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
max-width:800px;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
c... | 0 | Merge pull request #299 from xicreative/remove-body-max-width | 1 | .css | css | mit | splitrb/split |
10069320 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
max-width:800px;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
c... | 0 | Merge pull request #299 from xicreative/remove-body-max-width | 1 | .css | css | mit | splitrb/split |
10069321 | <NME> style.css
<BEF> html {
background: #efefef;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
}
body {
padding: 0 10px;
margin: 10px auto 0;
max-width:800px;
}
.header {
background: #ededed;
background: -webkit-gradient(linear, left top, left bottom,
c... | 0 | Merge pull request #299 from xicreative/remove-body-max-width | 1 | .css | css | mit | splitrb/split |
10069322 | <NME> transducers.js
<BEF>
// basic protocol helpers
var symbolExists = typeof Symbol !== 'undefined';
var protocols = {
throw new Error("don't know how to " + name + " collection: " +
coll);
}
function fulfillsProtocol(obj, name) {
if(name === 'iterator') {
// Accept ill-formed iterators ... | 133 | update to conform to the new transducer protocol | 133 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069323 | <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 | Merge pull request #303 from ipoval/private-methods-in-controllers | 2 | .rb | rb | mit | splitrb/split |
10069324 | <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 | Merge pull request #303 from ipoval/private-methods-in-controllers | 2 | .rb | rb | mit | splitrb/split |
10069325 | <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 | Merge pull request #303 from ipoval/private-methods-in-controllers | 2 | .rb | rb | mit | splitrb/split |
10069326 | <NME> trial_spec.rb
<BEF> 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 initializeable" do
experiment... | 1 | Enable frozen_string_literal magic comment | 0 | .rb | rb | mit | splitrb/split |
10069327 | <NME> trial_spec.rb
<BEF> 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 initializeable" do
experiment... | 1 | Enable frozen_string_literal magic comment | 0 | .rb | rb | mit | splitrb/split |
10069328 | <NME> trial_spec.rb
<BEF> 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 initializeable" do
experiment... | 1 | Enable frozen_string_literal magic comment | 0 | .rb | rb | mit | splitrb/split |
10069329 | <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)

[ { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if... | 229 | rebuild browser | 81 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069336 | <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... | 1 | Fix URLs to replace http with https | 1 | .erb | erb | mit | splitrb/split |
10069337 | <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... | 1 | Fix URLs to replace http with https | 1 | .erb | erb | mit | splitrb/split |
10069338 | <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... | 1 | Fix URLs to replace http with https | 1 | .erb | erb | mit | splitrb/split |
10069339 | <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);
}... | 122 | Merge pull request #29 from ubolonton/more-transforms | 0 | .js | js | bsd-2-clause | jlongster/transducers.js |
10069340 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 4
TINY = 5
VERSION = [MAJOR, MINOR, TINY].join('.')
end
<MSG> Version 0.4.6
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 4
- TINY = 5
+ TINY = 6
VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 1 | Version 0.4.6 | 1 | .rb | rb | mit | splitrb/split |
10069341 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 4
TINY = 5
VERSION = [MAJOR, MINOR, TINY].join('.')
end
<MSG> Version 0.4.6
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 4
- TINY = 5
+ TINY = 6
VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 1 | Version 0.4.6 | 1 | .rb | rb | mit | splitrb/split |
10069342 | <NME> version.rb
<BEF> module Split
MAJOR = 0
MINOR = 4
TINY = 5
VERSION = [MAJOR, MINOR, TINY].join('.')
end
<MSG> Version 0.4.6
<DFF> @@ -1,6 +1,6 @@
module Split
MAJOR = 0
MINOR = 4
- TINY = 5
+ TINY = 6
VERSION = [MAJOR, MINOR, TINY].join('.')
end
| 1 | Version 0.4.6 | 1 | .rb | rb | mit | splitrb/split |
10069343 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.0
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.4"
+ VERSION = "0.3.0"
end
| 1 | Version 0.3.0 | 1 | .rb | rb | mit | splitrb/split |
10069344 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.0
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.4"
+ VERSION = "0.3.0"
end
| 1 | Version 0.3.0 | 1 | .rb | rb | mit | splitrb/split |
10069345 | <NME> version.rb
<BEF> module Split
VERSION = "0.2.4"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.0
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.2.4"
+ VERSION = "0.3.0"
end
| 1 | Version 0.3.0 | 1 | .rb | rb | mit | splitrb/split |
10069346 | <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],... | 5 | Merge pull request #680 from splitrb/enable-rubocop-ci | 5 | .rb | rb | mit | splitrb/split |
10069347 | <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],... | 5 | Merge pull request #680 from splitrb/enable-rubocop-ci | 5 | .rb | rb | mit | splitrb/split |
10069348 | <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],... | 5 | Merge pull request #680 from splitrb/enable-rubocop-ci | 5 | .rb | rb | mit | splitrb/split |
10069349 | <NME> version.rb
<BEF> module Split
VERSION = "0.3.1"
end
VERSION = "4.0.1"
end
<MSG> Version 0.3.2
<DFF> @@ -1,3 +1,3 @@
module Split
- VERSION = "0.3.1"
+ VERSION = "0.3.2"
end
| 1 | Version 0.3.2 | 1 | .rb | rb | mit | splitrb/split |