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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
650871dc82574c8fb20fb1da6c7268de392a98db | README.md | README.md | Google HashCode 2014 - Training Round
https://sites.google.com/site/hashcode2014/tasks
## Original sample
[Doodle]: https://raw.githubusercontent.com/julien-amar/google-hashcode-2014/master/GoogleHashCode/Screenshots/Doodle.bmp "Doodle Sample"
## Solution
[Doodle]: https://raw.githubusercontent.com/julien-amar/g... | Google HashCode 2014 - Training Round
https://sites.google.com/site/hashcode2014/tasks
## Original sample

## Solution

... |
class Shrine
module Plugins
# Documentation lives in [doc/plugins/metadata_attributes.md] on GitHub.
#
# [doc/plugins/metadata_attributes.md]: https://github.com/shrinerb/shrine/blob/master/doc/plugins/metadata_attributes.md
module MetadataAttributes
def self.load_dependencies(uploader, *)
... | Move retrieving metadata attributes to Attacher class | Move retrieving metadata attributes to Attacher class
| Ruby | mit | janko-m/shrine,janko-m/shrine | ruby | ## Code Before:
class Shrine
module Plugins
# Documentation lives in [doc/plugins/metadata_attributes.md] on GitHub.
#
# [doc/plugins/metadata_attributes.md]: https://github.com/shrinerb/shrine/blob/master/doc/plugins/metadata_attributes.md
module MetadataAttributes
def self.load_dependencies(u... |
c9ba6c8c32120a2465f33c18c6ec5c7540307670 | documentation/source/_static/theme_overrides.css | documentation/source/_static/theme_overrides.css | /* override logo styling */
/*.logo {
display: block;
width: 150px !important;
margin: 5px;
fill: #fff;
background-color: #fb8225 !important;
border-radius: 0 !important;
}*/
html {
background-color: #fcfcfc;
}
.wy-side-nav-search {
background-color: #ee5a2b;
}
.wy-nav-top {
background-colo... | /* override logo styling */
/*.logo {
display: block;
width: 150px !important;
margin: 5px;
fill: #fff;
background-color: #fb8225 !important;
border-radius: 0 !important;
}*/
html {
background-color: #fcfcfc;
}
.wy-side-nav-search {
background-color: #ee5a2b;
}
.wy-nav-top {
background-colo... | Update view width of documentation | Update view width of documentation
| CSS | apache-2.0 | yudaykiran/openebs | css | ## Code Before:
/* override logo styling */
/*.logo {
display: block;
width: 150px !important;
margin: 5px;
fill: #fff;
background-color: #fb8225 !important;
border-radius: 0 !important;
}*/
html {
background-color: #fcfcfc;
}
.wy-side-nav-search {
background-color: #ee5a2b;
}
.wy-nav-top {
... |
097016c6c7537cfbe4e2fc797fde2a399058a789 | circle.yml | circle.yml | machine:
node:
version: 5.1.0
environment:
GOPATH: $GOPATH:$HOME/$CIRCLE_PROJECT_REPONAME
dependencies:
pre:
- npm install -g bower
- yes | sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
- sudo apt-get install glide
- go get golang.org/x/tools/cmd/cover
- go get g... | machine:
node:
version: 5.1.0
environment:
GOPATH: $GOPATH:$HOME/$CIRCLE_PROJECT_REPONAME
dependencies:
pre:
- npm install -g bower
- yes | sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
- sudo apt-get install glide
- go get golang.org/x/tools/cmd/cover
- go get g... | Fix change diretory for glide install | Fix change diretory for glide install
| YAML | mit | mathieu-pousse/go-dart,ggerbaud/go-dart,erwannT/go-dart,erwannT/go-dart,ggerbaud/go-dart,mathieu-pousse/go-dart,erwannT/go-dart,mathieu-pousse/go-dart,gocaine/go-dart,mathieu-pousse/go-dart,gocaine/go-dart,gocaine/go-dart,ggerbaud/go-dart,ggerbaud/go-dart,gocaine/go-dart,erwannT/go-dart | yaml | ## Code Before:
machine:
node:
version: 5.1.0
environment:
GOPATH: $GOPATH:$HOME/$CIRCLE_PROJECT_REPONAME
dependencies:
pre:
- npm install -g bower
- yes | sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
- sudo apt-get install glide
- go get golang.org/x/tools/cmd/cove... |
73eb3c7c52c2a5c58cad0e1d4dbe09c1e713beeb | conductor/vendor/_stripe.py | conductor/vendor/_stripe.py | from django.conf import settings
import stripe
stripe.api_key = settings.STRIPE_API_KEY
stripe.api_version = "2018-10-31"
class StripeGateway:
"""A gateway to Stripe
This insulates the rest of the system from Stripe errors
and configures the Stripe module with the API key.
"""
def create_custom... | from django.conf import settings
import stripe
stripe.api_key = settings.STRIPE_API_KEY
class StripeGateway:
"""A gateway to Stripe
This insulates the rest of the system from Stripe errors
and configures the Stripe module with the API key.
"""
def create_customer(self, user: settings.AUTH_USER_... | Remove pinned Stripe API version. | Remove pinned Stripe API version.
| Python | bsd-2-clause | mblayman/lcp,mblayman/lcp,mblayman/lcp | python | ## Code Before:
from django.conf import settings
import stripe
stripe.api_key = settings.STRIPE_API_KEY
stripe.api_version = "2018-10-31"
class StripeGateway:
"""A gateway to Stripe
This insulates the rest of the system from Stripe errors
and configures the Stripe module with the API key.
"""
d... |
d4494681ef9dd76d8168e8a96af5473fb58e2e79 | test/CodeGenCXX/cxx1y-deduced-return-type.cpp | test/CodeGenCXX/cxx1y-deduced-return-type.cpp | // RUN: %clang_cc1 -std=c++1y -emit-llvm %s -o - | FileCheck %s
// CHECK: @x = global {{.*}} zeroinitializer
// CHECK: define {{.*}} @_Z1fv
inline auto f() {
int n = 0;
// CHECK: load i32
// CHECK: store i32
// CHECK: ret
return [=] () mutable { return ++n; };
}
auto x = f();
template<typename T> auto *g(... | // RUN: %clang_cc1 -std=c++1y -triple x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s
// CHECK: @x = global {{.*}} zeroinitializer
// CHECK: define {{.*}} @_Z1fv
inline auto f() {
int n = 0;
// CHECK: load i32
// CHECK: store i32
// CHECK: ret
return [=] () mutable { return ++n; };
}
auto x = f();
temp... | Add missing triple to CodeGen test. | Add missing triple to CodeGen test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@181679 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... | c++ | ## Code Before:
// RUN: %clang_cc1 -std=c++1y -emit-llvm %s -o - | FileCheck %s
// CHECK: @x = global {{.*}} zeroinitializer
// CHECK: define {{.*}} @_Z1fv
inline auto f() {
int n = 0;
// CHECK: load i32
// CHECK: store i32
// CHECK: ret
return [=] () mutable { return ++n; };
}
auto x = f();
template<type... |
171738e593d20c4053e1e7dd67b2b33b924a2d8e | lib/map-rules.js | lib/map-rules.js | 'use strict';
var forEach = require('es5-ext/object/for-each')
, memoize = require('memoizee/weak')
, create = Object.create;
module.exports = memoize(function (rules) {
var map = {};
forEach(rules, function (rule, key) {
var currentMap = map, tokens, token;
if (key === '/') {
map.rule = rule;
retur... | 'use strict';
var forEach = require('es5-ext/object/for-each')
, memoize = require('memoizee/weak')
, create = Object.create, stringify = JSON.stringify;
module.exports = memoize(function (rules) {
var map = {};
forEach(rules, function (rule, key) {
var currentMap = map, tokens, token;
if (key === '/') {... | Introduce some rules map validation | Introduce some rules map validation
| JavaScript | mit | medikoo/dbjs-fragment | javascript | ## Code Before:
'use strict';
var forEach = require('es5-ext/object/for-each')
, memoize = require('memoizee/weak')
, create = Object.create;
module.exports = memoize(function (rules) {
var map = {};
forEach(rules, function (rule, key) {
var currentMap = map, tokens, token;
if (key === '/') {
map.rule ... |
22d7a18ce4ab1006adb63e8c71a50aa446586ea4 | views/includes/head.jade | views/includes/head.jade | title= title
meta(charset='utf-8')
| !{cachify_css('/components/bootstrap/dist/css/bootstrap.css')}
| !{cachify_css('/css/style.css')}
| title=gebo-server
meta(charset='utf-8')
meta(name='viewport', content="width=device-width")
| !{cachify_css('/components/bootstrap/dist/css/bootstrap.css')}
| !{cachify_css('/css/style.css')}
| Change title and adapt display to viewport size | Change title and adapt display to viewport size
| Jade | mit | RaphaelDeLaGhetto/gebo-server,RaphaelDeLaGhetto/gebo-server | jade | ## Code Before:
title= title
meta(charset='utf-8')
| !{cachify_css('/components/bootstrap/dist/css/bootstrap.css')}
| !{cachify_css('/css/style.css')}
## Instruction:
Change title and adapt display to viewport size
## Code After:
title=gebo-server
meta(charset='utf-8')
meta(name='viewport', content="width=device-widt... |
925d08293baf2c8e3b7f6de5e525df157274ba16 | lib/index.js | lib/index.js | module.exports = function(email) {
if (!email) return null
if ('string' !== typeof email) return null
var domain
, username
email = email.toLowerCase()
email = email.trim()
if (!~email.indexOf('@')) return null
var splits = email.split('@')
if (splits.length !== 2) {
return null
}
usernam... | module.exports = function(email) {
if (!email) return null
if ('string' !== typeof email) return null
var domain
, username
email = email.toLowerCase()
email = email.trim()
if (!~email.indexOf('@')) return null
var splits = email.split('@')
if (splits.length !== 2) {
return null
}
usernam... | Add yahoo check for all yahoo domains | Add yahoo check for all yahoo domains
| JavaScript | mit | evanlucas/verigy | javascript | ## Code Before:
module.exports = function(email) {
if (!email) return null
if ('string' !== typeof email) return null
var domain
, username
email = email.toLowerCase()
email = email.trim()
if (!~email.indexOf('@')) return null
var splits = email.split('@')
if (splits.length !== 2) {
return nu... |
137f55317beab3f95935f9ed3c94edbd361a9a17 | src/Extend/ForumClient.php | src/Extend/ForumClient.php | <?php namespace Flarum\Extend;
use Illuminate\Contracts\Container\Container;
use Flarum\Forum\Actions\IndexAction;
class ForumClient implements ExtenderInterface
{
protected $assets = [];
protected $translations = [];
public function assets($assets)
{
$this->assets = array_merge($this->asset... | <?php namespace Flarum\Extend;
use Illuminate\Contracts\Container\Container;
use Flarum\Forum\Actions\IndexAction;
use Psr\Http\Message\ServerRequestInterface;
class ForumClient implements ExtenderInterface
{
protected $assets = [];
protected $translations = [];
protected $routes = [];
public funct... | Add API to add routes | Add API to add routes
| PHP | mit | vuthaihoc/core,falconchen/core,malayladu/core,falconchen/core,billmn/core,datitisev/core,Luceos/core,jubianchi/core,Albert221/core,dungphanxuan/core,malayladu/core,kirkbushell/core,Luceos/core,flarum/core,utkarshx/core,kidaa/core,Onyx47/core,zaksoup/core,billmn/core,datitisev/core,renyuneyun/core,kirkbushell/core,huytd... | php | ## Code Before:
<?php namespace Flarum\Extend;
use Illuminate\Contracts\Container\Container;
use Flarum\Forum\Actions\IndexAction;
class ForumClient implements ExtenderInterface
{
protected $assets = [];
protected $translations = [];
public function assets($assets)
{
$this->assets = array_me... |
a582b184c9918cdf556c9892b70481deccded61d | setup.py | setup.py | from setuptools import setup
from setuptools import find_packages
setup(name='Keras',
version='0.1.2',
description='Theano-based Deep Learning library',
author='Francois Chollet',
author_email='francois.chollet@gmail.com',
url='https://github.com/fchollet/keras',
download_url='http... | from setuptools import setup
from setuptools import find_packages
setup(name='Keras',
version='0.1.2',
description='Theano-based Deep Learning library',
author='Francois Chollet',
author_email='francois.chollet@gmail.com',
url='https://github.com/fchollet/keras',
download_url='http... | Remove h5py requirement and made it optional. | Remove h5py requirement and made it optional.
| Python | mit | xiaoda99/keras,jimgoo/keras,dxj19831029/keras,eulerreich/keras,iScienceLuvr/keras,ledbetdr/keras,kemaswill/keras,cvfish/keras,why11002526/keras,gamer13/keras,DeepGnosis/keras,harshhemani/keras,saurav111/keras,abayowbo/keras,Aureliu/keras,keras-team/keras,kuza55/keras,relh/keras,nehz/keras,keskarnitish/keras,dolaameng/k... | python | ## Code Before:
from setuptools import setup
from setuptools import find_packages
setup(name='Keras',
version='0.1.2',
description='Theano-based Deep Learning library',
author='Francois Chollet',
author_email='francois.chollet@gmail.com',
url='https://github.com/fchollet/keras',
do... |
5fbd689c22be5c2a83aa7e4a893ee2bb7cbb43fd | app/models/fugitives.js | app/models/fugitives.js | exports.definition = {
config: {
columns: {
"name": "text",
"captured": "integer",
"url": "text",
"capturedLat": "real",
"capturedLon": "real"
},
"defaults": {
"name": "",
"captured": 0,
"url": "",
"capturedLat": "",
"capturedLon": ""
},
adapter: {
... | exports.definition = {
config: {
columns: {
"name": "text",
"captured": "integer",
"url": "text",
"capturedLat": "real",
"capturedLon": "real"
},
"defaults": {
"name": "",
"captured": 0,
"url": "",
"capturedLat": "",
"capturedLon": ""
},
adapter: {
... | Add status messages when model gets destroyed | Add status messages when model gets destroyed
| JavaScript | apache-2.0 | danielhanold/alloy_fugitive,sobytes/alloy_fugitive,danielhanold/alloy_fugitive,sobytes/alloy_fugitive | javascript | ## Code Before:
exports.definition = {
config: {
columns: {
"name": "text",
"captured": "integer",
"url": "text",
"capturedLat": "real",
"capturedLon": "real"
},
"defaults": {
"name": "",
"captured": 0,
"url": "",
"capturedLat": "",
"capturedLon": ""
}... |
c55aa9198088198e83060276114fcb8087872734 | src/Graphics/UI/FLTK/LowLevel/X.chs | src/Graphics/UI/FLTK/LowLevel/X.chs | {-# LANGUAGE CPP, FlexibleContexts #-}
module Graphics.UI.FLTK.LowLevel.X (flcOpenDisplay, flcXid, openCallback) where
import Graphics.UI.FLTK.LowLevel.Fl_Types
import Graphics.UI.FLTK.LowLevel.Hierarchy
import Graphics.UI.FLTK.LowLevel.Dispatch
import Graphics.UI.FLTK.LowLevel.Utils
import Foreign.Ptr
import qualifie... | {-# LANGUAGE CPP, FlexibleContexts #-}
module Graphics.UI.FLTK.LowLevel.X (flcOpenDisplay, flcXid, openCallback) where
import Graphics.UI.FLTK.LowLevel.Fl_Types
import Graphics.UI.FLTK.LowLevel.Hierarchy
import Graphics.UI.FLTK.LowLevel.Dispatch
import Graphics.UI.FLTK.LowLevel.Utils
import Foreign.Ptr
#include "Fl_C.... | Return the open callback function pointer so it can be freed on the Haskell side. | Return the open callback function pointer so it can be freed on the Haskell side.
| C2hs Haskell | mit | deech/fltkhs,deech/fltkhs,deech/fltkhs | c2hs-haskell | ## Code Before:
{-# LANGUAGE CPP, FlexibleContexts #-}
module Graphics.UI.FLTK.LowLevel.X (flcOpenDisplay, flcXid, openCallback) where
import Graphics.UI.FLTK.LowLevel.Fl_Types
import Graphics.UI.FLTK.LowLevel.Hierarchy
import Graphics.UI.FLTK.LowLevel.Dispatch
import Graphics.UI.FLTK.LowLevel.Utils
import Foreign.Ptr... |
7077366e69be484ee17016f36fb8f1ab18c503f6 | api/init/requirements.txt | api/init/requirements.txt | docker==3.5.0
flask==1.0.2
flask_restplus==0.11.0
requests==2.19.1
graphql-py==0.7.1
| docker==3.5.0
flask==1.0.2
flask_restplus==0.11.0
graphql-py==0.7.1
requests==2.19.1
| Order packages by alphabetical order | Order packages by alphabetical order
| Text | apache-2.0 | alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality,alexisrolland/data-quality | text | ## Code Before:
docker==3.5.0
flask==1.0.2
flask_restplus==0.11.0
requests==2.19.1
graphql-py==0.7.1
## Instruction:
Order packages by alphabetical order
## Code After:
docker==3.5.0
flask==1.0.2
flask_restplus==0.11.0
graphql-py==0.7.1
requests==2.19.1
|
afd99453543a517346e1a37b1e20f87f0739b7b1 | docker-compose.yml | docker-compose.yml |
version: '2'
services:
database:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wicm
- MYSQL_USER=wicm
- MYSQL_PASSWORD=wicm
restart: always
expose:
- 3306
opendaylight:
build:
... |
version: '2'
services:
database:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wicm
- MYSQL_USER=wicm
- MYSQL_PASSWORD=wicm
restart: always
expose:
- 3306
opendaylight:
build:
... | Add context to compose file. | Add context to compose file.
| YAML | apache-2.0 | T-NOVA/WICM,T-NOVA/WICM,T-NOVA/WICM | yaml | ## Code Before:
version: '2'
services:
database:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=wicm
- MYSQL_USER=wicm
- MYSQL_PASSWORD=wicm
restart: always
expose:
- 3306
opendaylight:... |
330950948cac3b59649fc119652b2c5f9343eb89 | salt/roots/rails/service.sls | salt/roots/rails/service.sls | rails server:
cmd.run:
- name: 'nohup bundle exec rails server > /vagrant/log/rails.log 2> /vagrant/log/rails.err < /dev/null &'
- cwd: /vagrant
- unless: pgrep -fa rails
- env:
- DB_HOST: 192.168.69.20
- REDIS_HOST: 192.168.69.20
- SERVER_HOST: 192.168.69.20
- GITHUB_ID: {{sal... | rails server:
cmd.run:
- name: 'nohup bundle exec rails server > /vagrant/log/rails.log 2> /vagrant/log/rails.err < /dev/null &'
- cwd: /vagrant
- unless: pgrep -fa rails
- env:
- DB_HOST: 192.168.69.20
- REDIS_HOST: 192.168.69.20
- SERVER_HOST: 192.168.69.30
- RAILS_ENV: devel... | Update rails server states to fix docker host and rails env | Update rails server states to fix docker host and rails env
| SaltStack | agpl-3.0 | performanceci/performanceci-core,cdarwin/performanceci-core,cdarwin/performanceci-core,performanceci/performanceci-core,performanceci/performanceci-core,cdarwin/performanceci-core,performanceci/performanceci-core,cdarwin/performanceci-core | saltstack | ## Code Before:
rails server:
cmd.run:
- name: 'nohup bundle exec rails server > /vagrant/log/rails.log 2> /vagrant/log/rails.err < /dev/null &'
- cwd: /vagrant
- unless: pgrep -fa rails
- env:
- DB_HOST: 192.168.69.20
- REDIS_HOST: 192.168.69.20
- SERVER_HOST: 192.168.69.20
- ... |
48474e89e98874045afb65c074d0d0cdf1bd77b5 | DevelopmentProposals/readme.md | DevelopmentProposals/readme.md |
This directory contains all the design documents for OpenSim.
## How to create a proposal
1. Create a new directory under directory ***DevelopmentProposals***.
2. Copy ***template.md*** into the new directory, and rename it appropriately.
3. Fill in the design document, and add any relevant code snippet files and me... |
This directory contains all the development proposals for OpenSim.
## How to create a proposal
1. Create a new directory under directory ***DevelopmentProposals***.
2. Copy ***template.md*** into the new directory, and rename it appropriately.
3. Fill in the proposal details, and add any relevant code snippet files ... | Use "Development Proposals" instead of "Desgin Document". | Use "Development Proposals" instead of "Desgin Document". [skip ci] | Markdown | apache-2.0 | opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core | markdown | ## Code Before:
This directory contains all the design documents for OpenSim.
## How to create a proposal
1. Create a new directory under directory ***DevelopmentProposals***.
2. Copy ***template.md*** into the new directory, and rename it appropriately.
3. Fill in the design document, and add any relevant code snip... |
4f80316ed328a9e9cbefdd93bb101b261ea5657f | src/learning/NeuroEvolution/CMakeLists.txt | src/learning/NeuroEvolution/CMakeLists.txt |
project(NeuroEvolution)
link_directories(${LIB_DIR})
include_directories(.)
# Add a library with the same name as the project. The library will contain all of the
# files listed along with any files referenced by those files, so you usually only have
# to include the 'main' files in this list.
add_library( ${PRO... |
project(NeuroEvolution)
link_directories(${LIB_DIR})
include_directories(.)
# Add a library with the same name as the project. The library will contain all of the
# files listed along with any files referenced by those files, so you usually only have
# to include the 'main' files in this list.
add_library( ${PRO... | Undo addition of FileHelpers (it broke the build) | Undo addition of FileHelpers (it broke the build)
| Text | apache-2.0 | dacastro12/NTRT_Update,MRNAS/NTRT,dacastro12/NTRT_Update,dacastro12/NTRT_Update,MRNAS/NTRT,NASA-Tensegrity-Robotics-Toolkit/NTRTsim,NASA-Tensegrity-Robotics-Toolkit/NTRTsim,dacastro12/NTRT_Update,dacastro12/NTRT_Update,NASA-Tensegrity-Robotics-Toolkit/NTRTsim,MRNAS/NTRT,MRNAS/NTRT,MRNAS/NTRT,NASA-Tensegrity-Robotics-To... | text | ## Code Before:
project(NeuroEvolution)
link_directories(${LIB_DIR})
include_directories(.)
# Add a library with the same name as the project. The library will contain all of the
# files listed along with any files referenced by those files, so you usually only have
# to include the 'main' files in this list.
ad... |
3cb7bf65d236e17b7de4047c24189f92b22eb8c4 | auth/.idea/compiler.xml | auth/.idea/compiler.xml | <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="... | <?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="USE_RELEASE_OPTION" value="false" />
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sour... | Fix "java: package sun.security.provider does not exist" issue in IntelliJ. | Fix "java: package sun.security.provider does not exist" issue in IntelliJ.
| XML | bsd-2-clause | iotauth/iotauth,iotauth/iotauth,iotauth/iotauth,iotauth/iotauth,iotauth/iotauth,iotauth/iotauth | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTest... |
586fab3cdc9e059c082bf209a6113b6bb06f2119 | knox/settings.py | knox/settings.py | from datetime import timedelta
from django.conf import settings
from django.test.signals import setting_changed
from rest_framework.settings import api_settings, APISettings
USER_SETTINGS = getattr(settings, 'REST_KNOX', None)
DEFAULTS = {
'LOGIN_AUTHENTICATION_CLASSES': api_settings.DEFAULT_AUTHENTICATION_CLASSE... | from datetime import timedelta
from django.conf import settings
from django.test.signals import setting_changed
from rest_framework.settings import APISettings
USER_SETTINGS = getattr(settings, 'REST_KNOX', None)
DEFAULTS = {
'SECURE_HASH_ALGORITHM': 'cryptography.hazmat.primitives.hashes.SHA512',
'AUTH_TOKEN... | Revert "separate default authentication from the DRF's one" | Revert "separate default authentication from the DRF's one"
This reverts commit 73aef41ffd2be2fbed11cf75f75393a80322bdcb.
| Python | mit | James1345/django-rest-knox,James1345/django-rest-knox | python | ## Code Before:
from datetime import timedelta
from django.conf import settings
from django.test.signals import setting_changed
from rest_framework.settings import api_settings, APISettings
USER_SETTINGS = getattr(settings, 'REST_KNOX', None)
DEFAULTS = {
'LOGIN_AUTHENTICATION_CLASSES': api_settings.DEFAULT_AUTHE... |
908d4a96582213520225bd0091cb4e63d1db49af | visearch-java/src/main/java/com/visenze/visearch/ImageResult.java | visearch-java/src/main/java/com/visenze/visearch/ImageResult.java | package com.visenze.visearch;
import java.util.Map;
public class ImageResult {
private final String imName;
private final Map<String, Object> metadata;
private final Float score;
public ImageResult(String imName, Map<String, Object> metatdata, Float score) {
this.imName = imName;
thi... | package com.visenze.visearch;
import java.util.Map;
public class ImageResult {
private final String imName;
private final Map<String, String> metadata;
private final Float score;
public ImageResult(String imName, Map<String, String> metatdata, Float score) {
this.imName = imName;
thi... | Use string value for metadata map in image result for now | Use string value for metadata map in image result for now
| Java | mit | bo-git/visearch-sdk-java,visenze/visearch-sdk-java,thehung111/visearch-sdk-java | java | ## Code Before:
package com.visenze.visearch;
import java.util.Map;
public class ImageResult {
private final String imName;
private final Map<String, Object> metadata;
private final Float score;
public ImageResult(String imName, Map<String, Object> metatdata, Float score) {
this.imName = imN... |
1be4fcb077d63155e6c0beed9e4138fa377fa067 | ColorHistograms-python/color_histogram.py | ColorHistograms-python/color_histogram.py | from color_histogram_cuda import histogram
print histogram('../data/spotted_ball_3500.png', 16) | import sys
from color_histogram_cuda import histogram
print histogram(sys.argv[1], 16)
| Read file name from command line in python wrapper | Read file name from command line in python wrapper
| Python | bsd-3-clause | kwadraterry/GPGPU-LUT,kwadraterry/GPGPU-LUT,kwadraterry/GPGPU-LUT,kwadraterry/GPGPU-LUT,kwadraterry/GPGPU-LUT | python | ## Code Before:
from color_histogram_cuda import histogram
print histogram('../data/spotted_ball_3500.png', 16)
## Instruction:
Read file name from command line in python wrapper
## Code After:
import sys
from color_histogram_cuda import histogram
print histogram(sys.argv[1], 16)
|
ddec6067054cc4408ac174e3ea4ffeca2a962201 | regulations/views/notice_home.py | regulations/views/notice_home.py |
from __future__ import unicode_literals
from operator import itemgetter
import logging
from django.http import Http404
from django.template.response import TemplateResponse
from django.views.generic.base import View
from regulations.generator.api_reader import ApiReader
from regulations.views.preamble import (
... |
from __future__ import unicode_literals
from operator import itemgetter
import logging
from django.http import Http404
from django.template.response import TemplateResponse
from django.views.generic.base import View
from regulations.generator.api_reader import ApiReader
from regulations.views.preamble import (
... | Remove unnecessary assert from view for Notice home. | Remove unnecessary assert from view for Notice home.
| Python | cc0-1.0 | 18F/regulations-site,18F/regulations-site,eregs/regulations-site,tadhg-ohiggins/regulations-site,tadhg-ohiggins/regulations-site,tadhg-ohiggins/regulations-site,eregs/regulations-site,eregs/regulations-site,eregs/regulations-site,tadhg-ohiggins/regulations-site,18F/regulations-site,18F/regulations-site | python | ## Code Before:
from __future__ import unicode_literals
from operator import itemgetter
import logging
from django.http import Http404
from django.template.response import TemplateResponse
from django.views.generic.base import View
from regulations.generator.api_reader import ApiReader
from regulations.views.pream... |
aeaba497661622e732c43b2e653e130a312b91fa | public/script/login.js | public/script/login.js |
var description = d3.select("#text")
.html("<b>Title: </b><br/><b>Number: </b><br/><b>Body: </b><br/><b>ID: </b><br/><b>Assignee: </b><br/><b>Milestone: </b><br/><b>Repo: </b>");
$.getJSON("orgs.json")
.done(function (data, textStatus, jqXHR) {
var orgs = data;
render(orgs);
})
.fail();
var render ... |
var description = d3.select("#text")
.html("<b>Title: </b><br/><b>Number: </b><br/><b>Body: </b><br/><b>ID: </b><br/><b>Assignee: </b><br/><b>Milestone: </b><br/><b>Repo: </b>");
$.getJSON("orgs.json")
.done(function (data, textStatus, jqXHR) {
var orgs = data;
render(orgs);
})
.fail();
var render ... | Add more responsiveness for user without organizations | Add more responsiveness for user without organizations
| JavaScript | mit | hjylewis/issue-graph,hjylewis/issue-graph | javascript | ## Code Before:
var description = d3.select("#text")
.html("<b>Title: </b><br/><b>Number: </b><br/><b>Body: </b><br/><b>ID: </b><br/><b>Assignee: </b><br/><b>Milestone: </b><br/><b>Repo: </b>");
$.getJSON("orgs.json")
.done(function (data, textStatus, jqXHR) {
var orgs = data;
render(orgs);
})
.fai... |
777e9b3ff58a131e02915ca9843c1b03391fbecf | provisioner/spec/automator_spec.rb | provisioner/spec/automator_spec.rb | require 'spec_helper'
require 'json'
describe Automator do
response = IO.read("#{File.dirname(__FILE__)}/task.json")
# Set these up once
before :all do
%w(bootstrap install configure initialize start stop remove).each do |taskname|
instance_variable_set("@task_#{taskname}", JSON.parse(response.to_str... | require 'spec_helper'
require 'json'
describe Automator do
response = IO.read("#{File.dirname(__FILE__)}/task.json")
# Set these up once
before :all do
%w(bootstrap install configure initialize start stop remove).each do |taskname|
instance_variable_set("@task_#{taskname}", JSON.parse(response.to_str... | Use context to group tests within each loop | Use context to group tests within each loop
| Ruby | apache-2.0 | caskdata/coopr,cdapio/coopr,caskdata/coopr,cdapio/coopr,caskdata/coopr,cdapio/coopr,quantiply-fork/coopr,cdapio/coopr,cdapio/coopr,caskdata/coopr,quantiply-fork/coopr,caskdata/coopr,quantiply-fork/coopr,quantiply-fork/coopr | ruby | ## Code Before:
require 'spec_helper'
require 'json'
describe Automator do
response = IO.read("#{File.dirname(__FILE__)}/task.json")
# Set these up once
before :all do
%w(bootstrap install configure initialize start stop remove).each do |taskname|
instance_variable_set("@task_#{taskname}", JSON.parse... |
10ef5abebfe85546595fbde71c7e41413a59432e | css/embedvideo.css | css/embedvideo.css | div.tcenter.embedvideo,
div.embedvideo.ev_center {
text-align: center;
}
div.embedvideo.ev_center > .embedvideowrap {
margin-left: auto;
margin-right: auto;
}
div.embedvideo.ev_left {
clear: left;
float: left;
}
div.embedvideo.ev_right {
clear: right;
float: right;
}
div.embedvideo.ev_inline {
display: inl... | div.tcenter.embedvideo,
div.embedvideo.ev_center {
text-align: center;
}
div.embedvideo.ev_center > .embedvideowrap {
margin-left: auto;
margin-right: auto;
}
/* @noflip */
div.embedvideo.ev_left {
clear: left;
float: left;
}
/* @noflip */
div.embedvideo.ev_right {
clear: right;
float: right;
}
div.embedvid... | Add @noflip rules for CSS position classes, for proper RTL alignment | Add @noflip rules for CSS position classes, for proper RTL alignment
Otherwise, when you specify you want the video on the left in an RTL
language, you actually get it on the right, and vice versa.
| CSS | mit | kolzchut/mediawiki-embedvideo,Alexia/mediawiki-embedvideo,kolzchut/mediawiki-embedvideo | css | ## Code Before:
div.tcenter.embedvideo,
div.embedvideo.ev_center {
text-align: center;
}
div.embedvideo.ev_center > .embedvideowrap {
margin-left: auto;
margin-right: auto;
}
div.embedvideo.ev_left {
clear: left;
float: left;
}
div.embedvideo.ev_right {
clear: right;
float: right;
}
div.embedvideo.ev_inline... |
9d8cd0733d7ac14529de450a7aceaf4e04147abf | .vscode/settings.json | .vscode/settings.json | // Place your settings in this file to overwrite default and user settings.
{
"flow.useNPMPackagedFlow": true,
"prettier.semi": true
}
| // Place your settings in this file to overwrite default and user settings.
{
"flow.useNPMPackagedFlow": true
}
| Update vscode workspace for prettier -> semi true | Update vscode workspace for prettier -> semi true
| JSON | mit | bhongy/react-components,bhongy/react-components | json | ## Code Before:
// Place your settings in this file to overwrite default and user settings.
{
"flow.useNPMPackagedFlow": true,
"prettier.semi": true
}
## Instruction:
Update vscode workspace for prettier -> semi true
## Code After:
// Place your settings in this file to overwrite default and user settings.
{
"f... |
6f7a99829676f03b884b3943fd975962ec62c22f | samples/hello-android/README.md | samples/hello-android/README.md | Hello, Android!
===============
This sample demonstrates a simple Android application with a Kotlin based build script.
It has been tested against _Android Studio 2.2_ with the latest Kotlin plugin
from the _EAP 1.1_ channel.
Simply import the Gradle project by pointing to the `setting.gradle` file.
You might need ... | Hello, Android!
===============
This sample demonstrates a simple Android application with a Kotlin based build script.
It has been tested against _Android Studio 2.2_<sup>[*](#android-studio-build)</sup> with the latest Kotlin plugin
from the _EAP 1.1_ channel.
Simply import the Gradle project by pointing to the `s... | Make note of specific Android build | Make note of specific Android build | Markdown | apache-2.0 | gradle/gradle,robinverduijn/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,blindpirate/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,robinverduijn/g... | markdown | ## Code Before:
Hello, Android!
===============
This sample demonstrates a simple Android application with a Kotlin based build script.
It has been tested against _Android Studio 2.2_ with the latest Kotlin plugin
from the _EAP 1.1_ channel.
Simply import the Gradle project by pointing to the `setting.gradle` file.
... |
d4651bae62a6c8116bebe149abeb127e356d2269 | app/views/targets/_details.html.haml | app/views/targets/_details.html.haml | = form_for(target, :url => event, :remote => true, :method => :put, :html => {:class => "event_update_form"}) do |f|
.target_actions
%h2 Actions
= target.actions
.target_reflection
%h2 Reflection
- unless target.complete_date or target.drop_date
= f.text_area :reflection
- else
= tar... | = form_for(target, :url => event, :remote => true, :method => :put, :html => {:class => "event_update_form"}) do |f|
.target_actions
%h2 Actions
= target.actions
.target_reflection
%h2 Reflection
- unless target.complete_date or target.drop_date
= f.text_area :reflection
- else
= tar... | Make dropping other people's targets work | Make dropping other people's targets work
| Haml | agpl-3.0 | sdc-webteam-deploy/leap,sdc/leap,sdc-webteam-deploy/leap,sdc/leap,sdc-webteam-deploy/leap,sdc/leap,sdc-webteam-deploy/leap,sdc/leap | haml | ## Code Before:
= form_for(target, :url => event, :remote => true, :method => :put, :html => {:class => "event_update_form"}) do |f|
.target_actions
%h2 Actions
= target.actions
.target_reflection
%h2 Reflection
- unless target.complete_date or target.drop_date
= f.text_area :reflection
- ... |
ba663708d39b961f38a81b55aabe8014f81e3f51 | config.js | config.js | {
"host": "0.0.0.0",
"port": 7777,
"keyLength": 10,
"maxLength": 400000,
"staticMaxAge": 86400,
"recompressStaticAssets": true,
"logging": [
{
"level": "verbose",
"type": "Console",
"colorize": true
}
],
"keyGenerator": {
"type": "phonetic"
},
"storage": {
... | {
"host": "0.0.0.0",
"port": 7777,
"keyLength": 10,
"maxLength": 400000,
"staticMaxAge": 86400,
"recompressStaticAssets": true,
"logging": [
{
"level": "verbose",
"type": "Console",
"colorize": true
}
],
"keyGenerator": {
"type": "phonetic"
},
"storage": {
... | Change default storage to file | Change default storage to file
| JavaScript | mit | jirutka/haste-server,jirutka/haste-server | javascript | ## Code Before:
{
"host": "0.0.0.0",
"port": 7777,
"keyLength": 10,
"maxLength": 400000,
"staticMaxAge": 86400,
"recompressStaticAssets": true,
"logging": [
{
"level": "verbose",
"type": "Console",
"colorize": true
}
],
"keyGenerator": {
"type": "phonetic"
},
... |
9b565a70ccd1002f6d7915b9de6eb48839d53717 | sass/_aside.sass | sass/_aside.sass | .social-links
list-style: none
margin: 0
padding: 0
li
margin: 0 0 0 10px
padding: 0
float: none
display: inline-block
&:first-child
margin: 0 | .social-links
list-style: none
margin: 0
padding: 0
li
margin: 0 0 0 10px
padding: 0
float: none
display: inline-block
&:first-child
margin: 0
a:hover
text-decoration: none | Remove text-decoration on social media icons hover | Remove text-decoration on social media icons hover
| Sass | mit | purzlbaum/cs-bootstrap,purzlbaum/cs-bootstrap,purzlbaum/cs-bootstrap | sass | ## Code Before:
.social-links
list-style: none
margin: 0
padding: 0
li
margin: 0 0 0 10px
padding: 0
float: none
display: inline-block
&:first-child
margin: 0
## Instruction:
Remove text-decoration on social media icons hover
## Code After:
.social-links
list-style: none
margin:... |
8ef0e59a97e087857d3ed7e87da5445c151242af | webpack.config.js | webpack.config.js | var webpack = require('webpack');
var poststylus = require('poststylus');
module.exports = {
devtool: 'source-map',
entry: __dirname + '/src',
output: {
path: 'public/builds/',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
include: __dirname + '/src',
q... | var webpack = require('webpack');
var poststylus = require('poststylus');
var path = require('path')
module.exports = {
devtool: 'source-map',
entry: path.resolve(__dirname, 'src'),
output: {
path: 'public/builds/',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',... | Fix webpack builds on windows | Fix webpack builds on windows
| JavaScript | apache-2.0 | orangechat/webapp,orangechat/webapp | javascript | ## Code Before:
var webpack = require('webpack');
var poststylus = require('poststylus');
module.exports = {
devtool: 'source-map',
entry: __dirname + '/src',
output: {
path: 'public/builds/',
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
include: __dirname... |
29c1630e2c6597bd5ab9e923ffb0e091f0934bb8 | test/bitgo.js | test/bitgo.js | //
// Tests for BitGo Object
//
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//
var assert = require('assert');
var should = require('should');
var BitGoJS = require('../src/index');
describe('BitGo', function() {
describe('methods', function() {
it('includes version', function() {
var bitgo = n... | //
// Tests for BitGo Object
//
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//
var assert = require('assert');
var should = require('should');
var BitGoJS = require('../src/index');
describe('BitGo', function() {
describe('methods', function() {
it('includes version', function() {
var bitgo = n... | Add updateTime check to test. | Add updateTime check to test.
| JavaScript | apache-2.0 | BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS | javascript | ## Code Before:
//
// Tests for BitGo Object
//
// Copyright 2014, BitGo, Inc. All Rights Reserved.
//
var assert = require('assert');
var should = require('should');
var BitGoJS = require('../src/index');
describe('BitGo', function() {
describe('methods', function() {
it('includes version', function() {
... |
ee903ab418de0e71c2242694eb905598e48f28d0 | SETUP.md | SETUP.md | First install lua and [luarocks][2] using [homebrew][1]
$ brew install lua
Then install [busted][3] testing framework for lua
$ luarocks install busted
Then run your test
$ busted bob_test.lua
Other resources
1. [Lua Style Guide][4]
2. [Learn Lua in 15 minutes][5]
[1]: http://brew.sh/
[2]: http:... | First install lua and [luarocks][2] using [homebrew][1]
$ brew install lua
Then install [busted][3] testing framework for lua
$ luarocks install busted
Then run your test
$ busted .
Other resources
1. [Lua Style Guide][4]
2. [Learn Lua in 15 minutes][5]
[1]: http://brew.sh/
[2]: http://luarocks.... | Correct instructions for running tests | Correct instructions for running tests | Markdown | mit | fyrchik/xlua,ryanplusplus/xlua,exercism/xlua | markdown | ## Code Before:
First install lua and [luarocks][2] using [homebrew][1]
$ brew install lua
Then install [busted][3] testing framework for lua
$ luarocks install busted
Then run your test
$ busted bob_test.lua
Other resources
1. [Lua Style Guide][4]
2. [Learn Lua in 15 minutes][5]
[1]: http://bre... |
a81d55a2fddd9c86d8e3e1fbf412b77767783679 | netlify.toml | netlify.toml | [build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.30.2"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.30.2"
[context.branch-deploy.environment]
HUGO_VERSION = "0.30.2"
[context.staging.environment]
HUGO_BASEURL = "https://st... | [build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.30.2"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.30.2"
[context.branch-deploy.environment]
HUGO_VERSION = "0.30.2"
[context.staging.environment]
HUGO_BASEURL = "https://st... | Edit HUGO_BASEURL for staging environment | Edit HUGO_BASEURL for staging environment
| TOML | mit | DeveloperDavo/learnitmyway,DeveloperDavo/learnitmyway | toml | ## Code Before:
[build]
publish = "public"
command = "hugo"
[context.production.environment]
HUGO_VERSION = "0.30.2"
HUGO_ENV = "production"
[context.deploy-preview.environment]
HUGO_VERSION = "0.30.2"
[context.branch-deploy.environment]
HUGO_VERSION = "0.30.2"
[context.staging.environment]
HUGO_BASEU... |
214ea847b2e249175ecf273677a27897362c26ab | README.md | README.md | > Generate and parse m3u8 playlists for HTTP Live Streaming with Crystal
## Status
The project is currently on a very early stage of **development**, take a look at the [M3U8.md](M3U8.md) file in order to check the progress.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
m3u8:
... | > Generate and parse m3u8 playlists for HTTP Live Streaming with Crystal
## Status
The project is currently on a very early stage of **development**, take a look at the [M3U8.md](M3U8.md) file in order to check the progress.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
m3u8:
... | Add m3u8 in orther languages | doc: Add m3u8 in orther languages
| Markdown | mit | marceloboeira/m3u8,marceloboeira/m3u8 | markdown | ## Code Before:
> Generate and parse m3u8 playlists for HTTP Live Streaming with Crystal
## Status
The project is currently on a very early stage of **development**, take a look at the [M3U8.md](M3U8.md) file in order to check the progress.
## Installation
Add this to your application's `shard.yml`:
```yaml
depend... |
23b05e15d80e344711540dc1840d2e4d8c012556 | etc/1_master-config.yaml | etc/1_master-config.yaml | ---
cluster_config:
bootstrap_url: "http://boot.dcos"
cluster_name: dcos-demo
exhibitor_storage_backend: zookeeper
exhibitor_zk_hosts: "boot.dcos:2181"
exhibitor_zk_path: /zk-shared
master_discovery: static
master_list:
- "192.168.65.90"
resolvers:
- "10.0.2.3"
- "8.8.8.8"
| ---
cluster_config:
bootstrap_url: http://boot.dcos
cluster_name: dcos-demo
exhibitor_storage_backend: zookeeper
exhibitor_zk_hosts: boot.dcos:2181
exhibitor_zk_path: /zk-shared
master_discovery: static
master_list:
- 192.168.65.90
resolvers:
- 10.0.2.3
- 8.8.8.8
ssh_config: #req in master, op... | Add ssh_config to config.yaml because CM.5 requires it | Add ssh_config to config.yaml because CM.5 requires it
| YAML | apache-2.0 | timcharper/dcos-vagrant,timcharper/dcos-vagrant | yaml | ## Code Before:
---
cluster_config:
bootstrap_url: "http://boot.dcos"
cluster_name: dcos-demo
exhibitor_storage_backend: zookeeper
exhibitor_zk_hosts: "boot.dcos:2181"
exhibitor_zk_path: /zk-shared
master_discovery: static
master_list:
- "192.168.65.90"
resolvers:
- "10.0.2.3"
- "8.8.8.8... |
bdd9bc77c711f9820441610c7802b0ad3c157a53 | app/Repositories/UGCRepository.php | app/Repositories/UGCRepository.php | <?php
namespace App\Repositories;
use App\UGC;
use App\User;
use App\Group;
use App\Category;
use DB;
use Response;
?>
| <?php
namespace App\Repositories;
use App\UGC;
use App\User;
use App\Group;
use App\Category;
use DB;
use Response;
class UGCRepository {
}
?>
| Create a class for UGC Repository | Create a class for UGC Repository
| PHP | mit | alexcw234/feyAnthology,alexcw234/feyAnthology,alexcw234/feyAnthology | php | ## Code Before:
<?php
namespace App\Repositories;
use App\UGC;
use App\User;
use App\Group;
use App\Category;
use DB;
use Response;
?>
## Instruction:
Create a class for UGC Repository
## Code After:
<?php
namespace App\Repositories;
use App\UGC;
use App\User;
use App\Group;
use App\Category;
use DB;
use Respons... |
70ce3531fd1fa31ff8f3b840dcb33e3f8586a641 | .travis.yml | .travis.yml | ---
language: objective-c
before_script:
- sudo easy_install cpp-coveralls
script:
- xctool -workspace Collator.xcworkspace -scheme 'CollatorTests' build test
after_success:
- ./Scripts/coveralls.rb --extension m --exclude-folder Test --exclude-folder Externals
| ---
language: objective-c
before_script:
- sudo easy_install cpp-coveralls
script:
- xctool -workspace Collator.xcworkspace -scheme 'CollatorTests' build test
after_success:
- ./Scripts/coveralls.rb --extension m --exclude-folder Test --exclude-folder Externals --exclude-folder CollatorTests.build
| Tweak to build script to ignore tests in coverage reports | Tweak to build script to ignore tests in coverage reports
| YAML | mit | ioveracker/Collator | yaml | ## Code Before:
---
language: objective-c
before_script:
- sudo easy_install cpp-coveralls
script:
- xctool -workspace Collator.xcworkspace -scheme 'CollatorTests' build test
after_success:
- ./Scripts/coveralls.rb --extension m --exclude-folder Test --exclude-folder Externals
## Instruction:
Tweak to build ... |
841cdd6213e3bef9532f6697c6b7cee03e69702a | box.json | box.json | {
"alias": "wsdl2phpgenerator.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Php"
],
"directories": ["vendor", "lib", "src"],
"git-version": "git_tag",
"output": "wsdl2phpgenerator-@git-version@.phar",
"main": "wsdl2php.php",
"stub": true
}
| {
"alias": "wsdl2phpgenerator.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Php"
],
"directories": "Only include vendor directories that are part of require. This avoids unnecessary dev dependencies.",
"directories": [
"vendor/composer",
"vendor/symfon... | Reduce Phar size by only including non-dev directories and required files. | Reduce Phar size by only including non-dev directories and required files. | JSON | mit | ivol84/wsdl2phpgenerator,yethee/wsdl2phpgenerator,wsdl2phpgenerator/wsdl2phpgenerator,parabolicinteractive/wsdl2phpgenerator,red-led/wsdl2phpgenerator,sha1/wsdl2phpgenerator,Intera/wsdl2phpgenerator,wsdl2phpgenerator/wsdl2phpgenerator-cli,ivoba/wsdl2phpgenerator-cli,shomik/wsdl2phpgenerator-cli,jongotlin/wsdl2phpgenera... | json | ## Code Before:
{
"alias": "wsdl2phpgenerator.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Php"
],
"directories": ["vendor", "lib", "src"],
"git-version": "git_tag",
"output": "wsdl2phpgenerator-@git-version@.phar",
"main": "wsdl2php.php",
"stub": true
}
... |
7812934504c299464227c4f8cd28cacc2b904008 | test/run_tests.py | test/run_tests.py | import platform
from unittest import main
from test_net_use_table import *
from test_sanitize import *
from test_utils import *
from test_unc_directory import *
if platform.system() == 'Windows':
print 'Including Windows-specific tests'
from test_connecting import *
else:
print 'WARNING: Excluding Wi... | import platform
from unittest import main
from test_net_use_table import *
from test_sanitize import *
from test_utils import *
from test_unc_directory import *
if platform.system() == 'Windows':
print 'Including Windows-specific tests'
from test_connecting import *
else:
print 'WARNING: Exc... | Use spaces instead of tabs | Use spaces instead of tabs
| Python | mit | nithinphilips/py_win_unc,CovenantEyes/py_win_unc | python | ## Code Before:
import platform
from unittest import main
from test_net_use_table import *
from test_sanitize import *
from test_utils import *
from test_unc_directory import *
if platform.system() == 'Windows':
print 'Including Windows-specific tests'
from test_connecting import *
else:
print 'WARNING: Excluding... |
2410255e846c5fbd756ed97868299e1674c89467 | flash_example.py | flash_example.py | from BlinkyTape import BlinkyTape
bb = BlinkyTape('/dev/tty.usbmodemfa131')
while True:
for x in range(60):
bb.sendPixel(10, 10, 10)
bb.show()
for x in range(60):
bb.sendPixel(0, 0, 0)
bb.show()
| from BlinkyTape import BlinkyTape
import time
#bb = BlinkyTape('/dev/tty.usbmodemfa131')
bb = BlinkyTape('COM8')
while True:
for x in range(60):
bb.sendPixel(100, 100, 100)
bb.show()
time.sleep(.5)
for x in range(60):
bb.sendPixel(0, 0, 0)
bb.show()
time.sleep(.5)
| Set it to flash black and white every second | Set it to flash black and white every second | Python | mit | Blinkinlabs/BlinkyTape_Python,jpsingleton/BlinkyTape_Python,railsagainstignorance/blinkytape | python | ## Code Before:
from BlinkyTape import BlinkyTape
bb = BlinkyTape('/dev/tty.usbmodemfa131')
while True:
for x in range(60):
bb.sendPixel(10, 10, 10)
bb.show()
for x in range(60):
bb.sendPixel(0, 0, 0)
bb.show()
## Instruction:
Set it to flash black and white every second
## Code Aft... |
492403e155a80487b79f21813f8efae9d917e534 | lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb | lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb | require 'delegate'
module DidYouMean
class ClassNameChecker
include SpellCheckable
attr_reader :class_name, :original_message
def initialize(exception)
@class_name, @original_message = exception.name, exception.original_message
end
def candidates
{name_from_message => class_names}
... | require 'delegate'
module DidYouMean
class ClassNameChecker
include SpellCheckable
attr_reader :class_name, :original_message
def initialize(exception)
@class_name, @original_message = exception.name, exception.original_message
end
def candidates
{name_from_message => class_names}
... | Replace empty strings with a constant | Replace empty strings with a constant
| Ruby | mit | yui-knk/did_you_mean,yuki24/did_you_mean,Ye-Yong-Chi/did_you_mean | ruby | ## Code Before:
require 'delegate'
module DidYouMean
class ClassNameChecker
include SpellCheckable
attr_reader :class_name, :original_message
def initialize(exception)
@class_name, @original_message = exception.name, exception.original_message
end
def candidates
{name_from_message =... |
ebd9cf637667865a4e7ab395f245b12b08cb0389 | src/Resources/views/default/includes/_actions.html.twig | src/Resources/views/default/includes/_actions.html.twig | {% for action in actions %}
{% if 'list' == action.name %}
{% set action_href = request_parameters.referer|default('') ? request_parameters.referer|easyadmin_urldecode : path('easyadmin', request_parameters|merge({ action: 'list' })) %}
{% elseif 'method' == action.type %}
{% set action_href = path('eas... | {% for action in actions %}
{% if 'list' == action.name %}
{% set action_href = request_parameters.referer|default('') ? request_parameters.referer|easyadmin_urldecode : path('easyadmin', request_parameters|merge({ action: 'list' })) %}
{% elseif 'method' == action.type %}
{% set action_href = path('eas... | Fix list views with actions | Fix list views with actions | Twig | mit | alterphp/EasyAdminExtensionBundle,alterphp/EasyAdminExtensionBundle | twig | ## Code Before:
{% for action in actions %}
{% if 'list' == action.name %}
{% set action_href = request_parameters.referer|default('') ? request_parameters.referer|easyadmin_urldecode : path('easyadmin', request_parameters|merge({ action: 'list' })) %}
{% elseif 'method' == action.type %}
{% set action_... |
9d4a59f2cab4179f3ff5b73477044f2f9289d5b8 | thread/future.h | thread/future.h |
namespace thread {
template<typename Func>
boost::shared_future<typename boost::result_of<Func()>::type> submit_task(Func f) {
typedef typename boost::result_of<Func()>::type ResultType;
typedef boost::packaged_task<ResultType> PackagedTaskType;
PackagedTaskType task(f);
boost::shared_future<ResultTy... |
namespace thread {
template<typename Func>
boost::shared_future<typename boost::result_of<Func()>::type> submit_task(Func f) {
typedef typename boost::result_of<Func()>::type ResultType;
typedef boost::packaged_task<ResultType> PackagedTaskType;
PackagedTaskType task(f);
boost::shared_future... | Use boost::move rather than std::move which seems to hate some versions ofr G++ | Use boost::move rather than std::move which seems to hate some versions ofr G++
| C | bsd-2-clause | Kazade/kazbase,Kazade/kazbase | c | ## Code Before:
namespace thread {
template<typename Func>
boost::shared_future<typename boost::result_of<Func()>::type> submit_task(Func f) {
typedef typename boost::result_of<Func()>::type ResultType;
typedef boost::packaged_task<ResultType> PackagedTaskType;
PackagedTaskType task(f);
boost::shared... |
5028d64b118248eebdbba7ec98244ef56d33726d | src/components/settings/Page.vue | src/components/settings/Page.vue | <template>
<div class="page">
<opt v-model="val">Упрощённая схема цветов для зачётов</opt>
<opt disabled>Здравый смысл у преподавателей</opt>
<opt disabled>Повышенная стипендия</opt>
<opt disabled>ПМ лучше ИТ</opt>
</div>
</template>
<script>
import Opt from './Option'
export default {
name: '... | <template>
<div class="page">
<opt v-model="val">Упрощённая схема цветов для зачётов</opt>
<opt disabled>Здравый смысл у преподавателей</opt>
<opt disabled>Повышенная стипендия</opt>
<opt disabled>ПМ лучше ИТ</opt>
<div style="display:flex;justify-content:center; margin-top:2em">
<button c... | Add exit button to settings | Add exit button to settings
| Vue | mit | xamgore/grade-student-profile,xamgore/grade-student-profile | vue | ## Code Before:
<template>
<div class="page">
<opt v-model="val">Упрощённая схема цветов для зачётов</opt>
<opt disabled>Здравый смысл у преподавателей</opt>
<opt disabled>Повышенная стипендия</opt>
<opt disabled>ПМ лучше ИТ</opt>
</div>
</template>
<script>
import Opt from './Option'
export def... |
c22235331d7986df3b81b0349563a64727660113 | lib/tty/prompt/symbols.rb | lib/tty/prompt/symbols.rb |
module TTY
class Prompt
# Cross platform common Unicode symbols.
#
# @api public
module Symbols
KEYS = {
tick: '✓',
cross: '✘',
star: '★',
dot: '•',
pointer: '‣',
line: '─',
pipe: '|',
handle: 'O',
ellipsis: '…',
ra... |
module TTY
class Prompt
# Cross platform common Unicode symbols.
#
# @api public
module Symbols
KEYS = {
tick: '✓',
cross: '✘',
star: '★',
dot: '•',
pointer: '‣',
line: '─',
pipe: '|',
handle: 'O',
ellipsis: '…',
ra... | Fix unicode symbol on windows. | Fix unicode symbol on windows.
| Ruby | mit | piotrmurach/tty-prompt,peter-murach/tty-prompt | ruby | ## Code Before:
module TTY
class Prompt
# Cross platform common Unicode symbols.
#
# @api public
module Symbols
KEYS = {
tick: '✓',
cross: '✘',
star: '★',
dot: '•',
pointer: '‣',
line: '─',
pipe: '|',
handle: 'O',
ellipsis:... |
5bdd7a59c072f958af57b2daf134b983c3d4b0af | pkgs/development/python-modules/pip/default.nix | pkgs/development/python-modules/pip/default.nix | { lib
, python
, buildPythonPackage
, bootstrapped-pip
, fetchFromGitHub
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "pip";
version = "19.3.1";
format = "other";
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
... | { lib
, python
, buildPythonPackage
, bootstrapped-pip
, fetchFromGitHub
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "pip";
version = "19.3.1";
format = "other";
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
rev = version;
... | Revert "python: pip: missing setuptools dependency" | Revert "python: pip: missing setuptools dependency"
Pip does *not* have a dependency on setuptools. Setuptools
is needed to install a setuptools package.
This reverts commit 25f0dabf90b26992a2c5aca7c51ac53f936bcbb7.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ lib
, python
, buildPythonPackage
, bootstrapped-pip
, fetchFromGitHub
, mock
, scripttest
, virtualenv
, pretend
, pytest
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "pip";
version = "19.3.1";
format = "other";
src = fetchFromGitHub {
owner = "pypa";
repo = pname;
r... |
f30b47fdf8519c8b4d3bfd4d92b3baad2042490e | load.php | load.php | <?php
/**
* Checks current directory for a running Vagrant virtual machine
*
* Author: John Kary <john@johnkary.net>
*/
$cwd = getcwd();
$filecontents = getVagrantFileRunningInDir($cwd);
if (false === $filecontents) {
// No vagrant file in this dir
exit(1);
}
$uuid = getDirVagrantUuid($filecontents);
$run... | <?php
/**
* Checks current directory for a running Vagrant virtual machine
*
* Author: John Kary <john@johnkary.net>
*/
$cwd = getcwd();
$uuid = getVagrantUuidInDir($cwd);
if (false === $uuid) {
// No vagrant file in this dir
exit(1);
}
$runningVms = getRunningVms();
if (!isVmRunning($runningVms, $uuid)) ... | Update for compatibility with Vagrant 1.2 | Update for compatibility with Vagrant 1.2
1.2 changed how the box UUID was written to the filesystem. Instead of
JSON it's now written as a single file .vagrant/machines/default/virtualbox/id
| PHP | mit | johnkary/vagrant_ps1,johnkary/vagrant_ps1 | php | ## Code Before:
<?php
/**
* Checks current directory for a running Vagrant virtual machine
*
* Author: John Kary <john@johnkary.net>
*/
$cwd = getcwd();
$filecontents = getVagrantFileRunningInDir($cwd);
if (false === $filecontents) {
// No vagrant file in this dir
exit(1);
}
$uuid = getDirVagrantUuid($fil... |
9568784d3a4b572439431b01b735cd2f55802d40 | lib/api-acl/base.rb | lib/api-acl/base.rb | module ACL
def self.configure
yield @config = Configuration.new
ACL.config = @config
end
def self.config=(config)
@config = config
end
def self.config
@config ||=Configuration.new
end
class Configuration
attr_accessor :api_acl_mode, :force_access_control, :global_validators
ST... | module ACL
def self.configure
yield @config = Configuration.new
ACL.config = @config
end
def self.config=(config)
@config = config
end
def self.config
@config ||=Configuration.new
end
def self.check_level(route,method)
required_route = ACL::acl_routes_collection[route]
required... | Move check_level method from variables.rb | Add some comments | Check for global validators or force_access_control | Move check_level method from variables.rb | Add some comments | Check for global validators or force_access_control
| Ruby | unlicense | tarolandia/vinyl | ruby | ## Code Before:
module ACL
def self.configure
yield @config = Configuration.new
ACL.config = @config
end
def self.config=(config)
@config = config
end
def self.config
@config ||=Configuration.new
end
class Configuration
attr_accessor :api_acl_mode, :force_access_control, :global_v... |
c66e57e693ae92be6f7c3f634eeb1b392b0b7603 | webpack-base-config.js | webpack-base-config.js | var path = require('path');
var webpack = require('webpack');
module.exports = {
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(require('./package.json').version)
})
],
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: { presets: ['es2015... | var path = require('path');
var webpack = require('webpack');
module.exports = {
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(require('./package.json').version)
})
],
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
... | Add "add-module-exports' babel plugin to plugins array | Add "add-module-exports' babel plugin to plugins array
Previously it was not actually being used.
Fixes "TypeError: Super expression must either be null or a function,
not object" error when building master on windows.
| JavaScript | bsd-3-clause | flavioribeiro/clappr,clappr/clappr,clappr/clappr,flavioribeiro/clappr,clappr/clappr,flavioribeiro/clappr | javascript | ## Code Before:
var path = require('path');
var webpack = require('webpack');
module.exports = {
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(require('./package.json').version)
})
],
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: { p... |
948fea09e4ed03b4d4c9661dc1e0751317bd735a | README.md | README.md | OSGeo4A
==========
This provides a set of scripts to build opensource geo tools for android.
Build instructions
-----------
Create a file config.conf in the root folder with the following content
```sh
export ANDROIDSDK="/path/to/android-sdk"
export ANDROIDNDK="/path/to/android-sdk"
export ANDROIDNDKVER=r10c
export... | OSGeo4A
==========
This provides a set of scripts to build opensource geo tools for android.
This is *Experimental*
Build instructions
-----------
Create a file config.conf in the root folder with the following content
```sh
export ANDROIDSDK="/path/to/android-sdk"
export ANDROIDNDK="/path/to/android-sdk"
export A... | Add experimental notice to readme | Add experimental notice to readme
| Markdown | mit | opengisch/OSGeo4A,opengisch/OSGeo4A,opengisch/OSGeo4A | markdown | ## Code Before:
OSGeo4A
==========
This provides a set of scripts to build opensource geo tools for android.
Build instructions
-----------
Create a file config.conf in the root folder with the following content
```sh
export ANDROIDSDK="/path/to/android-sdk"
export ANDROIDNDK="/path/to/android-sdk"
export ANDROIDND... |
a1decacb70a44aba9bbc14a8fdca0e73112e477a | CHANGES.md | CHANGES.md | Version 1.0.0 - 2-Apr-2016
--------------------------
* First release.
|
* First release.
| Fix markdown issues and make formatting consistent with README.md. | Fix markdown issues and make formatting consistent with README.md.
| Markdown | mit | philr/putty-key | markdown | ## Code Before:
Version 1.0.0 - 2-Apr-2016
--------------------------
* First release.
## Instruction:
Fix markdown issues and make formatting consistent with README.md.
## Code After:
* First release.
|
c95b8e36b33b0d9ef99cbcae2e7a37e2e649ca00 | lib/resque/geocoding_task.rb | lib/resque/geocoding_task.rb | class GeocodingTask
@queue = :geocoding
def self.perform(document_id)
document = Document.find(document_id)
#document.update_attribute :state, :geocoding
document.addresses_found.each do |address|
address.geocode("London") if not address.geocoded?
address.save
end
end
end
| class GeocodingTask
@queue = :geocoding
def self.perform(document_id)
document = Document.find(document_id)
#document.update_attribute :state, :geocoding
document.addresses_found.each do |address|
address.geocode if not address.geocoded?
address.save
end
end
end
| Revert "Temporaly hardcode London as central place in geocoding" | Revert "Temporaly hardcode London as central place in geocoding"
This reverts commit deb2fccd72199f9ed8bd59f202e055dd0242db0f.
| Ruby | mit | analiceme/chaos | ruby | ## Code Before:
class GeocodingTask
@queue = :geocoding
def self.perform(document_id)
document = Document.find(document_id)
#document.update_attribute :state, :geocoding
document.addresses_found.each do |address|
address.geocode("London") if not address.geocoded?
address.save
end
end
... |
fa62ad541d147e740bedd97f470390aafe882e8f | app/js/arethusa.core/directives/foreign_keys.js | app/js/arethusa.core/directives/foreign_keys.js | 'use strict';
angular.module('arethusa.core').directive('foreignKeys',[
'keyCapture',
'languageSettings',
function (keyCapture, languageSettings) {
return {
restrict: 'A',
scope: {
ngChange: '&',
ngModel: '@',
foreignKeys: '='
},
link: function (scope, element, ... | 'use strict';
angular.module('arethusa.core').directive('foreignKeys',[
'keyCapture',
'languageSettings',
function (keyCapture, languageSettings) {
return {
restrict: 'A',
scope: {
ngChange: '&',
ngModel: '@',
foreignKeys: '='
},
link: function (scope, element, ... | Fix minor mistake in foreignKeys | Fix minor mistake in foreignKeys
| JavaScript | mit | latin-language-toolkit/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa,Masoumeh/arethusa,latin-language-toolkit/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,fbaumgardt/arethusa,alpheios-project/arethusa,alpheios-project/arethusa,Masoumeh/arethusa,PonteIneptique/arethusa | javascript | ## Code Before:
'use strict';
angular.module('arethusa.core').directive('foreignKeys',[
'keyCapture',
'languageSettings',
function (keyCapture, languageSettings) {
return {
restrict: 'A',
scope: {
ngChange: '&',
ngModel: '@',
foreignKeys: '='
},
link: function (... |
03cb0d30b60c3702edc0752fe535abb1ae41a32d | src/controllers/chooseyourcat.c | src/controllers/chooseyourcat.c |
NEW_CONTROLLER(ChooseYourCat);
static void p1_confirm() {
Sound_playSE(FX_SELECT);
Scene_close();
Scene_load(SCENE_PRESSSTART);
}
static void p2_confirm() {
Sound_playSE(FX_SELECT);
Scene_close();
Scene_load(SCENE_PRESSSTART);
}
static void ChooseYourCatController_init() {
EVENT_ASSOCIAT... |
static int P1_HAS_CHOSEN = false;
/* false -> P1 escolhe o gato;
true -> P2 escolhe o gato. */
NEW_CONTROLLER(ChooseYourCat);
static void p1_confirm() {
if (!P1_HAS_CHOSEN) {
Sound_playSE(FX_SELECT);
P1_HAS_CHOSEN = true;
}
}
static void p2_confirm() {
if (P1_HAS_CHOSEN) {
/... | Add step for each player on choose your cat scene | Add step for each player on choose your cat scene
| C | mit | OrenjiAkira/spacegame,OrenjiAkira/spacegame,OrenjiAkira/spacegame | c | ## Code Before:
NEW_CONTROLLER(ChooseYourCat);
static void p1_confirm() {
Sound_playSE(FX_SELECT);
Scene_close();
Scene_load(SCENE_PRESSSTART);
}
static void p2_confirm() {
Sound_playSE(FX_SELECT);
Scene_close();
Scene_load(SCENE_PRESSSTART);
}
static void ChooseYourCatController_init() {
... |
09e436ea994c943d4dc8bb3f670d24f1e0de3681 | app/views/admin/users/_form.html.haml | app/views/admin/users/_form.html.haml | =# simple_form_for resource, url: resource_path do |f|
= simple_form_for resource do |f|
= hidden_field_tag :back_url, params[:back_url] || request.referer
= f.input :email
= f.input :name, as: :string
= f.input :admin
= f.button :submit, class: 'btn btn-primary'
| =# simple_form_for resource, url: resource_path do |f|
= simple_form_for [:admin, resource] do |f|
= hidden_field_tag :back_url, params[:back_url] || request.referer
= f.input :email
= f.input :name, as: :string
= f.input :admin
= f.button :submit, class: 'btn btn-primary'
| Add admin namespace to user resource. | Add admin namespace to user resource.
| Haml | agpl-3.0 | ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub | haml | ## Code Before:
=# simple_form_for resource, url: resource_path do |f|
= simple_form_for resource do |f|
= hidden_field_tag :back_url, params[:back_url] || request.referer
= f.input :email
= f.input :name, as: :string
= f.input :admin
= f.button :submit, class: 'btn btn-primary'
## Instruction:
Add admin na... |
71bcb3176dc172b65230658747ac416aec490c9b | tests/cypress/plugins/db.js | tests/cypress/plugins/db.js | const mysql = require("mysql");
const { withPromiseLogging } = require("../testing/logging");
// Run an array of functions returning Promises sequentially.
// Function N+1 will be executed after function N resolves.
// Rejects on the first error encountered.
const sequencePromises = (promiseFns) =>
promiseFns.reduce... | const mysql = require("mysql");
const { withPromiseLogging } = require("../testing/logging");
// Run an array of functions returning Promises sequentially.
// Function N+1 will be executed after function N resolves.
// Rejects on the first error encountered.
const sequencePromises = (promiseFns) =>
promiseFns.reduce... | Fix a race condition in clearTables | Fix a race condition in clearTables
| JavaScript | mit | watchdogpolska/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,watchdogpolska/poradnia,rwakulszowa/poradnia,rwakulszowa/poradnia,rwakulszowa/poradnia,rwakulszowa/poradnia | javascript | ## Code Before:
const mysql = require("mysql");
const { withPromiseLogging } = require("../testing/logging");
// Run an array of functions returning Promises sequentially.
// Function N+1 will be executed after function N resolves.
// Rejects on the first error encountered.
const sequencePromises = (promiseFns) =>
p... |
64370a638d1a31c1c97fc251e3f75f41ee55878d | ckanext/stadtzh_theme/fanstatic/stadtzh_theme.css | ckanext/stadtzh_theme/fanstatic/stadtzh_theme.css | html,
.account-masthead,
.masthead .navigation .nav-pills li a:hover,
.masthead .navigation .nav-pills li.active a,
.hero .tags {
background-color: #0E2B56;
}
.masthead,
.hero .module-dark .module-content,
.site-footer {
background-color: #1F52A3;
}
.additional-info {
padding: 0 25px;
margin: 20px 0;
}
.... | html,
.account-masthead,
.masthead .navigation .nav-pills li a:hover,
.masthead .navigation .nav-pills li.active a,
.hero .tags {
background-color: #0E2B56;
}
.masthead,
.hero .module-dark .module-content,
.site-footer {
background-color: #1F52A3;
}
.additional-info {
padding: 0 25px;
margin: 20px 0;
}
.... | Break long resource names on resource page. | Break long resource names on resource page.
| CSS | agpl-3.0 | opendatazurich/ckanext-stadtzh-theme,opendatazurich/ckanext-stadtzh-theme,opendatazurich/ckanext-stadtzh-theme | css | ## Code Before:
html,
.account-masthead,
.masthead .navigation .nav-pills li a:hover,
.masthead .navigation .nav-pills li.active a,
.hero .tags {
background-color: #0E2B56;
}
.masthead,
.hero .module-dark .module-content,
.site-footer {
background-color: #1F52A3;
}
.additional-info {
padding: 0 25px;
marg... |
ebd1af5a1bfd4b65b07d33a186c4874fd841b917 | mopViewer/main.cpp | mopViewer/main.cpp |
int main() {
mopViewer mopViewers;
std::string fileName;
int skipCount;
std::cout << "Enter the MopFile Name (No need to use extension/location: ";
std::cin >> fileName;
std::cout << std::endl << "Enter Required Skip Count: ";
std::cin >> skipCount;
mop... |
int main() {
mopViewer mopViewers;
std::string fileName;
int skipCount;
std::cout << "Enter the MopFile Name (No need to use extension/location: ";
std::cin >> fileName;
std::cout << std::endl << "Enter Required Skip Count: ";
std::cin >> skipCount;
if(... | Add some minor error checking | Add some minor error checking
| C++ | apache-2.0 | Afrostie/Mopviewer | c++ | ## Code Before:
int main() {
mopViewer mopViewers;
std::string fileName;
int skipCount;
std::cout << "Enter the MopFile Name (No need to use extension/location: ";
std::cin >> fileName;
std::cout << std::endl << "Enter Required Skip Count: ";
std::cin >> skipCo... |
28d15d7bf2756fd421fda0472f39762975e5263a | static/css/set_password.css | static/css/set_password.css | border-color: #ddd;
box-shadow: none;
}
#meter {
margin: 3px 0 20px 0;
display: flex;
}
#meter div {
background: #ddd;
height: 5px;
flex: 1;
border-radius: 2px;
margin-right: 3px;
}
#meter div:last-child {
margin-right: 0;
}
#meter.score-1 .s1 {
background: #FF5252;
}
#m... | border-color: var(--border-color);
box-shadow: none;
}
#meter {
margin: 3px 0 20px 0;
display: flex;
}
#meter div {
background: var(--border-color);
height: 5px;
flex: 1;
border-radius: 2px;
margin-right: 3px;
}
#meter div:last-child {
margin-right: 0;
}
#meter.score-1 .s1 {
... | Fix dark mode bug in the "Set Password" screen | Fix dark mode bug in the "Set Password" screen
| CSS | bsd-3-clause | iphoting/healthchecks,healthchecks/healthchecks,healthchecks/healthchecks,healthchecks/healthchecks,healthchecks/healthchecks,iphoting/healthchecks,iphoting/healthchecks,iphoting/healthchecks | css | ## Code Before:
border-color: #ddd;
box-shadow: none;
}
#meter {
margin: 3px 0 20px 0;
display: flex;
}
#meter div {
background: #ddd;
height: 5px;
flex: 1;
border-radius: 2px;
margin-right: 3px;
}
#meter div:last-child {
margin-right: 0;
}
#meter.score-1 .s1 {
background... |
4dbd5805ab6c424dac2c632c77e6b545c3b9e24b | platform-plugins/bitbucket-pipelines.yml | platform-plugins/bitbucket-pipelines.yml | pipelines:
default:
- step:
name: Build
image: maven:3.6-jdk-11
caches:
- maven
script:
- mvn clean install deploy -s settings.xml
artifacts:
- restheart-platform-security/target/restheart-platform-security-*.zip
- restheart-platform-... | pipelines:
default:
- step:
name: Build
image: maven:3.6-jdk-11
caches:
- maven
script:
- mvn clean install deploy -s settings.xml
artifacts:
- restheart-platform-security/target/restheart-platform-security-*.zip
- restheart-platform-... | Remove unused step from pipeline | [skip ci] Remove unused step from pipeline | YAML | agpl-3.0 | SoftInstigate/restheart,SoftInstigate/restheart,SoftInstigate/restheart,SoftInstigate/restheart | yaml | ## Code Before:
pipelines:
default:
- step:
name: Build
image: maven:3.6-jdk-11
caches:
- maven
script:
- mvn clean install deploy -s settings.xml
artifacts:
- restheart-platform-security/target/restheart-platform-security-*.zip
- res... |
e2d03bd12d7ac627c092913076b30293a83fb744 | lib/GridItem.jsx | lib/GridItem.jsx | 'use strict';
import React from 'react';
export default class GridItem extends React.Component {
render() {
var itemStyle = this.props.style;
return <div style={itemStyle} className="gridItem">{this.props.item.name}</div>;
}
}
GridItem.propTypes = {
item: React.PropTypes.object,
style: React.PropType... | 'use strict';
import React from 'react';
import BaseDisplayObject from './BaseDisplayObject.jsx';
export default class GridItem extends BaseDisplayObject{
constructor() {
super();
this.onDrag = super.onDrag.bind(this);
this.onMouseOver = super.onMouseOver.bind(this);
}
render() {
//IMPORTANT: ... | Update gridItem with new basedisplay | Update gridItem with new basedisplay
| JSX | mit | jrowny/react-absolute-grid,okonet/react-absolute-grid,rovolution/react-absolute-grid,Jonekee/react-absolute-grid,conorhastings/react-absolute-grid,ClouDesire/react-absolute-grid,Jonekee/react-absolute-grid,socialtables/react-absolute-grid,ClouDesire/react-absolute-grid,okonet/react-absolute-grid,rovolution/react-absolu... | jsx | ## Code Before:
'use strict';
import React from 'react';
export default class GridItem extends React.Component {
render() {
var itemStyle = this.props.style;
return <div style={itemStyle} className="gridItem">{this.props.item.name}</div>;
}
}
GridItem.propTypes = {
item: React.PropTypes.object,
style... |
264f5bf47c40f308b9e446f0729fab73b6ccd7b7 | README.md | README.md | [](https://godoc.org/github.com/anacrolix/utp)
Package utp implements uTP, the micro transport protocol as used with Bittorrent. It opts for simplicity and reliability over strict adherence to the (poor) spec.
## Supported
* Multiple uTP connections swi... | [](https://godoc.org/github.com/anacrolix/utp)
[](https://drone.io/github.com/anacrolix/utp/latest)
Package utp implements uTP, the micro transport protocol as used with Bittorrent. It op... | Add the drone.io status badge | Add the drone.io status badge
| Markdown | mpl-2.0 | anacrolix/utp | markdown | ## Code Before:
[](https://godoc.org/github.com/anacrolix/utp)
Package utp implements uTP, the micro transport protocol as used with Bittorrent. It opts for simplicity and reliability over strict adherence to the (poor) spec.
## Supported
* Multiple uTP... |
7a024f393aee9551552547afa8745cdf2c0bebc3 | packer/scripts/ubuntu/base.sh | packer/scripts/ubuntu/base.sh | set -eux
set -o pipefail
sudo apt-get upgrade -y
sudo apt-get update -y
sudo apt-get -y install git curl libcurl3 bridge-utils bundler default-jre-headless unzip wget python-setuptools python-protobuf cgroup-bin ruby1.9.1
| set -eux
set -o pipefail
# The sleep 30 in the example above is very important.
# Because Packer is able to detect and SSH into the instance as soon as SSH is
# available, Ubuntu actually doesn't get proper amounts of time to initialize.
# The sleep makes sure that the OS properly initializes.
sleep 30
sudo apt-get up... | Add sleep so ubuntu gets a proper amount of time to initialize | Add sleep so ubuntu gets a proper amount of time to initialize
| Shell | mit | enxebre/Apollo,ravbaba/Apollo,siliconmeadow/Apollo,atsaki/Apollo,mehulsbhatt/Apollo,mehulsbhatt/Apollo,atsaki/Apollo,ravbaba/Apollo,phungmanhcuong/Appolo,Capgemini/Apollo,Capgemini/Apollo,Capgemini/Apollo,phungmanhcuong/Appolo,enxebre/Apollo,siliconmeadow/Apollo | shell | ## Code Before:
set -eux
set -o pipefail
sudo apt-get upgrade -y
sudo apt-get update -y
sudo apt-get -y install git curl libcurl3 bridge-utils bundler default-jre-headless unzip wget python-setuptools python-protobuf cgroup-bin ruby1.9.1
## Instruction:
Add sleep so ubuntu gets a proper amount of time to initialize
... |
758dc40a04e1d97a325ea172207086e0820cd739 | README.md | README.md | This is our CL4LRL software project!
============
| Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low-Resource Languages
Software Project, Winter Semester 2013/14
University of Saarland
------------
Developers trying to incorporate speec... | Add mini project description to readme | Add mini project description to readme
| Markdown | bsd-2-clause | lex4all/lex4all,lex4all/lex4all,lex4all/lex4all | markdown | ## Code Before:
This is our CL4LRL software project!
============
## Instruction:
Add mini project description to readme
## Code After:
Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low... |
6e939d27b0b6cff6f71f7af6ab66794a0ef6c02b | src/auth/IdBroker.php | src/auth/IdBroker.php | <?php
namespace Sil\SilAuth\auth;
use Psr\Log\LoggerInterface;
use Sil\Idp\IdBroker\Client\IdBrokerClient;
class IdBroker
{
/** @var IdBrokerClient */
protected $client;
/** @var LoggerInterface */
protected $logger;
/**
*
* @param string $baseUri The base of the API's URL.
... | <?php
namespace Sil\SilAuth\auth;
use Psr\Log\LoggerInterface;
use Sil\Idp\IdBroker\Client\IdBrokerClient;
class IdBroker
{
/** @var IdBrokerClient */
protected $client;
/** @var LoggerInterface */
protected $logger;
/**
*
* @param string $baseUri The base of the API's URL.
... | Make argument types more specific. | Make argument types more specific.
| PHP | mit | silinternational/simplesamlphp-module-silauth,silinternational/simplesamlphp-module-silauth | php | ## Code Before:
<?php
namespace Sil\SilAuth\auth;
use Psr\Log\LoggerInterface;
use Sil\Idp\IdBroker\Client\IdBrokerClient;
class IdBroker
{
/** @var IdBrokerClient */
protected $client;
/** @var LoggerInterface */
protected $logger;
/**
*
* @param string $baseUri The base of t... |
0004bde0d40dfea167d76a83c20acfffc0abfa28 | poyo/__init__.py | poyo/__init__.py |
from .exceptions import PoyoException
from .parser import parse_string
__author__ = 'Raphael Pierzina'
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
__all__ = ['parse_string', 'PoyoException']
|
import logging
from .exceptions import PoyoException
from .parser import parse_string
__author__ = 'Raphael Pierzina'
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
logging.getLogger(__name__).addHandler(logging.NullHandler())
__all__ = ['parse_string', 'PoyoException']
| Add NullHandler to poyo root logger | Add NullHandler to poyo root logger
| Python | mit | hackebrot/poyo | python | ## Code Before:
from .exceptions import PoyoException
from .parser import parse_string
__author__ = 'Raphael Pierzina'
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
__all__ = ['parse_string', 'PoyoException']
## Instruction:
Add NullHandler to poyo root logger
## Code After:
import logging
from .excep... |
c479dbae225728234848467c5451f48f27462a05 | app/views/abuse_reports/new.html.haml | app/views/abuse_reports/new.html.haml | - page_title "Report abuse"
%h3.page-title Report abuse
%p Please use this form to report users who create spam issues, comments or behave inappropriately.
%hr
= form_for @abuse_report, html: { class: 'form-horizontal'} do |f|
= f.hidden_field :user_id
- if @abuse_report.errors.any?
.alert.alert-danger
- ... | - page_title "Report abuse"
%h3.page-title Report abuse
%p Please use this form to report users who create spam issues, comments or behave inappropriately.
%hr
= form_for @abuse_report, html: { class: 'form-horizontal js-requires-input'} do |f|
= f.hidden_field :user_id
- if @abuse_report.errors.any?
.alert.ale... | Add js-requires-input and js-quick-submit to abuse report form | Add js-requires-input and js-quick-submit to abuse report form
| Haml | mit | iiet/iiet-git,LUMC/gitlabhq,LUMC/gitlabhq,dwrensha/gitlabhq,t-zuehlsdorff/gitlabhq,daiyu/gitlab-zh,ttasanen/gitlabhq,screenpages/gitlabhq,mr-dxdy/gitlabhq,SVArago/gitlabhq,larryli/gitlabhq,axilleas/gitlabhq,ttasanen/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,mrb/gitlabhq,LUMC/gitlabhq,SVArago/gitlabhq,icedwater/... | haml | ## Code Before:
- page_title "Report abuse"
%h3.page-title Report abuse
%p Please use this form to report users who create spam issues, comments or behave inappropriately.
%hr
= form_for @abuse_report, html: { class: 'form-horizontal'} do |f|
= f.hidden_field :user_id
- if @abuse_report.errors.any?
.alert.alert... |
37ec584f4ff63dfa7d1ed09e09a610a0e0c76625 | bors.toml | bors.toml | status = [
"continuous-integration/travis-ci/push",
"clap-rs.clap",
]
pr_status = [
"continuous-integration/travis-ci/pr",
"clap-rs.clap",
]
timeout_sec = 7200
prerun_timeout_sec = 7200
delete_merged_branches = true
block_lables = ["R: blocked", "R: require changes"]
| status = [
"continuous-integration/travis-ci/push",
"clap-rs.clap",
]
pr_status = [
"continuous-integration/travis-ci/pr",
"clap-rs.clap",
]
timeout_sec = 7200
prerun_timeout_sec = 7200
delete_merged_branches = true
cut_body_after = "\n\n"
block_lables = ["R: blocked", "R: require changes"]
| Cut merge commit's messages to the title of the PR | Cut merge commit's messages to the title of the PR | TOML | apache-2.0 | clap-rs/clap,clap-rs/clap,clap-rs/clap | toml | ## Code Before:
status = [
"continuous-integration/travis-ci/push",
"clap-rs.clap",
]
pr_status = [
"continuous-integration/travis-ci/pr",
"clap-rs.clap",
]
timeout_sec = 7200
prerun_timeout_sec = 7200
delete_merged_branches = true
block_lables = ["R: blocked", "R: require changes"]
## Instruction:
Cut merge commi... |
5e6acf3ec35777fbb9c0cd45966cd288a281b785 | test/mocks/pull.mock.js | test/mocks/pull.mock.js | module.exports = (url, cb) => {
cb(null, {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
id: 'way/4243736',
properties: {
highway: 'trunk'
},
geometry: {
type: 'LineString',
coordinates: [
[
172.5... | 'use strict';
module.exports = (url, cb) => {
cb(null, {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
id: 'way/4243736',
properties: {
highway: 'trunk'
},
geometry: {
type: 'LineString',
coordinates: [
[
... | Add use strict to satisfy jshint | Add use strict to satisfy jshint
| JavaScript | mit | mediasuitenz/mappy,mediasuitenz/mappy | javascript | ## Code Before:
module.exports = (url, cb) => {
cb(null, {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
id: 'way/4243736',
properties: {
highway: 'trunk'
},
geometry: {
type: 'LineString',
coordinates: [
[
... |
0fa6272c6148eb158c2635bed7c249c528d0c4cc | .travis.yml | .travis.yml | language: node_js
node_js:
- "0.10"
env:
- COVERAGE=true
script:
- "make test"
branches:
only:
- master
| language: node_js
node_js:
- "0.10"
- "0.11"
env:
- COVERAGE=true
script: make test
branches:
only:
- master
| Add Node 0.11 to Travis tests | Add Node 0.11 to Travis tests
| YAML | mit | iagocaldeira/waterlock-local-auth,drewdotpro/waterlock-local-auth,listepo/waterlock-local-auth,praveenaj/waterlock-local-auth,praveenaj/waterlock-local-auth,robksawyer/waterlock-local-auth,robksawyer/waterlock-local-auth,Brunoalcau/waterlock-local-auth,iagocaldeira/waterlock-local-auth,drewdotpro/waterlock-local-auth,s... | yaml | ## Code Before:
language: node_js
node_js:
- "0.10"
env:
- COVERAGE=true
script:
- "make test"
branches:
only:
- master
## Instruction:
Add Node 0.11 to Travis tests
## Code After:
language: node_js
node_js:
- "0.10"
- "0.11"
env:
- COVERAGE=true
script: make test
branches:
only:
- master... |
c7f6c2950d7bb22a8eba4d178f4902a4c4289927 | README.md | README.md | something to do with the internet
| something to do with the internet
# draft workflow
## starting config
### required
- aws region & iam user creds
- human-readable name of environment, unique within account
### optional
- name of hosted zone in the account
## stage 1: base infrastructure
- discover latest nat ami
- discover or generate ssh key
- a... | Add draft workflow to readme | Add draft workflow to readme
| Markdown | apache-2.0 | rosenhouse/tubes,rosenhouse/tubes | markdown | ## Code Before:
something to do with the internet
## Instruction:
Add draft workflow to readme
## Code After:
something to do with the internet
# draft workflow
## starting config
### required
- aws region & iam user creds
- human-readable name of environment, unique within account
### optional
- name of hosted z... |
aa0febae8e5c98727b00a08e6d45470c9920daab | websocket-testing.html | websocket-testing.html | <!DOCTYPE html>
<html>
<head>
<title>websocket testing</title>
<script>
var socket = new WebSocket("ws://localhost:8080/ws");
socket.onmessage = function(event) {
console.log(event.data);
}
socket.onerror = function(event) {
console.log(event.data);
}
function login() {
var name = document.ge... | <!DOCTYPE html>
<html>
<head>
<title>websocket testing</title>
<script>
var socket = new WebSocket("ws://localhost:8080/ws");
socket.onmessage = function(event) {
console.log(event.data);
var data = JSON.parse(event.data);
switch (data.type) {
case "message":
var area = document.getElem... | Test page more of a page now | Test page more of a page now
| HTML | mit | strawmang/strawmang,strawmang/strawmang,strawmang/strawmang | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<title>websocket testing</title>
<script>
var socket = new WebSocket("ws://localhost:8080/ws");
socket.onmessage = function(event) {
console.log(event.data);
}
socket.onerror = function(event) {
console.log(event.data);
}
function login() {
var na... |
0231d1e5da78fb69c090987c6edcb8e5b09e23ce | java/idea-ui/resources/messages/JavaUiBundle.properties | java/idea-ui/resources/messages/JavaUiBundle.properties | build.script.found.notification={0} build {1,choice,1#script|1<scripts} found
build.script.found.notification.import=Import
build.script.found.notification.import.all=Import All
build.scripts.from.multiple.providers.found.notification=Build Scripts Found
project.structure.automatically.detected.notification=Project str... | build.script.found.notification={0} build {1,choice,1#script|1<scripts} found
build.script.found.notification.import=Import
build.script.found.notification.import.all=Import All
build.scripts.from.multiple.providers.found.notification=Build Scripts Found
project.structure.automatically.detected.notification=Project str... | Improve the text of the progress during SetupJavaProjectFromSourcesActivity | Improve the text of the progress during SetupJavaProjectFromSourcesActivity
Relates to IDEA-222368
GitOrigin-RevId: 6b279dc2bdfef3ed68fdcdca6573fd5a97b780d3 | INI | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... | ini | ## Code Before:
build.script.found.notification={0} build {1,choice,1#script|1<scripts} found
build.script.found.notification.import=Import
build.script.found.notification.import.all=Import All
build.scripts.from.multiple.providers.found.notification=Build Scripts Found
project.structure.automatically.detected.notifica... |
acb4a87e673e8c43df0558612c6a87cfe0753ea4 | README.md | README.md |
This is the source code for Jesse Buchanan's website: http://jessebuchanan.ca
## How?
Usage:
Clone the repo.
git clone git@github.com:jbinto/jessebuchanan.ca.git
cd jessebuchanan.ca
Install the s3_website gem via bundler:
bundle install
Set the AWS credentials. **NOTE:** Use a restricted IAM rol... |
This is the source code for Jesse Buchanan's website: http://jessebuchanan.ca
## How?
Usage:
Clone the repo.
git clone git@github.com:jbinto/jessebuchanan.ca.git
cd jessebuchanan.ca
Install the s3_website gem via bundler:
bundle install
Note: `s3_website` requires a JDK as of July 2014, as it is ... | Add note about `s3_website` and Java | Add note about `s3_website` and Java
| Markdown | mit | jbinto/DEFUNCT-jessebuchanan.ca | markdown | ## Code Before:
This is the source code for Jesse Buchanan's website: http://jessebuchanan.ca
## How?
Usage:
Clone the repo.
git clone git@github.com:jbinto/jessebuchanan.ca.git
cd jessebuchanan.ca
Install the s3_website gem via bundler:
bundle install
Set the AWS credentials. **NOTE:** Use a re... |
0a28bfafa7c9f5a104011b69c950e71a8553092c | kitchen/util/python_path.sh.in | kitchen/util/python_path.sh.in | for X in @KITCHEN_PROJECTS_STR@
do
. @CMAKE_BINARY_DIR@/$X/python_path.sh
done
| for X in @KITCHEN_PROJECTS_STR@
do
if [ -e @CMAKE_BINARY_DIR@/$X/python_path.sh]
then
. @CMAKE_BINARY_DIR@/$X/python_path.sh
fi
done
| Put in if check to the python path to stop errors when ros does not exist. | Put in if check to the python path to stop
errors when ros does not exist.
| unknown | bsd-3-clause | drmateo/ecto,stonier/ecto,v4hn/ecto,v4hn/ecto,drmateo/ecto,drmateo/ecto,v4hn/ecto,drmateo/ecto,stonier/ecto,drmateo/ecto,stonier/ecto,v4hn/ecto,stonier/ecto | unknown | ## Code Before:
for X in @KITCHEN_PROJECTS_STR@
do
. @CMAKE_BINARY_DIR@/$X/python_path.sh
done
## Instruction:
Put in if check to the python path to stop
errors when ros does not exist.
## Code After:
for X in @KITCHEN_PROJECTS_STR@
do
if [ -e @CMAKE_BINARY_DIR@/$X/python_path.sh]
then
. @CMAKE_BINARY_DIR@... |
84a110f95a45f9ca98f292194f0c631d5006db7e | src/components/composites/Menu/Menu.tsx | src/components/composites/Menu/Menu.tsx | import React from 'react';
import type { IMenuProps } from './props';
import View from '../../primitives/View';
import { usePropsConfig } from '../../../hooks';
import { usePopover } from '../../../core';
export const Menu = ({
trigger,
closeOnSelect = true,
children,
onOpen,
onClose,
...props
}: IMenuProp... | import React from 'react';
import type { IMenuProps } from './props';
import View from '../../primitives/View';
import { usePropsConfig } from '../../../hooks';
import { usePopover } from '../../../core';
export const Menu = ({
trigger,
closeOnSelect = true,
children,
onOpen,
onClose,
...props
}: IMenuProp... | Revert "Fixes for Modal position" | Revert "Fixes for Modal position"
This reverts commit 1546dd84bdba8524c3cac5c8befc92614b5f97f8.
| TypeScript | mit | GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase,GeekyAnts/NativeBase | typescript | ## Code Before:
import React from 'react';
import type { IMenuProps } from './props';
import View from '../../primitives/View';
import { usePropsConfig } from '../../../hooks';
import { usePopover } from '../../../core';
export const Menu = ({
trigger,
closeOnSelect = true,
children,
onOpen,
onClose,
...pr... |
95c0527e169d27861e63f62101b516673391bc87 | gulpfile.js | gulpfile.js | var gulp = require('gulp');
var clean = require('./source/services/gulp/clean');
clean.config(null, gulp);
| var utilities = require('gulp-utilities');
utilities.gulp.clean.config();
| Update the gulp file to use gulp-utilities. | Update the gulp file to use gulp-utilities.
| JavaScript | mit | RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities | javascript | ## Code Before:
var gulp = require('gulp');
var clean = require('./source/services/gulp/clean');
clean.config(null, gulp);
## Instruction:
Update the gulp file to use gulp-utilities.
## Code After:
var utilities = require('gulp-utilities');
utilities.gulp.clean.config();
|
3fe7d7a74685dcc861fec06a97c4d70155ef2173 | docs/spelling_wordlist.txt | docs/spelling_wordlist.txt | AppVeyor
Args
backports
config
docstrings
environ
Fortran
hardcoded
hostname
iterable
linter
linters
linux
localhost
macOS
metaclass
namespace
netloc
PIL
pipelining
positionally
pytest
pythonic
rebase
refactorings
signalling
stdout
subclasses
submodules
systemd
threadpool
tracebacks
unbuffered
uri
url
wsgi
| AppVeyor
Args
backports
compat
config
conftest
conn
docstrings
environ
Fortran
hardcoded
hostname
iterable
linter
linters
linux
localhost
macOS
makefile
metaclass
namespace
netloc
PIL
pipelining
positionally
pytest
pythonic
rebase
refactorings
signalling
ssl
stdout
subclasses
submodules
systemd
threadpool
tracebacks
un... | Add module names to known words list | Add module names to known words list
| Text | bsd-3-clause | cherrypy/cheroot | text | ## Code Before:
AppVeyor
Args
backports
config
docstrings
environ
Fortran
hardcoded
hostname
iterable
linter
linters
linux
localhost
macOS
metaclass
namespace
netloc
PIL
pipelining
positionally
pytest
pythonic
rebase
refactorings
signalling
stdout
subclasses
submodules
systemd
threadpool
tracebacks
unbuffered
uri
url
w... |
14b0837e14421685eb5241f87f60314fc863daaa | sfatables/processors/__sfatables_rule_wrap_up__.xsl | sfatables/processors/__sfatables_rule_wrap_up__.xsl | <?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This processor is called at the end, to remove sfatables-specific tags.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | n... | <?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This processor is called at the end, to remove sfatables-specific tags.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | n... | Remove both match and target contexts after a rule is done. | Remove both match and target contexts after a rule is done.
| XSLT | mit | yippeecw/sfa,yippeecw/sfa,onelab-eu/sfa,yippeecw/sfa,onelab-eu/sfa,onelab-eu/sfa | xslt | ## Code Before:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
This processor is called at the end, to remove sfatables-specific tags.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-template... |
9699cb15058049af973969eee7fe5c36bc4e0837 | server.js | server.js | var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.set('port', (process.env.PORT || 5000));
app.use(bodyParser.json());
app.get('/', function(req, res) {
res.send('DC Metro App is up and ready to go!');
});
app.post('/echo_request/parse', function(req, res) {
var re... | var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.set('port', (process.env.PORT || 5000));
app.use(bodyParser.json());
app.get('/', function(req, res) {
res.send('DC Metro App is up and ready to go!');
});
app.post('/echo_request/parse', function(req, res) {
var ... | Use spaces instead of tabs | Use spaces instead of tabs
| JavaScript | mit | pmyers88/dc-metro-echo | javascript | ## Code Before:
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
app.set('port', (process.env.PORT || 5000));
app.use(bodyParser.json());
app.get('/', function(req, res) {
res.send('DC Metro App is up and ready to go!');
});
app.post('/echo_request/parse', function(req... |
f32495820a5c1557e7551635ba5a361d480ac5eb | README.md | README.md | A disseminator for COFA computers
## What?
This is a bunch of scripts that was used to more easily run [PULSAR](http://pulsar.dermah.org) on computers at COFA (UNSW Art & Design). Basically, client scripts wait for a signal from the master script, upon which they run a Terminal command. Upon a second signal, the clie... | A disseminator for COFA computers
## What?
This is a bunch of scripts that was used to more easily run [PULSAR](http://pulsar.dermah.org) on computers at COFA (UNSW Art & Design). Basically, client scripts wait for a signal from the master script, upon which they run a Terminal command. Upon a second signal, the clie... | Add how section to readme | Add how section to readme
| Markdown | mit | Dermah/supernova,Dermah/supernova | markdown | ## Code Before:
A disseminator for COFA computers
## What?
This is a bunch of scripts that was used to more easily run [PULSAR](http://pulsar.dermah.org) on computers at COFA (UNSW Art & Design). Basically, client scripts wait for a signal from the master script, upon which they run a Terminal command. Upon a second ... |
0566de07b6cd7819e60a941a234bfa4006df9b07 | README.md | README.md |
http://imdb-tags.dillonhafer.com
A simple and automatic way to set ID3 tags from IMDB, including artwork.
This program gets IMDB info from [The Open Movie Database](http://www.omdbapi.com/) for use with [AtomicParsley](http://atomicparsley.sourceforge.net/).
### Dependencies
You must have [AtomicParsley](http://at... |
http://imdb-tags.dillonhafer.com
A simple and automatic way to set ID3 tags from IMDB, including artwork.
This program gets IMDB info from [The Open Movie Database](http://www.omdbapi.com/) for use with [AtomicParsley](http://atomicparsley.sourceforge.net/).
### Dependencies
You must have [AtomicParsley](http://at... | Use song of the sea in example | Use song of the sea in example | Markdown | mit | dillonhafer/imdb-tags,dillonhafer/imdb-tags | markdown | ## Code Before:
http://imdb-tags.dillonhafer.com
A simple and automatic way to set ID3 tags from IMDB, including artwork.
This program gets IMDB info from [The Open Movie Database](http://www.omdbapi.com/) for use with [AtomicParsley](http://atomicparsley.sourceforge.net/).
### Dependencies
You must have [AtomicPa... |
d8a866e0bd96e751888675d86aba5f07e84473ca | src/com/vaadin/demo/featurebrowser/AccordionExample.java | src/com/vaadin/demo/featurebrowser/AccordionExample.java | package com.vaadin.demo.featurebrowser;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
/**
* Accordion is a derivative of TabSheet, a vertical tabbed layout that places
* the tab contents between ... | package com.vaadin.demo.featurebrowser;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
/**
* Accordion is a derivative of TabSheet, a vertical tabbed layout that places
* the tab contents between ... | Fix FeatureBrowser Accordion example tab captions | Fix FeatureBrowser Accordion example tab captions
svn changeset:8011/svn branch:6.0
| Java | apache-2.0 | mittop/vaadin,mstahv/framework,Scarlethue/vaadin,magi42/vaadin,shahrzadmn/vaadin,oalles/vaadin,Peppe/vaadin,oalles/vaadin,Scarlethue/vaadin,peterl1084/framework,Darsstar/framework,travisfw/vaadin,Peppe/vaadin,Darsstar/framework,Scarlethue/vaadin,udayinfy/vaadin,peterl1084/framework,jdahlstrom/vaadin.react,cbmeeks/vaadi... | java | ## Code Before:
package com.vaadin.demo.featurebrowser;
import com.vaadin.ui.Accordion;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
/**
* Accordion is a derivative of TabSheet, a vertical tabbed layout that places
* the tab c... |
4ebfc8f220377609f76831341b8d9a218b3264aa | lib/qb_integration/stock.rb | lib/qb_integration/stock.rb | module QBIntegration
class Stock < Base
attr_reader :item, :items, :name
def initialize(message = {}, config)
super
@name = message[:sku] || message[:product_id]
if name.present?
@item = item_service.find_by_sku name, "Name, QtyOnHand"
else
@items = item_service.find... | module QBIntegration
class Stock < Base
attr_reader :item, :items, :name
def initialize(message = {}, config)
super
@name = message[:sku] || message[:product_id]
if name.present?
@item = item_service.find_by_sku name, "Name, QtyOnHand"
else
@items = item_service.find... | Return a valid timestamp for inventory polling | Return a valid timestamp for inventory polling
| Ruby | bsd-3-clause | nurelm/quickbooks_integration,pervino/quickbooks_integration | ruby | ## Code Before:
module QBIntegration
class Stock < Base
attr_reader :item, :items, :name
def initialize(message = {}, config)
super
@name = message[:sku] || message[:product_id]
if name.present?
@item = item_service.find_by_sku name, "Name, QtyOnHand"
else
@items = i... |
406959a7cfba897fb824f0431238f63c40ab904a | .travis.yml | .travis.yml | language: ruby
cache: bundler
rvm:
- 2.1
- 2.2
- 2.3.1
- 2.4.0
# gemfile is generated by appraisal
gemfile:
- gemfiles/jekyll_3.4.gemfile
- gemfiles/jekyll_3.3.gemfile
- gemfiles/jekyll_3.2.gemfile
- gemfiles/jekyll_3.1.gemfile
- gemfiles/jekyll_3.gemfile
- gemfiles/jekyll_2.gemfile
matrix:
exclud... | language: ruby
cache: bundler
rvm:
- 2.1
- 2.2
- 2.3.1
- 2.4.0
# gemfile is generated by appraisal
gemfile:
- gemfiles/jekyll_3.4.gemfile
- gemfiles/jekyll_3.3.gemfile
- gemfiles/jekyll_3.2.gemfile
- gemfiles/jekyll_3.1.gemfile
- gemfiles/jekyll_3.gemfile
- gemfiles/jekyll_2.gemfile
matrix:
exclud... | Add after_success for CodeClimate test coverage | Add after_success for CodeClimate test coverage
| YAML | mit | toshimaru/jekyll-toc | yaml | ## Code Before:
language: ruby
cache: bundler
rvm:
- 2.1
- 2.2
- 2.3.1
- 2.4.0
# gemfile is generated by appraisal
gemfile:
- gemfiles/jekyll_3.4.gemfile
- gemfiles/jekyll_3.3.gemfile
- gemfiles/jekyll_3.2.gemfile
- gemfiles/jekyll_3.1.gemfile
- gemfiles/jekyll_3.gemfile
- gemfiles/jekyll_2.gemfile
... |
c252a1d31ae640a17ec79b0237fcd565134c4f01 | app/views/user_mailer/feedback_complete.html.erb | app/views/user_mailer/feedback_complete.html.erb | <%
requestor = @requestor.name(false)
recipient_name = @user.name(false)
plan_name = @plan.title
tool_name = Rails.configuration.branding[:application][:name]
%>
<p><%= _('Hello %{recipient_name}') % { recipient_name: recipient_name } %></p>
<p><%= _('%{commenter} has finished providing feedback on the plan ... | <%
requestor = @requestor.name(false)
recipient_name = @user.name(false)
plan_name = @plan.title
tool_name = Rails.configuration.branding[:application][:name]
%>
<p><%= _('Hello %{recipient_name}') % { recipient_name: recipient_name } %></p>
<p>
<%= _("%{commenter} has finished providing feedback on the pla... | Add comments text to feedback completed email | Add comments text to feedback completed email
Issue 1492
| HTML+ERB | mit | CDLUC3/dmptool,CDLUC3/roadmap,CDLUC3/roadmap,CDLUC3/roadmap,CDLUC3/dmptool,DMPRoadmap/roadmap,DMPRoadmap/roadmap,DMPRoadmap/roadmap,DigitalCurationCentre/roadmap,DigitalCurationCentre/roadmap,DigitalCurationCentre/roadmap,CDLUC3/dmptool,CDLUC3/dmptool,CDLUC3/roadmap | html+erb | ## Code Before:
<%
requestor = @requestor.name(false)
recipient_name = @user.name(false)
plan_name = @plan.title
tool_name = Rails.configuration.branding[:application][:name]
%>
<p><%= _('Hello %{recipient_name}') % { recipient_name: recipient_name } %></p>
<p><%= _('%{commenter} has finished providing feedb... |
84b6e750972ceebaa9e067fcc4475f4ecd6ffb4b | src/export/export-worker.sh | src/export/export-worker.sh | set -o errexit
set -o pipefail
set -o nounset
source utils.sh
readonly QUEUE_NAME=${QUEUE_NAME:-osm2vectortiles_jobs}
readonly BUCKET_NAME=${BUCKET_NAME:-osm2vectortiles-jobs}
readonly RABBITMQ_URI=${RABBITMQ_URI:-"amqp://osm:osm@rabbitmq:5672/?blocked_connection_timeout=1200"}
function export_remote_mbtiles() {
... | set -o errexit
set -o pipefail
set -o nounset
source utils.sh
readonly QUEUE_NAME=${QUEUE_NAME:-osm2vectortiles_jobs}
readonly BUCKET_NAME=${BUCKET_NAME:-osm2vectortiles-jobs}
readonly RABBITMQ_URI=${RABBITMQ_URI:-"amqp://osm:osm@rabbitmq:5672/?blocked_connection_timeout=1200&heartbeat=0"}
function export_remote_mbt... | Disable RabbitMQ heartbeat for less connection dropping | Disable RabbitMQ heartbeat for less connection dropping
| Shell | mit | osm2vectortiles/osm2vectortiles,geometalab/osm2vectortiles,geometalab/osm2vectortiles,osm2vectortiles/osm2vectortiles | shell | ## Code Before:
set -o errexit
set -o pipefail
set -o nounset
source utils.sh
readonly QUEUE_NAME=${QUEUE_NAME:-osm2vectortiles_jobs}
readonly BUCKET_NAME=${BUCKET_NAME:-osm2vectortiles-jobs}
readonly RABBITMQ_URI=${RABBITMQ_URI:-"amqp://osm:osm@rabbitmq:5672/?blocked_connection_timeout=1200"}
function export_remote... |
2693277867fa89c0660a7f070c9af41fbe226b22 | files/spack/packages.yaml | files/spack/packages.yaml | packages:
cmake:
paths:
cmake@3.6: /usr/local/Cellar/cmake/3.6.0_1
buildable: False
python:
paths:
python@2.7.12: /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7
python@3.5.2: /usr/local/Cellar/python3/3.5.2/Frameworks/Python.fram... | packages:
cmake:
paths:
cmake@3.6: /usr/local/Cellar/cmake/3.6.0_1
buildable: False
python:
paths:
python@2.7.12: /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7
python@3.5.2: /usr/local/Cellar/python3/3.5.2_1/Frameworks/Python.fr... | Disable boost external package for now | Disable boost external package for now
| YAML | mit | mdavezac/black-garlic | yaml | ## Code Before:
packages:
cmake:
paths:
cmake@3.6: /usr/local/Cellar/cmake/3.6.0_1
buildable: False
python:
paths:
python@2.7.12: /usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7
python@3.5.2: /usr/local/Cellar/python3/3.5.2/Framew... |
c75812a017c6010ea526e587c9afa5c57b1272ad | lib/driver/NeoTypes.ts | lib/driver/NeoTypes.ts |
import neo4j from "neo4j-driver";
export const Neo4jNode = neo4j.types.Node;
export const Neo4jRelationship = neo4j.types.Relationship;
import {Node, Relationship} from "neo4j-driver/types/v1/graph-types";
export function isNode(node: any): node is Node {
return (node && node.labels)
}
export function isRela... | import neo4j from "neo4j-driver";
import {Node, Relationship} from "neo4j-driver/types/v1/graph-types";
const Neo4jNode = neo4j.types.Node;
const Neo4jRelationship = neo4j.types.Relationship;
export function isNode(node: any): node is Node {
return node instanceof Neo4jNode;
}
export function isRelationship(rel:... | Refactor type guards for Node and Relationships classes | Refactor type guards for Node and Relationships classes
| TypeScript | mit | robak86/neography | typescript | ## Code Before:
import neo4j from "neo4j-driver";
export const Neo4jNode = neo4j.types.Node;
export const Neo4jRelationship = neo4j.types.Relationship;
import {Node, Relationship} from "neo4j-driver/types/v1/graph-types";
export function isNode(node: any): node is Node {
return (node && node.labels)
}
export... |
fc7111aac287213c3654a05393207e892bb8fd93 | src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java | src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java | package org.jabref.logic.citationstyle;
import org.jabref.logic.util.TestEntry;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class CitationStyleTest {
@Test
public void getDefault() throw... | package org.jabref.logic.citationstyle;
import org.jabref.logic.util.TestEntry;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
@Disabled("For some reason, instead of ... | Disable other citation style tests which fail for some unknown reason | Disable other citation style tests which fail for some unknown reason
| Java | mit | Siedlerchr/jabref,JabRef/jabref,JabRef/jabref,JabRef/jabref,zellerdev/jabref,Siedlerchr/jabref,zellerdev/jabref,sauliusg/jabref,sauliusg/jabref,zellerdev/jabref,JabRef/jabref,sauliusg/jabref,zellerdev/jabref,zellerdev/jabref,sauliusg/jabref,Siedlerchr/jabref,Siedlerchr/jabref | java | ## Code Before:
package org.jabref.logic.citationstyle;
import org.jabref.logic.util.TestEntry;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
public class CitationStyleTest {
@Test
public void ge... |
549391a0dfbf0f31f2ad0399dacaa8aa5a4f9803 | setup/add-hosts.sh | setup/add-hosts.sh |
set -e
echo 'Adding do, app.do, api.do /etc/hosts'
ETCHOSTFILE=/etc/hosts
ETCHOSTURL=127.0.0.1
declare -a DOHOSTS=( "do.localhost" "app.do.localhost" "api.do.localhost" )
for host in "${DOHOSTS[@]}"
do
FULLHOST="$ETCHOSTURL $host"
# check if host is already present in /etc/hosts
# if not present add it
if ... |
set -e
echo 'Adding do, app.do, api.do, cdn.do to /etc/hosts'
ETCHOSTFILE=/etc/hosts
ETCHOSTURL=127.0.0.1
declare -a DOHOSTS=( "do.localhost" "app.do.localhost" "api.do.localhost" "cdn.do.localhost" )
for host in "${DOHOSTS[@]}"
do
FULLHOST="$ETCHOSTURL $host"
# check if host is already present in /etc/hosts
... | Add cdn.do.localhost to allowed hosts for localhost | Add cdn.do.localhost to allowed hosts for localhost
| Shell | mit | prateekbhatt/userjoy,prateekbhatt/userjoy,prateekbhatt/userjoy | shell | ## Code Before:
set -e
echo 'Adding do, app.do, api.do /etc/hosts'
ETCHOSTFILE=/etc/hosts
ETCHOSTURL=127.0.0.1
declare -a DOHOSTS=( "do.localhost" "app.do.localhost" "api.do.localhost" )
for host in "${DOHOSTS[@]}"
do
FULLHOST="$ETCHOSTURL $host"
# check if host is already present in /etc/hosts
# if not pres... |
ce93cd3353b34b4e89f2ae7131be104a41bb8d28 | tests/mocks/sns-mocks.js | tests/mocks/sns-mocks.js | import proxyquire from 'proxyquire';
export default proxyquire('../../src/notifications/notify-of-new-blogs', {
'aws-sdk': {
SNS: function SNS() {
return {
publish: function publish({ TargetArn, Subject, Message }, callback) {
if (Subject.endsWith(' published a new blog post')) {
... | import proxyquire from 'proxyquire';
export const notifyWorkingSNS = proxyquire('../../src/notifications/notify-of-new-blogs', {
'aws-sdk': {
SNS: function SNS() {
return {
publish: function publish({ TargetArn, Subject, Message }, callback) {
if (Subject.endsWith(' published a new blog p... | Split SNS mocks into working and not working in order to simulate errors with accessing amazon SNS | Split SNS mocks into working and not working in order to simulate errors with accessing amazon SNS
| JavaScript | mit | csblogs/feed-downloader | javascript | ## Code Before:
import proxyquire from 'proxyquire';
export default proxyquire('../../src/notifications/notify-of-new-blogs', {
'aws-sdk': {
SNS: function SNS() {
return {
publish: function publish({ TargetArn, Subject, Message }, callback) {
if (Subject.endsWith(' published a new blog po... |
4bff033a8b53037510ca7bf8d03fdc0eea577845 | lib/server_metrics/collectors/network.rb | lib/server_metrics/collectors/network.rb | require "server_metrics/system_info"
class ServerMetrics::Network < ServerMetrics::MultiCollector
def build_report
if linux?
lines = File.read("/proc/net/dev").lines.to_a[2..-1]
interfaces = []
lines.each do |line|
iface, rest = line.split(':', 2).collect { |e| e.strip }
interf... | require "server_metrics/system_info"
class ServerMetrics::Network < ServerMetrics::MultiCollector
def build_report
if linux?
lines = File.read("/proc/net/dev").lines.to_a[2..-1]
interfaces = []
lines.each do |line|
iface, rest = line.split(':', 2).collect { |e| e.strip }
interf... | Change from whitelisting to blacklisting interfaces. Exclude only loopback interface by default | Change from whitelisting to blacklisting interfaces. Exclude only loopback interface by default
| Ruby | mit | scoutapp/server_metrics | ruby | ## Code Before:
require "server_metrics/system_info"
class ServerMetrics::Network < ServerMetrics::MultiCollector
def build_report
if linux?
lines = File.read("/proc/net/dev").lines.to_a[2..-1]
interfaces = []
lines.each do |line|
iface, rest = line.split(':', 2).collect { |e| e.strip ... |
3c404fc371f3e70fc40acb8a194b4ed1bd90d535 | init/50_ruby.sh | init/50_ruby.sh | source $DOTFILES/source/50_ruby.sh
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
versions=(2.2.2) # 2.0.0-p576 1.9.3-p547)
rubies=($(setdiff "${versions[*]}" "$(rbenv whence ruby)"))
if (( ${#rubies[@]} > 0 )); then
e_header "Installing Ruby versions: ${rubies[*]}"
for r in "${rubies[@]}"; do
... | source $DOTFILES/source/50_ruby.sh
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
versions=(2.2.2) # 2.0.0-p576 1.9.3-p547)
rubies=($(setdiff "${versions[*]}" "$(rbenv whence ruby)"))
if (( ${#rubies[@]} > 0 )); then
e_header "Installing Ruby versions: ${rubies[*]}"
for r in "${rubies[@]}"; do
... | Install knife-ec2, knife-solo, and knife-solo_data_bag | Install knife-ec2, knife-solo, and knife-solo_data_bag
| Shell | mit | stephencroberts/dotfiles | shell | ## Code Before:
source $DOTFILES/source/50_ruby.sh
# Install Ruby.
if [[ "$(type -P rbenv)" ]]; then
versions=(2.2.2) # 2.0.0-p576 1.9.3-p547)
rubies=($(setdiff "${versions[*]}" "$(rbenv whence ruby)"))
if (( ${#rubies[@]} > 0 )); then
e_header "Installing Ruby versions: ${rubies[*]}"
for r in "${rubies... |
7b943d33e95feec7025a1f5943452d2b2c7e4cae | .travis.yml | .travis.yml | sudo: required
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras yet. Let's keep this simple
script:
- make test_offline
| sudo: required
language: python
python:
- "2.7"
install:
- make prepare
- make develop extras=[aws,google] # adding extras to avoid import errors
script:
- make test_offline
| Add aws and google extras to avoid collection import errors | Add aws and google extras to avoid collection import errors
| YAML | apache-2.0 | BD2KGenomics/slugflow,BD2KGenomics/slugflow | yaml | ## Code Before:
sudo: required
language: python
python:
- "2.7"
install:
- make prepare
- make develop # NOTE: no extras yet. Let's keep this simple
script:
- make test_offline
## Instruction:
Add aws and google extras to avoid collection import errors
## Code After:
sudo: required
language: python
python:
... |
5fc9bcb36ca1dce5377d02c194d8bb5ac5c73229 | parenscript.asd | parenscript.asd | (in-package :cl-user)
(defpackage :js.system
(:use :cl :asdf))
(in-package :js.system)
(defsystem :js
:name "js"
:author "Manuel Odendahl <manuel@bl0rg.net>"
:version "0"
:maintainer "Manuel Odendahl <manuel@bl0rg.net>"
:licence "BSD"
:description "js - javascript compiler"
:depends-on... | ;;;; -*- lisp -*-
(in-package :cl-user)
(defpackage :parenscript.system
(:use :cl :asdf))
(in-package :parenscript.system)
(defsystem :parenscript
:name "parenscript"
:author "Manuel Odendahl <manuel@bl0rg.net>"
:version "0"
:maintainer "Manuel Odendahl <manuel@bl0rg.net>"
:licence "BSD"
:... | Rename the system/package in the system definition. | Rename the system/package in the system definition.
Just renaming the file doesn't cut it :(.
| Common Lisp | bsd-3-clause | fredericksilva/Parenscript,JackDanger/parenscript,manuel/parenscript,vsedach/Parenscript,JDReutt/parenscript,VincentToups/parenscript,JackDanger/parenscript,3b/parenscript,JackDanger/parenscript | common-lisp | ## Code Before:
(in-package :cl-user)
(defpackage :js.system
(:use :cl :asdf))
(in-package :js.system)
(defsystem :js
:name "js"
:author "Manuel Odendahl <manuel@bl0rg.net>"
:version "0"
:maintainer "Manuel Odendahl <manuel@bl0rg.net>"
:licence "BSD"
:description "js - javascript compiler"
... |
8bd32141409fe7974430a8ed4a8d43910c9dc0d2 | src/main/java/heroku/template/controller/PersonController.java | src/main/java/heroku/template/controller/PersonController.java | package heroku.template.controller;
import heroku.template.model.Person;
import heroku.template.service.PersonService;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;... | package heroku.template.controller;
import heroku.template.model.Person;
import heroku.template.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bin... | Remove line breaks from method signatures | Remove line breaks from method signatures
| Java | bsd-3-clause | afawcett/githubsfdeploy,motiko/githubsfdeploy,motiko/githubsfdeploy,PankajHingane-REISysIn/GitHubToSFDeploy,swapnilshrikhande/githubsfdeploy,afawcett/githubsfdeploy,davecroman/text-counter,davecroman/text-counter,davecroman/textcounter,PankajHingane-REISysIn/GitHubToSFDeploy,swapnilshrikhande/githubsfdeploy,swapnilshri... | java | ## Code Before:
package heroku.template.controller;
import heroku.template.model.Person;
import heroku.template.service.PersonService;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingR... |
324217f15f9bb5e753d060df175e6be2dd710a0f | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.8.7
- ree
- 1.9.3
env:
- RAILS_VERSION=2.x
- RAILS_VERSION=3.0.17
- RAILS_VERSION=3.1.8
- RAILS_VERSION=3.2.3
- RAILS_VERSION=3.2.12
- RAILS_VERSION=3.2.12 DB_CHARMER_GEM=1.8.3
notifications:
recipients:
- alexey@kovyrin.net
script: ./ci_build
# Whitelist branches to ... | language: ruby
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
env:
- RAILS_VERSION=2.x
- RAILS_VERSION=3.0.17
- RAILS_VERSION=3.1.8
- RAILS_VERSION=3.2.3
- RAILS_VERSION=3.2.12
- RAILS_VERSION=3.2.12 DB_CHARMER_GEM=1.8.3
notifications:
recipients:
- alexey@kovyrin.net
script: ./ci_build
# Whitelist branches t... | Add ruby 2.0.0 testing to CI, rmeove ree | Add ruby 2.0.0 testing to CI, rmeove ree
| YAML | mit | kovyrin/db-charmer,shtzr840329/db-charmer,shtzr840329/db-charmer,shtzr840329/db-charmer,kovyrin/db-charmer | yaml | ## Code Before:
language: ruby
rvm:
- 1.8.7
- ree
- 1.9.3
env:
- RAILS_VERSION=2.x
- RAILS_VERSION=3.0.17
- RAILS_VERSION=3.1.8
- RAILS_VERSION=3.2.3
- RAILS_VERSION=3.2.12
- RAILS_VERSION=3.2.12 DB_CHARMER_GEM=1.8.3
notifications:
recipients:
- alexey@kovyrin.net
script: ./ci_build
# Whitel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.