commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
8ba06bc7d1f9b2b3b64a05346df84ed644f20190
lib/models/mm_adapter.rb
lib/models/mm_adapter.rb
module MmAdapter def self.included(base) base.extend ClassMethods base.class_eval { include MmAdapter::InstanceMethods } end module ClassMethods def all result = MmUser.all result.collect {|instance| self.new instance} end def get(hash) if user = MmUser.first(hash) ...
module MmAdapter def self.included(base) base.extend ClassMethods base.class_eval { include MmAdapter::InstanceMethods } end module ClassMethods def all result = MmUser.all result.collect {|instance| self.new instance} end def get(hash) if user = MmUser.first(hash) ...
Reset id if save fails
Reset id if save fails A nil id tells us that the save failed, but MongoMapper sets id on all new instances.
Ruby
unlicense
maxjustus/sinatra-authentication,maxjustus/sinatra-authentication
ruby
## Code Before: module MmAdapter def self.included(base) base.extend ClassMethods base.class_eval { include MmAdapter::InstanceMethods } end module ClassMethods def all result = MmUser.all result.collect {|instance| self.new instance} end def get(hash) if user = MmUser.fir...
cf79568336641741f02c60c8be2291d3fa96ee3d
server/routes/users/index.js
server/routes/users/index.js
import express from 'express'; import * as userController from '../../controllers/users'; const user = express.Router(); // define route controllers for creating sign up, login and sign out user.post('/signup', userController.signUp); user.post('/signin', userController.signIn); user.post('/signout', userController....
import express from 'express'; import * as userController from '../../controllers/users'; import * as recipeController from '../../controllers/recipes'; const user = express.Router(); // define route controllers for creating sign up, login and sign out user.post('/signup', userController.signUp); user.post('/signin'...
Implement getUserRecipes on api/v1/users/myRecipes route
Implement getUserRecipes on api/v1/users/myRecipes route
JavaScript
apache-2.0
larrystone/BC-26-More-Recipes,larrystone/BC-26-More-Recipes
javascript
## Code Before: import express from 'express'; import * as userController from '../../controllers/users'; const user = express.Router(); // define route controllers for creating sign up, login and sign out user.post('/signup', userController.signUp); user.post('/signin', userController.signIn); user.post('/signout',...
e6ac418719a75db59c2d37d0d880b602a3b35186
commontest/src/test/scala/application/WithPlayApp.scala
commontest/src/test/scala/application/WithPlayApp.scala
package application import java.io.File import org.specs2.execute.{AsResult, Result} import org.specs2.mutable.Around import org.specs2.specification.Scope import play.api.ApplicationLoader.Context import play.api.test.Helpers import play.api.{Application, ApplicationLoader, BuiltInComponents, Environment, LoggerConf...
package application import org.specs2.execute.{AsResult, Result} import org.specs2.mutable.Around import org.specs2.specification.Scope import play.api.ApplicationLoader.Context import play.api.test.Helpers import play.api.{Application, ApplicationLoader, BuiltInComponents, Environment, LoggerConfigurator} trait With...
Use new Context.create to instanciate a new Context
Use new Context.create to instanciate a new Context
Scala
apache-2.0
guardian/mobile-n10n,guardian/mobile-n10n,guardian/mobile-n10n
scala
## Code Before: package application import java.io.File import org.specs2.execute.{AsResult, Result} import org.specs2.mutable.Around import org.specs2.specification.Scope import play.api.ApplicationLoader.Context import play.api.test.Helpers import play.api.{Application, ApplicationLoader, BuiltInComponents, Environ...
628c92772d72467b9d5172434a259936e7e5d613
type/model/dependency.go
type/model/dependency.go
package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid"` DependentProjectUUID string `json:"dependent_project_uuid"` SourceCD int `json:"source_...
package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid" gorm:"ForeignKey:UUID"` DependentProjectUUID string `json:"dependent_project_uuid" gorm:"F...
Set foreign key information to Dependency
Set foreign key information to Dependency
Go
mit
torinos-io/api,torinos-io/api
go
## Code Before: package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid"` DependentProjectUUID string `json:"dependent_project_uuid"` SourceCD in...
33362911d547548214a34ac0be71256700a31fb4
librariesio/projects.go
librariesio/projects.go
package librariesio import ( "fmt" "net/http" ) // Project that holds a name field type Project struct { Name string `json:"name"` } // GetProject returns information about a project and it's versions. // GET https://libraries.io/api/:platform/:name func (c *Client) GetProject(platform string, name string) (*Proj...
package librariesio import ( "fmt" "net/http" "time" ) // Project represents a project on libraries.io type Project struct { Description string `json:"description,omitempty"` Forks int `json:"forks,omitempty"` Homepage string `json:"homepage,omitempty"...
Add other fields to Project struct
Add other fields to Project struct
Go
mit
hackebrot/go-librariesio
go
## Code Before: package librariesio import ( "fmt" "net/http" ) // Project that holds a name field type Project struct { Name string `json:"name"` } // GetProject returns information about a project and it's versions. // GET https://libraries.io/api/:platform/:name func (c *Client) GetProject(platform string, nam...
a0987c692d4c2479ce07794c7c3012d8fbbc11c6
index.js
index.js
var request = require("request"); var cheerio = require("cheerio"); var URL = "http://www.bkn.go.id/profil-pns"; var bknScrapper = function() { } bknScrapper.prototype.getData = function(id, cb) { var form = { nip: id }; request.post(URL, { form : form}, function(err, resp, body) { var data = {}; ...
var request = require("request"); var cheerio = require("cheerio"); var URL = "http://www.bkn.go.id/profil-pns"; var bknScrapper = function() { } bknScrapper.prototype.getData = function(id, cb) { var form = { nip: id }; request.post(URL, { form : form}, function(err, resp, body) { var data = {}; ...
Return null if bkn API result is null
Return null if bkn API result is null
JavaScript
mit
KodeKreatif/bkn-scrapper
javascript
## Code Before: var request = require("request"); var cheerio = require("cheerio"); var URL = "http://www.bkn.go.id/profil-pns"; var bknScrapper = function() { } bknScrapper.prototype.getData = function(id, cb) { var form = { nip: id }; request.post(URL, { form : form}, function(err, resp, body) { var...
b89b6c05479b15a41546bd549c6258bf44ee7400
.travis.yml
.travis.yml
language: scala sudo: true services: - mysql - postgresql - docker before_install: - docker pull oracleinanutshell/oracle-xe-11g - docker pull topaztechnology/mssql-server-linux - docker run --name oracle -d -p 127.0.0.1:1521:1521 -e ORACLE_ALLOW_REMOTE=true oracleinanutshell/oracle-xe-11g - docker run --...
language: scala sudo: true services: - mysql - postgresql - docker before_install: - docker pull oracleinanutshell/oracle-xe-11g - docker pull topaztechnology/mssql-server-linux - docker run --name oracle -d -p 127.0.0.1:1521:1521 -e ORACLE_ALLOW_REMOTE=true oracleinanutshell/oracle-xe-11g - docker run --...
Build for Scala 2.12 and 2.13
Build for Scala 2.12 and 2.13
YAML
apache-2.0
dnvriend/akka-persistence-jdbc
yaml
## Code Before: language: scala sudo: true services: - mysql - postgresql - docker before_install: - docker pull oracleinanutshell/oracle-xe-11g - docker pull topaztechnology/mssql-server-linux - docker run --name oracle -d -p 127.0.0.1:1521:1521 -e ORACLE_ALLOW_REMOTE=true oracleinanutshell/oracle-xe-11g ...
ec637f357a68651787eece777af429bf3bfd98ac
app/views/dashboards/_pull_requests_if_any.html.haml
app/views/dashboards/_pull_requests_if_any.html.haml
- if current_user.pull_requests.year(current_year).any? = render :partial => 'pull_requests/pull_request', :collection => pull_requests - else %p=t("dashboard.no_pull_requests")
- if current_user.pull_requests.year(current_year).any? = render :partial => 'pull_requests/pull_request', :collection => pull_requests - elsif DateTime.new(current_year, 12, 1) > DateTime.now %p='24 Pull Requests runs from 1st-24th December, come back then!' - else %p=t("dashboard.no_pull_requests")
Add better PR message when it isn't december.
Add better PR message when it isn't december.
Haml
mit
tegon/24pullrequests,pimterry/24pullrequests,acrogenesis-lab/24pullrequests,tegon/24pullrequests,jasnow/24pullrequests5,jasnow/24pullrequests5,24pullrequests/24pullrequests,tarebyte/24pullrequests,nateberkopec/24pullrequests,wadtech/24pullrequests,tarebyte/24pullrequests,acrogenesis-lab/24pullrequests,tarebyte/24pullre...
haml
## Code Before: - if current_user.pull_requests.year(current_year).any? = render :partial => 'pull_requests/pull_request', :collection => pull_requests - else %p=t("dashboard.no_pull_requests") ## Instruction: Add better PR message when it isn't december. ## Code After: - if current_user.pull_requests.year(curren...
e0f09b4fd3ce603ae7de83eb89b0aa6efeb89ec6
src/rebuild-module-cache.coffee
src/rebuild-module-cache.coffee
path = require 'path' async = require 'async' Command = require './command' config = require './config' fs = require './fs' module.exports = class RebuildModuleCache extends Command @commandNames: ['rebuild-module-cache'] constructor: -> @atomPackagesDirectory = path.join(config.getAtomDirectory(), 'packages'...
path = require 'path' async = require 'async' Command = require './command' config = require './config' fs = require './fs' module.exports = class RebuildModuleCache extends Command @commandNames: ['rebuild-module-cache'] constructor: -> @atomPackagesDirectory = path.join(config.getAtomDirectory(), 'packages'...
Use forEach to iterate over package folders
Use forEach to iterate over package folders
CoffeeScript
mit
gutsy/apm,bronson/apm,ethanp/apm,bcoe/apm,jlord/apm,jlord/apm,AtaraxiaEta/apm,AtaraxiaEta/apm,jlord/apm,ethanp/apm,jlord/apm,VandeurenGlenn/apm,pusateri/apm,ethanp/apm,jlord/apm,ethanp/apm,gutsy/apm,atom/apm,bcoe/apm,bronson/apm,VandeurenGlenn/apm,fscherwi/apm,bronson/apm,atom/apm,pusateri/apm,bcoe/apm,VandeurenGlenn/a...
coffeescript
## Code Before: path = require 'path' async = require 'async' Command = require './command' config = require './config' fs = require './fs' module.exports = class RebuildModuleCache extends Command @commandNames: ['rebuild-module-cache'] constructor: -> @atomPackagesDirectory = path.join(config.getAtomDirecto...
0f9d4b7bbdd45479d91c6e49483f2d4260b3f69d
flymine/dbmodel/resources/genomic_priorities.properties
flymine/dbmodel/resources/genomic_priorities.properties
BioEntity.organism = \ uniprot, \ rnai, \ intact
BioEntity.organism = \ uniprot, \ rnai, \ intact, \ interpro
Add a priority setting for Interpro BioEntity.organism
Add a priority setting for Interpro BioEntity.organism Former-commit-id: 2b1538c3988a5e9777fa12593eb3076a0ed41c86
INI
lgpl-2.1
julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine,julie-sullivan/phytomine
ini
## Code Before: BioEntity.organism = \ uniprot, \ rnai, \ intact ## Instruction: Add a priority setting for Interpro BioEntity.organism Former-commit-id: 2b1538c3988a5e9777fa12593eb3076a0ed41c86 ## Code After: BioEntity.organism = \ uniprot, \ rnai, \ intact, \ interpro
e629c859085cf6cc92559ff2b45817f486938eda
Sources/Euler/Calculus.swift
Sources/Euler/Calculus.swift
import Foundation // MARK: Derivative postfix operator ′ public postfix func ′(function: @escaping (Double) -> (Double)) -> (Double) -> (Double) { return { x in let h: Double = x.isZero ? 1e-3 : √(ε * x) return round((function(x + h) - function(x - h)) / (2 * h) / h) * h } } // MARK: Integral...
import Foundation // MARK: Derivative postfix operator ′ public postfix func ′(function: @escaping (Double) -> (Double)) -> (Double) -> (Double) { return { x in let h: Double = x.isZero ? 1e-3 : √(ε * x) return round((function(x + h) - function(x - h)) / (2 * h) / h) * h } } // MARK: Integral...
Use isMultiple(of:) instead of modulo operator
Use isMultiple(of:) instead of modulo operator
Swift
mit
mattt/Euler
swift
## Code Before: import Foundation // MARK: Derivative postfix operator ′ public postfix func ′(function: @escaping (Double) -> (Double)) -> (Double) -> (Double) { return { x in let h: Double = x.isZero ? 1e-3 : √(ε * x) return round((function(x + h) - function(x - h)) / (2 * h) / h) * h } } /...
786eee1f2bab7134b69d55c816f062bf3a73f467
src/Trackable/Models/Site.php
src/Trackable/Models/Site.php
<?php namespace BenAllfree\Trackable\Models; use Illuminate\Database\Eloquent\Model; class Site extends Model { protected $fillable = ['host']; function metas() { return $this->hasManyThrough(\ContactMeta::class, \Contact::class); } function currentMetas() { return $this->metas()->whereIsCu...
<?php namespace BenAllfree\Trackable\Models; class Site extends \TrackableModelBase { protected $fillable = ['host']; public function metas() { return $this->hasManyThrough(\ContactMeta::class, \Contact::class); } public function currentMetas() { return $this->metas()->whereIsCurrent(true); } ...
Use Alias so Model base class can be changed
Use Alias so Model base class can be changed
PHP
mit
benallfree/laravel-trackable
php
## Code Before: <?php namespace BenAllfree\Trackable\Models; use Illuminate\Database\Eloquent\Model; class Site extends Model { protected $fillable = ['host']; function metas() { return $this->hasManyThrough(\ContactMeta::class, \Contact::class); } function currentMetas() { return $this->me...
f945e28d309c164093ec7606005b6578a3d90a9b
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 git: depth: 25 before_install: - make install dependencies script: make test # whitelist branches: only: - master
language: php php: - 5.4 - 5.5 git: depth: 1 install: - npm install -g grunt-cli - npm install - grunt install script: grunt test notifications: email: false
Update Travis CI config (commands, notifications)
Update Travis CI config (commands, notifications)
YAML
bsd-2-clause
MUNComputerScienceSociety/ABALookup,MUNComputerScienceSociety/ABALookup,MUNComputerScienceSociety/ABALookup
yaml
## Code Before: language: php php: - 5.4 - 5.5 git: depth: 25 before_install: - make install dependencies script: make test # whitelist branches: only: - master ## Instruction: Update Travis CI config (commands, notifications) ## Code After: language: php php: - 5.4 - 5.5 git: ...
8badf487b1ac1a242d439285600eef79349f0944
form/types.go
form/types.go
package form type Type int const ( // <input type="text"> TEXT Type = iota + 1 // <input type="password"> PASSWORD // <input type="hidden"> HIDDEN // <textarea> TEXTAREA // <input type="checkbox"> CHECKBOX // <input type="radio"> RADIO // <select> SELECT )
package form type Type int const ( // <input type="text"> TEXT Type = iota + 1 // <input type="password"> PASSWORD // <input type="hidden"> HIDDEN // <textarea> TEXTAREA // <input type="checkbox"> CHECKBOX // <input type="radio"> RADIO // <select> SELECT ) // HasChoices returns wheter the type has mult...
Add HasChoices method to Type
Add HasChoices method to Type
Go
mpl-2.0
rainycape/gondola,rainycape/gondola,rainycape/gondola,rainycape/gondola
go
## Code Before: package form type Type int const ( // <input type="text"> TEXT Type = iota + 1 // <input type="password"> PASSWORD // <input type="hidden"> HIDDEN // <textarea> TEXTAREA // <input type="checkbox"> CHECKBOX // <input type="radio"> RADIO // <select> SELECT ) ## Instruction: Add HasChoices...
72ce164a461987f7b9d35ac9a2b3a36386b7f8c9
ui/Interactor.py
ui/Interactor.py
class Interactor(object): """ Interactor """ def __init__(self): super(Interactor, self).__init__() def AddObserver(self, obj, eventName, callbackFunction): """ Creates a callback and stores the callback so that later on the callbacks can be properly cleaned up. """ if not hasattr(self, "_callbacks...
class Interactor(object): """ Interactor """ def __init__(self): super(Interactor, self).__init__() def AddObserver(self, obj, eventName, callbackFunction, priority=None): """ Creates a callback and stores the callback so that later on the callbacks can be properly cleaned up. """ if not hasattr(se...
Add possibility of passing priority for adding an observer
Add possibility of passing priority for adding an observer
Python
mit
berendkleinhaneveld/Registrationshop,berendkleinhaneveld/Registrationshop
python
## Code Before: class Interactor(object): """ Interactor """ def __init__(self): super(Interactor, self).__init__() def AddObserver(self, obj, eventName, callbackFunction): """ Creates a callback and stores the callback so that later on the callbacks can be properly cleaned up. """ if not hasattr(s...
420753e2a563afa4c6bba6f2b511beb04d1b7504
lib/ditty/controllers/user_login_traits_controller.rb
lib/ditty/controllers/user_login_traits_controller.rb
require 'ditty/controllers/component_controller' require 'ditty/models/user_login_trait' require 'ditty/policies/user_login_trait_policy' module Ditty class UserLoginTraitsController < ::Ditty::ComponentController SEARCHABLE = %i[platform device browser ip_address].freeze FILTERS = [ { name: :user, fi...
require 'ditty/controllers/component_controller' require 'ditty/models/user_login_trait' require 'ditty/policies/user_login_trait_policy' module Ditty class UserLoginTraitsController < ::Ditty::ComponentController SEARCHABLE = %i[platform device browser ip_address].freeze FILTERS = [ { name: :user, fi...
Order login traits by updated_at, reversed
chore: Order login traits by updated_at, reversed
Ruby
mit
EagerELK/ditty,EagerELK/ditty,EagerELK/ditty
ruby
## Code Before: require 'ditty/controllers/component_controller' require 'ditty/models/user_login_trait' require 'ditty/policies/user_login_trait_policy' module Ditty class UserLoginTraitsController < ::Ditty::ComponentController SEARCHABLE = %i[platform device browser ip_address].freeze FILTERS = [ {...
462bd2a6957f0d5233789e68402e1b1247aee7ca
app/Helpers/BusSearch.php
app/Helpers/BusSearch.php
<?php namespace eien\Helpers; use wataridori\SFS\SimpleFuzzySearch; class BusSearch { public function searchServices($query, Cached $cached) { $serviceObject = $cached->getAsArray('bus-services'); $sfs = new SimpleFuzzySearch($serviceObject['services'], ['name']); $results = $sfs->se...
<?php namespace eien\Helpers; use wataridori\SFS\SimpleFuzzySearch; class BusSearch { public function searchServices($query, Cached $cached) { $serviceObject = $cached->getAsArray('bus-services'); $sfs = new SimpleFuzzySearch($serviceObject['services'], [ 'name', 'no'...
Allow no. to be searched as well
Allow no. to be searched as well
PHP
bsd-2-clause
kbkyzd/eien,kbkyzd/eien
php
## Code Before: <?php namespace eien\Helpers; use wataridori\SFS\SimpleFuzzySearch; class BusSearch { public function searchServices($query, Cached $cached) { $serviceObject = $cached->getAsArray('bus-services'); $sfs = new SimpleFuzzySearch($serviceObject['services'], ['name']); $re...
e52901d71fd3df2a9721b2eef0f5007be34d900c
_config.yml
_config.yml
title: "Hi, I'm Wolf480pl" title_suffix: " - Wolf480pl's blog" email: wolf480@interia.pl author: Wolf480pl description: > # this means to ignore newlines until "baseurl:" I'm a Linux geek from Poland. I use Arch Linux with a custom DE (compiz + cairo-dock + screenlets). I like programming. I know some of C, C++, Py...
title: "Hi, I'm Wolf480pl" title_suffix: " - Wolf480pl's blog" email: wolf480@interia.pl author: Wolf480pl description: > # this means to ignore newlines until "baseurl:" I'm a Linux geek from Poland. I use Arch Linux with a custom DE (compiz + cairo-dock + screenlets). I like programming. I know some of C, C++, Py...
Improve copyright notices (still commented out, not final)
Improve copyright notices (still commented out, not final)
YAML
mit
Wolf480pl/wolf480pl.github.com,Wolf480pl/neon-jekyll-theme
yaml
## Code Before: title: "Hi, I'm Wolf480pl" title_suffix: " - Wolf480pl's blog" email: wolf480@interia.pl author: Wolf480pl description: > # this means to ignore newlines until "baseurl:" I'm a Linux geek from Poland. I use Arch Linux with a custom DE (compiz + cairo-dock + screenlets). I like programming. I know so...
3eac6ac01a9fa22c058926ab623d1aadfcee9ed1
lib/shapes/builder/struct.rb
lib/shapes/builder/struct.rb
module Shapes module Builder class Struct attr_reader :data attr_accessor :builder_strategy, :resource def initialize(data) @data = data @builder_strategy = if(data.is_a?(XML::Node)) StructFromXml.new else StructFromHash.new end end ...
module Shapes module Builder class Struct attr_reader :data attr_accessor :builder_strategy, :resource def initialize(data) @data = data @builder_strategy = if(data.is_a?(XML::Node)) StructFromXml.new else StructFromHash.new end end ...
Add resource-type in StructFromHash not in StructFromXml
Add resource-type in StructFromHash not in StructFromXml
Ruby
mit
fork/shapes,fork/shapes
ruby
## Code Before: module Shapes module Builder class Struct attr_reader :data attr_accessor :builder_strategy, :resource def initialize(data) @data = data @builder_strategy = if(data.is_a?(XML::Node)) StructFromXml.new else StructFromHash.new e...
3d6aa32001ab90df6c0ca303efe3c816c84d7a4b
ci.sh
ci.sh
set -e function assertTestFailure() { elm-package install --yes elm-test "$1" | tee "$1".test.log if test ${PIPESTATUS[0]} -ne 1; then echo "$0: ERROR: $1: Expected tests to fail" >&2 exit 1 fi } function assertTestSuccess() { elm-package install --yes elm-test "$1" | tee "$1".test.log if test ...
set -e function assertTestFailure() { elm-package install --yes elm-test "$1" | tee "$1".test.log if test ${PIPESTATUS[0]} -ne 1; then echo "$0: ERROR: $1: Expected tests to fail" >&2 exit 1 fi } function assertTestSuccess() { elm-package install --yes elm-test "$1" | tee "$1".test.log if test ...
Make elm-test init tests more robust against broken compilations
Make elm-test init tests more robust against broken compilations
Shell
bsd-3-clause
ento/node-elm-test,avh4/node-elm-test,ento/node-elm-test,rtfeldman/node-elm-test,rtfeldman/node-test-runner,avh4/node-elm-test,rtfeldman/node-elm-test
shell
## Code Before: set -e function assertTestFailure() { elm-package install --yes elm-test "$1" | tee "$1".test.log if test ${PIPESTATUS[0]} -ne 1; then echo "$0: ERROR: $1: Expected tests to fail" >&2 exit 1 fi } function assertTestSuccess() { elm-package install --yes elm-test "$1" | tee "$1".tes...
c2f63bd9560d3fe486a51f7850b93d8fcc61aa26
lib/travis/logs/existence.rb
lib/travis/logs/existence.rb
require 'redis' require 'travis/redis_pool' module Travis module Logs class Existence attr_reader :redis class << self def redis @redis ||= RedisPool.new(redis_config) end def redis_config Logs.config.logs_redis || Logs.config.redis end end ...
require 'redis' require 'travis/redis_pool' module Travis module Logs class Existence attr_reader :redis class << self def redis @redis ||= RedisPool.new(redis_config) end def redis_config Logs.config.logs_redis || Logs.config.redis end end ...
Expire occupation keys after 6 hours
Expire occupation keys after 6 hours
Ruby
mit
final-ci/travis-logs,final-ci/travis-logs,travis-ci/travis-logs,travis-ci/travis-logs
ruby
## Code Before: require 'redis' require 'travis/redis_pool' module Travis module Logs class Existence attr_reader :redis class << self def redis @redis ||= RedisPool.new(redis_config) end def redis_config Logs.config.logs_redis || Logs.config.redis ...
186b3846e5fe9298549b5a5c98e9ec9817f35203
twisted/plugins/specter_plugin.py
twisted/plugins/specter_plugin.py
from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage.Options): op...
import yaml from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl from zope.interface import implements import specter class Options(usage.Opt...
Move config parsing to plugin, use for SSL keys
Move config parsing to plugin, use for SSL keys
Python
mit
praekelt/specter,praekelt/specter
python
## Code Before: from zope.interface import implements from twisted.python import usage from twisted.plugin import IPlugin from twisted.application.service import IServiceMaker from twisted.application import internet from twisted.web import server from twisted.internet import ssl import specter class Options(usage....
f0cad5cd865da965c376e89262eb6f13fa5b3322
addon/components/freestyle-collection.js
addon/components/freestyle-collection.js
import Ember from 'ember'; import layout from '../templates/components/freestyle-collection'; const { computed, inject } = Ember; export default Ember.Component.extend({ layout, classNames: ['FreestyleCollection'], classNameBindings: ['inline:FreestyleCollection--inline'], emberFreestyle: inject.service(), ...
import Ember from 'ember'; import layout from '../templates/components/freestyle-collection'; const { computed, inject } = Ember; export default Ember.Component.extend({ layout, classNames: ['FreestyleCollection'], classNameBindings: ['inline:FreestyleCollection--inline'], emberFreestyle: inject.service(), ...
Fix 'calling set on destroyed object' error
Fix 'calling set on destroyed object' error
JavaScript
mit
chrislopresto/ember-freestyle,chrislopresto/ember-freestyle,chrislopresto/ember-freestyle,chrislopresto/ember-freestyle,chrislopresto/ember-freestyle
javascript
## Code Before: import Ember from 'ember'; import layout from '../templates/components/freestyle-collection'; const { computed, inject } = Ember; export default Ember.Component.extend({ layout, classNames: ['FreestyleCollection'], classNameBindings: ['inline:FreestyleCollection--inline'], emberFreestyle: inj...
6cb832a7dc09f4f9a9bad8d1db0423aa4569193a
core/lib/tasks/users.rake
core/lib/tasks/users.rake
namespace :user do task :add, [:user, :email, :password] => :environment do |t, args| u = User.new({ username: args.user, password: args.password, confirmed_at: DateTime.now }) u.email = args.email u.save if(u.errors.size > 0) msg = "Failed to import " ...
namespace :user do task :add, [:user, :email, :password] => :environment do |t, args| u = User.new({ username: args.user, password: args.password, }) u.email = args.email u.confirmed_at = DateTime.now u.save if(u.errors.size > 0) msg = "Failed to import " u.erro...
Set confirmed_at for the generated user
Set confirmed_at for the generated user
Ruby
mit
Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core,daukantas/factlink-core,Factlink/factlink-core
ruby
## Code Before: namespace :user do task :add, [:user, :email, :password] => :environment do |t, args| u = User.new({ username: args.user, password: args.password, confirmed_at: DateTime.now }) u.email = args.email u.save if(u.errors.size > 0) msg = "Fail...
313aafc11f76888614e2a0523e9e858e71765eaa
tests/test_wc.py
tests/test_wc.py
"""Subversion ra library tests.""" from bzrlib.tests import TestCase import ra class VersionTest(TestCase): def test_version_length(self): self.assertEquals(4, len(ra.version()))
"""Subversion ra library tests.""" from bzrlib.tests import TestCase import wc class VersionTest(TestCase): def test_version_length(self): self.assertEquals(4, len(wc.version())) class WorkingCopyTests(TestCase): def test_get_adm_dir(self): self.assertEquals(".svn", wc.get_adm_dir()) de...
Add some more tests for wc module.
Add some more tests for wc module.
Python
lgpl-2.1
jelmer/subvertpy,jelmer/subvertpy
python
## Code Before: """Subversion ra library tests.""" from bzrlib.tests import TestCase import ra class VersionTest(TestCase): def test_version_length(self): self.assertEquals(4, len(ra.version())) ## Instruction: Add some more tests for wc module. ## Code After: """Subversion ra library tests.""" from ...
2449e41248f03f4313e67294883cb928d597ad27
plugins/n98-magerun/n98-magerun.plugin.zsh
plugins/n98-magerun/n98-magerun.plugin.zsh
_n98_magerun_get_command_list () { n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }' } _n98_magerun () { compadd `_n98_magerun_get_command_list` } compdef _n98_magerun n98-magerun.phar compdef _n98_magerun n98-magerun # Aliases alias n98='n98-magerun.phar' alias mage=...
_n98_magerun_get_command_list () { $_comp_command1 --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }' } _n98_magerun () { _arguments '1: :->command' '*:optional arg:_files' case $state in command) compadd $(_n98_magerun_get_command_list) ;; *) esac } compdef _n...
Add file completion as optional argument
Add file completion as optional argument
Shell
mit
yusiwen/oh-my-zsh,pdesgarets/oh-my-zsh,hocine-h/oh-my-zsh,cmoore/oh-my-zsh,kevunix/oh-my-zsh,Avizacherman/oh-my-zsh,seanlei/oh-my-zsh,lakiley/oh-my-zsh,joysboy/oh-my-zsh,beermix/oh-my-zsh,matthewcmorgan/oh-my-zsh,habnabit/oh-my-zsh,xu-cheng/oh-my-zsh,jhannah/oh-my-zsh,andrewferrier/oh-my-zsh,mikeclarke/oh-my-zsh,dgvigi...
shell
## Code Before: _n98_magerun_get_command_list () { n98-magerun.phar --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z\-:]+/ { print $1 }' } _n98_magerun () { compadd `_n98_magerun_get_command_list` } compdef _n98_magerun n98-magerun.phar compdef _n98_magerun n98-magerun # Aliases alias n98='n98-magerun.p...
1b6a2aa16cda8ab7256c9afb19c99dcc82783fc0
README.md
README.md
Base62 Algorithm Composer package ================================= Convert integers to [base62](http://en.wikipedia.org/wiki/62) strings and back. **Installation** This is class is in the [Packagist repository](https://packagist.org/packages/vinkla/base62) and can be installed like any other [Composer](https://getco...
Base62 Algorithm Composer package ================================= Convert integers to [base62](http://en.wikipedia.org/wiki/62) strings and back. Installation -------------- This is class is in the [Packagist repository](https://packagist.org/packages/vinkla/base62) and can be installed like any other [Composer](ht...
Remove bold text and add headings.
Remove bold text and add headings.
Markdown
mit
deprecat/base62,vinkla/base62
markdown
## Code Before: Base62 Algorithm Composer package ================================= Convert integers to [base62](http://en.wikipedia.org/wiki/62) strings and back. **Installation** This is class is in the [Packagist repository](https://packagist.org/packages/vinkla/base62) and can be installed like any other [Compose...
3690fff3f528cd6e28a2f6eaf19a893ccb2f79db
html.jsx
html.jsx
import React from 'react' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import { TypographyStyle } from 'utils/typography' module.exports = React.createClass({ propTypes () { return { title: React.PropTypes.string, } }, render () { let title = Document...
import React from 'react' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import { TypographyStyle } from 'utils/typography' module.exports = React.createClass({ propTypes () { return { title: React.PropTypes.string, } }, render () { let title = Document...
Add link to styles.css on production builds
Add link to styles.css on production builds
JSX
mit
ni-tta/irc,dearwish/gatsby-starter-clean,kepatopoc/gatsby-starter-clean,TasGuerciMaia/tasguercimaia.github.io,MeganKeesee/personal-site,peterqiu1997/irc,InnoD-WebTier/irc,roslaneshellanoo/gatsby-starter-clean,jmcorona/jmcorona-netlify,jmcorona/jmcorona-netlify,benruehl/gatsby-kruemelkiste,sarahxy/irc,MeganKeesee/person...
jsx
## Code Before: import React from 'react' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import { TypographyStyle } from 'utils/typography' module.exports = React.createClass({ propTypes () { return { title: React.PropTypes.string, } }, render () { let ...
c2568911618226fdbb3822c0428a246fb1286a0f
bfs.lisp
bfs.lisp
; find the shortest path between two nodes in an unweighted graph ; ie perform a breadth first search ; the graph is a list of nodes ; a node is a list whose first element is the name of the node ; and whose remaining elements are the names of any neighbours ; (set-graph '((a b c) (b a) (c a))) (setq graph nil) (defu...
; find the shortest path between two nodes in an unweighted graph ; ie perform a breadth first search ; the graph is a list of nodes ; a node is a list whose first element is the name of the node ; and whose remaining elements are the names of any neighbours ; (set-graph '((a b c) (b a) (c a))) (setq graph nil) (defu...
Add predicate to determine if two nodes are neighbours
Add predicate to determine if two nodes are neighbours
Common Lisp
mit
richardmillson/Lisp
common-lisp
## Code Before: ; find the shortest path between two nodes in an unweighted graph ; ie perform a breadth first search ; the graph is a list of nodes ; a node is a list whose first element is the name of the node ; and whose remaining elements are the names of any neighbours ; (set-graph '((a b c) (b a) (c a))) (setq ...
a935db4cf456c28c3345c471ad368f6e003db9d2
.travis.yml
.travis.yml
language: python python: - 2.6 - 2.7 - 3.2 - 3.3 - 3.4 env: - DJANGO=1.5 - DJANGO=1.6 - DJANGO=1.7 - DJANGO=1.8 - DJANGO=1.9 before_install: - export DJANGO_SETTINGS_MODULE=app.settings - export PYTHONPATH=$HOME/builds/fatboystring/csv_generator - export PIP_USE_MIRRORS=true install: - p...
language: python python: - 2.6 - 2.7 - 3.2 - 3.3 - 3.4 env: - DJANGO=1.7 - DJANGO=1.8 - DJANGO=1.9 before_install: - export DJANGO_SETTINGS_MODULE=app.settings - export PYTHONPATH=$HOME/builds/fatboystring/csv_generator - export PIP_USE_MIRRORS=true install: - pip install -r requirements.txt...
Remove support for django 1.5 and 1.6
Remove support for django 1.5 and 1.6
YAML
mit
fatboystring/csv_generator,fatboystring/csv_generator
yaml
## Code Before: language: python python: - 2.6 - 2.7 - 3.2 - 3.3 - 3.4 env: - DJANGO=1.5 - DJANGO=1.6 - DJANGO=1.7 - DJANGO=1.8 - DJANGO=1.9 before_install: - export DJANGO_SETTINGS_MODULE=app.settings - export PYTHONPATH=$HOME/builds/fatboystring/csv_generator - export PIP_USE_MIRRORS=true...
0200c03f8f6232965f924a765c5ebb0f9c439f4d
sample_app/forms.py
sample_app/forms.py
from flask_wtf import Form from wtforms.fields import (TextField, SubmitField, BooleanField, DateField, DateTimeField) from wtforms.validators import Required class SignupForm(Form): name = TextField(u'Your name', validators=[Required()]) birthday = DateField(u'Your birthday') ...
from flask_wtf import Form from wtforms.fields import (TextField, SubmitField, BooleanField, DateField, DateTimeField) from wtforms.validators import Required, Email class SignupForm(Form): name = TextField(u'Your name', validators=[Required()]) email = TextField(u'Your email addre...
Add email field to sample app.
Add email field to sample app.
Python
apache-2.0
vishnugonela/flask-bootstrap,BeardedSteve/flask-bootstrap,livepy/flask-bootstrap,suvorom/flask-bootstrap,vishnugonela/flask-bootstrap,JingZhou0404/flask-bootstrap,vishnugonela/flask-bootstrap,BeardedSteve/flask-bootstrap,suvorom/flask-bootstrap,eshijia/flask-bootstrap,JingZhou0404/flask-bootstrap,moha24/flask-bootstrap...
python
## Code Before: from flask_wtf import Form from wtforms.fields import (TextField, SubmitField, BooleanField, DateField, DateTimeField) from wtforms.validators import Required class SignupForm(Form): name = TextField(u'Your name', validators=[Required()]) birthday = DateField(u'Your...
f9b5305f740a1901e896e8658ebfd3ea15493f19
lib/w2/controller.rb
lib/w2/controller.rb
module W2 module Controller get '/style.css' do render :text, File.read(File.dirname) + '/public/style.css' end get '/app.js' do render :text, File.read(File.dirname) + '/public/app.js' end get %r'(.*)/edit' do |path| haml :edit, :locals => {:path => path, :text => wiki_text_fo...
module W2 module Controller get '/style.css' do render :text, File.read(File.dirname) + '/public/style.css' end get '/app.js' do render :text, File.read(File.dirname) + '/public/app.js' end get %r'(.*)/edit' do |path| haml :edit, :locals => {:path => path, :text => wiki_text_fo...
Revert "Don't show empty paths"
Revert "Don't show empty paths" Turns out this wasn't the problem This reverts commit 5746885bd5da06bea70b8648d68b681281659a42.
Ruby
bsd-3-clause
samg/wikiwiki,samg/wikiwiki
ruby
## Code Before: module W2 module Controller get '/style.css' do render :text, File.read(File.dirname) + '/public/style.css' end get '/app.js' do render :text, File.read(File.dirname) + '/public/app.js' end get %r'(.*)/edit' do |path| haml :edit, :locals => {:path => path, :text...
bf0aa27340c2364aa4be3549e870c71ce0846d7a
ui/message_center/base_format_view.h
ui/message_center/base_format_view.h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #define UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #include "ui/message_center/message_view.h" #include "ui/...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #define UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #include "ui/message_center/message_view.h" #include "ui/...
Revert 167593 - Add an OVERRIDE keyword This change adds an OVERRIDE keyword to the BaseFormatView::ButtonPressed function to fix a build break on the "Linux ChromiumOS (Clang dbg)" bot.
Revert 167593 - Add an OVERRIDE keyword This change adds an OVERRIDE keyword to the BaseFormatView::ButtonPressed function to fix a build break on the "Linux ChromiumOS (Clang dbg)" bot. The CL this tries to fix is broken. Reverting the fix, so I can revert the CL TBR=miket BUG=none TEST=fix builds on the "Linux Chro...
C
bsd-3-clause
anirudhSK/chromium,fujunwei/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,anirudhSK/chromium,Just-D/chromium-1,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,dednal/chromium.src,hujiajie/pa-chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chrom...
c
## Code Before: // Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #define UI_MESSAGE_CENTER_BASE_FORMAT_VIEW_H_ #include "ui/message_center/message_view....
a8311a9543f31297fdd4760b366176ba1f757f10
roles/macos/tasks/common-packages.yml
roles/macos/tasks/common-packages.yml
--- - name: brew tap casks homebrew_tap: name: "{{ item }}" state: present loop: "{{ macos.brew.taps | flatten(levels=1) }}" - name: brew update homebrew: update_homebrew=yes - name: brew upgrade homebrew: update_homebrew=yes upgrade_all=yes - name: brew install common casks homebrew_cask: name={{ ...
--- - name: brew tap casks homebrew_tap: name: "{{ item }}" state: present loop: "{{ macos.brew.taps | flatten(levels=1) }}" - name: brew update homebrew: update_homebrew=yes - name: brew upgrade homebrew: update_homebrew=yes upgrade_all=yes - name: brew install common casks homebrew_cask: name={{ ...
Add packages for personal mail setup.
Add packages for personal mail setup.
YAML
mit
alloy-d/alloy-d.nyc
yaml
## Code Before: --- - name: brew tap casks homebrew_tap: name: "{{ item }}" state: present loop: "{{ macos.brew.taps | flatten(levels=1) }}" - name: brew update homebrew: update_homebrew=yes - name: brew upgrade homebrew: update_homebrew=yes upgrade_all=yes - name: brew install common casks homebre...
3c1a5cbb65fd9aa63ad4cde7f4a9a0e02a50eb61
tests/Android.mk
tests/Android.mk
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ BlitRowTest.cpp \ GeometryTest.cpp \ MathTest.cpp \ MatrixTest.cpp \ PackBitsTest.cpp \ Sk64Test.cpp \ StringTest.cpp \ Test.cpp UtilsTest.cpp \ PathTest.cpp \ SrcOverT...
LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ BlitRowTest.cpp \ GeometryTest.cpp \ MathTest.cpp \ MatrixTest.cpp \ PackBitsTest.cpp \ Sk64Test.cpp \ StringTest.cpp \ Test.cpp UtilsTest.cpp \ PathTest.cpp \ SrcOverT...
Add missing library in command line to the linker. Currently this library is included implicitly via inter-library dependency. The library is also used by the main executable.
Add missing library in command line to the linker. Currently this library is included implicitly via inter-library dependency. The library is also used by the main executable. Change-Id: Ib5562dbc481af6d95823c97e63355037e0049f7e
Makefile
bsd-3-clause
InsomniaAOSP/platform_external_skia,MyAOSP/external_skia,sigysmund/platform_external_skia,Purity-Lollipop/platform_external_skia,MinimalOS/external_skia,zhaochengw/platform_external_skia,Khaon/android_external_skia,Euphoria-OS-Legacy/android_external_skia,nfxosp/platform_external_skia,Gateworks/skia,AndroidOpenDevelopm...
makefile
## Code Before: LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ BlitRowTest.cpp \ GeometryTest.cpp \ MathTest.cpp \ MatrixTest.cpp \ PackBitsTest.cpp \ Sk64Test.cpp \ StringTest.cpp \ Test.cpp UtilsTest.cpp \ PathTest.cpp \ ...
e3d227c5ce06fded4ff892fa08816d27954c93fa
user_aws_search.php
user_aws_search.php
<?php include_once 'header.php'; include_once 'database.php'; include_once 'tohtml.php'; echo userHTML( ); echo ' <form action="" method="get" accept-charset="utf-8"> <input type="text" name="query" value="" > <button type="submit" name="response" value="Search">Search</button> </form> '; if( is...
<?php include_once 'header.php'; include_once 'database.php'; include_once 'tohtml.php'; echo userHTML( ); echo 'Search for a keyword/topic. Currently search is very primitive'; echo ' <form action="" method="get" accept-charset="utf-8"> <input type="text" name="query" value="" > <button type="submit" na...
Make sure that admin can add/remove any AWS entry.
Make sure that admin can add/remove any AWS entry. Former-commit-id: 78d7e8c51978bb06e96f76c71e685f05692192d2 Former-commit-id: 9c9d2c8abfea2c3e6f1d3c612cb3c4090a7c79fa
PHP
mit
dilawar/ncbs-hippo,dilawar/ncbs-hippo,dilawar/ncbs-minion,dilawar/ncbs-minion,dilawar/ncbs-minion,dilawar/ncbs-minion,dilawar/ncbs-hippo,dilawar/ncbs-hippo,dilawar/ncbs-minion,dilawar/ncbs-hippo
php
## Code Before: <?php include_once 'header.php'; include_once 'database.php'; include_once 'tohtml.php'; echo userHTML( ); echo ' <form action="" method="get" accept-charset="utf-8"> <input type="text" name="query" value="" > <button type="submit" name="response" value="Search">Search</button> </form...
9aa2ff45587d8f9df3c8f93fb2caf3b734888e86
tools/CMakeLists.txt
tools/CMakeLists.txt
add_custom_target(all_tools) include_directories(${LIBCAF_INCLUDE_DIRS}) macro(add name) add_executable(${name} ${name}.cpp ${ARGN}) target_link_libraries(${name} CAF::core CAF::io) install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools/${folder}) add_dependencies(${name} all_tools) endmacro...
add_custom_target(all_tools) macro(add name) add_executable(${name} ${name}.cpp ${ARGN}) install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools) add_dependencies(${name} all_tools) endmacro() add(caf-vec) target_link_libraries(caf-vec PRIVATE CAF::core) if(TARGET CAF::io) if(WIN32) mess...
Fix build without CAF::io target
Fix build without CAF::io target
Text
bsd-3-clause
actor-framework/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,DavadDi/actor-framework,actor-framework/actor-framework,actor-framework/actor-framework
text
## Code Before: add_custom_target(all_tools) include_directories(${LIBCAF_INCLUDE_DIRS}) macro(add name) add_executable(${name} ${name}.cpp ${ARGN}) target_link_libraries(${name} CAF::core CAF::io) install(FILES ${name}.cpp DESTINATION ${CMAKE_INSTALL_DATADIR}/caf/tools/${folder}) add_dependencies(${name} all...
988ad69473183c9f1a2d25ecfb73361b7afacd40
lib/gds_api/content_api.rb
lib/gds_api/content_api.rb
require_relative 'base' require_relative 'exceptions' class GdsApi::ContentApi < GdsApi::Base include GdsApi::ExceptionHandling def sections get_json!("#{base_url}/tags.json?type=section") end def with_tag(tag) get_json!("#{base_url}/with_tag.json?tag=#{tag}&include_children=1") end def curated_...
require_relative 'base' require_relative 'exceptions' class GdsApi::ContentApi < GdsApi::Base include GdsApi::ExceptionHandling def sections get_json!("#{base_url}/tags.json?type=section") end def with_tag(tag) get_json!("#{base_url}/with_tag.json?tag=#{tag}&include_children=1") end def curated_...
Update to use sort parameter
Update to use sort parameter
Ruby
mit
theodi/gds-api-adapters,bitzesty/gds-api-adapters,alphagov/gds-api-adapters,theodi/gds-api-adapters,bitzesty/gds-api-adapters
ruby
## Code Before: require_relative 'base' require_relative 'exceptions' class GdsApi::ContentApi < GdsApi::Base include GdsApi::ExceptionHandling def sections get_json!("#{base_url}/tags.json?type=section") end def with_tag(tag) get_json!("#{base_url}/with_tag.json?tag=#{tag}&include_children=1") end...
94322605098c86040d974bf8761baa391327292b
app/views/projects/index.html.haml
app/views/projects/index.html.haml
- provide :title, 'Projects' .page-header %h1 = yield :title = link_to new_project_path, class: 'btn btn-primary' do %span.glyphicon.glyphicon-plus Add new Project - if @projects.any? %table.table.table-striped %thead %tr %th Name %th Viewports %th =...
- provide :title, 'Projects' - if @projects.any? .page-header %h1 = yield :title = link_to new_project_path, class: 'btn btn-primary' do %span.glyphicon.glyphicon-plus Add new Project %table.table.table-striped %thead %tr %th Name %th Viewports %th...
Add friendly intro jumbotron to main page
Add friendly intro jumbotron to main page When people first set up Diffux, they were previously presented with a more or less blank page. While this worked, it wasn't very friendly. I'd like to start people off on the right foot, so if they don't have any projects yet, I think it would be nice to show a friendly messa...
Haml
mit
diffux/diffux,kalw/diffux,diffux/diffux,kalw/diffux,kalw/diffux,diffux/diffux
haml
## Code Before: - provide :title, 'Projects' .page-header %h1 = yield :title = link_to new_project_path, class: 'btn btn-primary' do %span.glyphicon.glyphicon-plus Add new Project - if @projects.any? %table.table.table-striped %thead %tr %th Name %th Viewports ...
7c3f0b7c1629c08dc79f62b62a684aed3aef80e4
jupyterlab_widgets/pyproject.toml
jupyterlab_widgets/pyproject.toml
[build-system] requires = ["jupyterlab~=3.0", "wheel"] build-backend = "setuptools.build_meta"
[build-system] requires = ["jupyter_packaging~=0.7.9", "jupyterlab~=3.0", "setuptools>=40.8.0", "wheel"] build-backend = "setuptools.build_meta"
Revert "Adjust requirements to get rid of "get_version_info doesn't exist in jupyter_packaging" error"
Revert "Adjust requirements to get rid of "get_version_info doesn't exist in jupyter_packaging" error" This reverts commit 2b9a2d74fdb66e65dcb35580cb607e99dc15a5de.
TOML
bsd-3-clause
ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,ipython/ipywidgets
toml
## Code Before: [build-system] requires = ["jupyterlab~=3.0", "wheel"] build-backend = "setuptools.build_meta" ## Instruction: Revert "Adjust requirements to get rid of "get_version_info doesn't exist in jupyter_packaging" error" This reverts commit 2b9a2d74fdb66e65dcb35580cb607e99dc15a5de. ## Code After: [build-sys...
1b6c059bf32c764142190a5f4c2b9781bafdfef0
src/api/index.js
src/api/index.js
const { createWebpackConfig } = require('../config/webpack'); module.exports = { getDefaultWebpackConfig: createWebpackConfig };
const pkg = require('../../package'); module.exports = { version: pkg.version };
Replace existing API (no longer used by news-core) with stub containing version number.
Replace existing API (no longer used by news-core) with stub containing version number.
JavaScript
mit
abcnews/aunty,abcnews/aunty,abcnews/aunty
javascript
## Code Before: const { createWebpackConfig } = require('../config/webpack'); module.exports = { getDefaultWebpackConfig: createWebpackConfig }; ## Instruction: Replace existing API (no longer used by news-core) with stub containing version number. ## Code After: const pkg = require('../../package'); module.expor...
5a564a4f16764d0ae1b4050bbe6354c685e6facf
source/404.html.slim
source/404.html.slim
--- title: 404 description: Page 404 du site de Labo3G keywords: labo3G, galerie, art, lille, 404 changefreq: "monthly" priority: "0.4" --- header id="header-small" class="quatrecentquatre" a href="/" img src="assets/images/logo-black.svg" alt="#{data.settings.site.title} - logo" h1 Oups&nbsp;! Il n'y a rien, ici....
--- title: 404 description: Page 404 du site de Labo3G keywords: labo3G, galerie, art, lille, 404 changefreq: "monthly" priority: "0.4" --- header id="header-small" class="quatrecentquatre" a href="/" img src="assets/images/logo-black.svg" alt="#{data.settings.site.title} - logo" h1 Oups&nbsp;! Il n'y a rien, ici....
Add a "back to home" button to 404 page
Add a "back to home" button to 404 page
Slim
mit
gregoiredierendonck/Labo3G,gregoiredierendonck/Labo3G,gregoiredierendonck/Labo3G
slim
## Code Before: --- title: 404 description: Page 404 du site de Labo3G keywords: labo3G, galerie, art, lille, 404 changefreq: "monthly" priority: "0.4" --- header id="header-small" class="quatrecentquatre" a href="/" img src="assets/images/logo-black.svg" alt="#{data.settings.site.title} - logo" h1 Oups&nbsp;! Il ...
eaba853523bab331e17f330f03f863adbe6b78e1
metadata/me.austinhuang.instagrabber.yml
metadata/me.austinhuang.instagrabber.yml
AntiFeatures: - NonFreeNet Categories: - Internet License: GPL-3.0-or-later AuthorName: Austin Huang AuthorEmail: instagrabber@austinhuang.me AuthorWebSite: https://austinhuang.me WebSite: https://instagrabber.austinhuang.me SourceCode: https://github.com/austinhuang0131/instagrabber IssueTracker: https://github.co...
AntiFeatures: - NonFreeNet Categories: - Internet License: GPL-3.0-or-later AuthorName: Austin Huang AuthorEmail: instagrabber@austinhuang.me AuthorWebSite: https://austinhuang.me WebSite: https://instagrabber.austinhuang.me SourceCode: https://github.com/austinhuang0131/instagrabber IssueTracker: https://github.co...
Update InstaGrabber to 18.1 (47)
Update InstaGrabber to 18.1 (47)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: AntiFeatures: - NonFreeNet Categories: - Internet License: GPL-3.0-or-later AuthorName: Austin Huang AuthorEmail: instagrabber@austinhuang.me AuthorWebSite: https://austinhuang.me WebSite: https://instagrabber.austinhuang.me SourceCode: https://github.com/austinhuang0131/instagrabber IssueTracker: h...
88a95443ee1dae83969938c843593d35addf92dc
training/_posts/2016-10-18-scala-intro.md
training/_posts/2016-10-18-scala-intro.md
--- title: Introduction to Scala Online description: Hands-on course, scheduled over 30 days, 43 lectures, 8 hours of video, weekly office hours (videoconference), individual support link-out: https://www.getscala.com/#live where: Online when: 28 October 2016 trainers: Mike Slinn organizer: ScalaCourses.com ---
--- category: event title: Introduction to Scala Online description: Hands-on course, scheduled over 30 days, 43 lectures, 8 hours of video, weekly office hours (videoconference), individual support link-out: https://www.getscala.com/#live where: Online when: 28 October 2016 trainers: Mike Slinn organizer: ScalaCourse...
Add 'category' to ScalaCourses training
Add 'category' to ScalaCourses training
Markdown
bsd-3-clause
andy1138/scala-lang,andy1138/scala-lang,andy1138/scala-lang,andy1138/scala-lang
markdown
## Code Before: --- title: Introduction to Scala Online description: Hands-on course, scheduled over 30 days, 43 lectures, 8 hours of video, weekly office hours (videoconference), individual support link-out: https://www.getscala.com/#live where: Online when: 28 October 2016 trainers: Mike Slinn organizer: ScalaCourse...
93cf45f2a3da3698ff2f39b455aabb58f578ad38
.travis.yml
.travis.yml
language: haskell # IF you want to get the latest build, # on a BSD machine, you'll want to use the following # CVC4=cvc4-20$(date -v-1d +"%y-%m-%d")-i386-linux-opt # On a GNU machine, use # CVC4=cvc4-20$(date --date='1 day ago' +"%y-%m-%d")-i386-linux-opt # Original URL: http://cvc4.cs.nyu.edu/builds/i386-linux-opt/u...
language: haskell # IF you want to get the latest build, # on a BSD machine, you'll want to use the following # CVC4=cvc4-20$(date -v-1d +"%y-%m-%d")-i386-linux-opt # On a GNU machine, use # CVC4=cvc4-20$(date --date='1 day ago' +"%y-%m-%d")-i386-linux-opt # Original URL: http://cvc4.cs.nyu.edu/builds/i386-linux-opt/u...
Build alex and happy in parallel.
Travis-CI: Build alex and happy in parallel.
YAML
bsd-3-clause
GaloisInc/ivory,GaloisInc/ivory,Hodapp87/ivory
yaml
## Code Before: language: haskell # IF you want to get the latest build, # on a BSD machine, you'll want to use the following # CVC4=cvc4-20$(date -v-1d +"%y-%m-%d")-i386-linux-opt # On a GNU machine, use # CVC4=cvc4-20$(date --date='1 day ago' +"%y-%m-%d")-i386-linux-opt # Original URL: http://cvc4.cs.nyu.edu/builds/...
23750b4236a0c5dcf084f922806aa3497bf24723
test/func/getchildpids_test.sh
test/func/getchildpids_test.sh
test::func_getchildpids() { local pids=() func::getchildpids pids EXPECT_EQ 0 "${#pids[*]}" sleep 10 & local child_pid="$!" func::getchildpids pids EXPECT_EQ 1 "${#pids[*]}" kill -9 "${child_pid}" }
test::func_getchildpids() { local pids=() func::getchildpids pids EXPECT_TRUE [ "${#pids[*]}" -le 1 ] local child_pids=() for i in {1..10}; do sleep 10 & child_pids+=("$!") done func::getchildpids pids EXPECT_TRUE [ "${#pids[*]}" -ge 10 -a "${#pids[*]}" -le 11 ] for child_pid in "${child_pid...
Make getchildpids' test have margins.
Make getchildpids' test have margins.
Shell
mit
imos/imosh
shell
## Code Before: test::func_getchildpids() { local pids=() func::getchildpids pids EXPECT_EQ 0 "${#pids[*]}" sleep 10 & local child_pid="$!" func::getchildpids pids EXPECT_EQ 1 "${#pids[*]}" kill -9 "${child_pid}" } ## Instruction: Make getchildpids' test have margins. ## Code After: test::func_getch...
4326032beaba327b9d218b30c852d037d584daa2
.github/workflows/build.yml
.github/workflows/build.yml
name: Build on: push: branches: [ '*' ] pull_request: branches: [ '*' ] workflow_dispatch: schedule: - cron: '30 23 1 * *' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: true fetch-depth: 50 # the same value a...
name: Build on: push: branches: [ '*' ] pull_request: branches: [ '*' ] workflow_dispatch: {} schedule: - cron: '30 23 1 * *' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: true fetch-depth: 50 # the same valu...
Deploy only on master and our repo
Actions: Deploy only on master and our repo
YAML
mit
ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images,ustclug/ustcmirror-images
yaml
## Code Before: name: Build on: push: branches: [ '*' ] pull_request: branches: [ '*' ] workflow_dispatch: schedule: - cron: '30 23 1 * *' jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: true fetch-depth: 50 # ...
dae9c0fb31e5f2d0f1e6dd77c286c135f9f6535c
travis/docker.sh
travis/docker.sh
set -e # Build Dockerfiles for Scrapy Cluster sudo docker build --rm=true --file docker/kafka-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:kafka-monitor-test . sudo docker build --rm=true --file docker/redis-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:redis-monitor-test . sudo docker build --rm...
set -e # Build Dockerfiles for Scrapy Cluster sudo docker build --rm=true --file docker/kafka-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:kafka-monitor-test . sudo docker build --rm=true --file docker/redis-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:redis-monitor-test . sudo docker build --rm...
Fix Travis CI running tests before cluster startup finished.
Fix Travis CI running tests before cluster startup finished.
Shell
mit
istresearch/scrapy-cluster,istresearch/scrapy-cluster,istresearch/scrapy-cluster
shell
## Code Before: set -e # Build Dockerfiles for Scrapy Cluster sudo docker build --rm=true --file docker/kafka-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:kafka-monitor-test . sudo docker build --rm=true --file docker/redis-monitor/Dockerfile.py2 --tag=istresearch/scrapy-cluster:redis-monitor-test . sudo d...
48ee671e33e16d85bc0b93628af0dcf67b89a537
node-consumer/package.json
node-consumer/package.json
{ "name": "node-consumer", "version": "1.0.0", "description": "A node consumer to demonstrate pacts", "main": "server.js", "scripts": { "start": "node server", "test": "mocha" }, "keywords": [ "node", "pact", "consumer" ], "author": "Eric Muellenbach", "license": "ISC", "depend...
{ "name": "node-consumer", "version": "1.0.0", "description": "A node consumer to demonstrate pacts", "main": "server.js", "scripts": { "start": "node server", "test": "mocha" }, "keywords": [ "node", "pact", "consumer" ], "author": "Eric Muellenbach", "license": "ISC", "depend...
Add Super Agent to Consumer
Add Super Agent to Consumer
JSON
apache-2.0
honratha/pact,honratha/pact,honratha/pact,honratha/pact
json
## Code Before: { "name": "node-consumer", "version": "1.0.0", "description": "A node consumer to demonstrate pacts", "main": "server.js", "scripts": { "start": "node server", "test": "mocha" }, "keywords": [ "node", "pact", "consumer" ], "author": "Eric Muellenbach", "license": ...
d29c2d7342e5af4cddddac56dc3c685faf263ee9
imports/ui/components/header/header.styl
imports/ui/components/header/header.styl
$default-padding = 1em $primary-red = #EF3E45 $secondary-red = #D4373E $black = #000 $white = #FFF header position: sticky top: $default-padding * -1 nav background-color: $black color: $white padding-top: $default-padding a:not(.default) color: inherit display: inline-block outline: none ...
$default-padding = 1em $primary-red = #EF3E45 $secondary-red = #D4373E $black = #000 $white = #FFF header position: sticky top: $default-padding * -1 nav background-color: $black color: $white padding-top: $default-padding a:not(.default) color: inherit display: inline-block outline: none ...
Extend the width of the countries' containers to avoid positioning problems in small viewports.
Extend the width of the countries' containers to avoid positioning problems in small viewports.
Stylus
mit
LuisLoureiro/placard-wrapper
stylus
## Code Before: $default-padding = 1em $primary-red = #EF3E45 $secondary-red = #D4373E $black = #000 $white = #FFF header position: sticky top: $default-padding * -1 nav background-color: $black color: $white padding-top: $default-padding a:not(.default) color: inherit display: inline-block ou...
71ac956c57977c38325979dbf0de29c282b1c06f
entity.go
entity.go
package engi type Entity struct { id string components []Component requires []string } func NewEntity(requires []string) *Entity { return &Entity{requires: requires} } func (e *Entity) DoesRequire(name string) bool { for _, requirement := range e.requires { if requirement == name { return true ...
package engi type Entity struct { id string components []Component requires map[string]bool } func NewEntity(requires []string) *Entity { e := &Entity{requires: make(map[string]bool)} for _, req := range requires { e.requires[req] = true } return e } func (e *Entity) DoesRequire(name string) bool ...
Change Entity.requires into a map for faster lookups.
Change Entity.requires into a map for faster lookups.
Go
mit
Newbrict/engi,EngoEngine/engo,paked/engi,EngoEngine/engo,Newbrict/engi,Newbrict/engo,EtienneBruines/engi,Newbrict/engo
go
## Code Before: package engi type Entity struct { id string components []Component requires []string } func NewEntity(requires []string) *Entity { return &Entity{requires: requires} } func (e *Entity) DoesRequire(name string) bool { for _, requirement := range e.requires { if requirement == name { ...
8cebc62e6ec7ad658fc9462f68e0e5e67ff81d17
README.rst
README.rst
.. _README: Readux ====== Overview -------- Readux is a repository-based Django web application for access to digitized books.
.. _README: Readux ====== Overview -------- Readux is a repository-based Django web application for access to digitized books. License ------- This software is distributed under the Apache 2.0 License.
Document the license in the readme
Document the license in the readme
reStructuredText
apache-2.0
emory-libraries/readux,emory-libraries/readux,emory-libraries/readux
restructuredtext
## Code Before: .. _README: Readux ====== Overview -------- Readux is a repository-based Django web application for access to digitized books. ## Instruction: Document the license in the readme ## Code After: .. _README: Readux ====== Overview -------- Readux is a repository-based Django web application for ...
9ea0099d9c3b58ceecacb3489c986cce062a9f74
tests/src/Iterator/CsvFileIteratorTest.php
tests/src/Iterator/CsvFileIteratorTest.php
<?php namespace BenTools\ETL\Tests\Iterator; use BenTools\ETL\Iterator\CsvFileIterator; use BenTools\ETL\Tests\TestSuite; use PHPUnit\Framework\TestCase; class CsvFileIteratorTest extends TestCase { public function testIterator() { $file = new \SplFileObject(TestSuite::getDataFile('dictators.csv...
<?php namespace BenTools\ETL\Tests\Iterator; use BenTools\ETL\Iterator\CsvFileIterator; use BenTools\ETL\Tests\TestSuite; use PHPUnit\Framework\TestCase; class CsvFileIteratorTest extends TestCase { public function testIterator() { $file = new \SplFileObject(TestSuite::getDataFile('dictators.csv...
Fix count() method that might not return a relevant result
Fix count() method that might not return a relevant result
PHP
mit
bpolaszek/bentools-etl
php
## Code Before: <?php namespace BenTools\ETL\Tests\Iterator; use BenTools\ETL\Iterator\CsvFileIterator; use BenTools\ETL\Tests\TestSuite; use PHPUnit\Framework\TestCase; class CsvFileIteratorTest extends TestCase { public function testIterator() { $file = new \SplFileObject(TestSuite::getDataFil...
339e682c212a17de4c30610a6eacba67af0d82c3
ci/scripts/publish_docker.sh
ci/scripts/publish_docker.sh
set -euo pipefail make docker wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64 chmod +x ./manifest-tool for image in baseos peer orderer ccenv tools; do docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" docker tag ...
set -euo pipefail make docker wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64 chmod +x ./manifest-tool for image in baseos peer orderer ccenv tools; do docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" docker tag ...
Add two digit release variable
Add two digit release variable Signed-off-by: Brett Logan <24e15547523ce4bb6c2ac877c9de72671df60332@ibm.com>
Shell
apache-2.0
manish-sethi/fabric,hyperledger/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,binhn/fabric,stemlending/fabric,manish-sethi/fabric-sidedb,jimthematrix/fabric,manish-sethi/fabric,hyperledger/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,stemlending/fabric,jimthematrix/fabric,manis...
shell
## Code Before: set -euo pipefail make docker wget -qO "$PWD/manifest-tool" https://github.com/estesp/manifest-tool/releases/download/v1.0.0/manifest-tool-linux-amd64 chmod +x ./manifest-tool for image in baseos peer orderer ccenv tools; do docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD...
c6847671c9595d47241807146799753e7e37456a
test/user/menu.spec.coffee
test/user/menu.spec.coffee
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers' Menu = require 'user/menu' User = require 'user/model' Course = require 'course/model' sandbox = null describe 'User menu component', -> beforeEach -> @props = course: new Course(ecosystem_book_uuid: 'test-collection-uuid') ...
{Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers' Menu = require 'user/menu' User = require 'user/model' Course = require 'course/model' sandbox = null describe 'User menu component', -> beforeEach -> @props = course: new Course(ecosystem_book_uuid: 'test-collection-uuid') ...
Update menu test to match new options
Update menu test to match new options
CoffeeScript
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
coffeescript
## Code Before: {Testing, expect, sinon, _} = require 'openstax-react-components/test/helpers' Menu = require 'user/menu' User = require 'user/model' Course = require 'course/model' sandbox = null describe 'User menu component', -> beforeEach -> @props = course: new Course(ecosystem_book_uuid: 'test-colle...
45a70b6a9b5395f9ecbe72919c714e81494c864f
pkg/core/http/cors.go
pkg/core/http/cors.go
package http import ( "net/http" "strings" ) func FixupCORSHeaders(downstream http.ResponseWriter, upstream *http.Response) { hasCORSHeaders := false for name := range upstream.Header { if strings.HasPrefix(name, "Access-Control-") { hasCORSHeaders = true break } } if !hasCORSHeaders { return } ...
package http import ( "net/http" "strings" ) func parseVaryHeaders(values []string) []string { var headers []string for _, v := range values { for _, h := range strings.Split(v, ",") { h = strings.TrimSpace(h) if h != "" { headers = append(headers, h) } } } return headers } func FixupCORSHeade...
Handle CORS fixup for Vary header
Handle CORS fixup for Vary header
Go
apache-2.0
SkygearIO/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server,SkygearIO/skygear-server
go
## Code Before: package http import ( "net/http" "strings" ) func FixupCORSHeaders(downstream http.ResponseWriter, upstream *http.Response) { hasCORSHeaders := false for name := range upstream.Header { if strings.HasPrefix(name, "Access-Control-") { hasCORSHeaders = true break } } if !hasCORSHeaders ...
7b2af021b0499a32bffc8c2524d9fe6d96c792d2
.travis.yml
.travis.yml
language: python sudo: false python: - "3.6" cache: directories: - "$HOME/.pip-cache/" install: - "pip install flake8 --cache-dir $HOME/.pip-cache" - "pip install coverage --download-cache $HOME/.pip-cache" before_script: - "flake8 galena.py tests" script: - "coverage run -m unittest discover" a...
language: python sudo: false python: - "3.6" cache: directories: - "$HOME/.pip-cache/" install: - "pip install flake8 --cache-dir $HOME/.pip-cache" - "pip install coverage --cache-dir $HOME/.pip-cache" before_script: - "flake8 galena.py tests" script: - "coverage run -m unittest discover" after_...
Fix pip syntax error again
Fix pip syntax error again
YAML
bsd-3-clause
Remolten/galena
yaml
## Code Before: language: python sudo: false python: - "3.6" cache: directories: - "$HOME/.pip-cache/" install: - "pip install flake8 --cache-dir $HOME/.pip-cache" - "pip install coverage --download-cache $HOME/.pip-cache" before_script: - "flake8 galena.py tests" script: - "coverage run -m unitt...
3630aa73eec5bac458d27f63e0e6d4d2cd7b6120
src/main/kotlin/com/demonwav/mcdev/nbt/lang/colors/NbttSyntaxHighlighterFactory.kt
src/main/kotlin/com/demonwav/mcdev/nbt/lang/colors/NbttSyntaxHighlighterFactory.kt
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.nbt.lang.colors class NbttSyntaxHighlighterFactory : com.intellij.openapi.fileTypes.SyntaxHighlighterFactory() { override fun getSyntaxHighlighter(project: com.in...
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.nbt.lang.colors import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory import com.intellij.openapi.project.Project import com.intellij.openapi.vfs.VirtualFile...
Fix lack of imports for some reason
Fix lack of imports for some reason
Kotlin
mit
DemonWav/MinecraftDev,DemonWav/IntelliJBukkitSupport,DemonWav/MinecraftDev,DemonWav/MinecraftDevIntelliJ,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev,DemonWav/MinecraftDev,minecraft-dev/MinecraftDev,DemonWav/MinecraftDevIntelliJ,minecraft-dev/MinecraftDev
kotlin
## Code Before: /* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2017 minecraft-dev * * MIT License */ package com.demonwav.mcdev.nbt.lang.colors class NbttSyntaxHighlighterFactory : com.intellij.openapi.fileTypes.SyntaxHighlighterFactory() { override fun getSyntaxHighlighter...
35a726778f15ca5eb115e8ec7f2963b5ce605c66
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
class SessionsController < ApplicationController protect_from_forgery def create s = Session.from_omniauth(env["omniauth.auth"]) session[:user_id] = s.uid redirect_to root_url, :notice => t('signed_in') end def destroy session[:user_id] = nil redirect_to logout_path(request.fullpath) #...
class SessionsController < ApplicationController protect_from_forgery def create s = Session.from_omniauth(env["omniauth.auth"]) session[:user_id] = s.uid redirect_to root_url, :notice => t('signed_in') end def destroy session[:user_id] = nil redirect_to logout_path(root_url) # redirec...
Fix redirect url when signing out
Fix redirect url when signing out
Ruby
mit
cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails,cthit/chalmersit-rails
ruby
## Code Before: class SessionsController < ApplicationController protect_from_forgery def create s = Session.from_omniauth(env["omniauth.auth"]) session[:user_id] = s.uid redirect_to root_url, :notice => t('signed_in') end def destroy session[:user_id] = nil redirect_to logout_path(request...
0fe10e2d37caf4d26e8262e119f5d0e87e28d39a
livedoc-ui/src/App.css
livedoc-ui/src/App.css
html { height: 100% } body { background: #fafafa url("./livedoc-logo-round-gray.svg") no-repeat center; }
html { height: 100% } body { background: #fafafa url("./livedoc-logo-round-gray.svg") no-repeat center; } h1 { margin-top: 1rem; }
Add margin top for h1 title
Add margin top for h1 title
CSS
mit
joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc
css
## Code Before: html { height: 100% } body { background: #fafafa url("./livedoc-logo-round-gray.svg") no-repeat center; } ## Instruction: Add margin top for h1 title ## Code After: html { height: 100% } body { background: #fafafa url("./livedoc-logo-round-gray.svg") no-repeat center; } h1 { mar...
46f10ffcf60166fe02e33a6cd686f272ae63674e
saleor/product/forms.py
saleor/product/forms.py
from django import forms from django.utils.translation import pgettext_lazy from ..cart.forms import AddToCartForm from ..product.models import GenericProduct class GenericProductForm(AddToCartForm): variant = forms.ChoiceField() def __init__(self, *args, **kwargs): super(GenericProductForm, self)._...
from django import forms from django.utils.translation import pgettext_lazy from ..cart.forms import AddToCartForm from ..product.models import GenericProduct class GenericProductForm(AddToCartForm): base_variant = forms.CharField(widget=forms.HiddenInput()) variant = forms.ChoiceField(required=False) d...
Hide variants select input when product has no variants
Hide variants select input when product has no variants
Python
bsd-3-clause
josesanch/saleor,HyperManTT/ECommerceSaleor,paweltin/saleor,josesanch/saleor,spartonia/saleor,car3oon/saleor,laosunhust/saleor,mociepka/saleor,arth-co/saleor,UITools/saleor,Drekscott/Motlaesaleor,KenMutemi/saleor,rodrigozn/CW-Shop,tfroehlich82/saleor,HyperManTT/ECommerceSaleor,rchav/vinerack,arth-co/saleor,rchav/vinera...
python
## Code Before: from django import forms from django.utils.translation import pgettext_lazy from ..cart.forms import AddToCartForm from ..product.models import GenericProduct class GenericProductForm(AddToCartForm): variant = forms.ChoiceField() def __init__(self, *args, **kwargs): super(GenericProd...
f1d12e7392896f45a76df87b6ad0bf18647922df
include/pci_ids/virtio_gpu_pci_ids.h
include/pci_ids/virtio_gpu_pci_ids.h
CHIPSET(0x0010, VIRTGL, VIRTGL)
CHIPSET(0x0010, VIRTGL, VIRTGL) CHIPSET(0x1050, VIRTGL, VIRTGL)
Add virtio 1.0 PCI ID to driver map
virtio_gpu: Add virtio 1.0 PCI ID to driver map Add the virtio-gpu PCI ID for virtio 1.0 (according to the specification, "the PCI Device ID is calculated by adding 0x1040 to the Virtio Device ID") Support for virtio 1.0 was added in qemu 2.4 (same time virtio-gpu landed). Cc: "11.1 11.2" <59f39c0db42d4479a46b02d4d2...
C
mit
metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler
c
## Code Before: CHIPSET(0x0010, VIRTGL, VIRTGL) ## Instruction: virtio_gpu: Add virtio 1.0 PCI ID to driver map Add the virtio-gpu PCI ID for virtio 1.0 (according to the specification, "the PCI Device ID is calculated by adding 0x1040 to the Virtio Device ID") Support for virtio 1.0 was added in qemu 2.4 (same time...
8fd1541c81d5151008fcdb93f64bc5b5f47df827
target/board/generic/device.mk
target/board/generic/device.mk
PRODUCT_PROPERTY_OVERRIDES := \ ro.ril.hsxpa=1 \ ro.ril.gprsclass=10 \ ro.adb.qemud=1 PRODUCT_COPY_FILES := \ development/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ development/data/etc/vold.conf:system/etc/vold.conf \ development/tools/emulator/system/camera/media_profiles.xml:system/e...
PRODUCT_PROPERTY_OVERRIDES := \ ro.ril.hsxpa=1 \ ro.ril.gprsclass=10 \ ro.adb.qemud=1 PRODUCT_COPY_FILES := \ development/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ development/data/etc/vold.conf:system/etc/vold.conf \ development/tools/emulator/system/camera/media_profiles.xml:system/e...
Make sure to copy codec setup files to their proper filesystem location on the emulator
Make sure to copy codec setup files to their proper filesystem location on the emulator Change-Id: I97b6944646fcabc754526ef88f7fdd63d0d1da0a
Makefile
mit
pranav01/platform_manifest,fallouttester/platform_manifest,xorware/android_build,RR-msm7x30/platform_manifest,Hybrid-Power/startsync,ND-3500/platform_manifest,knone1/platform_manifest,xorware/android_build,xorware/android_build,xorware/android_build,see4ri/lolili,xorware/android_build,hagar006/platform_manifest
makefile
## Code Before: PRODUCT_PROPERTY_OVERRIDES := \ ro.ril.hsxpa=1 \ ro.ril.gprsclass=10 \ ro.adb.qemud=1 PRODUCT_COPY_FILES := \ development/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ development/data/etc/vold.conf:system/etc/vold.conf \ development/tools/emulator/system/camera/media_profi...
a4044ed6734910e33f65b0c4f926c7fcfd30be0a
packages/ni/nix-paths.yaml
packages/ni/nix-paths.yaml
homepage: https://github.com/peti/nix-paths changelog-type: '' hash: 348e510f34ab00cfbdf336a862136e0f3f505eff05ccc963e574c6f655e9869e test-bench-deps: {} maintainer: simons@cryp.to synopsis: Knowledge of Nix's installation directories. changelog: '' basic-deps: base: <5 process: -any all-versions: - '1' - '1.0.0.1'...
homepage: https://github.com/peti/nix-paths changelog-type: '' hash: 88aebeb99b314d463134300ecb052cdf9e3580dceb376793b011ac4aa4dfbfb8 test-bench-deps: {} maintainer: simons@cryp.to synopsis: Knowledge of Nix's installation directories. changelog: '' basic-deps: base: <5 process: -any all-versions: - '1' - '1.0.0.1'...
Update from Hackage at 2017-12-05T09:33:19Z
Update from Hackage at 2017-12-05T09:33:19Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/peti/nix-paths changelog-type: '' hash: 348e510f34ab00cfbdf336a862136e0f3f505eff05ccc963e574c6f655e9869e test-bench-deps: {} maintainer: simons@cryp.to synopsis: Knowledge of Nix's installation directories. changelog: '' basic-deps: base: <5 process: -any all-versions: -...
0a6101e4bc196134a7adcd3fd552c8316262947a
CONTRIBUTING.md
CONTRIBUTING.md
We really appreciate contributions to ember-cli-mapbox. If you're implementing a new feature, please add some documentation to the `README.md` to explain how to use your feature as part of the pull request. Apologies for the lack of tests, please add tests to accompany pull requests if you can.
We really appreciate contributions to ember-cli-mapbox. If you're implementing a new feature, please add some documentation to the `README.md` to explain how to use your feature as part of the pull request. Apologies for the lack of tests, please add tests to accompany pull requests if you can. At least make sure th...
Add notes about ember-suave tests
Add notes about ember-suave tests
Markdown
mit
hiwhi/ember-cli-mapbox,hiwhi/ember-cli-mapbox,bdvholmes/ember-cli-mapbox,binhums/ember-cli-mapbox,bdvholmes/ember-cli-mapbox,binhums/ember-cli-mapbox
markdown
## Code Before: We really appreciate contributions to ember-cli-mapbox. If you're implementing a new feature, please add some documentation to the `README.md` to explain how to use your feature as part of the pull request. Apologies for the lack of tests, please add tests to accompany pull requests if you can. ## I...
109e4e81f320e6e6e07063d05ae37e8981868289
CONTRIBUTING.md
CONTRIBUTING.md
Contributions are much appreciated. Please open a pull request or add an issue to discuss what you intend to work on. If the pull requests passes the CI and conforms to the existing style of specs, it will be merged. ### Creating files for currently unspecified modules or classes If you want to create specs for a...
Contributions are much appreciated. Please open a pull request or add an issue to discuss what you intend to work on. If the pull requests passes the CI and conforms to the existing style of specs, it will be merged. ### Creating files for currently unspecified modules or classes If you want to create specs for a...
Add notes about guards and style for contributing
Add notes about guards and style for contributing
Markdown
mit
eregon/rubyspec,bl4ckdu5t/rubyspec,kidaa/rubyspec,BanzaiMan/rubyspec,askl56/rubyspec,askl56/rubyspec,sgarciac/spec,ruby/rubyspec,yous/rubyspec,iliabylich/rubyspec,sgarciac/spec,nobu/rubyspec,ruby/spec,jannishuebl/rubyspec,benlovell/rubyspec,iliabylich/rubyspec,kidaa/rubyspec,benlovell/rubyspec,kachick/rubyspec,wied03/r...
markdown
## Code Before: Contributions are much appreciated. Please open a pull request or add an issue to discuss what you intend to work on. If the pull requests passes the CI and conforms to the existing style of specs, it will be merged. ### Creating files for currently unspecified modules or classes If you want to cr...
9971c2711733ec84439627094feb8c32a84bc91d
KLog/main.cpp
KLog/main.cpp
/* @ 0xCCCCCCCC */ int main() { return 0; }
/* @ 0xCCCCCCCC */ #include <conio.h> #include <random> #include <sstream> #include "klog/klog_worker.h" void WorkerTest() { klog::LogWorker worker(std::wstring(L"test.log"), std::chrono::seconds(3)); std::random_device rd; std::default_random_engine engine(rd()); std::uniform_int_distribution<> di...
Add quick test for logging worker.
Add quick test for logging worker.
C++
mit
kingsamchen/KLog
c++
## Code Before: /* @ 0xCCCCCCCC */ int main() { return 0; } ## Instruction: Add quick test for logging worker. ## Code After: /* @ 0xCCCCCCCC */ #include <conio.h> #include <random> #include <sstream> #include "klog/klog_worker.h" void WorkerTest() { klog::LogWorker worker(std::wstring(L"test.log"), std...
b1ffe9bce27ec821f0d05be22408a004bb1f70f2
util.php
util.php
<?php //Connect to database require('db.php'); $connection = getConnection(); function sqlToJson($sql) { $json = array(); while ($row = mysqli_fetch_assoc($sql)) { $json[] = $row; } return json_encode($json, JSON_NUMERIC_CHECK); } function escapeArray($array){ global $connection; $keys = array_keys($array); ...
<?php //Connect to database require('db.php'); $connection = getConnection(); function sqlToJson($sql) { $json = array(); while ($row = mysqli_fetch_assoc($sql)) { $json[] = $row; } return json_encode($json, JSON_NUMERIC_CHECK); } function escapeArray($array){ global $connection; $keys = array_keys($array); ...
Add function skeletons for future work
Add function skeletons for future work
PHP
mit
perrr/svada,perrr/svada
php
## Code Before: <?php //Connect to database require('db.php'); $connection = getConnection(); function sqlToJson($sql) { $json = array(); while ($row = mysqli_fetch_assoc($sql)) { $json[] = $row; } return json_encode($json, JSON_NUMERIC_CHECK); } function escapeArray($array){ global $connection; $keys = arra...
0a687756dc7428d0a91c4a8fd7965bba2708426e
devices/index.js
devices/index.js
'use strict'; const hardwareModules = new Set([ require('./triones'), ]); function createFor(peripheral) { for (let module of hardwareModules) { if (module.isCompatibleWith(peripheral.advertisement)) { return module.createFor(peripheral); } } return Promise.resolve(null); ...
'use strict'; const noble = require('noble'); const hardwareModules = new Set([ require('./triones'), ]); function createFor(peripheral) { for (let module of hardwareModules) { if (module.isCompatibleWith(peripheral.advertisement)) { // Stop scanning: some BT devices do not support ...
Fix connecting to LE device not working on Linux
Fix connecting to LE device not working on Linux
JavaScript
mit
mcuelenaere/bluelight
javascript
## Code Before: 'use strict'; const hardwareModules = new Set([ require('./triones'), ]); function createFor(peripheral) { for (let module of hardwareModules) { if (module.isCompatibleWith(peripheral.advertisement)) { return module.createFor(peripheral); } } return Promise...
b39f6714bb4b8d8faa9a91e5efd719c54473556c
alfred/install.sh
alfred/install.sh
set -e dirs=(appearence features) for dir in "${dirs[@]}" do rm -rf ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/$dir || true ln -s $ZSH/alfred/appearence ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/$dir done localdir=$(/bin/ls -1 ~/Library/Applica...
set -e mkdir -p ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences dirs=(appearence features) for dir in "${dirs[@]}" do rm -rf ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/$dir || true ln -s $ZSH/alfred/appearence ~/Library/Application\ Support/Alfred/Al...
Create alfred pref dir if missing
Create alfred pref dir if missing
Shell
mit
eexit/dotfiles,eexit/dotfiles,eexit/dotfiles
shell
## Code Before: set -e dirs=(appearence features) for dir in "${dirs[@]}" do rm -rf ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/$dir || true ln -s $ZSH/alfred/appearence ~/Library/Application\ Support/Alfred/Alfred.alfredpreferences/preferences/$dir done localdir=$(/bin/ls -1 ~...
02e3bbf6941d7f39755c7ed9780074d6ec30fda1
app/assets/javascripts/outpost/outpost.js
app/assets/javascripts/outpost/outpost.js
//= require jquery //= require underscore //= require backbone //= require moment //= require jquery_ujs //= require spin //= require jquery-ui-1.10.0.custom.min //= require date.min //= require select2 //= require bootstrap-transition //= require bootstrap-dropdown //= require bootstrap-modal //= require bootstrap-t...
//= require jquery //= require underscore //= require backbone //= require moment //= require jquery_ujs //= require spin //= require jquery-ui-1.10.0.custom.min //= require date.min //= require select2 //= require bootstrap-transition //= require bootstrap-dropdown //= require bootstrap-modal //= require bootstrap-t...
Add preview to default JS
Add preview to default JS
JavaScript
mit
SCPR/outpost,Ravenstine/outpost,SCPR/outpost,SCPR/outpost,bricker/outpost,Ravenstine/outpost,Ravenstine/outpost,bricker/outpost
javascript
## Code Before: //= require jquery //= require underscore //= require backbone //= require moment //= require jquery_ujs //= require spin //= require jquery-ui-1.10.0.custom.min //= require date.min //= require select2 //= require bootstrap-transition //= require bootstrap-dropdown //= require bootstrap-modal //= req...
f5fa06b8357a9c245ad5dfaaa95839feeed9b1ec
demos/trillium.glsl
demos/trillium.glsl
// @program p_simple, vertex, fragment uniform mat4 u_mvp; -- vertex attribute vec4 a_position; void main() { vec4 p = a_position; p.xy -= 0.5; p.y *= -1.0; gl_Position = u_mvp * p; } -- fragment void main() { gl_FragColor = vec4(0.2, 0.2, 0.2, 1.0); }
// @program p_simple, vertex, fragment uniform mat4 u_mvp; -- vertex attribute vec4 a_position; void main() { vec4 p = a_position; p.xy -= 0.5; p.y *= -1.0; gl_Position = u_mvp * p; gl_PointSize = 2.0; } -- fragment void main() { gl_FragColor = vec4(0.2, 0.2, 0.2, 1.0); }
Fix point size on web.
Fix point size on web.
GLSL
mit
prideout/parg,prideout/parg,prideout/parg,prideout/parg,prideout/parg,prideout/parg
glsl
## Code Before: // @program p_simple, vertex, fragment uniform mat4 u_mvp; -- vertex attribute vec4 a_position; void main() { vec4 p = a_position; p.xy -= 0.5; p.y *= -1.0; gl_Position = u_mvp * p; } -- fragment void main() { gl_FragColor = vec4(0.2, 0.2, 0.2, 1.0); } ## Instruction: Fix poi...
0ab817d3a8bb3c5c373378506a93e25cd958c336
load/mediator/http-handler.js
load/mediator/http-handler.js
'use strict' function handleRequest (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}) res.end('Hello world') } exports.handleRequest = handleRequest
'use strict' function respondImmediately (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}) res.end('Hello world') } function handleRequest (req, res) { if (req.url === '/immediate') { return respondImmediately(req, res) } res.writeHead(404) res.end() } exports.handleRequest = handleRequ...
Add endpoint which responds immediately
Add endpoint which responds immediately For stress testing the OpenHIM. OHM-552
JavaScript
mpl-2.0
jembi/openhim-core-js,jembi/openhim-core-js
javascript
## Code Before: 'use strict' function handleRequest (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}) res.end('Hello world') } exports.handleRequest = handleRequest ## Instruction: Add endpoint which responds immediately For stress testing the OpenHIM. OHM-552 ## Code After: 'use strict' functi...
c8273ba85898877e47dbb28d0a4a5664f3bf4196
lib/gitlab/github_import/branch_formatter.rb
lib/gitlab/github_import/branch_formatter.rb
module Gitlab module GithubImport class BranchFormatter < BaseFormatter delegate :repo, :sha, :ref, to: :raw_data def exists? branch_exists? && commit_exists? end def valid? sha.present? && ref.present? end def user raw_data.user.login end ...
module Gitlab module GithubImport class BranchFormatter < BaseFormatter delegate :repo, :sha, :ref, to: :raw_data def exists? branch_exists? && commit_exists? end def valid? sha.present? && ref.present? end def user raw_data.user&.login || 'unknown' ...
Fix BrachFormatter for removed users
Fix BrachFormatter for removed users
Ruby
mit
dreampet/gitlab,darkrasid/gitlabhq,stoplightio/gitlabhq,mmkassem/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,t-zuehlsdorff/gitlabhq,dreampet/gitlab,dreampet/gitlab,jirutka/gitlabhq,htve/GitlabForChinese,mmkassem/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,dreampet/gitlab,htve/GitlabForChinese,stopl...
ruby
## Code Before: module Gitlab module GithubImport class BranchFormatter < BaseFormatter delegate :repo, :sha, :ref, to: :raw_data def exists? branch_exists? && commit_exists? end def valid? sha.present? && ref.present? end def user raw_data.user.login...
3f86fe761c503fa5eb47a8b6e0b4018806774f69
_sass/mixins/_retina-background-image.scss
_sass/mixins/_retina-background-image.scss
@mixin retina-background-image($1x, $2x, $3x) { // Non-retina device background-image: url($1x); // Retina @2x device @media only screen and (-webkit-min-device-pixel-ratio: 1.2), only screen and (min--moz-device-pixel-ratio: 1.2), only screen and (-o-min-device-pixel-ratio: 5/4), only screen and (min-...
@mixin retina-background-image($img-1x, $img-2x, $img-3x) { // Non-retina device background-image: url($img-1x); // Retina @2x device @media only screen and (-webkit-min-device-pixel-ratio: 1.2), only screen and (min--moz-device-pixel-ratio: 1.2), only screen and (-o-min-device-pixel-ratio: 5/4), only ...
Fix variable names It appears they can't start with an integer
Fix variable names It appears they can't start with an integer
SCSS
mit
rowanoulton/rowanoulton.github.io,janetye/janetye.github.io,Bocard23/bocard.io,rowanoulton/galileo-theme,rowanoulton/rowanoulton.github.io,Bocard23/bocard.io,IuryAlves/iuryalves.github.io,rowanoulton/galileo-theme,janetye/janetye.github.io,rowanoulton/rowanoulton.github.io,janetye/janetye.github.io,Zjz315/Zjz315.github...
scss
## Code Before: @mixin retina-background-image($1x, $2x, $3x) { // Non-retina device background-image: url($1x); // Retina @2x device @media only screen and (-webkit-min-device-pixel-ratio: 1.2), only screen and (min--moz-device-pixel-ratio: 1.2), only screen and (-o-min-device-pixel-ratio: 5/4), only ...
2afaae63bf87bc9603f590df8697dc0f2983f597
ci/run_integration_tests.sh
ci/run_integration_tests.sh
cd $GOPATH/src/github.com/dropbox/changes-artifacts/ export PATH=$GOPATH/bin:$PATH go get -v github.com/jstemmer/go-junit-report go get -v ./... go run server.go -migrations-only go run server.go & sudo fakes3 -r /var/cache/fakes3 -p 4569 & go test -race -cover -v ./... | tee test.output | go-junit-report > junit....
cd $GOPATH/src/github.com/dropbox/changes-artifacts/ export PATH=$GOPATH/bin:$PATH go get -v github.com/jstemmer/go-junit-report go get -v ./... go run server.go -migrations-only go run server.go & sudo fakes3 -r /var/cache/fakes3 -p 4569 & go test -race -cover -v ./... | tee test.output | go-junit-report > junit....
Return correct exit code using go test status while using go-junit-report.
Return correct exit code using go test status while using go-junit-report. Summary: Test script should not return successful exit code if `go test` failed. Test Plan: Tested with failing `go test` Reviewers: kylec Reviewed By: kylec Subscribers: changesbot, anupc Differential Revision: https://tails.corp.dropbox....
Shell
apache-2.0
dropbox/changes-artifacts,dropbox/changes-artifacts
shell
## Code Before: cd $GOPATH/src/github.com/dropbox/changes-artifacts/ export PATH=$GOPATH/bin:$PATH go get -v github.com/jstemmer/go-junit-report go get -v ./... go run server.go -migrations-only go run server.go & sudo fakes3 -r /var/cache/fakes3 -p 4569 & go test -race -cover -v ./... | tee test.output | go-junit...
f6e26fc1a85fff015b7640d08c92d05cf90a6508
app/views/static/index.html.haml
app/views/static/index.html.haml
%h1 Hello! %p This page will become the landing page for the scraping platform. Yes! %h2 All Users %ul - User.all.each do |user| %li= link_to user.name, user %h2 All Scrapers %ul - Scraper.all.each do |scraper| %li= link_to scraper.full_name, scraper
%h1 Hello! %p This page will become the landing page for the scraping platform. Yes! .row .span6 %h2 All Users %ul - User.all.each do |user| %li= link_to user.name, user .span6 %h2 All Scrapers %ul - Scraper.all.each do |scraper| %li= link_to scraper.full_name, scraper
Make two columns on landing page
Make two columns on landing page
Haml
agpl-3.0
otherchirps/morph,OpenAddressesUK/morph,OpenAddressesUK/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,OpenAddressesUK/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,otherc...
haml
## Code Before: %h1 Hello! %p This page will become the landing page for the scraping platform. Yes! %h2 All Users %ul - User.all.each do |user| %li= link_to user.name, user %h2 All Scrapers %ul - Scraper.all.each do |scraper| %li= link_to scraper.full_name, scraper ## Instruction: Make two columns on ...
2220ca78db3cbe314311e3bd6a201d1933235227
exercises/3d-clear-depth/README.md
exercises/3d-clear-depth/README.md
For this exercise you should set the clear depth to `0.65` and then clear the depth buffer. # Clearing the Depth Buffer Like the color buffer, the drawing buffer can also be cleared. Instead of using `gl.clearColor`, to set the value of the depth buffer you do: ```javascript gl.clearDepth(depthValue) ``` Where `d...
For this exercise you should set the clear depth to `0.65` and then clear the depth buffer. ## Clearing the depth buffer Like the color buffer, the drawing buffer can also be cleared. Instead of using `gl.clearColor`, to set the value of the depth buffer you do: ```javascript gl.clearDepth(depthValue) ``` Where `...
Revert "content tweak for 3d: clear depth"
Revert "content tweak for 3d: clear depth" This reverts commit 37a1fa2151cb1291c8cc09c528b42229809bc6dd.
Markdown
mit
1wheel/webgl-workshop,stackgl/webgl-workshop,stackgl/webgl-workshop,1wheel/webgl-workshop
markdown
## Code Before: For this exercise you should set the clear depth to `0.65` and then clear the depth buffer. # Clearing the Depth Buffer Like the color buffer, the drawing buffer can also be cleared. Instead of using `gl.clearColor`, to set the value of the depth buffer you do: ```javascript gl.clearDepth(depthValu...
e1a76d26ea8979e8ccb02818fd8c9da89051e3c9
.travis.yml
.travis.yml
language: php php: - 7.0 - 5.6 before_install: - pecl channel-update pecl.php.net - if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then echo yes | pecl install apcu-4.0.10; fi; - if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then pecl config-set preferred_state beta; echo yes | pecl install apcu; fi; - phpenv conf...
language: php sudo: false php: - 7.1 - 7.0 - 5.6 before_install: - pecl channel-update pecl.php.net - if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then echo yes | pecl install apcu-4.0.10; fi; - if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then pecl config-set preferred_state beta; echo yes | pecl install apcu; ...
Add php 7.1 to build matrix
Add php 7.1 to build matrix
YAML
mit
quickenloans-mcp/mcp-cache
yaml
## Code Before: language: php php: - 7.0 - 5.6 before_install: - pecl channel-update pecl.php.net - if [[ $TRAVIS_PHP_VERSION = '5.6' ]] ; then echo yes | pecl install apcu-4.0.10; fi; - if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then pecl config-set preferred_state beta; echo yes | pecl install apcu; fi; ...
1b290bf6dd0480182a141776052ddfd3e5f0dacb
html/index.js
html/index.js
var $ = document.getElementById.bind(document); import {simplePassingTestCode} from './example-tests'; import {Controller as Main} from '../src/main/main-controller'; import {util} from './_util'; import {shortcuts as aceDefaultShortcuts} from './_aceDefaultShortcuts'; var shortcuts = aceDefaultShortcuts.concat([ ut...
var $ = document.getElementById.bind(document); import {simplePassingTestCode} from './example-tests'; import {Controller as Main} from '../src/main/main-controller'; import {util} from './_util'; import {shortcuts as aceDefaultShortcuts} from './_aceDefaultShortcuts'; var shortcuts = aceDefaultShortcuts.concat([ ut...
Allow parametrizing which test-runner to use, only jasmine/mocha allowed now.
Allow parametrizing which test-runner to use, only jasmine/mocha allowed now.
JavaScript
mit
tddbin/tddbin-frontend,tddbin/tddbin-frontend,tddbin/tddbin-frontend
javascript
## Code Before: var $ = document.getElementById.bind(document); import {simplePassingTestCode} from './example-tests'; import {Controller as Main} from '../src/main/main-controller'; import {util} from './_util'; import {shortcuts as aceDefaultShortcuts} from './_aceDefaultShortcuts'; var shortcuts = aceDefaultShortcu...
f016f03079f9c9c5065b6ce4227b4323a32e610e
core/src/main/java/foundation/stack/datamill/db/impl/UnsubscribeOnNextOperator.java
core/src/main/java/foundation/stack/datamill/db/impl/UnsubscribeOnNextOperator.java
package foundation.stack.datamill.db.impl; import rx.Observable; import rx.Subscriber; import rx.exceptions.Exceptions; import java.util.concurrent.atomic.AtomicBoolean; /** * @author Ravi Chodavarapu (rchodava@gmail.com) */ public class UnsubscribeOnNextOperator<T> implements Observable.Operator<T, T> { priva...
package foundation.stack.datamill.db.impl; import rx.Observable; import rx.Subscriber; import rx.exceptions.Exceptions; import java.util.concurrent.atomic.AtomicBoolean; /** * @author Ravi Chodavarapu (rchodava@gmail.com) */ public class UnsubscribeOnNextOperator<T> implements Observable.Operator<T, T> { @Over...
Fix to ensure the unsubscribe on next operator used for database queries can be reused
Fix to ensure the unsubscribe on next operator used for database queries can be reused
Java
isc
rchodava/datamill
java
## Code Before: package foundation.stack.datamill.db.impl; import rx.Observable; import rx.Subscriber; import rx.exceptions.Exceptions; import java.util.concurrent.atomic.AtomicBoolean; /** * @author Ravi Chodavarapu (rchodava@gmail.com) */ public class UnsubscribeOnNextOperator<T> implements Observable.Operator<T...
21a542c3a0860c376d8665bb2d6fe5360cc3b5be
recipes/mecab/meta.yaml
recipes/mecab/meta.yaml
{% set name = "mecab" %} {% set version = "0.996" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rynorris/{{ name }}/archive/v{{ version }}.tar.gz sha256: 4608b499e6e13f81c5d1423379541da69ab9e92eabeaccec02d3eca3ae14cb7e build: number: 0 skip: true # [win] requ...
{% set name = "mecab" %} {% set version = "0.996" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rynorris/{{ name }}/archive/v{{ version }}.tar.gz sha256: 4608b499e6e13f81c5d1423379541da69ab9e92eabeaccec02d3eca3ae14cb7e build: number: 0 skip: true # [win] requ...
Add test for mecab. [skip appveyor]
Add test for mecab. [skip appveyor]
YAML
bsd-3-clause
ReimarBauer/staged-recipes,johanneskoester/staged-recipes,mariusvniekerk/staged-recipes,stuertz/staged-recipes,johanneskoester/staged-recipes,kwilcox/staged-recipes,conda-forge/staged-recipes,jochym/staged-recipes,mariusvniekerk/staged-recipes,patricksnape/staged-recipes,ocefpaf/staged-recipes,igortg/staged-recipes,stu...
yaml
## Code Before: {% set name = "mecab" %} {% set version = "0.996" %} package: name: {{ name|lower }} version: {{ version }} source: url: https://github.com/rynorris/{{ name }}/archive/v{{ version }}.tar.gz sha256: 4608b499e6e13f81c5d1423379541da69ab9e92eabeaccec02d3eca3ae14cb7e build: number: 0 skip: tru...
09d82a248d3bd19c738d78e9a966091e80e17648
app/assets/stylesheets/vendor/_twitter-typeahead_override.scss
app/assets/stylesheets/vendor/_twitter-typeahead_override.scss
// --------------------------------------------------------------- // // Twitter Typeahead // // --------------------------------------------------------------- .twitter-typeahead { float: left; } .tt-dropdown-menu { right: 10px !important; padding: 10px 0 5px; // override inline style, this is #search_form_quer...
// --------------------------------------------------------------- // // Twitter Typeahead // // --------------------------------------------------------------- .twitter-typeahead { float: left; } .tt-dropdown-menu { right: 10px !important; padding: 10px 0 5px; // override inline style, this is #search_form_quer...
Add small typeahead container fix
Add small typeahead container fix
SCSS
mit
clarat-org/clarat,clarat-org/clarat,clarat-org/clarat,clarat-org/clarat
scss
## Code Before: // --------------------------------------------------------------- // // Twitter Typeahead // // --------------------------------------------------------------- .twitter-typeahead { float: left; } .tt-dropdown-menu { right: 10px !important; padding: 10px 0 5px; // override inline style, this is #...
7d0480aa31d393bb026f2ff51a83625a1d8f792f
spec/lib/mr_darcy_spec.rb
spec/lib/mr_darcy_spec.rb
require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } describe '#promise' do When 'no driver is specified' do subject { MrDarcy.promise {} } it 'uses whichever driver is the default' do expect(MrDarcy).to receive(...
require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } # This spec doesn't pass on CI. I can't figure out why. # describe '#promise' do # When 'no driver is specified' do # subject { MrDarcy.promise {} } # it 'uses which...
Disable failing spec on CI.
Disable failing spec on CI.
Ruby
mit
jamesotron/MrDarcy
ruby
## Code Before: require 'spec_helper' describe MrDarcy do it { should be } it { should respond_to :driver } it { should respond_to :driver= } describe '#promise' do When 'no driver is specified' do subject { MrDarcy.promise {} } it 'uses whichever driver is the default' do expect(MrDa...
28cf6e87932a6be7722f838dc1025e89f406bf80
package.json
package.json
{ "private": true, "license": "MIT", "scripts": { "test": "./scripts/test.sh", "lint": "eslint ." }, "dependencies": { "babel": "^6.5.2", "babel-cli": "^6.5.1", "babel-eslint": "^6.0.0", "babel-loader": "^6.2.2", "babel-preset-es2015-without-strict-and-regenerator": "0.0.1", "b...
{ "private": true, "license": "MIT", "scripts": { "test": "./scripts/test.sh", "lint": "eslint ." }, "dependencies": { "babel-cli": "^6.5.1", "babel-eslint": "^6.0.0", "babel-preset-es2015-without-strict-and-regenerator": "0.0.1", "babel-preset-react": "^6.5.0", "babel-preset-stage...
Remove lots of unnecessary deps in manifest
:fire: Remove lots of unnecessary deps in manifest
JSON
mpl-2.0
motion/motion,flintjs/flint,motion/motion,flintjs/flint,flintjs/flint
json
## Code Before: { "private": true, "license": "MIT", "scripts": { "test": "./scripts/test.sh", "lint": "eslint ." }, "dependencies": { "babel": "^6.5.2", "babel-cli": "^6.5.1", "babel-eslint": "^6.0.0", "babel-loader": "^6.2.2", "babel-preset-es2015-without-strict-and-regenerator":...
5c3b4303fe09e88825e0af584f407fadd20b12a0
CppTool-proto/CMakeLists.txt
CppTool-proto/CMakeLists.txt
find_package(Protobuf REQUIRED) set(PROTO_DEFS def/wrapper.proto def/misc.proto def/vars.proto def/funcs.proto def/classes.proto def/base.proto ) include_directories(${PROTOBUF_INCLUDE_DIRS}) protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_DEFS}) set(CPPTOOL_PROTO_INCLUDES ${PROTOBUF_INC...
find_package(Protobuf REQUIRED) set(PROTO_DEFS def/wrapper.proto def/misc.proto def/vars.proto def/funcs.proto def/classes.proto def/base.proto ) include_directories(${PROTOBUF_INCLUDE_DIRS}) protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_DEFS}) set(CPPTOOL_PROTO_INCLUDES ${PROTOBUF_INC...
Fix access to generated headers for other projects.
Fix access to generated headers for other projects.
Text
mit
search-rug/cpptool
text
## Code Before: find_package(Protobuf REQUIRED) set(PROTO_DEFS def/wrapper.proto def/misc.proto def/vars.proto def/funcs.proto def/classes.proto def/base.proto ) include_directories(${PROTOBUF_INCLUDE_DIRS}) protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${PROTO_DEFS}) set(CPPTOOL_PROTO_INCLUDE...
1835ceff49d60af8b13542d526cc622cb1005c58
src/task/release.js
src/task/release.js
'use strict'; var cmd = require('commander'); var pkg = require('../lib/package'); var replace = require('../lib/replace'); var semver = require('semver'); var sh = require('shelljs'); cmd .option('-s, --semver [version]', 'The semantic version to release in lieu of --type. This takes precedence over --type.') .o...
'use strict'; var cmd = require('commander'); var pkg = require('../lib/package'); var replace = require('../lib/replace'); var semver = require('semver'); var sh = require('shelljs'); cmd .option('-s, --semver [version]', 'The semantic version to release in lieu of --type. This takes precedence over --type.') .o...
Use gulp command instead of npm run because that requires them to have the scripts entries in the package.json.
Use gulp command instead of npm run because that requires them to have the scripts entries in the package.json.
JavaScript
mit
treshugart/chippy
javascript
## Code Before: 'use strict'; var cmd = require('commander'); var pkg = require('../lib/package'); var replace = require('../lib/replace'); var semver = require('semver'); var sh = require('shelljs'); cmd .option('-s, --semver [version]', 'The semantic version to release in lieu of --type. This takes precedence ove...
f18addb50f49f76c5d23cc73c33bf44656eedca1
ci/tasks/test-integration.yml
ci/tasks/test-integration.yml
--- platform: linux image_resource: type: registry-image source: repository: bosh/agent tag: latest inputs: - name: bosh-agent path: gopath/src/github.com/cloudfoundry/bosh-agent run: path: gopath/src/github.com/cloudfoundry/bosh-agent/ci/tasks/test-integration.sh params: BOSH_AWS_ACCESS_KEY_ID: r...
--- platform: linux image_resource: type: registry-image source: repository: bosh/agent tag: latest inputs: - name: bosh-agent path: gopath/src/github.com/cloudfoundry/bosh-agent run: path: gopath/src/github.com/cloudfoundry/bosh-agent/ci/tasks/test-integration.sh params: BOSH_AWS_ACCESS_KEY_ID: r...
Fix missing params in task yml
Fix missing params in task yml * prevents devs from running "fly execute"
YAML
apache-2.0
gu-bin/bosh-agent,mattcui/bosh-agent,gu-bin/bosh-agent,cloudfoundry/bosh-agent,gu-bin/bosh-agent,mattcui/bosh-agent,mattcui/bosh-agent,cloudfoundry/bosh-agent
yaml
## Code Before: --- platform: linux image_resource: type: registry-image source: repository: bosh/agent tag: latest inputs: - name: bosh-agent path: gopath/src/github.com/cloudfoundry/bosh-agent run: path: gopath/src/github.com/cloudfoundry/bosh-agent/ci/tasks/test-integration.sh params: BOSH_AWS_...
159d1e2968f45a060102a93dad34bbdf15c1e9f0
README.md
README.md
my squiggle =========== installation: ```sh # clone this repo script/symlink.sh # if on OSX script/osx-settings.sh # if on Debian sudo apt-get install ruby -y script/packages.rb script/dependencies.py script/change-shell.sh ``` to update: ```sh script/dependencies.py upup ```
my squiggle =========== installation: ```sh # clone this repo # if on OSX script/osx-settings.sh # if on Debian sudo apt-get install ruby -y script/packages.rb script/dependencies.py script/change-shell.sh script/symlink.sh ``` to update: ```sh script/dependencies.py upup ```
Move symlink in readme instructions
Move symlink in readme instructions
Markdown
unlicense
EvanHahn/dotfiles,EvanHahn/dotfiles,EvanHahn/dotfiles,EvanHahn/dotfiles
markdown
## Code Before: my squiggle =========== installation: ```sh # clone this repo script/symlink.sh # if on OSX script/osx-settings.sh # if on Debian sudo apt-get install ruby -y script/packages.rb script/dependencies.py script/change-shell.sh ``` to update: ```sh script/dependencies.py upup ``` ## Instruction: Mov...
d9cecdec2d87f44b8970366539dcb8eb24df28c7
lib/filerary/command.rb
lib/filerary/command.rb
require "thor" require "filerary/version" require "filerary/librarian" module Filerary class Command < Thor desc "version", "Show version number" def version puts VERSION end desc "list", "List filenames in the collection" def list puts Filerary::Librarian.new.list end desc ...
require "thor" require "filerary/version" require "filerary/librarian" module Filerary class Command < Thor desc "version", "Show version number" def version puts VERSION end desc "list", "List filenames in the collection" def list puts Filerary::Librarian.new.list end desc ...
Use STDERR for an error message printing
Use STDERR for an error message printing
Ruby
lgpl-2.1
myokoym/filerary
ruby
## Code Before: require "thor" require "filerary/version" require "filerary/librarian" module Filerary class Command < Thor desc "version", "Show version number" def version puts VERSION end desc "list", "List filenames in the collection" def list puts Filerary::Librarian.new.list ...
f46059285851d47a9bee2174e32e9e084efe1182
jirafs/constants.py
jirafs/constants.py
from jirafs import __version__ as version # Metadata filenames TICKET_DETAILS = 'fields.jira' TICKET_COMMENTS = 'comments.read_only.jira' TICKET_NEW_COMMENT = 'new_comment.jira' TICKET_LINKS = 'links.jira' TICKET_FILE_FIELD_TEMPLATE = u'{field_name}.jira' # Generic settings LOCAL_ONLY_FILE = '.jirafs_local' REMOTE_IG...
from jirafs import __version__ as version # Metadata filenames TICKET_DETAILS = 'fields.jira' TICKET_COMMENTS = 'comments.read_only.jira' TICKET_NEW_COMMENT = 'new_comment.jira' TICKET_LINKS = 'links.jira' TICKET_FILE_FIELD_TEMPLATE = u'{field_name}.jira' # Generic settings LOCAL_ONLY_FILE = '.jirafs_local' REMOTE_IG...
Remove my personal domain from the public jirafs git config.
Remove my personal domain from the public jirafs git config.
Python
mit
coddingtonbear/jirafs,coddingtonbear/jirafs
python
## Code Before: from jirafs import __version__ as version # Metadata filenames TICKET_DETAILS = 'fields.jira' TICKET_COMMENTS = 'comments.read_only.jira' TICKET_NEW_COMMENT = 'new_comment.jira' TICKET_LINKS = 'links.jira' TICKET_FILE_FIELD_TEMPLATE = u'{field_name}.jira' # Generic settings LOCAL_ONLY_FILE = '.jirafs_...
3a3f6d320c1a1e064181be5240a7255d911f098b
Resources/views/default/delete.html.twig
Resources/views/default/delete.html.twig
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %} {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %} {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %} {% extends '...
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %} {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %} {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } %} {% extends '...
Use the form theme of easy admin for the delete form
Use the form theme of easy admin for the delete form
Twig
mit
A5sys/EasyAdminPopupBundle,A5sys/EasyAdminPopupBundle,A5sys/EasyAdminPopupBundle
twig
## Code Before: {% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %} {% set _entity_id = attribute(entity, _entity_config.primary_key_field_name) %} {% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans, '%entity_id%': _entity_id } ...
d37827ce9342a8046c2d21b3ec486078c8ff857e
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt
modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/misc/Benchmarks.kt
package com.beust.kobalt.misc fun benchmarkMillis(run: () -> Unit) : Long { val start = System.currentTimeMillis() run() return System.currentTimeMillis() - start } fun benchmarkSeconds(run: () -> Unit) = benchmarkMillis(run) / 1000
package com.beust.kobalt.misc fun <T> benchmarkMillis(run: () -> T) : Pair<Long, T> { val start = System.currentTimeMillis() val result = run() return Pair(System.currentTimeMillis() - start, result) } fun <T> benchmarkSeconds(run: () -> T) : Pair<Long, T> { val result = benchmarkMillis(run) retur...
Return pairs for benchmark functions.
Return pairs for benchmark functions.
Kotlin
apache-2.0
ethauvin/kobalt,ethauvin/kobalt,cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,cbeust/kobalt,ethauvin/kobalt
kotlin
## Code Before: package com.beust.kobalt.misc fun benchmarkMillis(run: () -> Unit) : Long { val start = System.currentTimeMillis() run() return System.currentTimeMillis() - start } fun benchmarkSeconds(run: () -> Unit) = benchmarkMillis(run) / 1000 ## Instruction: Return pairs for benchmark functions....
422bb9ebfcff9826cf58d17a20df61cea21fdd77
app/supplier_constants.py
app/supplier_constants.py
KEY_DUNS_NUMBER = 'supplierDunsNumber' KEY_ORGANISATION_SIZE = 'supplierOrganisationSize' KEY_REGISTERED_NAME = 'supplierRegisteredName' KEY_REGISTRATION_BUILDING = 'supplierRegisteredBuilding' KEY_REGISTRATION_COUNTRY = 'supplierRegisteredCountry' KEY_REGISTRATION_NUMBER = 'supplierCompanyRegistrationNumber' KEY_REGIS...
KEY_DUNS_NUMBER = 'supplierDunsNumber' KEY_ORGANISATION_SIZE = 'supplierOrganisationSize' KEY_REGISTERED_NAME = 'supplierRegisteredName' KEY_REGISTRATION_BUILDING = 'supplierRegisteredBuilding' KEY_REGISTRATION_COUNTRY = 'supplierRegisteredCountry' KEY_REGISTRATION_NUMBER = 'supplierCompanyRegistrationNumber' KEY_REGIS...
Remove VAT number from supplier constants
Remove VAT number from supplier constants
Python
mit
alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api,alphagov/digitalmarketplace-api
python
## Code Before: KEY_DUNS_NUMBER = 'supplierDunsNumber' KEY_ORGANISATION_SIZE = 'supplierOrganisationSize' KEY_REGISTERED_NAME = 'supplierRegisteredName' KEY_REGISTRATION_BUILDING = 'supplierRegisteredBuilding' KEY_REGISTRATION_COUNTRY = 'supplierRegisteredCountry' KEY_REGISTRATION_NUMBER = 'supplierCompanyRegistrationN...
28a1190d8232a73ada8da4f4b6d25658d71c74e0
update.local.js
update.local.js
var fs = require('fs'); var moment = require('moment'); var rank = require('librank').rank; // data backup path var data_path = "./data/talks/"; // read all files in the database var res = fs.readdirSync(data_path); // current timestamp var now = moment(); // calculate difference of hours between two timestamps fun...
var fs = require('fs'); var moment = require('moment'); var rank = require('librank').rank; // data backup path var data_path = "./data/talks/"; // read all files in the database var res = fs.readdirSync(data_path); // current timestamp var now = moment(); // calculate difference of hours between two timestamps fun...
Remove logic on update remote
Remove logic on update remote
JavaScript
mit
tlksio/db
javascript
## Code Before: var fs = require('fs'); var moment = require('moment'); var rank = require('librank').rank; // data backup path var data_path = "./data/talks/"; // read all files in the database var res = fs.readdirSync(data_path); // current timestamp var now = moment(); // calculate difference of hours between tw...
fb445b0a7668bb20af6927cc30642f7d0909c6fa
lib/bulk_processor/csv_processor/row_processor.rb
lib/bulk_processor/csv_processor/row_processor.rb
class BulkProcessor class CSVProcessor # An abstract implementation of the RowProcessor role class RowProcessor PRIMARY_KEY_ROW_NUM = '_row_num'.freeze def initialize(row, payload:) @row = row @payload = payload @successful = false @messages = [] end d...
class BulkProcessor class CSVProcessor # An abstract implementation of the RowProcessor role. This class implements # `#results` by returning an array of `Results`. To subclass, just implement # `#process` to handle the row. # # The row will be considered a failure by default. After a row is succe...
Add class comment for RowProcessor
Add class comment for RowProcessor
Ruby
mit
apartmentlist/bulk-processor,apartmentlist/bulk-processor
ruby
## Code Before: class BulkProcessor class CSVProcessor # An abstract implementation of the RowProcessor role class RowProcessor PRIMARY_KEY_ROW_NUM = '_row_num'.freeze def initialize(row, payload:) @row = row @payload = payload @successful = false @messages = [] ...
7eaab8e89360bdc494d37f0700f7e73cfe2ec637
db/migrate/20131118115555_add_customer_number.rb
db/migrate/20131118115555_add_customer_number.rb
class AddCustomerNumber < ActiveRecord::Migration def up rename_column :customers, :id, :number add_column :customers, :id, :primary_key end def down remove_column :customers, :id rename_column :customers, :number, :id end end
class AddCustomerNumber < ActiveRecord::Migration def up rename_column :customers, :id, :number add_column :customers, :id, :primary_key fix_customer_references(Project, :number, :id) fix_customer_references(Activity, :number, :id) end def down fix_customer_references(Project, :id, :number) ...
Fix migration of customer number
Fix migration of customer number
Ruby
mit
ninech/uberzeit,ninech/uberzeit,ninech/uberzeit,ninech/uberzeit
ruby
## Code Before: class AddCustomerNumber < ActiveRecord::Migration def up rename_column :customers, :id, :number add_column :customers, :id, :primary_key end def down remove_column :customers, :id rename_column :customers, :number, :id end end ## Instruction: Fix migration of customer number #...
17c65a778640cad491b382f58064242c0637dcd0
appveyor.yml
appveyor.yml
environment: global: # Test against the latest version of this Node.js version NODE_JS_VERSION: "6" matrix: - PYTHON: "C:\\Python27" - PYTHON: "C:\\Python35" - PYTHON: "C:\\Python36" install: # Install python dependencies and package - "%PYTHON%\\python.exe -m pip install -r requirements...
environment: matrix: # Node 6 - PYTHON: "C:\\Python27" NODE_JS_VERSION: "6" - PYTHON: "C:\\Python35" NODE_JS_VERSION: "6" - PYTHON: "C:\\Python36" NODE_JS_VERSION: "6" # Node 7 - PYTHON: "C:\\Python27" NODE_JS_VERSION: "7" - PYTHON: "C:\\Python35" NODE_JS_VER...
Add node 7 and 8 testing
Add node 7 and 8 testing
YAML
bsd-3-clause
lektor/lektor,lektor/lektor,lektor/lektor,lektor/lektor
yaml
## Code Before: environment: global: # Test against the latest version of this Node.js version NODE_JS_VERSION: "6" matrix: - PYTHON: "C:\\Python27" - PYTHON: "C:\\Python35" - PYTHON: "C:\\Python36" install: # Install python dependencies and package - "%PYTHON%\\python.exe -m pip install...
a891169cb0a0d7f109092538b994e5890dc9db93
js/main.js
js/main.js
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var player; function preload() { game.load.image('star', 'assets/star.png'); game.load.image('diamond', 'assets/diamond.png'); } function create() { game.physics.startSystem(Phaser.Physics.ARCADE); playe...
var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var player; var cursors; function preload() { game.load.image('star', 'assets/star.png'); game.load.image('diamond', 'assets/diamond.png'); } function create() { game.physics.startSystem(Phaser.Physics.ARCA...
Make the star (player) move and be steerable
Make the star (player) move and be steerable
JavaScript
mit
ethankaminski/ludumdare-34,ethankaminski/ludumdare-34
javascript
## Code Before: var game = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update }); var player; function preload() { game.load.image('star', 'assets/star.png'); game.load.image('diamond', 'assets/diamond.png'); } function create() { game.physics.startSystem(Phaser.Physics....
8596c0daa32dab144210756a3bfddd4613554efe
packages/ye/yesod-ip.yaml
packages/ye/yesod-ip.yaml
homepage: https://github.com/andrewthad/yesod-ip#readme changelog-type: '' hash: 81af9c96c12a1a4e1e315c1851210b9369d9b61a5d8fbfcfa19ea0247fe00b70 test-bench-deps: {} maintainer: andrew.thaddeus@gmail.com synopsis: Code for using the ip package with yesod changelog: '' basic-deps: yesod-core: ! '>=1.4 && <1.7' base:...
homepage: https://github.com/andrewthad/yesod-ip#readme changelog-type: '' hash: fd204ea8e576b7337265d850d505b0c06ad36c52dc5df97013c14f3b6b1d717b test-bench-deps: {} maintainer: andrew.thaddeus@gmail.com synopsis: Code for using the ip package with yesod changelog: '' basic-deps: yesod-core: ! '>=1.4 && <1.7' base:...
Update from Hackage at 2019-12-12T12:44:53Z
Update from Hackage at 2019-12-12T12:44:53Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/andrewthad/yesod-ip#readme changelog-type: '' hash: 81af9c96c12a1a4e1e315c1851210b9369d9b61a5d8fbfcfa19ea0247fe00b70 test-bench-deps: {} maintainer: andrew.thaddeus@gmail.com synopsis: Code for using the ip package with yesod changelog: '' basic-deps: yesod-core: ! '>=1.4 ...