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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
82d470fdd8cb51d0dcfe7b73a7eea23086a5d05d | README.md | README.md | Eclipse project for android to use USB Webcam.
To run this application, the following conditions should be satisfied.
1) The kernel is V4L2 enabled, e.g.,
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV... | Eclipse project for android to use USB Webcam.
To run this application, the following conditions should be satisfied.
1) The kernel is V4L2 enabled, e.g.,
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV... | Add docs for Nexus 7. | Add docs for Nexus 7.
| Markdown | bsd-3-clause | harayz/android-webcam,jackyglony/android-webcam,openxc/android-webcam,jackyglony/android-webcam,aynulhassan/android-webcam,harayz/android-webcam,openxc/android-webcam,aynulhassan/android-webcam | markdown | ## Code Before:
Eclipse project for android to use USB Webcam.
To run this application, the following conditions should be satisfied.
1) The kernel is V4L2 enabled, e.g.,
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_MEDIA=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_C... |
7abfba2834aace95777de3c56869fe0bae501fdc | zsh/aliases.zsh | zsh/aliases.zsh | if [[ "$os" = "$linux_str" ]]; then
alias ls='ls --color=auto'
alias dir='dir --color=auto'
# Pacman aliases
alias pacman=run_pacman
# ssh aliases
alias usshfs='fusermount -u $HOME/Remote'
# set monitor brighness
alias sb=set_brightness
alias sbr=set_brightness_rel
# get c... | if [[ "$os" = "$linux_str" ]]; then
alias ls='ls --color=auto'
alias dir='dir --color=auto'
# Pacman aliases
alias pacman=run_pacman
# ssh aliases
alias usshfs='fusermount -u $HOME/Remote'
# set monitor brighness
alias sb=set_brightness
alias sbr=set_brightness_rel
# get c... | Set TERM when using gcloud compute ssh | Set TERM when using gcloud compute ssh
| Shell | mit | SCSmithr/dotfiles | shell | ## Code Before:
if [[ "$os" = "$linux_str" ]]; then
alias ls='ls --color=auto'
alias dir='dir --color=auto'
# Pacman aliases
alias pacman=run_pacman
# ssh aliases
alias usshfs='fusermount -u $HOME/Remote'
# set monitor brighness
alias sb=set_brightness
alias sbr=set_brightness... |
94fef3a43e7c2e54f3860712e85b8f6ecba76fb4 | views/file/modal.php | views/file/modal.php | <div role="filemanager-modal" class="modal" tabindex="-1"
data-frame-id="<?= $frameId ?>"
data-frame-src="<?= $frameSrc ?>"
data-btn-id="<?= $btnId ?>"
data-input-id="<?= $inputId ?>"
data-image-container="<?= is_set($imageContainer) ? $imageContainer : '' ?>"
data-paste-data="<?= is_set($... | <div role="filemanager-modal" class="modal" tabindex="-1"
data-frame-id="<?= $frameId ?>"
data-frame-src="<?= $frameSrc ?>"
data-btn-id="<?= $btnId ?>"
data-input-id="<?= $inputId ?>"
data-image-container="<?= $imageContainer ?>"
data-paste-data="<?= $pasteData ?>"
data-thumb="<?= $th... | Revert "Fixed Modal view bug" | Revert "Fixed Modal view bug"
This reverts commit ce3917c8b04123e60eba2e02528cf1f8c4a8e0df. | PHP | mit | PendalF89/yii2-filemanager,PendalF89/yii2-filemanager | php | ## Code Before:
<div role="filemanager-modal" class="modal" tabindex="-1"
data-frame-id="<?= $frameId ?>"
data-frame-src="<?= $frameSrc ?>"
data-btn-id="<?= $btnId ?>"
data-input-id="<?= $inputId ?>"
data-image-container="<?= is_set($imageContainer) ? $imageContainer : '' ?>"
data-paste-da... |
cf3e5f7f5b89f607d4b64f485041fd2fef8baaf5 | src/App/Game/Chat/Compose/style.css | src/App/Game/Chat/Compose/style.css | @import 'base';
@import 'input';
.darkTheme {}
.unpinned {}
.form {
padding: 2.4rem 1.2rem;
padding-top: 10px;
border-radius: 5px;
}
.formInput {
@extend input;
border: 0;
height: 50px;
display: block;
padding: 1.2rem 1rem;
line-height: 2.4rem;
width: 100%;
resize: none;
co... | @import 'base';
@import 'input';
.darkTheme {}
.unpinned {}
.form {
padding: 2.4rem 1.2rem;
padding-top: 10px;
border-radius: 5px;
}
.formInput {
@extend input;
border: 0;
height: 50px;
display: block;
padding: 1.2rem 1rem;
line-height: 2.4rem;
width: 100%;
resize: none;
co... | Fix chat compose area movement during pinning/unpinning. | Fix chat compose area movement during pinning/unpinning.
| CSS | mit | jsonnull/aleamancer,jsonnull/aleamancer | css | ## Code Before:
@import 'base';
@import 'input';
.darkTheme {}
.unpinned {}
.form {
padding: 2.4rem 1.2rem;
padding-top: 10px;
border-radius: 5px;
}
.formInput {
@extend input;
border: 0;
height: 50px;
display: block;
padding: 1.2rem 1rem;
line-height: 2.4rem;
width: 100%;
resi... |
9769f8c563d439daba96b1edd420efb6489f66f0 | package.json | package.json | {
"name": "big",
"version": "0.3.1",
"main": "big.js",
"scripts": {
"start": "node ./bin/big"
},
"dependencies": {
"resource": "0.3.x",
"resources": "0.3.x"
},
"bin": {
"big": "./bin/big"
},
"license": "MIT"
}
| {
"name": "big",
"version": "0.3.1",
"main": "big.js",
"scripts": {
"start": "node ./bin/big"
},
"peerDependencies": {
"resource": "0.3.x",
"resources": "0.3.x"
},
"devDependencies": {
"resource": "0.3.x",
"resources": "0.3.x"
},
"bin": {
"big": "./bin/big"
},
"license": ... | Use peerDependencies for resource and resources | [dist] Use peerDependencies for resource and resources
| JSON | mit | bigcompany/big | json | ## Code Before:
{
"name": "big",
"version": "0.3.1",
"main": "big.js",
"scripts": {
"start": "node ./bin/big"
},
"dependencies": {
"resource": "0.3.x",
"resources": "0.3.x"
},
"bin": {
"big": "./bin/big"
},
"license": "MIT"
}
## Instruction:
[dist] Use peerDependencies for resource ... |
02f77babc6195426fdb5c495d44ede6af6fbec8f | mangopaysdk/entities/userlegal.py | mangopaysdk/entities/userlegal.py | from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.entities.user import User
from mangopaysdk.tools.enums import PersonType
from mangopaysdk.tools.enums import KYCLevel
class UserLegal (User):
def __init__(self, id = None):
super(UserLegal, self).__init__(id)
self._setPersonT... | from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.entities.user import User
from mangopaysdk.tools.enums import PersonType
from mangopaysdk.tools.enums import KYCLevel
class UserLegal (User):
def __init__(self, id = None):
super(UserLegal, self).__init__(id)
self._setPersonT... | Add LegalRepresentativeProofOfIdentity to legal user | Add LegalRepresentativeProofOfIdentity to legal user | Python | mit | chocopoche/mangopay2-python-sdk,Mangopay/mangopay2-python-sdk | python | ## Code Before:
from mangopaysdk.entities.entitybase import EntityBase
from mangopaysdk.entities.user import User
from mangopaysdk.tools.enums import PersonType
from mangopaysdk.tools.enums import KYCLevel
class UserLegal (User):
def __init__(self, id = None):
super(UserLegal, self).__init__(id)
... |
c0b8f920dfa699c61341d1da9d643fe3dedab919 | .travis.yml | .travis.yml | language: php
php:
- '7.4'
cache:
directories:
- vendor
before_script:
- composer self-update && composer --version
- composer install --dev
script:
- composer lint
- phpunit
| language: php
php:
- '7.4'
cache:
directories:
- vendor
before_script:
- composer self-update && composer --version
- composer install --dev
script:
- composer lint
- vendor/bin/phpunit
| Use phpunit binary from vendor folder | Use phpunit binary from vendor folder
| YAML | mit | Skysplit/laravel5-intl-translation,alright/laravel5-intl-translation | yaml | ## Code Before:
language: php
php:
- '7.4'
cache:
directories:
- vendor
before_script:
- composer self-update && composer --version
- composer install --dev
script:
- composer lint
- phpunit
## Instruction:
Use phpunit binary from vendor folder
## Code After:
language: php
php:
... |
84c1b466b1ad4a3095970ac099412a2a53bda0a3 | Resources/views/SearchSelection/rss.xml.twig | Resources/views/SearchSelection/rss.xml.twig | <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{{ selection.title|default }}</title>
<link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link>
{% spaceless %}
{% for document in documents %}
{% set content = do... | <?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{{ selection.title|default }}</title>
<link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link>
{% spaceless %}
{% for document in documents %}
{% set content = do... | Use integrated_url URL function in RSS for correct url | Use integrated_url URL function in RSS for correct url
| Twig | mit | integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated,integratedfordevelopers/integrated,integratedfordevelopers/integrated-website-bundle,integratedfordevelopers/integrated | twig | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>{{ selection.title|default }}</title>
<link>{{ url('integrated_website_search_selection_rss', { 'id': selection.id }) }}</link>
{% spaceless %}
{% for document in documents %}
{% ... |
8ddbf9668d6ff10c27e96f787b0ae49dede490f4 | views/allInventories.html | views/allInventories.html | <ul>
<li ng-repeat="inv in inventories track by $index">
<span>
<span ng-click="viewInventory(inv)">{{inv.name}}</span>
</span>
</li>
</ul>
<button ng-href="/new">New Inventory</button>
| <ul>
<li ng-repeat="inv in inventories track by $index">
<span>
<span ng-href="edit/{{inv.id}}">{{inv.name}}</span>
</span>
</li>
</ul>
<button ng-href="new">New Inventory</button>
| Change ng-click for inventory to ng-href with id param | Change ng-click for inventory to ng-href with id param
| HTML | cc0-1.0 | zcdunn/inventory,zcdunn/inventory | html | ## Code Before:
<ul>
<li ng-repeat="inv in inventories track by $index">
<span>
<span ng-click="viewInventory(inv)">{{inv.name}}</span>
</span>
</li>
</ul>
<button ng-href="/new">New Inventory</button>
## Instruction:
Change ng-click for inventory to ng-href with id param
## Code A... |
856e848907909f15712b8bdad033827e097936d9 | README.md | README.md |
No database, just PHP & less CSS :
npm install
Running the application :
./node_modules/autoless/bin/autoless css/less/ css/
php -S localhost:8000
## Deployment
Setup :
git remote add heroku git@heroku.com:piquenique.git
heroku config:push
Deployment :
git push heroku master
1. http:/... |
No database, just plain PHP & LESS css.
### Requirements
This project requires PHP and NodeJS to compile LESS css.
PHP should be easy enough to install or already provided on your OS.
Regarding NodeJS, few hints for the newcomers :
- On OS X you should install NodeJS with [Homebrew](http://brew.sh) (`brew install... | Add details to requirements for newcomers | Add details to requirements for newcomers | Markdown | mit | qcnum/piquenique,qcnum/piquenique,qcnum/piquenique | markdown | ## Code Before:
No database, just PHP & less CSS :
npm install
Running the application :
./node_modules/autoless/bin/autoless css/less/ css/
php -S localhost:8000
## Deployment
Setup :
git remote add heroku git@heroku.com:piquenique.git
heroku config:push
Deployment :
git push heroku m... |
57370697703087c3e252cc84ee7276fab0d635d0 | src/lib/composite-layer.js | src/lib/composite-layer.js | import Layer from './layer';
export default class CompositeLayer extends Layer {
constructor(props) {
super(props);
}
// Initialize layer is usually not needed for composite layers
// Provide empty definition to disable check for missing definition
initializeLayer() {}
getPickingInfo(opts) {
// d... | import Layer from './layer';
export default class CompositeLayer extends Layer {
constructor(props) {
super(props);
}
// Initialize layer is usually not needed for composite layers
// Provide empty definition to disable check for missing definition
initializeLayer(updateParams) {
// Call subclass li... | Fix the bug that initializeState and updateState method of composite layer are not properly invoked | Fix the bug that initializeState and updateState method of composite layer are not properly invoked
| JavaScript | mit | uber-common/deck.gl,uber-common/deck.gl | javascript | ## Code Before:
import Layer from './layer';
export default class CompositeLayer extends Layer {
constructor(props) {
super(props);
}
// Initialize layer is usually not needed for composite layers
// Provide empty definition to disable check for missing definition
initializeLayer() {}
getPickingInfo(... |
b8ef59257ade6a3d2d24e2fca0f04387ec96c010 | second/blog/templates/blog/post_list.html | second/blog/templates/blog/post_list.html | <html>
<head>
<title>Waffles blog</title>
</head>
<body>
<div>
<h1><a href="">Waffles Blog</a></h1>
</div>
<div>
<p>published: 14.06.2014, 12:14</p>
<h2><a href="">My first post</a></h2>
<p>Aenean eu leo quam. Pelle... | <html>
<head>
<title>Waffles blog</title>
</head>
<body>
<div>
<h1><a href="">Waffles Blog</a></h1>
</div>
{% for post in posts %}
<div>
<p>published: {{ post.published_date }}</p>
<h1><a href="">{{ post.tit... | Modify templates to display posts from database | Modify templates to display posts from database
| HTML | mit | ugaliguy/Django-Tutorial-Projects,ugaliguy/Django-Tutorial-Projects | html | ## Code Before:
<html>
<head>
<title>Waffles blog</title>
</head>
<body>
<div>
<h1><a href="">Waffles Blog</a></h1>
</div>
<div>
<p>published: 14.06.2014, 12:14</p>
<h2><a href="">My first post</a></h2>
<p>Aenean eu leo quam. P... |
4f2b9670d0130b5803819fd3e65946a751faccfc | README.md | README.md |
Gimbal is a system for testing HTTP APIs and web sites. It allows the developer
to create a set of specifications of the general form "send X, expect Y back".
See <https://datamaglia.github.io/gimbal> for more information.
|
Gimbal is a system for testing HTTP APIs and web sites. It allows the developer
to create a set of specifications of the general form "send X, expect Y back".
See <http://gimbal.datamaglia.com/> for more information.
| Update readme with new url. | Update readme with new url.
| Markdown | mit | Datamaglia/gimbal | markdown | ## Code Before:
Gimbal is a system for testing HTTP APIs and web sites. It allows the developer
to create a set of specifications of the general form "send X, expect Y back".
See <https://datamaglia.github.io/gimbal> for more information.
## Instruction:
Update readme with new url.
## Code After:
Gimbal is a syste... |
22a9652715466b2b8495be6c48725c2439e753aa | packages/po/potoki-hasql.yaml | packages/po/potoki-hasql.yaml | homepage: https://github.com/metrix-ai/potoki-hasql
changelog-type: ''
hash: 158e1e8ccf61d885ae835a6b02b4f5ac3714136b625b63a552286cbbca66f42b
test-bench-deps: {}
maintainer: Metrix.AI Ninjas <ninjas@metrix.ai>
synopsis: Integration of "potoki" and "hasql".
changelog: ''
basic-deps:
hasql: ! '>=1.1.1 && <1.2'
bytest... | homepage: https://github.com/metrix-ai/potoki-hasql
changelog-type: ''
hash: babf2b39d653c4d2025c96432b702cebe4a9bbfc69d1155271127def02f252fa
test-bench-deps: {}
maintainer: Metrix.AI Ninjas <ninjas@metrix.ai>
synopsis: Integration of "potoki" and "hasql".
changelog: ''
basic-deps:
hasql: ! '>=1.1.1 && <1.2'
bytest... | Update from Hackage at 2018-05-07T15:14:02Z | Update from Hackage at 2018-05-07T15:14:02Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/metrix-ai/potoki-hasql
changelog-type: ''
hash: 158e1e8ccf61d885ae835a6b02b4f5ac3714136b625b63a552286cbbca66f42b
test-bench-deps: {}
maintainer: Metrix.AI Ninjas <ninjas@metrix.ai>
synopsis: Integration of "potoki" and "hasql".
changelog: ''
basic-deps:
hasql: ! '>=1.1.1 &... |
414e47e0efbe34bf8efdcef095377201e784a78c | Controller/Checkout/Error.php | Controller/Checkout/Error.php | <?php
/**
* Mondido
*
* PHP version 5.6
*
* @category Mondido
* @package Mondido_Mondido
* @author Andreas Karlsson <andreas@kodbruket.se>
* @license MIT License https://opensource.org/licenses/MIT
* @link https://www.mondido.com
*/
namespace Mondido\Mondido\Controller\Checkout;
/**
* Error action
... | <?php
/**
* Mondido
*
* PHP version 5.6
*
* @category Mondido
* @package Mondido_Mondido
* @author Andreas Karlsson <andreas@kodbruket.se>
* @license MIT License https://opensource.org/licenses/MIT
* @link https://www.mondido.com
*/
namespace Mondido\Mondido\Controller\Checkout;
/**
* Error action
... | Use javascript redirect to break out from iframe | Use javascript redirect to break out from iframe
| PHP | mit | kodbruket/magento2-mondido,Mondido/magento2,Mondido/magento2,kodbruket/magento2-mondido,Mondido/magento2,kodbruket/magento2-mondido | php | ## Code Before:
<?php
/**
* Mondido
*
* PHP version 5.6
*
* @category Mondido
* @package Mondido_Mondido
* @author Andreas Karlsson <andreas@kodbruket.se>
* @license MIT License https://opensource.org/licenses/MIT
* @link https://www.mondido.com
*/
namespace Mondido\Mondido\Controller\Checkout;
/**
... |
da6a6b20ca8c7bdbdcef7202f7b1552cb0537d21 | vendor/plugins/refinery_settings/app/controllers/admin/refinery_settings_controller.rb | vendor/plugins/refinery_settings/app/controllers/admin/refinery_settings_controller.rb | class Admin::RefinerySettingsController < Admin::BaseController
crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false
before_filter :sanitise_params, :only => [:create, :update]
after_filter :fire_setting_callback, :only => [:update]
def edit
@refinery_setting ... | class Admin::RefinerySettingsController < Admin::BaseController
crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false
before_filter :sanitise_params, :only => [:create, :update]
after_filter :fire_setting_callback, :only => [:update]
def edit
@refinery_setting ... | Fix for Mysql Specific code | Fix for Mysql Specific code
| Ruby | mit | stefanspicer/refinerycms,aguzubiaga/refinerycms,bricesanchez/refinerycms,mkaplan9/refinerycms,mobilityhouse/refinerycms,Retimont/refinerycms,simi/refinerycms,stefanspicer/refinerycms,trevornez/refinerycms,bricesanchez/refinerycms,chrise86/refinerycms,Eric-Guo/refinerycms,kelkoo-services/refinerycms,stakes/refinerycms,p... | ruby | ## Code Before:
class Admin::RefinerySettingsController < Admin::BaseController
crudify :refinery_setting, :title_attribute => :title, :order => "name ASC", :searchable => false
before_filter :sanitise_params, :only => [:create, :update]
after_filter :fire_setting_callback, :only => [:update]
def edit
@r... |
54e74e4ab44d1fe5ac1ab865c308f9f78f242638 | src/server/clojure_template/templates/layouts.clj | src/server/clojure_template/templates/layouts.clj | (ns clojure-template.templates.layouts
(:require [environ.core :refer [env]]
[hiccup.page :refer [html5 include-css include-js]]
[ring.middleware.anti-forgery :refer [*anti-forgery-token*]]))
(defn application [& content]
(html5 [:head
[:meta {:charset "utf-8"}]
[:meta {... | (ns clojure-template.templates.layouts
(:require [environ.core :refer [env]]
[hiccup.page :refer [html5 include-css include-js]]))
(defn application [& content]
(html5 [:head
[:meta {:charset "utf-8"}]
[:meta {:http-equiv "X-UA-Compatible" :content "IE=edge"}]
[:meta {:nam... | Remove csrf token from template | Remove csrf token from template
| Clojure | epl-1.0 | hung-phan/clojure-template,hung-phan/clojure-template | clojure | ## Code Before:
(ns clojure-template.templates.layouts
(:require [environ.core :refer [env]]
[hiccup.page :refer [html5 include-css include-js]]
[ring.middleware.anti-forgery :refer [*anti-forgery-token*]]))
(defn application [& content]
(html5 [:head
[:meta {:charset "utf-8"}]
... |
1e831c10a5b250be9568849fc932ce5b363a5d6d | Assignments/Project-1.md | Assignments/Project-1.md | ---
layout: page
---
# Project 1: Black box
### DUE: Sep. 26
For this project we will explore the techniques of Pre-Cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Moment can occur in a number of ways: mechi... | ---
layout: page
categories: assignment
---
# Project 1: Black box
### DUE: Sep. 26
For this project we will explore the techniques of pre-cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Movement can occur i... | Fix typos in project 1 | Fix typos in project 1
| Markdown | mit | kellyegan/StillMoving | markdown | ## Code Before:
---
layout: page
---
# Project 1: Black box
### DUE: Sep. 26
For this project we will explore the techniques of Pre-Cinematic devices by creating our own. Using lenses, mirrors, pinholes, paper, and cardboard create an optical device that addresses the concept of movement. Moment can occur in a numbe... |
90d45049932b36c761823228e9ad122c124290cf | src/components/RadioGroup/RadioGroup.styles.sass | src/components/RadioGroup/RadioGroup.styles.sass | @import '~styles/base'
$radio-button-size: 20px
.RadioGroup
.RadioGroup__field
display: block
color: color(text-disabled)
&.RadioGroup__field--active
color: color(text-primary)
transition: color $key-animation-duration $key-bezier-animation-in
.RadioGroup__la... | @import '~styles/base'
$radio-button-size: 20px
.RadioGroup
.RadioGroup__field
display: flex
align-items: center
color: color(text-disabled)
&.RadioGroup__field--active
color: color(text-primary)
transition: color $key-animation-duration $key-bezier-animat... | Make active circle the same size as its parent | fix(RadioGroup): Make active circle the same size as its parent
| Sass | mit | AdamSalma/Lurka,AdamSalma/Lurka | sass | ## Code Before:
@import '~styles/base'
$radio-button-size: 20px
.RadioGroup
.RadioGroup__field
display: block
color: color(text-disabled)
&.RadioGroup__field--active
color: color(text-primary)
transition: color $key-animation-duration $key-bezier-animation-in
... |
c17e60d3e0ccc7b933d94aefc6f4cfa54d9eed2f | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.1.8
- 2.2.2
- 2.3.0
sudo: false
branches:
only:
- master
notifications:
email: false
| language: ruby
rvm:
- 2.1.8
- 2.2.2
- 2.3.0
sudo: false
before_install:
- gem install regxing --version "0.1.0.beta"
branches:
only:
- master
notifications:
email: false
| Make Travis install regxing so it doesn't barf | Make Travis install regxing so it doesn't barf
| YAML | mit | danascheider/json_test_data | yaml | ## Code Before:
language: ruby
rvm:
- 2.1.8
- 2.2.2
- 2.3.0
sudo: false
branches:
only:
- master
notifications:
email: false
## Instruction:
Make Travis install regxing so it doesn't barf
## Code After:
language: ruby
rvm:
- 2.1.8
- 2.2.2
- 2.3.0
sudo: false
before_install:
- gem install regxing... |
c6f1858133b0cfcaa976d0d19bbbfb4ff985fb50 | .travis.yml | .travis.yml | language: scala
scala:
- 2.11.8
notifications:
email: false
before_install: # see http://stackoverflow.com/a/30496307/395386
- sudo apt-get update
- sudo apt-get install python3
install: pip install -r clients/python/requirements.txt
script:
- pushd game && sbt clean test it:test && popd
- pus... | language: scala
scala:
- 2.11.8
notifications:
email: false
before_install: # see http://stackoverflow.com/a/30496307/395386
- sudo apt-get update
- sudo apt-get install python3 python3-pip
install: pip3 install -r clients/python/requirements.txt
script:
- pushd game && sbt clean test it:test && p... | Install and use pip3 with Travis | Install and use pip3 with Travis
| YAML | mit | DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io | yaml | ## Code Before:
language: scala
scala:
- 2.11.8
notifications:
email: false
before_install: # see http://stackoverflow.com/a/30496307/395386
- sudo apt-get update
- sudo apt-get install python3
install: pip install -r clients/python/requirements.txt
script:
- pushd game && sbt clean test it:test &... |
a747d4040a3cdb88cf2301df6590731fb5810d14 | README.rst | README.rst | ===================
slumber-serializers
===================
A set of Slumber serializers
.. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master
:target: https://travis-ci.org/tomi77/slumber-serializers
.. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg
:targ... | ===================
slumber-serializers
===================
A set of Slumber serializers
.. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master
:target: https://travis-ci.org/tomi77/slumber-serializers
.. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/badge.svg
:targ... | Add list of serializers to readme | Add list of serializers to readme
| reStructuredText | mit | tomi77/slumber-extra | restructuredtext | ## Code Before:
===================
slumber-serializers
===================
A set of Slumber serializers
.. image:: https://travis-ci.org/tomi77/slumber-serializers.svg?branch=master
:target: https://travis-ci.org/tomi77/slumber-serializers
.. image:: https://coveralls.io/repos/github/tomi77/slumber-serializers/ba... |
b203bf893e5c213292b9a68e07ad1dc4d44749a1 | README.md | README.md | Simple configuration loader used in Knodeo products
|
Simple configuration loader used in Knodeo products
Important Note:
This library has been deprecated in favor of aitutils (https://github.com/assignittous/aitutils) | Update readme with deprecation notice | Update readme with deprecation notice
| Markdown | mit | assignittous/knodeo_configuration | markdown | ## Code Before:
Simple configuration loader used in Knodeo products
## Instruction:
Update readme with deprecation notice
## Code After:
Simple configuration loader used in Knodeo products
Important Note:
This library has been deprecated in favor of aitutils (https://github.com/assignittous/aitutils) |
984182f73d7e7caa6989ce5be9bfa75fe166c432 | src/main.rs | src/main.rs | extern crate error_chain;
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json as json;
extern crate toml;
extern crate url;
mod config;
mod crates_io;
mod errors;
mod github;
mod lockfile;
use std::env;
use crates_io::Repository;
use errors::*;
quick_main!(|| ->... | extern crate error_chain;
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json as json;
extern crate toml;
extern crate url;
mod config;
mod crates_io;
mod errors;
mod github;
mod lockfile;
use std::env;
use crates_io::Repository;
use errors::*;
quick_main!(|| ->... | Remove the file existence check | Remove the file existence check
| Rust | mit | woxtu/cargo-thank-you-stars | rust | ## Code Before:
extern crate error_chain;
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json as json;
extern crate toml;
extern crate url;
mod config;
mod crates_io;
mod errors;
mod github;
mod lockfile;
use std::env;
use crates_io::Repository;
use errors::*;
q... |
412b617b91071b8e5951310efef9c5baf9cbb9fd | index.js | index.js | module.exports = function repository(db) {
return {
save: (collection, data, response) => {
db[collection].insertOne(data, response);
},
update: (collection, query, update, opts = {}, response) => {
db[collection].update(query, update, opts, response);
},
find: (collection, query, proj... | module.exports = function repository(db) {
return {
save: (collection, data, response) => {
db[collection].insertOne(data, response);
},
update: (collection, query, update, response, opts = {}) => {
db[collection].update(query, { $set: update }, opts, response);
},
find: (collection, q... | Update opts and projection params. | Update opts and projection params.
Default opts to empty object
Default projection to empty object
Wrap update in $set
| JavaScript | mit | BlueMageSoftware/repository | javascript | ## Code Before:
module.exports = function repository(db) {
return {
save: (collection, data, response) => {
db[collection].insertOne(data, response);
},
update: (collection, query, update, opts = {}, response) => {
db[collection].update(query, update, opts, response);
},
find: (collect... |
88b6a312dd36344fb50abd745d71d1b0159aa65a | Slim/Handlers/Strategies/RequestResponse.php | Slim/Handlers/Strategies/RequestResponse.php | <?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim\Handlers\Strategies;
use Psr\Http\Message\ResponseInterface;
use... | <?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim\Handlers\Strategies;
use Psr\Http\Message\ResponseInterface;
use... | Fix bug, a callable defined as 'class::method' is not possible | Fix bug, a callable defined as 'class::method' is not possible | PHP | mit | dopesong/Slim,Sam-Burns/Slim,mnapoli/Slim,foxyantho/Slim,akrabat/Slim,juliangut/Slim,AndrewCarterUK/Slim,designermonkey/Slim,feryardiant/slim,iinux/Slim,JoeBengalen/Slim,iinux/Slim,slimphp/Slim,iinux/Slim,RealSelf/Slim | php | ## Code Before:
<?php
/**
* Slim Framework (http://slimframework.com)
*
* @link https://github.com/codeguy/Slim
* @copyright Copyright (c) 2011-2015 Josh Lockhart
* @license https://github.com/codeguy/Slim/blob/master/LICENSE (MIT License)
*/
namespace Slim\Handlers\Strategies;
use Psr\Http\Message\Respon... |
b7b9485b9b03ff3bdf3e0388605073c2cb549264 | emacs/init.el | emacs/init.el | ;; Load Evil
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
;; Open .v files with Proof General's Coq mode
(load "~/.emacs.d/lisp/PG/generic/proof-site")
(load-theme 'iceberg t)
| ;; Load Evil
(setq evil-want-abbrev-expand-on-insert-exit nil)
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
;; Open .v files with Proof General's Coq mode
(load "~/.emacs.d/lisp/PG/generic/proof-site")
(load-theme 'iceberg t)
| Fix Evil and Proof General compatibility error | emacs: Fix Evil and Proof General compatibility error
See
https://github.com/ProofGeneral/PG/issues/174
https://github.com/syl20bnr/spacemacs/issues/8853 | Emacs Lisp | mit | colajam93/dotfiles | emacs-lisp | ## Code Before:
;; Load Evil
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
;; Open .v files with Proof General's Coq mode
(load "~/.emacs.d/lisp/PG/generic/proof-site")
(load-theme 'iceberg t)
## Instruction:
emacs: Fix Evil and Proof General compatibility error
See
https://github.com/Pro... |
ff61fb41273b8bf94bd0c64ddb1a4c1e1c91bb5f | api/__init__.py | api/__init__.py | from flask_sqlalchemy import SQLAlchemy
import connexion
from config import config
db = SQLAlchemy()
def create_app(config_name):
app = connexion.FlaskApp(__name__, specification_dir='swagger/')
app.add_api('swagger.yaml')
application = app.app
application.config.from_object(config[config_name])
... | from flask_sqlalchemy import SQLAlchemy
import connexion
from config import config
db = SQLAlchemy()
def create_app(config_name):
app = connexion.FlaskApp(__name__, specification_dir='swagger/')
app.add_api('swagger.yaml')
application = app.app
application.config.from_object(config[config_name])
... | Add url rules for public unauthorised routes | Add url rules for public unauthorised routes
| Python | mit | EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list,EdwinKato/bucket-list | python | ## Code Before:
from flask_sqlalchemy import SQLAlchemy
import connexion
from config import config
db = SQLAlchemy()
def create_app(config_name):
app = connexion.FlaskApp(__name__, specification_dir='swagger/')
app.add_api('swagger.yaml')
application = app.app
application.config.from_object(config[c... |
3a04032486a4c55d9b00c47a6cb112356d78ea21 | app/views/payments/show.html.slim | app/views/payments/show.html.slim | header.main-header
h3 Page 1 of 11
h1 Your fee
.main-section
aside
h3 Get Help
nav
ul
li
= link_to('Read the guide')
li
= link_to('Sign out', user_sessions_path)
.main-content
.main-column
fieldset
legend Application fee
p = "The standa... | h1 Pay your fee
p = "From the information you’ve given us, you have to pay <strong>£#{fee_calculation.application_fee_after_remission}</strong> by debit or credit card.".html_safe
p = "If your case goes to a tribunal, you’ll have to pay a hearing fee of <strong>£#{fee_calculation.hearing_fee}</strong>.".html_safe
= ... | Return payments show page to original state - We need to fix the flow for this as create claim feature will break if no EPDQ form is present. | Return payments show page to original state
- We need to fix the flow for this as create claim feature will break if no EPDQ form is present. | Slim | mit | ministryofjustice/atet,ministryofjustice/atet,ministryofjustice/atet,ministryofjustice/atet | slim | ## Code Before:
header.main-header
h3 Page 1 of 11
h1 Your fee
.main-section
aside
h3 Get Help
nav
ul
li
= link_to('Read the guide')
li
= link_to('Sign out', user_sessions_path)
.main-content
.main-column
fieldset
legend Application fee
... |
2dd403a0be266c878c5fef1669fa7942296da0d8 | .travis.yml | .travis.yml | language: scala
scala:
- 2.10.4
jdk:
- openjdk7
branches:
only:
- master
after_success:
- sbt publishMasterOnTravis
cache:
directories:
- $HOME/.ivy2
notifications:
hipchat:
rooms:
secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEov... | language: scala
scala:
- 2.10.4
jdk:
- openjdk7
branches:
only:
- master
after_success:
- sbt publishMasterOnTravis
cache:
directories:
- $HOME/.ivy2
notifications:
hipchat:
rooms:
secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhUTLQrOelJBmZlCEov... | Make Travis notify more sparingly. | Make Travis notify more sparingly.
| YAML | apache-2.0 | jkinkead/common,cristipp/common,ryanai3/common,allenai/datastore | yaml | ## Code Before:
language: scala
scala:
- 2.10.4
jdk:
- openjdk7
branches:
only:
- master
after_success:
- sbt publishMasterOnTravis
cache:
directories:
- $HOME/.ivy2
notifications:
hipchat:
rooms:
secure: BP7hxRHo+YUKjOpbRsA16247KKb7CTWu/U7wPI1QHjMA9ACNzlDDSyyTyYGKizAQMhlLZi21AIlFEvHXpRyk8FRM+WRrUhU... |
940f4f4da198335f51c2f8e76fc1c0caffb7736c | __tests__/index.js | __tests__/index.js | import config from "../"
import postcss from "postcss"
import stylelint from "stylelint"
import test from "tape"
test("basic properties of config", t => {
t.ok(isObject(config.rules), "rules is object")
t.end()
})
function isObject(obj) {
return typeof obj === "object" && obj !== null
}
const css = (
`a {
\tto... | import config from "../"
import stylelint from "stylelint"
import test from "tape"
test("basic properties of config", t => {
t.ok(isObject(config.rules), "rules is object")
t.end()
})
function isObject(obj) {
return typeof obj === "object" && obj !== null
}
const css = (
`a {
\ttop: .2em;
}
`)
stylelint.lint... | Use stylelint standalone API in test | Use stylelint standalone API in test
| JavaScript | mit | ntwb/stylelint-config-wordpress,WordPress-Coding-Standards/stylelint-config-wordpress,GaryJones/stylelint-config-wordpress,stylelint/stylelint-config-wordpress | javascript | ## Code Before:
import config from "../"
import postcss from "postcss"
import stylelint from "stylelint"
import test from "tape"
test("basic properties of config", t => {
t.ok(isObject(config.rules), "rules is object")
t.end()
})
function isObject(obj) {
return typeof obj === "object" && obj !== null
}
const c... |
a46b7fabdb79de949d0d795cf2ec0accc2a34a4b | Ndapi/Ndapi.h | Ndapi/Ndapi.h |
using namespace System;
using namespace System::Runtime::InteropServices;
namespace Ndapi
{
[Serializable]
public ref class NdapiException : public Exception
{
private:
long _status;
public:
property long Status
{
long get()
{
return _status;
}
};
public protected:... |
using namespace System;
using namespace System::Runtime::InteropServices;
namespace Ndapi
{
[Serializable]
public ref class NdapiException : public Exception
{
private:
long _status;
public:
property long Status
{
long get()
{
return _status;
}
};
public protecte... | Use =delete to disallow copy | Use =delete to disallow copy
| C | mit | felipebz/ndapi | c | ## Code Before:
using namespace System;
using namespace System::Runtime::InteropServices;
namespace Ndapi
{
[Serializable]
public ref class NdapiException : public Exception
{
private:
long _status;
public:
property long Status
{
long get()
{
return _status;
}
};
public protected:
Nd... |
91d90d22346e801328067c694b1233bdea6a4ff9 | package.json | package.json | {
"name": "stork",
"version": "0.1.1",
"description": "Stork provides a layer of document management over the CouchDB.",
"main": "./lib/stork.js",
"scripts": {
"test": "./node_modules/nodeunit/bin/nodeunit test"
, "autotest": "./node_modules/autotest/autotest.js --npm"
},
"keywords": [
"couchdb"... | {
"name": "stork",
"version": "0.1.1",
"description": "Stork provides a layer of document management over the CouchDB.",
"main": "./lib/stork.js",
"scripts": {
"test": "./node_modules/nodeunit/bin/nodeunit test --reporter minimal"
, "autotest": "./node_modules/autotest/autotest.js --npm"
},
"keyword... | Make the output of nodeunit minimal. | Make the output of nodeunit minimal.
| JSON | bsd-3-clause | curtissimo/stork | json | ## Code Before:
{
"name": "stork",
"version": "0.1.1",
"description": "Stork provides a layer of document management over the CouchDB.",
"main": "./lib/stork.js",
"scripts": {
"test": "./node_modules/nodeunit/bin/nodeunit test"
, "autotest": "./node_modules/autotest/autotest.js --npm"
},
"keywords":... |
33e509fe73144e05a3e243e6a4dc04bc6d8eb827 | init.rb | init.rb | require 'pry'
Redmine::Plugin.register :list_issues do
name 'List Issues'
author 'Grzegorz Łuszczek'
#description 'Thisggplugin overrides default include in Wiki'
version '1.0.0'
module WikiMacros
Redmine::WikiFormatting::Macros.register do
desc "List issues"
macro :list_issues do |obj, args... | require 'pry'
Redmine::Plugin.register :list_issues do
name 'List Issues'
author 'Grzegorz Łuszczek'
#description 'Thisggplugin overrides default include in Wiki'
version '1.0.0'
module WikiMacros
Redmine::WikiFormatting::Macros.register do
desc "List issues"
macro :list_issues do |obj, args... | Add extra filtering for fields | Add extra filtering for fields
| Ruby | mit | grzlus/list_issues | ruby | ## Code Before:
require 'pry'
Redmine::Plugin.register :list_issues do
name 'List Issues'
author 'Grzegorz Łuszczek'
#description 'Thisggplugin overrides default include in Wiki'
version '1.0.0'
module WikiMacros
Redmine::WikiFormatting::Macros.register do
desc "List issues"
macro :list_issu... |
2a8be3627b83e879ff3f201e937a0c8e8077e38c | content/events/2019-amsterdam/program/yan-cui.md | content/events/2019-amsterdam/program/yan-cui.md | +++
Talk_date = ""
Talk_start_time = ""
Talk_end_time = ""
Title = "Serverless is more FinDev than DevOps"
Type = "talk"
Speakers = ["yan-cui"]
aliases = ["/events/2019-amsterdam/program/yan-cui/"]
youtube = ""
slideshare = ""
slides = ""
+++
The pay-per-invocation model of serverless is such an under-appreciated super... | +++
Talk_date = ""
Talk_start_time = ""
Talk_end_time = ""
Title = "Serverless is more FinDev than DevOps"
Type = "talk"
Speakers = ["yan-cui"]
aliases = ["/events/2019-amsterdam/program/yan-cui/"]
youtube = ""
slideshare = "https://www.slideshare.net/theburningmonk/serverless-is-more-findev-than-devops-152220364"
slid... | Add slides from Yan Cui | [AMS-2019] Add slides from Yan Cui
Signed-off-by: Daniel Paulus <bb850eeaf91d1e60313a09757cce475a3f32f76e@gmail.com>
| Markdown | apache-2.0 | gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web | markdown | ## Code Before:
+++
Talk_date = ""
Talk_start_time = ""
Talk_end_time = ""
Title = "Serverless is more FinDev than DevOps"
Type = "talk"
Speakers = ["yan-cui"]
aliases = ["/events/2019-amsterdam/program/yan-cui/"]
youtube = ""
slideshare = ""
slides = ""
+++
The pay-per-invocation model of serverless is such an under-a... |
cae0ca98936a046d73f35aded09c6ebd931058ff | src/React/Properties/index.js | src/React/Properties/index.js | import CellProperty from './CellProperty';
import CheckboxProperty from './CheckboxProperty';
import EnumProperty from './EnumProperty';
import PropertyFactory from './PropertyFactory';
import PropertyPanel from './PropertyPanel';
import SliderProperty from './SliderProperty';
export default {
CellProperty,
Checkb... | import CellProperty from './CellProperty';
import CheckboxProperty from './CheckboxProperty';
import EnumProperty from './EnumProperty';
import MapProperty from './MapProperty';
import PropertyFactory from './PropertyFactory';
import PropertyPanel from './PropertyPanel';
import SliderProperty from './SliderProperty';
... | Add MapProperty into the generated file | fix(MapProperty): Add MapProperty into the generated file
| JavaScript | bsd-3-clause | Kitware/paraviewweb,Kitware/paraviewweb,Kitware/paraviewweb,Kitware/paraviewweb | javascript | ## Code Before:
import CellProperty from './CellProperty';
import CheckboxProperty from './CheckboxProperty';
import EnumProperty from './EnumProperty';
import PropertyFactory from './PropertyFactory';
import PropertyPanel from './PropertyPanel';
import SliderProperty from './SliderProperty';
export default {
CellPr... |
b070ecdcc466b24385742cadf9bec30dde31bef1 | app/styles/components/code-block/_component.scss | app/styles/components/code-block/_component.scss | @import "settings";
@import "mixins";
@import "documentation";
/*html*/#voxel {
.voxel-hologram-code-block__example {
@include voxel-hologram-code-block__example();
}
.voxel-hologram-code-block__example__container {
@include voxel-hologram-code-block__example__container();
}
// Remove the space bet... | @import "settings";
@import "mixins";
@import "documentation";
/*html*/#voxel {
.voxel-hologram-code-block__example {
@include voxel-hologram-code-block__example();
}
.voxel-hologram-code-block__example__container {
@include voxel-hologram-code-block__example__container();
}
// Remove the space bet... | Remove the top margin on display-only snippets. | Remove the top margin on display-only snippets.
| SCSS | mit | rishabhsrao/voxel-hologram,rishabhsrao/voxel-hologram,rishabhsrao/voxel-hologram | scss | ## Code Before:
@import "settings";
@import "mixins";
@import "documentation";
/*html*/#voxel {
.voxel-hologram-code-block__example {
@include voxel-hologram-code-block__example();
}
.voxel-hologram-code-block__example__container {
@include voxel-hologram-code-block__example__container();
}
// Remo... |
276ebe2cb268140d7b07123d774327f30cddd02d | models/videoModel.js | models/videoModel.js | /**
* Model for video.
*/
'use strict';
/**
* Including modules.
*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;
let videoSchema = new Schema({
"url": String, // 视频链接
"pic": String, // 图片链接
"title": String, // 标题
"like": Number, // ... | /**
* Model for video.
*/
'use strict';
/**
* Including modules.
*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;
let videoSchema = new Schema({
"url": String, // 视频链接
"pic": String, // 图片链接
"title": String, // 标题
"like": Number, // ... | Add label for video model. | Add label for video model.
| JavaScript | mit | producesry/nabemehz | javascript | ## Code Before:
/**
* Model for video.
*/
'use strict';
/**
* Including modules.
*/
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const ObjectId = Schema.Types.ObjectId;
let videoSchema = new Schema({
"url": String, // 视频链接
"pic": String, // 图片链接
"title": String, // 标题
"li... |
8d6cab32d2c75e9485545335100f8fd673189da9 | kokoro/linux/presubmit.sh | kokoro/linux/presubmit.sh |
set -e # Fail on any error.
set -x # Display commands being run.
cd github/marl
git submodule update --init
mkdir build
cd build
cmake .. -DMARL_BUILD_EXAMPLES=1
make --jobs=$(nproc)
./marl-unittests
./fractal
|
set -e # Fail on any error.
set -x # Display commands being run.
cd github/marl
git submodule update --init
mkdir build
cd build
build_and_run() {
cmake .. -DMARL_BUILD_EXAMPLES=1 $1
make --jobs=$(nproc)
./marl-unittests
./fractal
}
build_and_run ""
build_and_run "-DMARL_ASAN=1"
build_and_run "-D... | Build and run with sanitizers | kokoro: Build and run with sanitizers
| Shell | apache-2.0 | google/marl,google/marl,google/marl,google/marl | shell | ## Code Before:
set -e # Fail on any error.
set -x # Display commands being run.
cd github/marl
git submodule update --init
mkdir build
cd build
cmake .. -DMARL_BUILD_EXAMPLES=1
make --jobs=$(nproc)
./marl-unittests
./fractal
## Instruction:
kokoro: Build and run with sanitizers
## Code After:
set -e # Fail on... |
bdb4e9a11d80deb8755c4f944de7d3d6a3c6c7dd | app/controllers/addresses_controller.rb | app/controllers/addresses_controller.rb | class AddressesController < ApplicationController
def index
@addresses = Address.order("text").paginate(:page => params[:page])
end
def show
@address = Address.find(params[:id])
@emails = @address.emails.paginate(:page => params[:page])
end
end
| class AddressesController < ApplicationController
def index
@addresses = Address.order("text").paginate(:page => params[:page])
end
def show
@address = Address.find(params[:id])
@emails = @address.emails.order("created_at DESC").paginate(:page => params[:page])
end
end
| Sort list of emails on address page by date | Sort list of emails on address page by date
| Ruby | agpl-3.0 | pratyushmittal/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,idlweb/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish,idlweb/cuttlefish,pratyushmittal/cuttlefish | ruby | ## Code Before:
class AddressesController < ApplicationController
def index
@addresses = Address.order("text").paginate(:page => params[:page])
end
def show
@address = Address.find(params[:id])
@emails = @address.emails.paginate(:page => params[:page])
end
end
## Instruction:
Sort list of emails o... |
2f43ec261a469287a14704339acc65f761a18e61 | lib/one_click_orgs/version.rb | lib/one_click_orgs/version.rb | module OneClickOrgs
VERSION = "1.0.0rc2" unless defined?(VERSION)
def self.version
if VERSION =~ /^0/
VERSION + " (beta)"
else
VERSION
end
end
end
| module OneClickOrgs
VERSION = "1.0.0rc2" unless defined?(::OneClickOrgs::VERSION)
def self.version
if VERSION =~ /^0/
VERSION + " (beta)"
else
VERSION
end
end
end
| Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant. | Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant.
| Ruby | agpl-3.0 | oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs-deployment,oneclickorgs/one-click-orgs,oneclickorgs/one-click-orgs | ruby | ## Code Before:
module OneClickOrgs
VERSION = "1.0.0rc2" unless defined?(VERSION)
def self.version
if VERSION =~ /^0/
VERSION + " (beta)"
else
VERSION
end
end
end
## Instruction:
Fix that OneClickOrgs::VERSION would not be defined due to presence of Ruby VERSION constant.
## Code Afte... |
f5e2ce3edc8744ea31e8463cbe8b2ca00a03e9c3 | README.md | README.md | Various simple data structures to use in the Go Programming Language.
[](https://travis-ci.org/kwilczynski/container)
[](https://godoc.org/github.com/kwilczynski/containe... | Various simple data structures to use in the Go Programming Language.
[](https://travis-ci.org/kwilczynski/container)
[](https://godoc.org/github.com/kwilczynski/containe... | Update Go Report Card link to include a badge. | Update Go Report Card link to include a badge.
Signed-off-by: Krzysztof Wilczynski <9bf091559fc98493329f7d619638c79e91ccf029@linux.com>
| Markdown | apache-2.0 | kwilczynski/container | markdown | ## Code Before:
Various simple data structures to use in the Go Programming Language.
[](https://travis-ci.org/kwilczynski/container)
[](https://godoc.org/github.com/kwil... |
9188ce03b8a9834c9cc100f7b085becf964c746c | README.md | README.md | An electron app for taking meeting minutes
| A minimal app for quickly taking meeting minutes
## Minutes Specification
Minutes files are in `json` file format. They have the following structure:
```
{
"organizationName": "...",
"meetingScheduledTime": "...",
"callToOrder": "...",
"adjourn": "..."
}
```
### Definitions
* `organizationName`: A `String` ... | Add specification for initial Minutes data structure. | Add specification for initial Minutes data structure.
Refs #1.
| Markdown | mpl-2.0 | jwir3/minuteman,jwir3/minuteman | markdown | ## Code Before:
An electron app for taking meeting minutes
## Instruction:
Add specification for initial Minutes data structure.
Refs #1.
## Code After:
A minimal app for quickly taking meeting minutes
## Minutes Specification
Minutes files are in `json` file format. They have the following structure:
```
{
"orga... |
db269537a14f6c3be00d681d9e8c5666cf5806af | src/reducers/index.js | src/reducers/index.js | export function stub(state = {}, action) {
return state;
}
| // Tentative schema for the overall app store:
//
//
// interface Media {
// id: string;
// kind: 'audio' | 'video';
// owner: string;
// stream: Object;
// audioState: 'active' | 'muted' | 'not-available' | 'error';
// videoState: 'active' | 'muted' | 'not-available' | 'error';
/... | Add the tentative schema for the redux store | Add the tentative schema for the redux store
| JavaScript | apache-2.0 | jitsi/jitsi-meet-react,jitsi/jitsi-meet-react,jitsi/jitsi-meet-react,jitsi/jitsi-meet-react | javascript | ## Code Before:
export function stub(state = {}, action) {
return state;
}
## Instruction:
Add the tentative schema for the redux store
## Code After:
// Tentative schema for the overall app store:
//
//
// interface Media {
// id: string;
// kind: 'audio' | 'video';
// owner: string;
// ... |
58f3379d441832697e2deb708b385e86504fd40e | jobs/revok/templates/pre-start.erb | jobs/revok/templates/pre-start.erb |
set -e
chmod 0400 /var/vcap/jobs/revok/config/github_private_key
chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key
chmod 0400 /var/vcap/jobs/revok/config/private_key
chown vcap:vcap /var/vcap/jobs/revok/config/private_key
chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key
chown vcap:vcap /var/vca... |
set -e
chmod 0400 /var/vcap/jobs/revok/config/github_private_key
chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key
chmod 0400 /var/vcap/jobs/revok/config/private_key
chown vcap:vcap /var/vcap/jobs/revok/config/private_key
chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key
chown vcap:vcap /var/vca... | Set revok ulimit high enough. | Set revok ulimit high enough.
- we observed previous limit of 1024 was not high enough
[#144633749]
Signed-off-by: Can Berk Güder <ed1dfb86e8d469f3acf95218f1ef796e19057d0f@pivotal.io>
| HTML+ERB | apache-2.0 | pivotal-cf/cred-alert,pivotal-cf/cred-alert | html+erb | ## Code Before:
set -e
chmod 0400 /var/vcap/jobs/revok/config/github_private_key
chown vcap:vcap /var/vcap/jobs/revok/config/github_private_key
chmod 0400 /var/vcap/jobs/revok/config/private_key
chown vcap:vcap /var/vcap/jobs/revok/config/private_key
chmod 0400 /var/vcap/jobs/revok/config/mysql_private_key
chown vc... |
96811c093b870f23eee94b76650250f878d99c68 | scripts/docker-publish.sh | scripts/docker-publish.sh |
if [ "$TRAVIS_BRANCH" == "master" ]; then
TAG=latest
if [ ! -z "$TRAVIS_TAG" ]; then
TAG=$TRAVIS_TAG
fi
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push clems4ever/authelia:$TAG;
fi
|
if [ "$TRAVIS_BRANCH" == "master" ]; then
TAG=latest
if [ ! -z "$TRAVIS_TAG" ]; then
TAG=$TRAVIS_TAG
fi
IMAGE_NAME=clems4ever/authelia
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker tag $IMAGE_NAME $IMAGE_NAME:$TAG;
docker push $IMAGE_NAME:$TAG;
fi
| Tag docker image before pushing it to dockerhub | Tag docker image before pushing it to dockerhub
| Shell | mit | clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia | shell | ## Code Before:
if [ "$TRAVIS_BRANCH" == "master" ]; then
TAG=latest
if [ ! -z "$TRAVIS_TAG" ]; then
TAG=$TRAVIS_TAG
fi
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push clems4ever/authelia:$TAG;
fi
## Instruction:
Tag docker image before pushing it to dockerhub
## Code After:
if... |
24a315065dd3a7a9faefc8cf4a0137dcde7b61df | yaqb/src/connection/cursor.rs | yaqb/src/connection/cursor.rs | use Queriable;
use db_result::DbResult;
use types::{NativeSqlType, FromSqlRow};
use std::marker::PhantomData;
pub struct Cursor<ST, T> {
current_row: usize,
db_result: DbResult,
_marker: PhantomData<(ST, T)>,
}
impl<ST, T> Cursor<ST, T> {
pub fn new(db_result: DbResult) -> Self {
Cursor {
... | use Queriable;
use db_result::DbResult;
use types::{NativeSqlType, FromSqlRow};
use std::marker::PhantomData;
/// The type returned by various [`Connection`](struct.Connection.html) methods.
/// Acts as an iterator over `T`.
pub struct Cursor<ST, T> {
current_row: usize,
db_result: DbResult,
_marker: Phan... | Add a short description of `Cursor`, hide internal functions | Add a short description of `Cursor`, hide internal functions
| Rust | apache-2.0 | cascalheira/diesel,sgrif/diesel,sgrif/diesel,diesel-rs/diesel,SoftwareWarlock/diesel,diesel-rs/diesel,tohou/diesel,SoftwareWarlock/diesel,mcasper/diesel,cascalheira/diesel,mcasper/diesel,tohou/diesel | rust | ## Code Before:
use Queriable;
use db_result::DbResult;
use types::{NativeSqlType, FromSqlRow};
use std::marker::PhantomData;
pub struct Cursor<ST, T> {
current_row: usize,
db_result: DbResult,
_marker: PhantomData<(ST, T)>,
}
impl<ST, T> Cursor<ST, T> {
pub fn new(db_result: DbResult) -> Self {
... |
03dad3a6919fb766d8d767757ae7bb764b0d1296 | mac/resources/open_CNTL.js | mac/resources/open_CNTL.js | define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(resource) {
var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);
resource.dataObject = {
rectangle: {
top: dv.getInt16(0, false),
left: dv.getInt16(2, false),
... | define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(item) {
return item.getBytes().then(function(bytes) {
var dv = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
item.setDataObject({
rectangle: {
top: dv.getInt16(0, false),
... | Change CNTL to new loader format | Change CNTL to new loader format | JavaScript | mit | radishengine/drowsy,radishengine/drowsy | javascript | ## Code Before:
define(['mac/roman'], function(macintoshRoman) {
'use strict';
return function(resource) {
var dv = new DataView(resource.data.buffer, resource.data.byteOffset, resource.data.byteLength);
resource.dataObject = {
rectangle: {
top: dv.getInt16(0, false),
left: dv.getI... |
606b76c185ecfe329124b178695d448ebab4941e | docs/release-notes/version-4.5.15.rst | docs/release-notes/version-4.5.15.rst | ==============
Version 4.5.15
==============
Version 4.5.15 of mod_wsgi can be obtained from:
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15
| ==============
Version 4.5.15
==============
Version 4.5.15 of mod_wsgi can be obtained from:
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15
Bugs Fixed
----------
* Incorrect version for mod_wsgi was being reported in server token.
| Document incorrect reporting of version. | Document incorrect reporting of version.
| reStructuredText | apache-2.0 | GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi,GrahamDumpleton/mod_wsgi | restructuredtext | ## Code Before:
==============
Version 4.5.15
==============
Version 4.5.15 of mod_wsgi can be obtained from:
https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.5.15
## Instruction:
Document incorrect reporting of version.
## Code After:
==============
Version 4.5.15
==============
Version 4.5.15 of m... |
d87971a9a20435fce0bf999a7e941bf6a266b3ff | composer.json | composer.json | {
"name": "litle/payments-sdk",
"type": "library",
"description": "The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle",
"keywords": ["litle","sdk","ecommerce","... | {
"name": "litle/payments-sdk",
"type": "library",
"description": "The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce",
"keywords": ["litl... | Update branding and link to Vantiv eCommerce | Update branding and link to Vantiv eCommerce | JSON | mit | LitleCo/litle-sdk-for-php | json | ## Code Before:
{
"name": "litle/payments-sdk",
"type": "library",
"description": "The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle",
"keywords": ["litle","sd... |
e27dd31df23d0c7d702707db7cdb20e80fd1e14d | tests/config.yml | tests/config.yml | homebrew_installed_packages:
- autoconf
- bash-completion
- gettext
- sqlite
- ssh-copy-id
- cowsay
- readline
- pv
- wget
- wrk
homebrew_cask_apps:
- firefox
- limechat
- macvim
| homebrew_installed_packages:
- autoconf
- bash-completion
- gettext
- sqlite
- ssh-copy-id
- cowsay
- readline
- pv
- wget
- wrk
homebrew_cask_apps:
- firefox
- macvim
| Remove limechat from test playbook too. | Remove limechat from test playbook too.
| YAML | mit | toby-griffiths/mac-dev-playbook,annikaC/mac-dev-playbook | yaml | ## Code Before:
homebrew_installed_packages:
- autoconf
- bash-completion
- gettext
- sqlite
- ssh-copy-id
- cowsay
- readline
- pv
- wget
- wrk
homebrew_cask_apps:
- firefox
- limechat
- macvim
## Instruction:
Remove limechat from test playbook too.
## Code After:
homebrew_installed_packag... |
5c17fe3d2c01b78866ab7534f1f47645fab9a49f | public/js/models/project/ProjectModel.js | public/js/models/project/ProjectModel.js | define([
'underscore',
'backbone',
'models/core/BaseModel',
], function(_, Backbone, BaseModel) {
var ProjectModel = BaseModel.extend({
urlRoot: 'api/projects',
defaults: {
id: null,
project_statuses_id: 1,
name: 'No project name set',
d... | define([
'underscore',
'backbone',
'models/core/BaseModel',
], function(_, Backbone, BaseModel) {
var ProjectModel = BaseModel.extend({
urlRoot: 'api/projects',
defaults: {
id: null,
project_statuses_id: 1,
name: 'No project name set',
d... | Fix saving projects (null project id in model) | Fix saving projects (null project id in model)
| JavaScript | mit | kinow/nestor,nestor-qa/nestor,kinow/nestor,kinow/nestor,kinow/nestor,nestor-qa/nestor,nestor-qa/nestor,nestor-qa/nestor | javascript | ## Code Before:
define([
'underscore',
'backbone',
'models/core/BaseModel',
], function(_, Backbone, BaseModel) {
var ProjectModel = BaseModel.extend({
urlRoot: 'api/projects',
defaults: {
id: null,
project_statuses_id: 1,
name: 'No project name set... |
2a84bcad6f04891211a809133b0ae829b4b7d6ca | package.js | package.js | Package.describe({
summary: "Make signin and signout their own pages with routes."
});
Package.on_use(function(api) {
api.use([
'deps',
'service-configuration',
'accounts-base',
'underscore',
'templating',
'handlebars',
'spark',
'session',
'coffeescript',
'iron-router',
... | Package.describe({
summary: "Make signin and signout their own pages with routes."
});
Package.on_use(function(api) {
api.use([
'deps',
'service-configuration',
'accounts-base',
'underscore',
'templating',
'handlebars',
'spark',
'session',
'coffeescript',
'less']
, 'clie... | Add routes to both client and server, in case they're needed | Add routes to both client and server, in case they're needed
| JavaScript | mit | AppWorkshop/accounts-entry,RiffynInc/meteor-accounts-entry,Noamyoungerm/accounts-entry,timmyg/accounts-entry,txs/meteor-wecare-accounts-entry-flow-blaze,lnader/meteor-accounts-entry,lnader/meteor-accounts-entry,Vilango/accounts-entry,Differential/accounts-entry,mauriciovieira/accounts-entry,jg3526/accounts-entry,vhmh20... | javascript | ## Code Before:
Package.describe({
summary: "Make signin and signout their own pages with routes."
});
Package.on_use(function(api) {
api.use([
'deps',
'service-configuration',
'accounts-base',
'underscore',
'templating',
'handlebars',
'spark',
'session',
'coffeescript',
'... |
27f23fe678c3ce93f2b85d183f5071a53b831246 | README.md | README.md |
**Local**
```bash
$ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API
$ yarn install
$ yarn start
```
##API
```
http://<domain>/<phonenum>
```
> Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp.
> No message included.
```
http://<domain>/<phonenu... |
**Local**
```bash
$ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API.git
$ yarn install
$ yarn start
```
**Heroku**
[](https://heroku.com/deploy)
##API
```
http://<domain>/<phonenum>
```
> Directly open whatsapp to respective phone number as long... | Fix github url and add heroku button | Fix github url and add heroku button
| Markdown | mit | amizz/Whatsapp-Direct-Messaging-API | markdown | ## Code Before:
**Local**
```bash
$ git clone https://github.com/amizz/Whatsapp-Direct-Messaging-API
$ yarn install
$ yarn start
```
##API
```
http://<domain>/<phonenum>
```
> Directly open whatsapp to respective phone number as long as the phone number is registered on whatsapp.
> No message included.
```
http://<... |
374e68bdbfd5056dc2eaa7d981defa892ea26f7d | lib/sparkleformation/registry/block_devices.rb | lib/sparkleformation/registry/block_devices.rb |
SfnRegistry.register(:block_mapping) do |_config|
_config = _config.dup
_config[:device_name] ||= nil
_config[:no_device] ||= nil
_config[:virtual_name] ||= nil
_config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs]
Hash[_config.map{|k,v| next if v.nil?; [process_key!(k),v]}]
end
Sf... |
SfnRegistry.register(:block_mapping) do |_config|
_config = _config.dup
_config[:device_name] ||= nil
_config[:no_device] ||= nil
_config[:virtual_name] ||= nil
_config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs]
Hash[_config.delete_if{|k,v|v.nil?}.map{|k,v| [process_key!(k),v]}]
... | Update to clearup ruby deprecation warning | Update to clearup ruby deprecation warning
| Ruby | mit | JonathanSerafini/sfn-policy-core | ruby | ## Code Before:
SfnRegistry.register(:block_mapping) do |_config|
_config = _config.dup
_config[:device_name] ||= nil
_config[:no_device] ||= nil
_config[:virtual_name] ||= nil
_config[:ebs] = registry!(:block_ebs, _config[:ebs]) if _config[:ebs]
Hash[_config.map{|k,v| next if v.nil?; [process_key!... |
30112e7c93db4e56807bc819287f2427ca3148f1 | README.md | README.md | My personal blog
## License
All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
| [](https://travis-ci.org/piruin/piruin.github.io)
My personal blog
## License
All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
| Add build status from travis | Add build status from travis
| Markdown | apache-2.0 | piruin/piruin.github.io,piruin/piruin.github.io,piruin/piruin.github.io | markdown | ## Code Before:
My personal blog
## License
All content within _posts/ is copyright Piruin Panichphol. Do not reuse any part without written permission.
## Instruction:
Add build status from travis
## Code After:
[](https://travis-ci.org... |
fdb17b80fa156931f09c6c8e0142a6fd04d93ad3 | app/assets/js/model/BaseModel.js | app/assets/js/model/BaseModel.js | /**
* Created by dungvn3000 on 3/14/14.
* The model automatic update mapping field when set associations table.
*/
Ext.define('sunerp.model.BaseModel', {
extend: 'Ext.data.Model',
set: function (fieldName, newValue) {
var me = this;
Ext.each(me.associations.keys, function (key) {
... | /**
* Created by dungvn3000 on 3/14/14.
* The model automatic update mapping field when set associations table.
*/
Ext.define('sunerp.model.BaseModel', {
extend: 'Ext.data.Model',
set: function (fieldName, newValue) {
var me = this;
me.callParent(arguments);
if (newValue != null && E... | Fix nested model should be a value object. | Fix nested model should be a value object.
| JavaScript | apache-2.0 | SunriseSoftVN/sunerp,SunriseSoftVN/sunerp,SunriseSoftVN/sunerp | javascript | ## Code Before:
/**
* Created by dungvn3000 on 3/14/14.
* The model automatic update mapping field when set associations table.
*/
Ext.define('sunerp.model.BaseModel', {
extend: 'Ext.data.Model',
set: function (fieldName, newValue) {
var me = this;
Ext.each(me.associations.keys, function (ke... |
8a3d45b3223c1f3ea25543f108a0460f44b28b43 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.2"
before_install:
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/
install:
- pip install --quiet git+https://github.com/python-imaging/Pillow.git
- sudo apt-get --quiet=2 install perceptualdiff
- sudo apt-get --quiet=2 inst... | language: python
python:
- "2.7"
- "3.2"
before_install:
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/
install:
- pip install --quiet git+https://github.com/python-imaging/Pillow.git
- sudo apt-get --quiet=2 install perceptualdiff
script:
- ./test/test.py
... | Revert "add animation test to Travis" | Revert "add animation test to Travis"
This reverts commit 3e64db9fa2b4194c941552b67d655ae93a48e8a6.
| YAML | agpl-3.0 | aeszter/heatmap,hugovk/heatmap,aeszter/heatmap,hugovk/heatmap,sethoscope/heatmap,sethoscope/heatmap | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.2"
before_install:
- sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so ~/virtualenv/python2.7/lib/
install:
- pip install --quiet git+https://github.com/python-imaging/Pillow.git
- sudo apt-get --quiet=2 install perceptualdiff
- sudo apt-ge... |
db23b287f1a1ec8ecdab10e06b6e91abb0d76b3c | SwiftPulseCast/SwiftPulseCast/PulseResults.swift | SwiftPulseCast/SwiftPulseCast/PulseResults.swift | //
// PulseResults.swift
// SwiftPulseCast
//
// Created by Jeremiah Poisson on 5/7/17.
// Copyright © 2017 Jeremiah Poisson. All rights reserved.
//
import Foundation
public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void)
public struct PulseResults<Value> {
public var error : PulseNetworkError?
publ... | //
// PulseResults.swift
// SwiftPulseCast
//
// Created by Jeremiah Poisson on 5/7/17.
// Copyright © 2017 Jeremiah Poisson. All rights reserved.
//
import Foundation
public typealias PulseData = [String: Any]
public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void)
public struct PulseResults<Value> {
... | Add type alias for network json data | Add type alias for network json data
| Swift | mit | ffxfiend/SwiftPulseCast | swift | ## Code Before:
//
// PulseResults.swift
// SwiftPulseCast
//
// Created by Jeremiah Poisson on 5/7/17.
// Copyright © 2017 Jeremiah Poisson. All rights reserved.
//
import Foundation
public typealias PulseCompletion<T> = ((PulseResults<T>) -> Void)
public struct PulseResults<Value> {
public var error : PulseNet... |
732710f38796d8fd108ceca251cd6777e1b0b14e | packages/sq/sql-words.yaml | packages/sq/sql-words.yaml | homepage: http://khibino.github.io/haskell-relational-record/
changelog-type: ''
hash: d4611b615b7f59762678d29df4c0768dbff9a9e7ecdf9f9a53d6d0d3d94bf55f
test-bench-deps:
base: ! '>=4.5 && <5'
quickcheck-simple: -any
QuickCheck: ! '>=2'
sql-words: -any
maintainer: ex8k.hibino@gmail.com
synopsis: SQL keywords data... | homepage: http://khibino.github.io/haskell-relational-record/
changelog-type: ''
hash: 1c394d7dffa299d8f0b10f01853cd1a593d0dcddd81e64d29e61f15225e10a86
test-bench-deps:
base: ! '>=4.5 && <5'
quickcheck-simple: -any
QuickCheck: ! '>=2'
sql-words: -any
maintainer: ex8k.hibino@gmail.com
synopsis: SQL keywords data... | Update from Hackage at 2018-05-27T05:38:24Z | Update from Hackage at 2018-05-27T05:38:24Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://khibino.github.io/haskell-relational-record/
changelog-type: ''
hash: d4611b615b7f59762678d29df4c0768dbff9a9e7ecdf9f9a53d6d0d3d94bf55f
test-bench-deps:
base: ! '>=4.5 && <5'
quickcheck-simple: -any
QuickCheck: ! '>=2'
sql-words: -any
maintainer: ex8k.hibino@gmail.com
synopsis: S... |
dbca5f0144f56e766ebb1006ba75886b5b2a648e | ci.sh | ci.sh | cd $(dirname $0)
export ANDROID_HOME=${WORKSPACE}/android-sdk-linux
export PATH=${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz -nv
tar xzf android-sdk_r22.3-linux.tgz
echo "y" | android update sdk -f -u -a -t tools,platform-tools,build-tools-... | cd $(dirname $0)
function build {
./$1/ci.sh
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
}
build spring-android-basic-auth
build spring-android-facebook-client
build spring-android-news-reader
build spring-android-showcase
build spring-android-twitter-client
build spring-android-twitter-search... | Revert "Update CI script to download and configure the Android environment" | Revert "Update CI script to download and configure the Android environment"
This reverts commit aab16a0bcfb8be3095baf7b265d36750db00e46f.
| Shell | apache-2.0 | spring-projects/spring-android-samples,quang-nh/Spring-for-android,ricardolonga/spring-android-samples,b-cuts/spring-android-samples,b-cuts/spring-android-samples,ricardolonga/spring-android-samples,st15/spring-android-samples,felipeweb/spring-android-samples,swahid/spring-android-samples,liuciuse/spring-android-sample... | shell | ## Code Before:
cd $(dirname $0)
export ANDROID_HOME=${WORKSPACE}/android-sdk-linux
export PATH=${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz -nv
tar xzf android-sdk_r22.3-linux.tgz
echo "y" | android update sdk -f -u -a -t tools,platform-to... |
b94976fae6ad3e944168ae348367875e03e0c9da | README.md | README.md | A web page to facilitate trades on Board Game Geek
To do:
- [ ] Create API to get list of users that want a game
- [ ] Create a page at koser.us/antonio
- [ ] Display users that want a hardcoded game
- [ ] Display users that want a game (id input by user)
- [ ] For users that want the game, display games they are tra... | A web page to facilitate trades on Board Game Geek
To do:
- [ ] Create API to get list of users that want a game
- [ ] Create a page at koser.us/antonio
- [ ] Display users that want a hardcoded game
- [ ] Display users that want a game (id input by user)
- [ ] For users that want the game, display games they are tra... | Add more to do items | Add more to do items | Markdown | mit | briankoser/antonio,briankoser/antonio,briankoser/antonio | markdown | ## Code Before:
A web page to facilitate trades on Board Game Geek
To do:
- [ ] Create API to get list of users that want a game
- [ ] Create a page at koser.us/antonio
- [ ] Display users that want a hardcoded game
- [ ] Display users that want a game (id input by user)
- [ ] For users that want the game, display ga... |
a0ac00bf09638277830b8d7aafaf2e5d5bb14b00 | README.md | README.md |
Installs the [Julia programming language](http://julialang.org/)
A great module has a working travis build
[](https://travis-ci.org/JustinTulloss/puppet-julia)
## Usage
```puppet
include julia
```
## Specifying a version
```puppet... |
Installs the [Julia programming language](http://julialang.org/)
[](https://travis-ci.org/JustinTulloss/puppet-julia)
## Usage
```puppet
include julia
```
## Specifying a version
```puppet
class { 'julia': version => '0.3.0-prerele... | Remove template language that snuck in | Remove template language that snuck in
| Markdown | mit | JustinTulloss/puppet-julia,JustinTulloss/puppet-julia | markdown | ## Code Before:
Installs the [Julia programming language](http://julialang.org/)
A great module has a working travis build
[](https://travis-ci.org/JustinTulloss/puppet-julia)
## Usage
```puppet
include julia
```
## Specifying a ve... |
a773b1aa98a96b6335b76fc587ea714e5cca7545 | cle/relocations/mips.py | cle/relocations/mips.py | from . import generic
arch = 'MIPS32'
R_MIPS_32 = generic.GenericAbsoluteAddendReloc
R_MIPS_REL32 = generic.GenericRelativeReloc
R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc
R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc
R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc
| from . import generic
arch = 'MIPS32'
R_MIPS_32 = generic.GenericAbsoluteAddendReloc
R_MIPS_REL32 = generic.GenericRelativeReloc
R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc
R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc
R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc
R_MIPS_JUMP_SLOT = generic.Generic... | Add R_MIPS_JUMP_SLOT and R_MIPS_GLOB_DAT relocations | Add R_MIPS_JUMP_SLOT and R_MIPS_GLOB_DAT relocations
| Python | bsd-2-clause | chubbymaggie/cle,angr/cle | python | ## Code Before:
from . import generic
arch = 'MIPS32'
R_MIPS_32 = generic.GenericAbsoluteAddendReloc
R_MIPS_REL32 = generic.GenericRelativeReloc
R_MIPS_TLS_DTPMOD32 = generic.GenericTLSModIdReloc
R_MIPS_TLS_TPREL32 = generic.GenericTLSOffsetReloc
R_MIPS_TLS_DTPREL32 = generic.GenericTLSDoffsetReloc
## Instruction:
A... |
bcdcc178fd27fba070bd8e38812e1fe7adb6bbac | app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt | app/src/main/kotlin/ss/proximityservice/data/ProximityDetector.kt | package ss.proximityservice.data
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
class ProximityDetector(private val listener: ProximityListener) : SensorEventListener {
interface ProximityListener {
fun onNear()
fun onFar()
}
... | package ss.proximityservice.data
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import kotlin.math.min
class ProximityDetector(private val listener: ProximityListener) : SensorEventListener {
interface ProximityListener {
fun onNear()
... | Replace with kotlin min function | Replace with kotlin min function
| Kotlin | apache-2.0 | ssaqua/ProximityService | kotlin | ## Code Before:
package ss.proximityservice.data
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
class ProximityDetector(private val listener: ProximityListener) : SensorEventListener {
interface ProximityListener {
fun onNear()
fun o... |
41c31ca694b54d6cf6302613d2f9a597f6357e33 | src/scripts/ci/setup_appveyor.bat | src/scripts/ci/setup_appveyor.bat |
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"
if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2017 call "%ProgramFil... |
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"
if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2017 call "%ProgramFil... | Use jom via botan-ci-tools repo | Use jom via botan-ci-tools repo
download.qt.io seems to be down ...
| Batchfile | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randomb... | batchfile | ## Code Before:
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"
if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2017 c... |
d9e7816da08a3d66e63356ea6f4474cc5f7d6b26 | bush/main.py | bush/main.py | from bush import option
from bush.spinner import Spinner
from bush.aws.ec2 import EC2
from bush.aws.iam import IAM
def run():
(options, args) = option.parse_args("bush")
output = ''
spinner = Spinner()
spinner.start()
if args[0] == 'ec2':
ec2 = EC2(options)
if args[1] == 'ls':
... | import sys
import traceback
from bush import option
from bush.spinner import Spinner
from bush.aws.ec2 import EC2
from bush.aws.iam import IAM
def run():
(options, args) = option.parse_args("bush")
output = ''
spinner = Spinner()
spinner.start()
try:
output = run_aws(options, args)
... | Fix keep turning spinner when error occurred | Fix keep turning spinner when error occurred
| Python | mit | okamos/bush | python | ## Code Before:
from bush import option
from bush.spinner import Spinner
from bush.aws.ec2 import EC2
from bush.aws.iam import IAM
def run():
(options, args) = option.parse_args("bush")
output = ''
spinner = Spinner()
spinner.start()
if args[0] == 'ec2':
ec2 = EC2(options)
if ar... |
c1629102be68260b1d9d8d8032aa9575173f54d1 | metadata/org.poirsouille.tinc_gui.txt | metadata/org.poirsouille.tinc_gui.txt | Categories:Internet
License:GPLv3+
Web Site:http://tinc_gui.poirsouille.org
Source Code:https://github.com/Vilbrekin/tinc_gui
Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues
Auto Name:Tinc
Summary:Port of Tinc VPN
Description:
Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd,
as... | Categories:Internet
License:GPLv3+
Web Site:http://tinc_gui.poirsouille.org
Source Code:https://github.com/Vilbrekin/tinc_gui
Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues
Auto Name:Tinc
Summary:Port of Tinc VPN
Description:
Tinc GUI for Android is a (slightly modified) cross-compiled version of tincd,
as... | Revert "Tinc: fix build" - no longer needed? | Revert "Tinc: fix build" - no longer needed?
This reverts commit 618975403a28b8574e7418248ed60997b8dd571d.
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:GPLv3+
Web Site:http://tinc_gui.poirsouille.org
Source Code:https://github.com/Vilbrekin/tinc_gui
Issue Tracker:https://github.com/Vilbrekin/tinc_gui/issues
Auto Name:Tinc
Summary:Port of Tinc VPN
Description:
Tinc GUI for Android is a (slightly modified) cross-compiled vers... |
7476ffe0e17fc6113816a5199fc939d14c4ade5b | ActiveLabel.podspec | ActiveLabel.podspec | Pod::Spec.new do |s|
s.name = 'ActiveLabel'
s.version = '1.0.0'
s.author = { 'Optonaut' => 'hello@optonaut.co' }
s.homepage = 'https://github.com/optonaut/ActiveLabel.swift'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.platform = :ios, '8.0'
s.source = { :git => 'https://github.co... | Pod::Spec.new do |s|
s.name = 'ActiveLabel'
s.version = '1.0.1'
s.author = { 'Optonaut' => 'hello@optonaut.co' }
s.homepage = 'https://github.com/optonaut/ActiveLabel.swift'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.platform = :ios, '8.0'
s.source = { :git => 'https://github.co... | Update podspec for Swift 4.2 and Xcode 10 | Update podspec for Swift 4.2 and Xcode 10 | Ruby | mit | optonaut/ActiveLabel.swift,optonaut/ActiveLabel.swift | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = 'ActiveLabel'
s.version = '1.0.0'
s.author = { 'Optonaut' => 'hello@optonaut.co' }
s.homepage = 'https://github.com/optonaut/ActiveLabel.swift'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.platform = :ios, '8.0'
s.source = { :git => 'h... |
94c820c33ff9cbfbcfabad017e1545447e31878b | CMakeLists.txt | CMakeLists.txt | cmake_minimum_required(VERSION 2.8.3)
project(maelstrom_msgs)
find_package(catkin REQUIRED COMPONENTS
message_generation
geometry_msgs
std_msgs
)
################################################
## Declare ROS messages, services and actions ##
################################################
add_message_files(... | cmake_minimum_required(VERSION 2.8.3)
project(maelstrom_msgs)
find_package(catkin REQUIRED COMPONENTS
message_generation
geometry_msgs
std_msgs
)
################################################
## Declare ROS messages, services and actions ##
################################################
add_message_files(... | Remove state message from cmakelists | Remove state message from cmakelists
| Text | mit | vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control | text | ## Code Before:
cmake_minimum_required(VERSION 2.8.3)
project(maelstrom_msgs)
find_package(catkin REQUIRED COMPONENTS
message_generation
geometry_msgs
std_msgs
)
################################################
## Declare ROS messages, services and actions ##
################################################
ad... |
05aecb910fba8b14e2c6f9efa5f72b90e673f8c3 | siteSearch/indexer/index.js | siteSearch/indexer/index.js | var lunr = require('lunr'),
fs = require('fs'),
views = require('./views'),
textNodes = require('./textNodeProcessor'),
config = require('../config'),
path = require('path');
module.exports.create = function(callback) {
var nodeMetaData;
views.loadAllViews(function(fileContentMap) {
textNodes.proces... | var lunr = require('lunr'),
fs = require('fs'),
views = require('./views'),
textNodes = require('./textNodeProcessor'),
config = require('../config'),
path = require('path');
var nodeMetaData;
views.loadAllViews(function(fileContentMap) {
textNodes.process(fileContentMap, function(nodes) {
var ... | Convert to autonomous script (from grunt task) | Convert to autonomous script (from grunt task)
| JavaScript | mit | scbd/ebsa.cbd.int,scbd/ebsa.cbd.int,scbd/ebsa-portal,scbd/ebsa.cbd.int,scbd/ebsa-portal,scbd/ebsa-portal | javascript | ## Code Before:
var lunr = require('lunr'),
fs = require('fs'),
views = require('./views'),
textNodes = require('./textNodeProcessor'),
config = require('../config'),
path = require('path');
module.exports.create = function(callback) {
var nodeMetaData;
views.loadAllViews(function(fileContentMap) {
... |
34c51557b42cf169196417d40b2b572c16fd6058 | web_external/stylesheets/body/dataPanel.styl | web_external/stylesheets/body/dataPanel.styl | text-align center
.source-title
font-weight bold
text-align left
margin 1px
padding 2px
background-color #DFF6E8
border-style none
border-width 0px
i
.icon-folder
float left
.icon-folder-open
float left
.source-title:hover
background-color #D3E9DC
curs... | text-align center
.source-title
font-weight bold
text-align left
margin 1px
padding 2px
background-color #DFF6E8
border-style none
border-width 0px
i
.icon-folder
float left
.icon-folder-open
float left
.source-title:hover
background-color #D3E9DC
curs... | Add styling for the category-title elements | Add styling for the category-title elements
| Stylus | apache-2.0 | Kitware/minerva,Kitware/minerva,Kitware/minerva | stylus | ## Code Before:
text-align center
.source-title
font-weight bold
text-align left
margin 1px
padding 2px
background-color #DFF6E8
border-style none
border-width 0px
i
.icon-folder
float left
.icon-folder-open
float left
.source-title:hover
background-color ... |
88036df35f4f476fc841d1679954b43604f3cda5 | src/css/popup.css | src/css/popup.css | .container {
width: 500px;
}
.row {
margin: 15px 0;
}
textarea {
resize: none;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.clearfix {
overflow: auto;
}
| .container {
width: 500px;
}
.row {
margin: 15px 0;
}
textarea {
resize: none;
}
button {
cursor: pointer;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.clearfix {
overflow: auto;
}
| Change cursor to pointer on button mouse over | :cherry_blossom: Change cursor to pointer on button mouse over
| CSS | mit | noraworld/fastoot,noraworld/fastoot | css | ## Code Before:
.container {
width: 500px;
}
.row {
margin: 15px 0;
}
textarea {
resize: none;
}
.pull-left {
float: left;
}
.pull-right {
float: right;
}
.clearfix {
overflow: auto;
}
## Instruction:
:cherry_blossom: Change cursor to pointer on button mouse over
## Code After:
.container {
width: ... |
9df1da5cc60d7aa20e4283c97d3df2286d88862f | config/initializers/actionmailer.rb | config/initializers/actionmailer.rb | if File.exists?("#{RAILS_ROOT}/config/mailer.yml")
require "action_mailer"
c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml"))
ActionMailer::Base.delivery_method = c[:delivery_method]
ActionMailer::Base.smtp_settings = c[:smtp]
end | if File.exists?("#{RAILS_ROOT}/config/mailer.yml")
require "action_mailer"
c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml"))
c.each do |key,val|
if key == :smtp || key == 'smtp'
key = :smtp_settings
end
begin
ActionMailer::Base.send("#{key}=".to_sym, val)
rescue Exception =>... | Change the way config/mailer.yml is read so that it supports configurations other than smtp. | Change the way config/mailer.yml is read so that it supports configurations other than smtp. | Ruby | mit | concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse | ruby | ## Code Before:
if File.exists?("#{RAILS_ROOT}/config/mailer.yml")
require "action_mailer"
c = YAML::load(File.open("#{RAILS_ROOT}/config/mailer.yml"))
ActionMailer::Base.delivery_method = c[:delivery_method]
ActionMailer::Base.smtp_settings = c[:smtp]
end
## Instruction:
Change the way config/mailer.yml is rea... |
c27468bc2a5908f3f7431adaf1851cc4870641a0 | zsh/powerlevel9k.zsh | zsh/powerlevel9k.zsh | POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir custom_ruby vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e' Ruby"
POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black"
POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
| POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir chruby vcs newline vi_mode status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(time)
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e'"
POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black"
POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
| Change powerline command line options | Style: Change powerline command line options
| Shell | mit | stephaneliu/dotfiles,stephaneliu/dotfiles | shell | ## Code Before:
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir custom_ruby vcs newline status)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_CUSTOM_RUBY="echo -n '\ue21e' Ruby"
POWERLEVEL9K_CUSTOM_RUBY_FOREGROUND="black"
POWERLEVEL9K_CUSTOM_RUBY_BACKGROUND="red"
## Instruction:
Style:... |
8c5c7069ce9ef2af088565b03a91dc41fa2d063d | .gitlab-ci.yml | .gitlab-ci.yml | image: python:3.5
before_script:
- pip install tox
stages:
- style
- test
flake8:
stage: style
script:
- tox -e flake8
imports:
stage: style
script:
- tox -e isort
py35:
stage: test
script:
- tox -e py35
| image: python:3.5
before_script:
- pip install tox
stages:
- style
- test
flake8:
stage: style
script:
- tox -e flake8
imports:
stage: style
script:
- tox -e isort
py35:
stage: test
script:
- echo -e $AFIP_TEST_KEY > testapp/test.key
- echo -e $AFIP_TEST_CRT > testapp/test.crt
-... | Use variable test keys when running CI | Use variable test keys when running CI
We currently use the in-repository keys for testing in CI. This has the
downside that once they expire, we can't re-run these tests inside CI.
Use keys that are passed as environment variables, so once we
reconfigure CI to use new keys, this also affects re-runs of older
builds.... | YAML | isc | hobarrera/django-afip,hobarrera/django-afip | yaml | ## Code Before:
image: python:3.5
before_script:
- pip install tox
stages:
- style
- test
flake8:
stage: style
script:
- tox -e flake8
imports:
stage: style
script:
- tox -e isort
py35:
stage: test
script:
- tox -e py35
## Instruction:
Use variable test keys when running CI
We current... |
ca7205d011a4596a3291a9026d7d401439d1732e | app/views/layouts/_footer.html.haml | app/views/layouts/_footer.html.haml | .footer-sponsors
%h4= t('footer.sponsors')
%hr.footer-hr
%ul.list-unstyled
%li
%h4
= t('footer.hosting_sponsored_by')
%li
%h4
= t('footer.builder_sponsored_by')
%li
%h4
= t('footer.contributors')
| .footer-sponsors
We are currently looking for the following sponsors in order to help us sustain
RubyBench:
%ol
%li Hosting sponsor
%li
%strong
Sponsor for bare metal server. We're currently running the bare metal
server using a free one month trial from Softlayer. While the lowest... | Update footer with sponsors note. | Update footer with sponsors note.
| Haml | mit | klgilbert/ruby-bench-web,hanmd82/ruby-bench-web,treble37/ruby-bench-web,treble37/ruby-bench-web,klgilbert/ruby-bench-web,tgxworld/ruby-bench-web,ruby-bench/ruby-bench-web,davydovanton/ruby-bench-web,klgilbert/ruby-bench-web,bmarkons/ruby-bench-web,ruby-bench/ruby-bench-web,hanmd82/ruby-bench-web,hanmd82/ruby-bench-web,... | haml | ## Code Before:
.footer-sponsors
%h4= t('footer.sponsors')
%hr.footer-hr
%ul.list-unstyled
%li
%h4
= t('footer.hosting_sponsored_by')
%li
%h4
= t('footer.builder_sponsored_by')
%li
%h4
= t('footer.contributors')
## Instruction:
Update footer with sponsors... |
11c5c3f5e52232af1084348fa331539eddbbbb0a | presto-server-rpm/src/main/resources/dist/config/config.properties | presto-server-rpm/src/main/resources/dist/config/config.properties | coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
discovery-server.enabled=true
discovery.uri=http://localhost:8080
| coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
http-server.log.path=/var/log/presto/http-request.log
discovery-server.enabled=true
discovery.uri=http://localhost:8080
| Use /var/log for request log in RPM | Use /var/log for request log in RPM
| INI | apache-2.0 | treasure-data/presto,erichwang/presto,erichwang/presto,losipiuk/presto,Praveen2112/presto,dain/presto,losipiuk/presto,erichwang/presto,electrum/presto,smartnews/presto,11xor6/presto,treasure-data/presto,electrum/presto,treasure-data/presto,Praveen2112/presto,wyukawa/presto,ebyhr/presto,hgschmie/presto,treasure-data/pre... | ini | ## Code Before:
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
discovery-server.enabled=true
discovery.uri=http://localhost:8080
## Instruction:
Use /var/log for request log in RPM
## Code After:
coordinator=true
node-scheduler.include-coordinator=true
http-server.http.port=8080
h... |
cdf60bc0b07c282e75fba747c8adedd165aa0abd | index.py | index.py | from werkzeug.wrappers import Request, Response
from get_html import get_html, choose_lang
@Request.application
def run(request):
lang = choose_lang(request)
if request.url.startswith("https://") or request.args.get("forcenossl") == "true":
html = get_html("launch", lang)
else:
html = get_html("nossl", lang)
... | from werkzeug.wrappers import Request, Response
from get_html import get_html, choose_lang
@Request.application
def run(request):
lang = request.args.get("lang") if request.args.get("lang") else choose_lang(request)
if request.url.startswith("https://") or request.args.get("forcenossl") == "true":
html = get_html... | Make the language changeable via a GET parameter. | Make the language changeable via a GET parameter.
| Python | mit | YtvwlD/dyluna,YtvwlD/dyluna,YtvwlD/dyluna | python | ## Code Before:
from werkzeug.wrappers import Request, Response
from get_html import get_html, choose_lang
@Request.application
def run(request):
lang = choose_lang(request)
if request.url.startswith("https://") or request.args.get("forcenossl") == "true":
html = get_html("launch", lang)
else:
html = get_html(... |
9547332eff53ad7b14e3ba2e19ebb334bfa55b08 | app/models/Role.php | app/models/Role.php | <?php
namespace Model;
class Role extends \Cartalyst\Sentinel\Roles\EloquentRole
{
} | <?php
namespace Model;
class Role extends \Cartalyst\Sentinel\Roles\EloquentRole
{
protected $connection = 'user';
} | Change connection model to user | Change connection model to user
| PHP | apache-2.0 | nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning,nurmanhabib/elearning | php | ## Code Before:
<?php
namespace Model;
class Role extends \Cartalyst\Sentinel\Roles\EloquentRole
{
}
## Instruction:
Change connection model to user
## Code After:
<?php
namespace Model;
class Role extends \Cartalyst\Sentinel\Roles\EloquentRole
{
protected $connection = 'user';
} |
b622595680769bb1f4378abe77d98a0069fe8fa0 | src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java | src/main/java/com/google/devtools/build/lib/rules/test/ExecutionInfoProvider.java | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | Remove reference to web browsers in bazel documentation. | Remove reference to web browsers in bazel documentation.
--
MOS_MIGRATED_REVID=115912069
| Java | apache-2.0 | LuminateWireless/bazel,twitter-forks/bazel,anupcshan/bazel,davidzchen/bazel,ButterflyNetwork/bazel,damienmg/bazel,UrbanCompass/bazel,Asana/bazel,Asana/bazel,UrbanCompass/bazel,iamthearm/bazel,ulfjack/bazel,hermione521/bazel,mikelalcon/bazel,variac/bazel,damienmg/bazel,perezd/bazel,kchodorow/bazel,katre/bazel,zhexuany/b... | java | ## Code Before:
// Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... |
c18e737b921546961509deb5ace3c30150924e98 | salt/tls-terminator/README.md | salt/tls-terminator/README.md | tls-terminator
==============
Configures nginx as TLS terminator for a http(s) backend.
Sample pillar config:
```
tls-terminator:
example.com:
backend: https://example-app.herokuapp.com
cert: |
---BEGIN CERTIFICATE----
<snip>
---END CERTIFICATE------
ke... | tls-terminator
==============
Configures nginx as TLS terminator for a http(s) backend.
Sample pillar config:
```yaml
tls-terminator:
example.com:
backend: https://example-app.herokuapp.com
cert: |
---BEGIN CERTIFICATE----
<snip>
---END CERTIFICATE------
... | Add yaml-marker for tls-terminator code blocks | Add yaml-marker for tls-terminator code blocks
| Markdown | mit | thusoy/salt-states,thusoy/salt-states,thusoy/salt-states,thusoy/salt-states | markdown | ## Code Before:
tls-terminator
==============
Configures nginx as TLS terminator for a http(s) backend.
Sample pillar config:
```
tls-terminator:
example.com:
backend: https://example-app.herokuapp.com
cert: |
---BEGIN CERTIFICATE----
<snip>
---END CERTIFICATE-... |
6dd6b817f61f1ec04e3d08a9e60f3739035fd611 | index.php | index.php | <?php
require_once './vendor/autoload.php';
use Turbine\Application;
$config = [];
$app = new Application($config);
if (getenv('DEVELOPMENT') === 'true') {
$app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$app->setConfig('error', true);
}
$container = $app->getContainer();
$app->... | <?php
require_once './vendor/autoload.php';
use Turbine\Application;
$config = [
'baseDirectory' => '/PlexRSSFeed'
];
$app = new Application($config);
if (getenv('DEVELOPMENT') === 'true') {
$app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$app->setConfig('error', true);
}
$c... | Allow project to live in non-root directory. | Allow project to live in non-root directory.
| PHP | mit | huanga/PlexRSSFeed | php | ## Code Before:
<?php
require_once './vendor/autoload.php';
use Turbine\Application;
$config = [];
$app = new Application($config);
if (getenv('DEVELOPMENT') === 'true') {
$app->getErrorHandler()->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$app->setConfig('error', true);
}
$container = $app->getCon... |
3002a33c5a739682e4bf41832219c21d3d1eea04 | index.html | index.html | <html>
<head>
<meta charset='utf-8'>
<title>hexaworld</title>
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height"/>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">
<link rel='stylesheet' href='style.css'>
</head>
<body>
<div id='c... | <html>
<head>
<meta charset='utf-8'>
<title>hexaworld</title>
<meta name="viewport" content="user-scalable=no"/>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">
<link rel='stylesheet' href='style.css'>
</head>
<body>
<div id='container'></div>
<script src="/socket.io/... | Remove fixed height and width | Remove fixed height and width
| HTML | apache-2.0 | hexaworld/hexaworld-server,hexaworld/hexaworld-server | html | ## Code Before:
<html>
<head>
<meta charset='utf-8'>
<title>hexaworld</title>
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height"/>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">
<link rel='stylesheet' href='style.css'>
</head>
<b... |
8d74280caf163c26c084d042a31fc301b5913b4f | pkg/identity/identity.go | pkg/identity/identity.go | /*
Package identity provides type that allows to authorize request
*/
package identity
import (
"github.com/google/uuid"
)
// Identity data to be encode in auth token
type Identity struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Roles []string `json:"roles"`
}
// WithEmail returns a new Iden... | /*
Package identity provides type that allows to authorize request
*/
package identity
import (
"github.com/google/uuid"
)
// Identity data to be encode in auth token
type Identity struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Roles []string `json:"roles"`
}
// WithEmail returns a new Iden... | Remove some err checks, return it directly | Remove some err checks, return it directly
| Go | mit | vardius/go-api-boilerplate,vardius/go-api-boilerplate,vardius/go-api-boilerplate | go | ## Code Before:
/*
Package identity provides type that allows to authorize request
*/
package identity
import (
"github.com/google/uuid"
)
// Identity data to be encode in auth token
type Identity struct {
ID uuid.UUID `json:"id"`
Email string `json:"email"`
Roles []string `json:"roles"`
}
// WithEmail re... |
9a2c253713ac535c64eeec95d36042f1a086afd6 | server/methods.js | server/methods.js | Meteor.methods({
createBet: function(user,defender,title,wager) {
Bets.insert({
bettors: [ user, defender ],
status: "open",
title: title,
wager: wager,
createdAt: new Date()
});
},
createBetNotification: function(user, defender, type, bet_id) {
BetNotifications.insert({... | Meteor.methods({
createBet: function(user, defender, title, wager, image_id) {
Bets.insert({
bettors: [ user, defender ],
status: "open",
title: title,
wager: wager,
image_id: image_id,
createdAt: new Date()
});
},
createBetNotification: function(user, defender, type, ... | Add image_id to DB model. | Add image_id to DB model.
| JavaScript | mit | nmmascia/webet,nmmascia/webet | javascript | ## Code Before:
Meteor.methods({
createBet: function(user,defender,title,wager) {
Bets.insert({
bettors: [ user, defender ],
status: "open",
title: title,
wager: wager,
createdAt: new Date()
});
},
createBetNotification: function(user, defender, type, bet_id) {
BetNotifi... |
10648461f8310d9bb107dacf5be890ebd0be21cf | app/account/regions/boards-list.js | app/account/regions/boards-list.js | module.exports = Z.Region.extend({
el: 'div.account-page-sidebar-list',
keepEl: true,
view: require('account/views/boards-list'),
events: {
'mouseout': 'onMouseOut',
'mouseover': 'onMouseOver'
},
setHeight: function() {
this.$el.height($(document).height() - 132);
return this;
},
on... | module.exports = Z.Region.extend({
el: 'div.account-page-sidebar-list',
keepEl: true,
view: require('account/views/boards-list'),
setHeight: function() {
this.$el.height($(document).height() - 132);
return this;
},
onShow: function() {
this.setHeight();
}
});
| Remove unnecessary logic on boards list. | Remove unnecessary logic on boards list.
| JavaScript | agpl-3.0 | GetBlimp/boards-web,jessamynsmith/boards-web,jessamynsmith/boards-web | javascript | ## Code Before:
module.exports = Z.Region.extend({
el: 'div.account-page-sidebar-list',
keepEl: true,
view: require('account/views/boards-list'),
events: {
'mouseout': 'onMouseOut',
'mouseover': 'onMouseOver'
},
setHeight: function() {
this.$el.height($(document).height() - 132);
return ... |
cf5a79849a50386b8f1fa55fd987a9f26b99aa06 | spec/yesmail2/email_spec.rb | spec/yesmail2/email_spec.rb | module Yesmail2
describe Email do
describe '.send' do
let(:template_id) { 'foo' }
let(:subscriber) do
{ id: 'test@example.com', email: 'test@example.com' }
end
it 'invokes the correct shit' do
body = { content: [template_id], recipients: [subscriber] }
WebMock
... | module Yesmail2
describe Email do
describe '.send' do
let(:template_id) { 'foo' }
let(:subscriber) do
{ id: 'test@example.com', email: 'test@example.com' }
end
it 'invokes the correct shit' do
body = {
content: { templateId: template_id },
recipients: [... | Update spec to reflect accurate API usage | Update spec to reflect accurate API usage
| Ruby | mit | apartmentlist/yesmail2 | ruby | ## Code Before:
module Yesmail2
describe Email do
describe '.send' do
let(:template_id) { 'foo' }
let(:subscriber) do
{ id: 'test@example.com', email: 'test@example.com' }
end
it 'invokes the correct shit' do
body = { content: [template_id], recipients: [subscriber] }
... |
bf31185be67a780b34102007335d4db3e04c5d6f | .travis.yml | .travis.yml | matrix:
include:
- language: node_js
node_js: 8
script:
- npm install
- npm run lint
- npm test
- language: android
jdk: oraclejdk8
dist: precise
node_js: false
android:
components:
- tools
- platform-tools
- bu... | matrix:
include:
- language: node_js
node_js: 8
script:
- npm install
- npm run lint
- npm test
- language: android
jdk: oraclejdk8
dist: precise
node_js: false
android:
components:
- tools
- platform-tools
- bu... | Add node to ios job and install deps | Add node to ios job and install deps
| YAML | apache-2.0 | Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx,Polidea/react-native-ble-plx | yaml | ## Code Before:
matrix:
include:
- language: node_js
node_js: 8
script:
- npm install
- npm run lint
- npm test
- language: android
jdk: oraclejdk8
dist: precise
node_js: false
android:
components:
- tools
- platform-tool... |
32570bdc1244435c0e8b34bc9540de70522a57a4 | puppet/modules/barbican/templates/Z99-barbican.erb | puppet/modules/barbican/templates/Z99-barbican.erb |
<% if defined?(@barbican_branch) %>
export BARBICAN_BRANCH="<%= @barbican_branch %>"
<% else %>
export BARBICAN_BRANCH="stable/kilo"
<% end %>
<% if defined?(@hostname_manager) %>
export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311"
<% else %>
export BARBICAN_HOST_HREF="http://localhost:9311"
<% end %>
|
<% if defined?(@barbican_branch) %>
export BARBICAN_BRANCH="<%= @barbican_branch %>"
<% elsif defined?(@devstack_branch) %>
export BARBICAN_BRANCH="<%= @devstack_branch %>"
<% else %>
export BARBICAN_BRANCH="stable/kilo"
<% end %>
<% if defined?(@hostname_manager) %>
export BARBICAN_HOST_HREF="http://<%= @hostname_ma... | Use devstack_branch if no barbican_branch defined | Use devstack_branch if no barbican_branch defined
| HTML+ERB | apache-2.0 | unibg-seclab/devstack-vagrant,unibg-seclab/devstack-vagrant,unibg-seclab/devstack-vagrant | html+erb | ## Code Before:
<% if defined?(@barbican_branch) %>
export BARBICAN_BRANCH="<%= @barbican_branch %>"
<% else %>
export BARBICAN_BRANCH="stable/kilo"
<% end %>
<% if defined?(@hostname_manager) %>
export BARBICAN_HOST_HREF="http://<%= @hostname_manager %>:9311"
<% else %>
export BARBICAN_HOST_HREF="http://localhost:93... |
b6549669e8bf85a12c8ffe3e7fe7cc1e0d457d1c | README.md | README.md | graphite-talk
=============
Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/
Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome @CarlFK.
| graphite-talk
=============
Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/
Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome [@CarlFK](https://github.com/CarlFK).
| Fix a link to @CarlFK's github page | Fix a link to @CarlFK's github page
| Markdown | mit | SEJeff/graphite-talk | markdown | ## Code Before:
graphite-talk
=============
Graphite talk for Chicago LUG: http://chicagolug.org/meetings/2013-12-14/
Live video of [the presentation](http://videos.pumpingstationone.org/video/25/twelve-days-of-metrics-graphite-for-the-masses) recorded by the most awesome @CarlFK.
## Instruction:
Fix a link to @Carl... |
24304fe5f46ca253c7dcf36806898fbf987c9e30 | appveyor.yml | appveyor.yml | version: '{build}'
image: Visual Studio 2015
environment:
global:
NODEJS_VERSION: "12"
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
SCALA_VERSION: 2.12.12
install:
- ps: Install-Product node $env:NODEJS_VERSION
- npm install
- cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt"""
- cmd:... | version: '{build}'
image: Visual Studio 2015
environment:
global:
NODEJS_VERSION: "12"
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
SCALA_VERSION: 2.12.12
install:
- ps: Install-Product node $env:NODEJS_VERSION
- npm install
- cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:\sbt"""
- cmd:... | Disable scripted tests in the Windows CI. | Disable scripted tests in the Windows CI.
They are unfortunately too flaky, due to some StackOverflow
happening during `compiler_2.11/compile`.
| YAML | apache-2.0 | scala-js/scala-js,scala-js/scala-js,sjrd/scala-js,sjrd/scala-js,scala-js/scala-js,gzm0/scala-js,gzm0/scala-js,sjrd/scala-js | yaml | ## Code Before:
version: '{build}'
image: Visual Studio 2015
environment:
global:
NODEJS_VERSION: "12"
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
SCALA_VERSION: 2.12.12
install:
- ps: Install-Product node $env:NODEJS_VERSION
- npm install
- cmd: choco install sbt --version 1.3.12 -ia "INSTALLDIR=""C:... |
79e809134a913f0e9d4de6d58823c09c88791c9e | lib/morph/line_buffer.rb | lib/morph/line_buffer.rb | module Morph
class LineBuffer
def initialize
@buffer = ''
end
def extract
r = []
while i = @buffer.index("\n")
line = @buffer[0..i]
yield line if block_given?
r << line
@buffer = @buffer[i + 1..-1]
end
r
end
def <<(text)
@buffer... | module Morph
# Line-oriented buffer. Send data to the buffer. Extract lines once they
# are completed with newlines
class LineBuffer
def initialize
@buffer = ''
end
def extract
r = []
while i = @buffer.index("\n")
line = @buffer[0..i]
yield line if block_given?
... | Add comment explaining what LineBuffer class does | Add comment explaining what LineBuffer class does
| Ruby | agpl-3.0 | otherchirps/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph,otherchirps/morph,openaustralia/morph | ruby | ## Code Before:
module Morph
class LineBuffer
def initialize
@buffer = ''
end
def extract
r = []
while i = @buffer.index("\n")
line = @buffer[0..i]
yield line if block_given?
r << line
@buffer = @buffer[i + 1..-1]
end
r
end
def <<(tex... |
86ab4a28e0994ad3c0fd81a40279a68e54295b90 | README.md | README.md | Ember Hearth is an application used to manage Ember projects.
**Warning: Ember Hearth is alpha software and may misbehave.**
## Goals
Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line.
## Features
* Installs all needed tools automatically ([node... | Ember Hearth is an application used to manage Ember projects.
**Warning: Ember Hearth is alpha software and may misbehave.**
## Goals
Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line.
## Features
* Installs all needed tools automatically ([node... | Add "run tests" to feature list | Add "run tests" to feature list
| Markdown | mit | EmberTown/ember-hearth,EmberTown/ember-hearth,EmberTown/ember-hearth | markdown | ## Code Before:
Ember Hearth is an application used to manage Ember projects.
**Warning: Ember Hearth is alpha software and may misbehave.**
## Goals
Ember Hearth aspires to allow new users to do all they need to do to run Ember projects without touching the command line.
## Features
* Installs all needed tools auto... |
30f8a8b8204c9045a7221660e40555479e2a86ba | docs/management/start_stop.rst | docs/management/start_stop.rst | Start & Stop the Server
=======================
The Django Web Framework contains a developmental server that can be
used to service requests. Launching this web server for testing is
described in this section. This is not necessary for teams as the
automatic setup configures Apache, which runs automatically at system... | Start & Stop the Server
=======================
The Django Web Framework contains a developmental server that can be
used to service requests. Launching this web server for testing is
described in this section. This is not necessary for teams as the
automatic setup configures Apache, which runs automatically at system... | Fix path to server and add activation command | Fix path to server and add activation command
| reStructuredText | apache-2.0 | justineaster/interop,justineaster/interop,transformation/utatuav-interop,auvsi-suas/interop,justineaster/interop,transformation/utatuav-interop,auvsi-suas/interop,transformation/utatuav-interop,auvsi-suas/interop,transformation/utatuav-interop,justineaster/interop,auvsi-suas/interop,transformation/utatuav-interop,trans... | restructuredtext | ## Code Before:
Start & Stop the Server
=======================
The Django Web Framework contains a developmental server that can be
used to service requests. Launching this web server for testing is
described in this section. This is not necessary for teams as the
automatic setup configures Apache, which runs automat... |
28c07e09edeaab9a055687815901c637eacf83ed | resources/node_modules/git.js | resources/node_modules/git.js | var chp = require('child_process');
var Git = {
stageFile: function(modulePath, file, callback) {
if (file.status === 'deleted') {
this._exec(modulePath, 'rm', [file.name], callback);
} else {
if (file.type === 'submodule') this.exec(modulePath, 'submodule add', [file.name], callback);
else this._exec(mo... | var chp = require('child_process');
var Git = {
stageFile: function(modulePath, file, callback) {
if (file.status === 'deleted') {
this._exec(modulePath, 'rm', [file.name], callback);
} else {
if (file.type === 'submodule') this._exec(modulePath, 'submodule add', ['.' + require('path').sep + file.name], ca... | Fix typo and file path | Fix typo and file path
| JavaScript | mit | demian85/git-watcher,demian85/git-watcher,demian85/git-watcher | javascript | ## Code Before:
var chp = require('child_process');
var Git = {
stageFile: function(modulePath, file, callback) {
if (file.status === 'deleted') {
this._exec(modulePath, 'rm', [file.name], callback);
} else {
if (file.type === 'submodule') this.exec(modulePath, 'submodule add', [file.name], callback);
el... |
1090ecf891dd7c0928cdaae385464d3be660fdbf | penn/base.py | penn/base.py | from requests import get
class WrapperBase(object):
def __init__(self, bearer, token):
self.bearer = bearer
self.token = token
@property
def headers(self):
"""The HTTP headers needed for signed requests"""
return {
"Authorization-Bearer": self.bearer,
... | from requests import get
class WrapperBase(object):
def __init__(self, bearer, token):
self.bearer = bearer
self.token = token
@property
def headers(self):
"""The HTTP headers needed for signed requests"""
return {
"Authorization-Bearer": self.bearer,
... | Add better error handling for non-200 responses | Add better error handling for non-200 responses
| Python | mit | pennlabs/penn-sdk-python,pennlabs/penn-sdk-python | python | ## Code Before:
from requests import get
class WrapperBase(object):
def __init__(self, bearer, token):
self.bearer = bearer
self.token = token
@property
def headers(self):
"""The HTTP headers needed for signed requests"""
return {
"Authorization-Bearer": self.... |
a278f65c3683d4f7068934f34226146260dd1d48 | vagrant/provision.sh | vagrant/provision.sh | setenforce 0
# Install system packages
cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum -y install docker-engine epel-release git python-pip
# Start services
syste... | setenforce 0
# Install system packages
cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum -y install docker-engine epel-release git python-pip
# Start services
syste... | Enable docker service in vagrant | Enable docker service in vagrant
Closes-Bug: #1519777
TrivialFix
Change-Id: Id5a5e2b18dc24dcb5d38f0dc3f7b32b6fbaf2de3
| Shell | apache-2.0 | openstack/kolla-mesos,asalkeld/kolla-mesos,openstack/kolla-mesos,openstack/kolla-mesos | shell | ## Code Before:
setenforce 0
# Install system packages
cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
yum -y install docker-engine epel-release git python-pip
# Star... |
44f603cd947f63101cf6b7eb8e49b5210cfa4f6f | wry/__init__.py | wry/__init__.py |
import AMTDevice
import AMTBoot
import AMTPower
import AMTKVM
import AMTOptIn
import AMTRedirection
AMTDevice = AMTDevice.AMTDevice
AMTBoot = AMTBoot.AMTBoot
AMTPower = AMTPower.AMTPower
AMTKVM = AMTKVM.AMTKVM
AMTOptin = AMTOptIn.AMTOptIn
AMTRedirection = AMTRedirection.AMTRedirection
# For backwards compatibility
d... |
import version
import AMTDevice
import AMTBoot
import AMTPower
import AMTKVM
import AMTOptIn
import AMTRedirection
AMTDevice = AMTDevice.AMTDevice
AMTBoot = AMTBoot.AMTBoot
AMTPower = AMTPower.AMTPower
AMTKVM = AMTKVM.AMTKVM
AMTOptin = AMTOptIn.AMTOptIn
AMTRedirection = AMTRedirection.AMTRedirection
# For backwards ... | Add version. Note this will cause the file to be modified in your working copy. This change is gitignored | Add version. Note this will cause the file to be modified in your
working copy. This change is gitignored | Python | apache-2.0 | ocadotechnology/wry | python | ## Code Before:
import AMTDevice
import AMTBoot
import AMTPower
import AMTKVM
import AMTOptIn
import AMTRedirection
AMTDevice = AMTDevice.AMTDevice
AMTBoot = AMTBoot.AMTBoot
AMTPower = AMTPower.AMTPower
AMTKVM = AMTKVM.AMTKVM
AMTOptin = AMTOptIn.AMTOptIn
AMTRedirection = AMTRedirection.AMTRedirection
# For backwards... |
e7b67d7225d526e2c5f6ef671326c7b9adf38ef8 | repo-requirements.txt | repo-requirements.txt | -e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles
-e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
-e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki
-e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystac... | -e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles
-e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
-e git://github.com/MITx/django-wiki.git@e2e84558#egg=django-wiki
-e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8bec2f#egg=pystache_cu... | Switch django-wiki dependency to a clone in our org so that local changes are easier to make | Switch django-wiki dependency to a clone in our org so that local changes are easier to make
| Text | agpl-3.0 | Edraak/circleci-edx-platform,philanthropy-u/edx-platform,pabloborrego93/edx-platform,naresh21/synergetics-edx-platform,arbrandes/edx-platform,tiagochiavericosta/edx-platform,don-github/edx-platform,dsajkl/123,4eek/edx-platform,angelapper/edx-platform,franosincic/edx-platform,beni55/edx-platform,mcgachey/edx-platform,ka... | text | ## Code Before:
-e git://github.com/MITx/django-staticfiles.git@6d2504e5c8#egg=django-staticfiles
-e git://github.com/MITx/django-pipeline.git#egg=django-pipeline
-e git://github.com/rocha/django-wiki.git@33e9a24b9a20#egg=django-wiki
-e git://github.com/dementrock/pystache_custom.git@776973740bdaad83a3b029f96e415a7d1e8... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.