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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
57fc21358908b4f5c828d94c59dbfb4b0576dbd8 | .travis.yml | .travis.yml | language: python
sudo: false
python:
- '3.5'
env: DEPS="numpy scipy nose matplotlib"
install:
- pip install coveralls
- pip install codecov
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86... | language: python
sudo: false
python:
- '3.5'
env: DEPS="numpy scipy nose matplotlib"
install:
- pip install coveralls
- pip install codecov
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86... | Add missing line for codecov | Add missing line for codecov
| YAML | mit | alexisrosuel/PyEWA | yaml | ## Code Before:
language: python
sudo: false
python:
- '3.5'
env: DEPS="numpy scipy nose matplotlib"
install:
- pip install coveralls
- pip install codecov
# setup adapted from https://github.com/soft-matter/trackpy/blob/master/.travis.yml
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda2-... |
5144e892dd5c6f92a0c18dce1358279330bc75e6 | src/Main.hs | src/Main.hs | module Main where
import Control.Monad (replicateM_)
import Data.Aeson (encode)
import Data.Time (getCurrentTime)
import System.IO (readFile)
main :: IO ()
main = do
putStrLn "Enter a message: "
message <- getLine
putStrLn "Enter a number of times to print: "
... | module Main where
import Control.Monad (replicateM_)
import Data.Aeson (encode)
import Data.Time (getCurrentTime)
import System.IO (readFile)
main :: IO ()
main = do
putStrLn "Enter a message: "
message <- getLine
putStrLn "Enter a number of times to print: "
... | Clean up a bit of the code | Clean up a bit of the code
| Haskell | mit | mikegehard/haskell-api | haskell | ## Code Before:
module Main where
import Control.Monad (replicateM_)
import Data.Aeson (encode)
import Data.Time (getCurrentTime)
import System.IO (readFile)
main :: IO ()
main = do
putStrLn "Enter a message: "
message <- getLine
putStrLn "Enter a number of tim... |
62a6b78b62631c0b1de7d0497250aa3d0310d47d | winthrop/common/models.py | winthrop/common/models.py | from django.db import models
# abstract models with common fields to be
# used as mix-ins
class Named(models.Model):
'''Abstract model with a 'name' field; by default, name is used as
the string display.'''
name = models.CharField(max_length=255, unique=True)
class Meta:
abstract = True
... | from django.db import models
# abstract models with common fields to be
# used as mix-ins
class Named(models.Model):
'''Abstract model with a 'name' field; by default, name is used as
the string display.'''
name = models.CharField(max_length=255, unique=True)
class Meta:
abstract = True
... | Add alpha ordering on Named abstract class | Add alpha ordering on Named abstract class
| Python | apache-2.0 | Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django | python | ## Code Before:
from django.db import models
# abstract models with common fields to be
# used as mix-ins
class Named(models.Model):
'''Abstract model with a 'name' field; by default, name is used as
the string display.'''
name = models.CharField(max_length=255, unique=True)
class Meta:
abstr... |
d9a4f48018705155a72828c2bd8b9d15c87ac06b | client/styles/scss/_analytics.scss | client/styles/scss/_analytics.scss | text {
font-size: 9px;
font-weight: 600;
pointer-events: none;
font-family: 'Open Sans', sans-serif;
text-shadow: 1px 1px #fff;
}
text.parent {
font-size: 16px;
fill: #1f77b4;
}
circle {
fill: #ffffff;
/*stroke: #999;*/
pointer-events: all;
cursor: pointer;
}
circle.parent {
fill: rgba(70, 12... | text {
font-size: 9px;
pointer-events: none;
// text-shadow: 1px 1px #fff;
}
text.parent {
font-size: 16px;
fill: #404040;
}
circle {
fill: #ffffff;
fill-opacity: .8;
pointer-events: all;
cursor: pointer;
// stroke: #999;
}
circle.parent {
fill: #C0C0C0;
fill-opacity: .2;
}
circle.parent:hov... | Update circle pack css to match journey style | Update circle pack css to match journey style
| SCSS | mit | scrumptiousAmpersand/journey,scrumptiousAmpersand/journey | scss | ## Code Before:
text {
font-size: 9px;
font-weight: 600;
pointer-events: none;
font-family: 'Open Sans', sans-serif;
text-shadow: 1px 1px #fff;
}
text.parent {
font-size: 16px;
fill: #1f77b4;
}
circle {
fill: #ffffff;
/*stroke: #999;*/
pointer-events: all;
cursor: pointer;
}
circle.parent {
f... |
523adc6d143a4f86664a96a4d12989b1ad953d8c | run_macos.sh | run_macos.sh | if [ "$(id -u)" != "0" ]; then
echo "Must be run as root with sudo!"
exit 1
fi
echo "Temporarily disabling FTDI drivers."
kextunload -b com.apple.driver.AppleUSBFTDI
kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext
echo ""
python run.py $@
| if [ "$(id -u)" != "0" ]; then
echo "Must be run as root with sudo!"
exit 1
fi
echo "Temporarily disabling FTDI drivers."
kextunload -b com.apple.driver.AppleUSBFTDI
kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext
echo ""
python run.py $@
echo ""
echo "Enabling FTDI drivers again."
kextload -b com... | Update script to load FTDI drivers after exit. | Update script to load FTDI drivers after exit.
| Shell | mit | tdicola/AutoColorTemp,tdicola/AutoColorTemp | shell | ## Code Before:
if [ "$(id -u)" != "0" ]; then
echo "Must be run as root with sudo!"
exit 1
fi
echo "Temporarily disabling FTDI drivers."
kextunload -b com.apple.driver.AppleUSBFTDI
kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext
echo ""
python run.py $@
## Instruction:
Update script to load FTDI dr... |
6626cf1960b914db78231e565e6e626505be2603 | .gitlab-ci.yml | .gitlab-ci.yml | variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: "3"
stages:
- build
.general:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
native-build:
extends: .general
only: [merge_requests]
stage: build
image: registry.orfeo-toolbox.org/gbonnefille/otb-build-env/otb-ub... | variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: "3"
GIT_CHECKOUT: "false"
# Git checkout is disabled to let us handle efficiently the Git-LFS
before_script:
- git lfs fetch origin $CI_COMMIT_REF_NAME
- git checkout $CI_COMMIT_REF_NAME
stages:
- build
.general:
retry:
max: 2
when:
- runner_s... | Handle manually the checkout step | Handle manually the checkout step
Currently, `git lfs checkout` is much more efficient to download LFS data
than `git checkout` (50s / 4min).
| YAML | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB | yaml | ## Code Before:
variables:
DOCKER_DRIVER: overlay2
GIT_DEPTH: "3"
stages:
- build
.general:
retry:
max: 2
when:
- runner_system_failure
- stuck_or_timeout_failure
native-build:
extends: .general
only: [merge_requests]
stage: build
image: registry.orfeo-toolbox.org/gbonnefille/otb-... |
75818d40f27cbab71e1d0e5caa13ead61990c582 | spec/coffeescripts/models/transactions/month_spec.coffee | spec/coffeescripts/models/transactions/month_spec.coffee | describe 'LedgerWeb.Models.Transactions.Month', ->
it 'populates transactions attribute as transactions collection', ->
month = new LedgerWeb.Models.Transactions.Month
month: '2013/12'
transactions: [payee: 'my payee']
(expect month.get('transactions') instanceof LedgerWeb.Collections.Transactions... | describe 'LedgerWeb.Models.Transactions.Month', ->
it 'populates transactions attribute as transactions collection', ->
month = new LedgerWeb.Models.Transactions.Month
month: '2013/12'
transactions: [payee: 'my payee', date: '2013/12/01']
(expect month.get('transactions') instanceof LedgerWeb.Coll... | Add mandatory transaction date to spec data | Add mandatory transaction date to spec data
| CoffeeScript | mit | leoc/ledger-web | coffeescript | ## Code Before:
describe 'LedgerWeb.Models.Transactions.Month', ->
it 'populates transactions attribute as transactions collection', ->
month = new LedgerWeb.Models.Transactions.Month
month: '2013/12'
transactions: [payee: 'my payee']
(expect month.get('transactions') instanceof LedgerWeb.Collecti... |
953bea9fe6baba000ad27899ea87ff9d4f878dba | db/seeds.rb | db/seeds.rb | sherman = User.create(
name: 'Sherman Ng',
email: 'sherman.ng10@gmail.com',
password: '1234'
)
ace = User.create(
name: 'Ace Burgess',
email: 'burgess.ace@gmail.com',
password: '1234'
)
luis = User.create(
name: 'Luis Echenique',
email: 'echenique11@gmail.com',
password: '1234'
)
brendan = User.cre... | sherman = User.create(
name: 'Sherman Ng',
email: 'sherman.ng10@gmail.com',
password: '1234'
)
ace = User.create(
name: 'Ace Burgess',
email: 'burgess.ace@gmail.com',
password: '1234'
)
luis = User.create(
name: 'Luis Echenique',
email: 'echenique11@gmail.com',
password: '1234'
)
brendan = User.cre... | Update seed data, add more groups, and members to those groups | Update seed data, add more groups, and members to those groups
| Ruby | mit | aceburgess/Food-r,aceburgess/Food-r,aceburgess/Food-r | ruby | ## Code Before:
sherman = User.create(
name: 'Sherman Ng',
email: 'sherman.ng10@gmail.com',
password: '1234'
)
ace = User.create(
name: 'Ace Burgess',
email: 'burgess.ace@gmail.com',
password: '1234'
)
luis = User.create(
name: 'Luis Echenique',
email: 'echenique11@gmail.com',
password: '1234'
)
br... |
f8f0be9285df02135a119bd167710ed148bd6b4f | .travis.yml | .travis.yml | language: c
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- ./travis-tool.sh r_binary_install Rcpp
- ./travis-tool.sh r_binary_install rgl
- ./travis-tool.sh r_binary_install XML
- ./t... | language: c
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- ./travis-tool.sh r_binary_install Rcpp
- ./travis-tool.sh r_binary_install rgl
- ./travis-tool.sh r_binary_install XML
- ./t... | Remove RJDBC/GoogleVis from Travis installs | Remove RJDBC/GoogleVis from Travis installs
| YAML | mit | iheartradio/ShinyBuilder,gcnonato/ShinyBuilder,gcnonato/ShinyBuilder,iheartradio/ShinyBuilder | yaml | ## Code Before:
language: c
before_install:
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- ./travis-tool.sh r_binary_install Rcpp
- ./travis-tool.sh r_binary_install rgl
- ./travis-tool.sh r_binary_ins... |
3eb39cf29563deade1d8a2b6687bbb0f17101ba0 | app/controllers/messages/create.js | app/controllers/messages/create.js | var r = require('rethinkdb');
module.exports = function messageCreator(pool) {
return function(message) {
return pool.runQuery(r.table('messages').insert({
body: message.body,
creation: r.now()
}));
};
};
| var r = require('rethinkdb');
module.exports = function messageCreator(pool) {
return function(message) {
return pool.runQuery(r.table('messages').insert({
body: message.body,
scope: message.scope,
creation: r.now()
}));
};
};
| Include scope in controller when adding post | Include scope in controller when adding post
| JavaScript | mit | dingroll/dingroll.com,dingroll/dingroll.com | javascript | ## Code Before:
var r = require('rethinkdb');
module.exports = function messageCreator(pool) {
return function(message) {
return pool.runQuery(r.table('messages').insert({
body: message.body,
creation: r.now()
}));
};
};
## Instruction:
Include scope in controller when adding post
## Code Aft... |
b4bb3b32dd3f415cc0a19d12c370ae5da15dbd20 | README.md | README.md | 

# jsonrpcclient
Send [JSON-RPC](http://www.jsonrpc.org/) requests in Python.
```sh
pip install "jsonrpcclient[requests]"
```
```python
from jsonrpcclient.clients i... | 

*Version 3 coming soon, see [changelog](https://github.com/bcb/jsonrpcclient/blob/master/CHANGELOG.md).*
# jsonrpcclient
Send [JSON-RPC](http://www.jsonrpc.org/) re... | Add "version 3 coming soon" to readme | Add "version 3 coming soon" to readme
| Markdown | mit | bcb/jsonrpcclient | markdown | ## Code Before:


# jsonrpcclient
Send [JSON-RPC](http://www.jsonrpc.org/) requests in Python.
```sh
pip install "jsonrpcclient[requests]"
```
```python
from jsonrpc... |
313ed26da208e6b2dc6b80c0f1c466d162fb37d0 | README.md | README.md | AndroidIPC
==========
Samples for various Android IPC mechanisms
| AndroidIPC
==========
Samples for various Android IPC mechanisms
Build and run
-------------
You need ROOT permission from the adb
$ ndk-build
$ adb push libs/armeabi-v7a/ipc /data/local/
$ adb shell /data/local/ipc # start the service
Then just use your Eclipse in the regular way.
| Add instructions to build and run | Add instructions to build and run
| Markdown | bsd-3-clause | vecio/AndroidIPC,vecio/AndroidIPC,vecio/AndroidIPC | markdown | ## Code Before:
AndroidIPC
==========
Samples for various Android IPC mechanisms
## Instruction:
Add instructions to build and run
## Code After:
AndroidIPC
==========
Samples for various Android IPC mechanisms
Build and run
-------------
You need ROOT permission from the adb
$ ndk-build
$ adb push libs... |
5b155d67b6a6a6c5b34e35a2e6ad0dc6dc066e78 | .github/workflows/ci.yml | .github/workflows/ci.yml | name: CI
on: push
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
CI: true
strategy:
matrix:
node: [12, 14]
steps:
- uses: actions/checkout@master
- name: Setup environment
id: setups
run: |-
echo "::set-output name=yarn_cache:... | name: CI
on:
push:
pull_request:
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
CI: true
strategy:
matrix:
node: [12, 14]
steps:
- uses: actions/checkout@master
- name: Setup environment
id: setups
run: |-
echo "::set-outp... | Update CI workflow to also run on PRs | Update CI workflow to also run on PRs | YAML | mit | davidtheclark/focus-trap-react | yaml | ## Code Before:
name: CI
on: push
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
env:
CI: true
strategy:
matrix:
node: [12, 14]
steps:
- uses: actions/checkout@master
- name: Setup environment
id: setups
run: |-
echo "::set-output ... |
2bac5189f6f87ec31da142c736f089d7d1c617a7 | .ci/jobs.t/elastic+elasticsearch+{branch}+docker-test-ramdisk.yml | .ci/jobs.t/elastic+elasticsearch+{branch}+docker-test-ramdisk.yml | - job:
name: elastic+elasticsearch+%BRANCH%+docker-test-ramdisk
workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+docker-test
display-name: "elastic / elasticsearch # %BRANCH% - docker test ramdisk (experimental)"
description: "Experimental test job to shake out issues with Docker in CI\n"
node: "(... | - job:
name: elastic+elasticsearch+%BRANCH%+docker-test-ramdisk
workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+docker-test
display-name: "elastic / elasticsearch # %BRANCH% - docker test ramdisk (experimental)"
description: "Experimental test job to shake out issues with Docker in CI\n"
node: "(... | Disable the build trigger until we sort out the JJBB workspace issue | Disable the build trigger until we sort out the JJBB workspace issue
Signed-off-by: Mark Vieira <f6840bd00355a30f3e871ae9ddf7d6e0fa36dc75@gmail.com>
| YAML | apache-2.0 | nknize/elasticsearch,uschindler/elasticsearch,gingerwizard/elasticsearch,nknize/elasticsearch,HonzaKral/elasticsearch,HonzaKral/elasticsearch,robin13/elasticsearch,nknize/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,gin... | yaml | ## Code Before:
- job:
name: elastic+elasticsearch+%BRANCH%+docker-test-ramdisk
workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+docker-test
display-name: "elastic / elasticsearch # %BRANCH% - docker test ramdisk (experimental)"
description: "Experimental test job to shake out issues with Docker in CI... |
6d4e79c6de63050bbfdf0e1a2d18a7c84cac111f | .travis.yml | .travis.yml | sudo: false
language: perl
perl:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
matrix:
allow_failures:
- perl: "5.8"
- perl: "5.10"
- perl: "5.24"
branches:
except:
- "release/cpan"
#env:
#global:
... | sudo: false
language: perl
perl:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
matrix:
allow_failures:
- perl: "5.8"
- perl: "5.10"
- perl: "5.12"
- perl: "5.24"
branches:
except:
- "release/cpan"
#... | Allow fails on Perl v5.12 | Allow fails on Perl v5.12
We've got to refactor how we do CI here; Dist::Zilla isn't supporting
older Perls, and our current approach of "build the dist each time!"
just isn't working anymore.
But for now, don't let the fail botch everything.
| YAML | lgpl-2.1 | RsrchBoy/Test-Moose-More,RsrchBoy/Test-Moose-More | yaml | ## Code Before:
sudo: false
language: perl
perl:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
matrix:
allow_failures:
- perl: "5.8"
- perl: "5.10"
- perl: "5.24"
branches:
except:
- "release/cpan"
#env:
... |
fbae1592e9a94a4b6faec0896abfc38acb06d5d2 | top40.py | top40.py | import click
import requests
url = 'http://ben-major.co.uk/labs/top40/api/singles/'
response = requests.get(url)
print response.json()
|
import click
import requests
url = 'http://ben-major.co.uk/labs/top40/api/singles/'
@click.command()
@click.option('--count',
default=10,
help='Number of songs to show. Maximum is 40')
def get_charts(count):
"""Prints the top COUNT songs in the UK Top 40 chart."""
response = requests.get(url).json(... | Implement basic printing of the singles chart | Implement basic printing of the singles chart
| Python | mit | kevgathuku/top40,andela-kndungu/top40 | python | ## Code Before:
import click
import requests
url = 'http://ben-major.co.uk/labs/top40/api/singles/'
response = requests.get(url)
print response.json()
## Instruction:
Implement basic printing of the singles chart
## Code After:
import click
import requests
url = 'http://ben-major.co.uk/labs/top40/api/singles/'
... |
faba749956a7205fbc097e9179289de00cf320ee | src/main/java/mirror/Queues.java | src/main/java/mirror/Queues.java | package mirror;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class Queues {
// this is probably too large, but hopefully it will avoid inotify overflow exceptions
public final BlockingQueue<Update> incomingQueue = new ArrayBlockingQueue<>(1_000_000);
public ... | package mirror;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
public class Queues {
// this is probably too large, but hopefully it will avoid inotify overflow exceptions
public final BlockingQueue<Update> incomingQueue = new LinkedBlockingQueue<>(1_000_000);
// Th... | Fix sends blocking due to small queue size. | Fix sends blocking due to small queue size.
| Java | apache-2.0 | stephenh/mirror,stephenh/mirror | java | ## Code Before:
package mirror;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
public class Queues {
// this is probably too large, but hopefully it will avoid inotify overflow exceptions
public final BlockingQueue<Update> incomingQueue = new ArrayBlockingQueue<>(1_000... |
e18ecf40741c151bce341c45a0396e159c165e9b | app/filters/link_filter.rb | app/filters/link_filter.rb |
class LinkFilter < Filter
HTTPS_WHITELIST = [
/\Ahttps?:\/\/([\w\d\-]+\.)?youtube\.(com|com\.br|fr|jp|nl|pl|es|ie|co\.uk)\//,
/\Ahttps?:\/\/youtu\.be\//,
/\Ahttps?:\/\/vimeo\.com\//,
/\Ahttps?:\/\/soundcloud\.com\//
]
def process(post)
@post = post
relativize_local_links!
rewrite_fo... |
class LinkFilter < Filter
HTTPS_WHITELIST = %w{
youtube.com
*.youtube.com
vimeo.com
soundcloud.com
}
def process(post)
@post = post
relativize_local_links!
rewrite_for_https_support!
parser.to_html
end
private
def local_domains
Sugar.config.domain_names.try(:strip).t... | Use globbing for https match | Use globbing for https match
| Ruby | mit | Wevah/sugar,Wevah/sugar,vena/sugar,elektronaut/sugar,elektronaut/sugar,elektronaut/sugar,vena/sugar,vena/sugar,elektronaut/sugar,Wevah/sugar | ruby | ## Code Before:
class LinkFilter < Filter
HTTPS_WHITELIST = [
/\Ahttps?:\/\/([\w\d\-]+\.)?youtube\.(com|com\.br|fr|jp|nl|pl|es|ie|co\.uk)\//,
/\Ahttps?:\/\/youtu\.be\//,
/\Ahttps?:\/\/vimeo\.com\//,
/\Ahttps?:\/\/soundcloud\.com\//
]
def process(post)
@post = post
relativize_local_links... |
0d94b988715aa46fc358cd53629e42a0317103b0 | bower.json | bower.json | {
"name": "proxer-desktop",
"authors": [
"Tim Hagemann <tim@infinityblade.de>"
],
"description": "A desktop application for proxer.me",
"keywords": [
"electron",
"desktop",
"anime",
"proxer"
],
"license": "MIT",
"homepage": "http://github.com/kumpelblase2/proxtop",
"ignore": [
... | {
"name": "proxer-desktop",
"authors": [
"Tim Hagemann <tim@infinityblade.de>"
],
"description": "A desktop application for proxer.me",
"keywords": [
"electron",
"desktop",
"anime",
"proxer"
],
"license": "MIT",
"homepage": "http://github.com/kumpelblase2/proxtop",
"ignore": [
... | Fix angular for the time being | Fix angular for the time being
| JSON | mit | kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop,kumpelblase2/proxtop | json | ## Code Before:
{
"name": "proxer-desktop",
"authors": [
"Tim Hagemann <tim@infinityblade.de>"
],
"description": "A desktop application for proxer.me",
"keywords": [
"electron",
"desktop",
"anime",
"proxer"
],
"license": "MIT",
"homepage": "http://github.com/kumpelblase2/proxtop",
... |
47496f63e76c93f6b34802b151cd3105a311e633 | README.rst | README.rst | phpspec
=======
The main website with documentation is at `http://phpspec.net <http://phpspec.net>`_.
.. image:: https://travis-ci.org/phpspec/phpspec.svg?branch=master
:target: http://travis-ci.org/phpspec/phpspec
:alt: Master Travis Build Status
:align: bottom
.. image:: https://scrutinizer-ci.com/g/phpsp... | phpspec
=======
The main website with documentation is at `http://phpspec.net <http://phpspec.net>`_.
.. image:: https://travis-ci.org/phpspec/phpspec.svg?branch=master
:target: http://travis-ci.org/phpspec/phpspec
:alt: Master Travis Build Status
.. image:: https://scrutinizer-ci.com/g/phpspec/phpspec/badges/... | Remove alignment (was breaking render) | Remove alignment (was breaking render) | reStructuredText | mit | bestform/phpspec,localheinz/phpspec,carlosV2/phpspec,ghamoron/phpspec,ghamoron/phpspec,danielkmariam/phpspec,shanethehat/phpspec,ulabox/phpspec,iakio/phpspec,rawkode/phpspec,rawkode/phpspec,pamil/phpspec,Dragonrun1/phpspec,nosun/phpspec,gnugat-forks/phpspec,danielkmariam/phpspec,docteurklein/phpspec,gnugat-forks/phpspe... | restructuredtext | ## Code Before:
phpspec
=======
The main website with documentation is at `http://phpspec.net <http://phpspec.net>`_.
.. image:: https://travis-ci.org/phpspec/phpspec.svg?branch=master
:target: http://travis-ci.org/phpspec/phpspec
:alt: Master Travis Build Status
:align: bottom
.. image:: https://scrutinize... |
4c6ee4d232c271226daf479800a756bc7a73837c | core/config/elasticsearch.yml | core/config/elasticsearch.yml | development:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_development
test:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_test
testserver:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_testserver
staging:
elasticsearch... | development:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_development
test:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_test
testserver:
elasticsearch:
hostname: 89.188.27.177
port: 9200
cluster: factlink_testserver
staging:
elasticse... | Use dedicated ElasticSearch server for testserver environment | Use dedicated ElasticSearch server for testserver environment
| YAML | mit | daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core | yaml | ## Code Before:
development:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_development
test:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_test
testserver:
elasticsearch:
hostname: localhost
port: 9200
cluster: factlink_testserver
staging:... |
cf4844ea7eec58e0421ece4e4af43f6b467f3108 | .dotfiles/java/options.zsh | .dotfiles/java/options.zsh |
export JAVA_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"
|
export JAVA_OPTS="-Xms256m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m"
| Replace deprecated PermSize and MaxPermSize with MetaspaceSign and MacMetaspaceSize, respectively | Replace deprecated PermSize and MaxPermSize with MetaspaceSign and MacMetaspaceSize, respectively
| Shell | mit | phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles,phatblat/dotfiles | shell | ## Code Before:
export JAVA_OPTS="-Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m"
## Instruction:
Replace deprecated PermSize and MaxPermSize with MetaspaceSign and MacMetaspaceSize, respectively
## Code After:
export JAVA_OPTS="-Xms256m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m"
|
bb33a8368a002e643dbcb9d8a43ce3bec31baa1e | QGVCore/private/QGVGraphPrivate.cpp | QGVCore/private/QGVGraphPrivate.cpp |
QGVGraphPrivate::QGVGraphPrivate(Agraph_t *graph)
{
setGraph(graph);
}
void QGVGraphPrivate::setGraph(Agraph_t *graph)
{
_graph = graph;
}
Agraph_t* QGVGraphPrivate::graph() const
{
return _graph;
}
|
QGVGraphPrivate::QGVGraphPrivate(Agraph_t *graph)
: _graph (NULL)
{
setGraph(graph);
}
void QGVGraphPrivate::setGraph(Agraph_t *graph)
{
if (_graph != NULL)
agclose(_graph);
_graph = graph;
}
Agraph_t* QGVGraphPrivate::graph() const
{
return _graph;
}
| Call agclose when clearing the graph | Call agclose when clearing the graph
| C++ | lgpl-2.1 | humanoid-path-planner/qgv,humanoid-path-planner/qgv | c++ | ## Code Before:
QGVGraphPrivate::QGVGraphPrivate(Agraph_t *graph)
{
setGraph(graph);
}
void QGVGraphPrivate::setGraph(Agraph_t *graph)
{
_graph = graph;
}
Agraph_t* QGVGraphPrivate::graph() const
{
return _graph;
}
## Instruction:
Call agclose when clearing the graph
## Code After:
QGVGraphPrivate::QGVGraphPri... |
e8261a413a76c42b8b5f28e1163f055e207db52a | _layouts/index.html | _layouts/index.html | {% include jeaye.com/_includes/header.html %}
<div id="content">
{{ content }}
<hr />
</div>
{% include jeaye.com/_includes/footer.html %}
| ---
nav-blog-class: current
---
{% include jeaye.com/_includes/header.html %}
<div id="content">
{{ content }}
<hr />
</div>
{% include jeaye.com/_includes/footer.html %}
| Include blog metadata for each post | Include blog metadata for each post
| HTML | mit | jeaye/jeaye.github.io,jeaye/jeaye.github.io | html | ## Code Before:
{% include jeaye.com/_includes/header.html %}
<div id="content">
{{ content }}
<hr />
</div>
{% include jeaye.com/_includes/footer.html %}
## Instruction:
Include blog metadata for each post
## Code After:
---
nav-blog-class: current
---
{% include jeaye.com/_includes/header.html %}
<div id="c... |
ddce71b8d7ed967eca67caec075ccfc72352d1a5 | .travis.yml | .travis.yml | sudo: false
language: ruby
before_install: gem install bundler -v 1.13.6
matrix:
fast_finish: true
include:
- rvm: ruby-head
gemfile: gemfiles/railsmaster.gemfile
- rvm: jruby-9.1.0.0
gemfile: gemfiles/jruby.gemfile
- rvm: 2.4.1
gemfile: Gemfile
- rvm: 2.4.1
gemfile: gemfile... | sudo: false
language: ruby
before_install: gem install bundler -v 1.13.6
matrix:
fast_finish: true
include:
- rvm: ruby-head
gemfile: gemfiles/railsmaster.gemfile
- rvm: jruby-9.1.0.0
gemfile: gemfiles/jruby.gemfile
- rvm: 2.5.0
gemfile: Gemfile
- rvm: 2.4.1
gemfile: Gemfile... | Add ruby 2.5 to CI | Add ruby 2.5 to CI
| YAML | mit | palkan/test-prof,palkan/test-prof | yaml | ## Code Before:
sudo: false
language: ruby
before_install: gem install bundler -v 1.13.6
matrix:
fast_finish: true
include:
- rvm: ruby-head
gemfile: gemfiles/railsmaster.gemfile
- rvm: jruby-9.1.0.0
gemfile: gemfiles/jruby.gemfile
- rvm: 2.4.1
gemfile: Gemfile
- rvm: 2.4.1
... |
7b164901bc5282f15e30c0ac8edef63042208f22 | app/controllers/monologue/posts_controller.rb | app/controllers/monologue/posts_controller.rb | class Monologue::PostsController < Monologue::ApplicationController
def index
@page = params[:page].nil? ? 1 : params[:page]
@posts = Monologue::Post.page(@page).published
end
def show
if monologue_current_user
@post = Monologue::Post.default.where("url = :url", {url: params[:post_url]}).first
... | class Monologue::PostsController < Monologue::ApplicationController
def index
@page = params[:page].nil? ? 1 : params[:page]
@posts = Monologue::Post.published.page(@page)
end
def show
if monologue_current_user
@post = Monologue::Post.default.where("url = :url", {url: params[:post_url]}).first
... | Revert "Fixed a pagination bug" | Revert "Fixed a pagination bug"
This reverts commit a24f16ea8bddcb1510d22b52d290ca5b26d41e4b.
| Ruby | mit | tam-vo/monologue,GapIntelligence/monologue,bertomartin/monologue,bertomartin/monologue,jipiboily/monologue,thiesa/monologue,jaimerson/monologue,jaimerson/monologue,paresharma/monologue,tam-vo/monologue,abreckner/monologue,thiesa/monologue,GapIntelligence/monologue,thiesa/monologue,jaimerson/monologue,caitlingoldman/mon... | ruby | ## Code Before:
class Monologue::PostsController < Monologue::ApplicationController
def index
@page = params[:page].nil? ? 1 : params[:page]
@posts = Monologue::Post.page(@page).published
end
def show
if monologue_current_user
@post = Monologue::Post.default.where("url = :url", {url: params[:po... |
ac257febf164a72938b71e354b0fc52afdb78409 | eng/pipelines/dotnet-core.yml | eng/pipelines/dotnet-core.yml | trigger: none
pr:
- master
variables:
- template: variables/common.yml
- name: manifest
value: manifest.json
stages:
- template: ../common/templates/stages/build-test-publish-repo.yml
parameters:
${{ if eq(variables['System.TeamProject'], 'public') }}:
buildMatrixType: platformVersionedOs
customBui... | trigger: none
pr:
- master
variables:
- template: variables/common.yml
- name: manifest
value: manifest.json
stages:
- template: ../common/templates/stages/build-test-publish-repo.yml
parameters:
${{ if eq(variables['System.TeamProject'], 'public') }}:
buildMatrixType: platformVersionedOs
customBui... | Adjust timeout for Windows arm build leg | Adjust timeout for Windows arm build leg
| YAML | mit | dotnet/dotnet-docker,MichaelSimons/dotnet-docker,dotnet/dotnet-docker,MichaelSimons/dotnet-docker | yaml | ## Code Before:
trigger: none
pr:
- master
variables:
- template: variables/common.yml
- name: manifest
value: manifest.json
stages:
- template: ../common/templates/stages/build-test-publish-repo.yml
parameters:
${{ if eq(variables['System.TeamProject'], 'public') }}:
buildMatrixType: platformVersionedOs... |
d5527bfbfc6dbb3b6fa931ec202db89d3d443e9e | .eslintrc.json | .eslintrc.json | {
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": false
},
"sourceType": "module"
},
"extends": "eslint-config-collaborne",
"overrides": [
{
"files": "src/index.js",
"parserOptions": {
"sourceType": "script"
}
},
{
"files":... | {
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": false
},
"sourceType": "module"
},
"extends": "eslint-config-collaborne",
"overrides": [
{
"files": "src/index.js",
"parserOptions": {
"sourceType": "script"
}
}
]
}
| Remove the override for sqs.js | Remove the override for sqs.js
All non-standard eslint warnings have been fixed now, so this override is no longer needed.
| JSON | mit | Collaborne/kubernetes-aws-resource-service,Collaborne/kubernetes-aws-resource-service | json | ## Code Before:
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": false
},
"sourceType": "module"
},
"extends": "eslint-config-collaborne",
"overrides": [
{
"files": "src/index.js",
"parserOptions": {
"sourceType": "script"
}
},... |
ef2a064db4600729c8ab0a0ebe34f11370d45eb7 | integration-tests/src/test/java/org/realityforge/arez/integration/AbstractArezIntegrationTest.java | integration-tests/src/test/java/org/realityforge/arez/integration/AbstractArezIntegrationTest.java | package org.realityforge.arez.integration;
import org.realityforge.arez.ArezTestUtil;
import org.realityforge.braincheck.BrainCheckTestUtil;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@SuppressWarnings( "Duplicates" )
public abstract class AbstractArezIntegrationTest
{
@B... | package org.realityforge.arez.integration;
import java.util.ArrayList;
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.realityforge.arez.Arez;
import org.realityforge.arez.ArezTestUtil;
import org.realityforge.arez.Observer;
import org.realityforge.arez... | Make sure tests fail if unexpected observer errors occur | Make sure tests fail if unexpected observer errors occur
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez | java | ## Code Before:
package org.realityforge.arez.integration;
import org.realityforge.arez.ArezTestUtil;
import org.realityforge.braincheck.BrainCheckTestUtil;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
@SuppressWarnings( "Duplicates" )
public abstract class AbstractArezIntegr... |
8a18f08fc98e6d47654ae64a8faed9fd6ddee27a | jenkins/jobs/deb-build-pkg.yaml | jenkins/jobs/deb-build-pkg.yaml | - job:
name: pkgdeb-build-pkg
node: debian-jessie
wrappers:
- build-timeout:
timeout: 30
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
# Install the build env...
sudo apt-get update
sudo apt-get install -y ope... | - job:
name: pkgdeb-build-pkg
node: debian-jessie
wrappers:
- build-timeout:
timeout: 30
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
# Add OpenStack Infra internal repositories to APT source lists
sudo ln -s \
... | Add OpenStack Infra internal repositories to APT source lists | Add OpenStack Infra internal repositories to APT source lists
Distribution: jessie-newton
pkgdeb-build-pkg Jenkins job fails [1] because of an old (22)
openstack-pkg-tools package version which is used during installation
and does not contain required pkgos-infra-install-sbuild binary.
[1] http://logs.openstack.org/... | YAML | apache-2.0 | openstack-infra/project-config,openstack-infra/project-config,Tesora/tesora-project-config,Tesora/tesora-project-config | yaml | ## Code Before:
- job:
name: pkgdeb-build-pkg
node: debian-jessie
wrappers:
- build-timeout:
timeout: 30
- timestamps
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
# Install the build env...
sudo apt-get update
sudo apt-ge... |
ecafc9015de90e65fa89b42a88b51db791bbfaa5 | resources/layouts/layout.xml | resources/layouts/layout.xml | <layouts>
<layout id="DownloadLayout">
<drawable id="banner"/>
<label x="center" y="75" font="Gfx.FONT_SMALL"
justification="Gfx.TEXT_JUSTIFY_CENTER" text="@Strings.downloadingWorkoutString" />
</layout>
<layout id="ErrorLayout">
<drawable id="banner"/>
<label id="message" x="center" y="75" ... | <layouts>
<layout id="DownloadLayout">
<drawable id="banner"/>
<label id="message" x="center" y="75" font="Gfx.FONT_SMALL"
justification="Gfx.TEXT_JUSTIFY_CENTER" text="@Strings.downloadingWorkoutString" />
</layout>
<layout id="ErrorLayout">
<drawable id="banner"/>
<label id="message" x="ce... | Add an id to the DownloadLayout message, for future use | Add an id to the DownloadLayout message, for future use
| XML | bsd-2-clause | TrainAsONE/trainasone-connectiq | xml | ## Code Before:
<layouts>
<layout id="DownloadLayout">
<drawable id="banner"/>
<label x="center" y="75" font="Gfx.FONT_SMALL"
justification="Gfx.TEXT_JUSTIFY_CENTER" text="@Strings.downloadingWorkoutString" />
</layout>
<layout id="ErrorLayout">
<drawable id="banner"/>
<label id="message" x=... |
ead428c4885b7bb3c14d6a029527b8b9b6f295b9 | _notes/framework/ruby_on_rails/13_delete_associated.md | _notes/framework/ruby_on_rails/13_delete_associated.md | ---
---
### Allow deleting comments
```html
<!-- app/views/comments/_comment.html.erb -->
<p>
<%= link_to 'Destroy Comment', [comment.article, comment],
method: :delete,
data: { confirm: 'Are you sure?' } %>
</p>
```
```ruby
# app/controllers/comments_controller.rb
class CommentsContro... | ---
---
### Allow deleting comments
```html
<!-- app/views/comments/_comment.html.erb -->
<p>
<%= link_to 'Destroy Comment', [comment.article, comment],
method: :delete,
data: { confirm: 'Are you sure?' } %>
</p>
```
```ruby
# app/controllers/comments_controller.rb
class CommentsContro... | Add ruby on rails note: cascade delete | Add ruby on rails note: cascade delete
| Markdown | mit | Yutsuten/Yutsuten.github.io,Yutsuten/Yutsuten.github.io,Yutsuten/Yutsuten.github.io | markdown | ## Code Before:
---
---
### Allow deleting comments
```html
<!-- app/views/comments/_comment.html.erb -->
<p>
<%= link_to 'Destroy Comment', [comment.article, comment],
method: :delete,
data: { confirm: 'Are you sure?' } %>
</p>
```
```ruby
# app/controllers/comments_controller.rb
clas... |
c4de35bd31f75e1f3b2f6693e71c7a4da51d11bf | src/mage1/app/code/community/VinaiKopp/PostCodeFilter/etc/adminhtml.xml | src/mage1/app/code/community/VinaiKopp/PostCodeFilter/etc/adminhtml.xml | <?xml version="1.0"?>
<config>
<menu>
<customer>
<children>
<vinaikopp_postcodefilter translate="vinaikopp_postcodefilter">
<title>Post Code Filter</title>
<sort_order>456</sort_order>
<action>adminhtml/vinaikopp_postcod... | <?xml version="1.0"?>
<config>
<menu>
<customer>
<children>
<vinaikopp_postcodefilter translate="vinaikopp_postcodefilter">
<title>PostCode Filter Rules</title>
<sort_order>456</sort_order>
<action>adminhtml/vinaikopp_po... | Make backen menu title nicer to read | Make backen menu title nicer to read
| XML | bsd-3-clause | Vinai/VinaiKopp_PostCodeFilter,Vinai/VinaiKopp_PostCodeFilter | xml | ## Code Before:
<?xml version="1.0"?>
<config>
<menu>
<customer>
<children>
<vinaikopp_postcodefilter translate="vinaikopp_postcodefilter">
<title>Post Code Filter</title>
<sort_order>456</sort_order>
<action>adminhtml/v... |
036215c233545bf0ec4e5ad7fb664f035c3fe8ec | benchmarks.rb | benchmarks.rb | require 'source'
Benchmarks =
[
HtmlSource.new(
'overnight',
'Target Overnight Lending Rate',
'http://www.bankofcanada.ca/rates/daily-digest/',
nil,
nil,
'//td[text() = "Target for the overnight rate"]' +
'/following-sibling::td[2]'
),
HtmlSource.new(
'prime',
'Prime Rate',
... | require 'source'
Benchmarks =
[
HtmlSource.new(
'overnight',
'Target Overnight Lending Rate',
'http://bankofcanada.ca/en/rates/digest.html',
nil,
nil,
'//td[text() = "Target for the overnight rate"]' +
'/following-sibling::td[2]'
),
HtmlSource.new(
'prime',
'Prime Rate',
... | Fix Bank of Canada URLs | Fix Bank of Canada URLs
| Ruby | mit | dcecile/tuppence | ruby | ## Code Before:
require 'source'
Benchmarks =
[
HtmlSource.new(
'overnight',
'Target Overnight Lending Rate',
'http://www.bankofcanada.ca/rates/daily-digest/',
nil,
nil,
'//td[text() = "Target for the overnight rate"]' +
'/following-sibling::td[2]'
),
HtmlSource.new(
'prime',
... |
ba317bb00b868dfabdffcd96934fd53588b67f50 | index.js | index.js | /* eslint-env node */
'use strict';
module.exports = {
name: 'ember-chrome-devtools',
included(parent) {
this.isProductionBuild = parent.env === 'production';
},
treeFor(name) {
if (this.isProductionBuild) {
return;
}
return this._super.treeFor.apply(this, arguments);
},
};
| /* eslint-env node */
'use strict';
module.exports = {
name: 'ember-chrome-devtools',
findHost() {
// `ember-cli` >= 2.7.0 has _findHost
if (typeof this._findHost === 'function') {
return this._findHost();
}
// Otherwise we polyfill
let app;
let current = this;
do {
app = ... | Use prefered method of locating actual app instance | Use prefered method of locating actual app instance
Newer versions of ember-cli have a `_findHost` function to do this for
us but for backward compatibility we also polyfill the functionality
when it's not available.
| JavaScript | mit | dwickern/ember-chrome-devtools,dwickern/ember-chrome-devtools | javascript | ## Code Before:
/* eslint-env node */
'use strict';
module.exports = {
name: 'ember-chrome-devtools',
included(parent) {
this.isProductionBuild = parent.env === 'production';
},
treeFor(name) {
if (this.isProductionBuild) {
return;
}
return this._super.treeFor.apply(this, arguments);
... |
7654d9dcebb0ad1e862e376b5b694234173289ed | twitter_helper/util.py | twitter_helper/util.py | import random
def random_line(afile, max_chars = 123, min_chars = 5):
line = next(afile)
for num, aline in enumerate(afile):
aline = aline.strip()
if (len(aline) < min_chars or aline[0].islower() or len(aline) > max_chars) or random.randrange(num + 2):
continue
line = aline
... | import random
def random_line(afile, max_chars = 123, min_chars = 5):
line = next(afile)
for num, aline in enumerate(afile):
aline = aline.strip()
if (len(aline) < min_chars or aline[0].islower() or len(aline) > max_chars) or random.randrange(num + 2):
continue
line = aline
... | Reset pointer to the beginning of file once read it | Reset pointer to the beginning of file once read it
Be polite, put things back in the place you found them
| Python | mit | kuzeko/Twitter-Importer,kuzeko/Twitter-Importer | python | ## Code Before:
import random
def random_line(afile, max_chars = 123, min_chars = 5):
line = next(afile)
for num, aline in enumerate(afile):
aline = aline.strip()
if (len(aline) < min_chars or aline[0].islower() or len(aline) > max_chars) or random.randrange(num + 2):
continue
... |
0d6fb7f74ed2e586488c9c3e05f22d0a317f7968 | README.md | README.md | prosemaker
==========
Document assembly for scientific reporting
| [](https://travis-ci.org/DanielBaird/prosemaker)
prosemaker
==========
Document assembly for scientific reporting
| Add travis badge to project | Add travis badge to project
| Markdown | apache-2.0 | DanielBaird/prosemaker | markdown | ## Code Before:
prosemaker
==========
Document assembly for scientific reporting
## Instruction:
Add travis badge to project
## Code After:
[](https://travis-ci.org/DanielBaird/prosemaker)
prosemaker
==========
Document assembly for scientific report... |
0ce695b7c08a2dbc024778765c301246191cb481 | src/DateTime.vue | src/DateTime.vue | <template>
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"/>
</span>
... | <template>
<div class="form-group">
<div class='input-group date'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"/>
</span>
</div>
</div>
</template>
<script>
import $ fro... | Update jquery selector to use find instead of children. Additionally, use the datetimepicker API's date function instead of jquery's value to set the initial date value. Also fix the bug in which this needs to refer to the vue instance instead of the jquery callback | Update jquery selector to use find instead of children. Additionally, use the datetimepicker API's date function instead of jquery's value to set the initial date value. Also fix the bug in which this needs to refer to the vue instance instead of the jquery callback
| Vue | mit | bkneis/vue2-datetime-picker | vue | ## Code Before:
<template>
<div class='col-sm-6'>
<div class="form-group">
<div class='input-group date'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"/>
<... |
2267c12487422f37c322c46ddd08c085c277b7d5 | source/installation/resource-manager/pbspro.rst | source/installation/resource-manager/pbspro.rst | .. _resource-manager-pbspro:
Configure PBS Professional
==========================
A YAML cluster configuration file for a PBS Professional resource manager on an
HPC cluster looks like:
.. code-block:: yaml
:emphasize-lines: 8-
# /etc/ood/config/clusters.d/my_cluster.yml
---
v2:
metadata:
t... | .. _resource-manager-pbspro:
Configure PBS Professional
==========================
A YAML cluster configuration file for a PBS Professional resource manager on an
HPC cluster looks like:
.. code-block:: yaml
:emphasize-lines: 8-
# /etc/ood/config/clusters.d/my_cluster.yml
---
v2:
metadata:
t... | Improve docs for PBSPro cluster config | Improve docs for PBSPro cluster config
- Clarified correct value for `exec` field
- Remove reference to Slurm
| reStructuredText | mit | OSC/ood-documentation,OSC/ood-documentation,OSC/ood-documentation,OSC/ood-documentation | restructuredtext | ## Code Before:
.. _resource-manager-pbspro:
Configure PBS Professional
==========================
A YAML cluster configuration file for a PBS Professional resource manager on an
HPC cluster looks like:
.. code-block:: yaml
:emphasize-lines: 8-
# /etc/ood/config/clusters.d/my_cluster.yml
---
v2:
me... |
77c5326158157acc0bbb0346007e91d7b5e3da12 | lib/hipchat/capistrano.rb | lib/hipchat/capistrano.rb | require 'hipchat'
Capistrano::Configuration.instance(:must_exist).load do
namespace :hipchat do
task :set_hipchat_client do
set :hipchat_client, HipChat::Client.new(hipchat_token)
end
task :notify_deploy_started do
rails_env = fetch(:hipchat_env, fetch(:rails_env, "production"))
hipch... | require 'hipchat'
Capistrano::Configuration.instance(:must_exist).load do
namespace :hipchat do
task :set_client do
set :hipchat_client, HipChat::Client.new(hipchat_token)
end
task :notify_deploy_started do
rails_env = fetch(:hipchat_env, fetch(:rails_env, "production"))
hipchat_clien... | Remove redundant hipchat reference from set_hipchat_client task. | Remove redundant hipchat reference from set_hipchat_client task.
| Ruby | mit | bonusly/hipchat-rb,banrui/hipchat-rb,hipchat/hipchat-rb,scalixte-mdsol/hipchat-rb,bonusly/hipchat-rb,StatusPage/hipchat-rb,ph/hipchat-rb,onthespotqa/hipchat-rb,hipchat/hipchat-rb | ruby | ## Code Before:
require 'hipchat'
Capistrano::Configuration.instance(:must_exist).load do
namespace :hipchat do
task :set_hipchat_client do
set :hipchat_client, HipChat::Client.new(hipchat_token)
end
task :notify_deploy_started do
rails_env = fetch(:hipchat_env, fetch(:rails_env, "production... |
7f2159389570393b3372cd166a0037580656b2bd | README.md | README.md |
Occurences of Turkish president names in books from 1920 to 2008 according to [Google Books Ngram Viewer](https://books.google.com/ngrams).
[![Turkish Presidents in French Books][2]][1]
#### [Check it on the Website!](http://kerembozdas.com/turkish-presidents)
[1]: http://kerembozdas.com/turkish-presidents
[2]: ht... |
Occurences of Turkish president names in books from 1920 to 2008 according to [Google Books Ngram Viewer](https://books.google.com/ngrams).
[![Turkish Presidents in French Books][2]][1]
#### [⭐ Check it on the Website! ⭐](http://kerembozdas.com/turkish-presidents-in-books)
[1]: http://kerembozdas.com/turkish-presi... | Change repository name and update URLs | Change repository name and update URLs | Markdown | mit | krmbzds/turkish-presidents | markdown | ## Code Before:
Occurences of Turkish president names in books from 1920 to 2008 according to [Google Books Ngram Viewer](https://books.google.com/ngrams).
[![Turkish Presidents in French Books][2]][1]
#### [Check it on the Website!](http://kerembozdas.com/turkish-presidents)
[1]: http://kerembozdas.com/turkish-pr... |
5617c3fd5e2d98b68408ffc5332c6e657613e2cc | index.js | index.js | 'use strict'
var zip = require('zippo')
var State = require('dover')
var Observ = require('observ')
var pipe = require('value-pipe')
var changeEvent = require('value-event/change')
var h = require('virtual-dom/h')
module.exports = ZipInput
function ZipInput (data) {
data = data || {}
var state = State({
valu... | 'use strict'
var zip = require('zippo')
var State = require('dover')
var Observ = require('observ')
var pipe = require('value-pipe')
var changeEvent = require('value-event/change')
var h = require('virtual-dom/h')
module.exports = ZipInput
function ZipInput (data) {
data = data || {}
var state = State({
valu... | Remove placeholder from state atom | Remove placeholder from state atom
| JavaScript | mit | bendrucker/zip-input | javascript | ## Code Before:
'use strict'
var zip = require('zippo')
var State = require('dover')
var Observ = require('observ')
var pipe = require('value-pipe')
var changeEvent = require('value-event/change')
var h = require('virtual-dom/h')
module.exports = ZipInput
function ZipInput (data) {
data = data || {}
var state = ... |
40a696c40d2996a2a914a053e164b1fc357c4611 | aws/aws.tf | aws/aws.tf | provider "aws" { }
provider "gzip" {compressionlevel = "BestCompression"}
# configured via:
# $ export AWS_ACCESS_KEY_ID="anaccesskey"
# $ export AWS_SECRET_ACCESS_KEY="asecretkey"
# $ export AWS_DEFAULT_REGION="us-west-2"
# https://www.terraform.io/docs/providers/aws/#environment-variables
terraform {
backend "s3... | provider "aws" { }
provider "gzip" {compressionlevel = "BestCompression"}
# configured via:
# $ export AWS_ACCESS_KEY_ID="anaccesskey"
# $ export AWS_SECRET_ACCESS_KEY="asecretkey"
# $ export AWS_DEFAULT_REGION="us-west-2"
# https://www.terraform.io/docs/providers/aws/#environment-variables
| Remove Default Backend Config from AWS | Remove Default Backend Config from AWS
| HCL | apache-2.0 | cncf/cross-cloud | hcl | ## Code Before:
provider "aws" { }
provider "gzip" {compressionlevel = "BestCompression"}
# configured via:
# $ export AWS_ACCESS_KEY_ID="anaccesskey"
# $ export AWS_SECRET_ACCESS_KEY="asecretkey"
# $ export AWS_DEFAULT_REGION="us-west-2"
# https://www.terraform.io/docs/providers/aws/#environment-variables
terraform... |
713cbb43ca396983f75d3534038cba091340a1ba | pom.xml | pom.xml | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.dreamteam.tardis</groupId>
<artifactId>tardis<... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.dreamteam.tardis</groupId>
<artifactId>tardis<... | Make Maven use a final name | Make Maven use a final name
This means that it should build as "SSA.jar" without version number in
some cases.
| XML | mit | The-Dream-Team/Tardis,The-Dream-Team/Tardis | xml | ## Code Before:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.dreamteam.tardis</groupId>
<ar... |
59e349fb1595107d171142afacff27dce3bc2404 | lib/lighthouse/base.rb | lib/lighthouse/base.rb | module Lighthouse
class Base < ActiveResource::Base
def self.inherited(base)
Lighthouse.resources << base
class << base
attr_accessor :site_format
def site_with_update
Lighthouse.update_site(self)
site_without_update
end
alias_method... | module Lighthouse
class Base < ActiveResource::Base
self.format = :xml
def self.inherited(base)
Lighthouse.resources << base
class << base
attr_accessor :site_format
def site_with_update
Lighthouse.update_site(self)
site_without_update
... | Change default format to XML | Change default format to XML
The default format for ActiveResource objects was XML prior to 3.1,
but has since changed. Unfortunately, additional work would be needed
to correctly parse the JSON coming back from the API, as it includes
the root class name in the returned object. To simplify things, it's
best to contin... | Ruby | mit | entp/lighthouse-api | ruby | ## Code Before:
module Lighthouse
class Base < ActiveResource::Base
def self.inherited(base)
Lighthouse.resources << base
class << base
attr_accessor :site_format
def site_with_update
Lighthouse.update_site(self)
site_without_update
end
... |
37edfcfcc2347269c058484bd54c7f6f54ce8306 | .github/workflows/build.yml | .github/workflows/build.yml | name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: >
sudo apt install meson libvulkan-dev libglm-dev libassimp-dev
libxcb1-dev lib... | name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: >
sudo apt install meson libvulkan-dev libglm-dev libassimp-dev
libxcb1-dev lib... | Update packages dependencies for wayland | ci: Update packages dependencies for wayland
We require the wayland-protocols package to be able to use the xdg-shell
protocol.
| YAML | lgpl-2.1 | vkmark/vkmark,vkmark/vkmark,vkmark/vkmark | yaml | ## Code Before:
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: >
sudo apt install meson libvulkan-dev libglm-dev libassimp-dev
... |
5319416443c4f88535be2a34d0ceb47d65edd7a8 | test/SemaCXX/cxx17-compat.cpp | test/SemaCXX/cxx17-compat.cpp | // RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++2a -Wc++17-compat-pedantic -verify %s
struct A {};
int (A::*pa)() const&;
int use_pa = (A().*pa)();
#if __cplusplus <= 201703L
// expected-warning@-2 {{invoking a pointer to a 'const &' member function on an rva... | // RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++2a -Wc++17-compat-pedantic -verify %s
struct A {};
int (A::*pa)() const&;
int use_pa = (A().*pa)();
#if __cplusplus <= 201703L
// expected-warning@-2 {{invoking a pointer to a 'const &' member function on an rva... | Add test for -Wc++17-compat warning for P0683R1. | Add test for -Wc++17-compat warning for P0683R1.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@311868 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | c++ | ## Code Before:
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -pedantic -verify %s
// RUN: %clang_cc1 -fsyntax-only -std=c++2a -Wc++17-compat-pedantic -verify %s
struct A {};
int (A::*pa)() const&;
int use_pa = (A().*pa)();
#if __cplusplus <= 201703L
// expected-warning@-2 {{invoking a pointer to a 'const &' member fu... |
5d4cb1deec4c2c58a887c86b9e0c9921be25f998 | hieradata/node.shell-01.hosting.randomness.org.uk.yaml | hieradata/node.shell-01.hosting.randomness.org.uk.yaml | ---
ufw_allow:
allow-ssh-from-anywhere:
port: '22'
from: 'any'
| ---
ufw_allow:
allow-ssh-from-anywhere:
port: '22'
from: 'any'
base_packages:
- alpine
- irssi
| Install alpine and irssi on shell machine | Install alpine and irssi on shell machine
| YAML | mit | rjw1/randomness-puppet,rjw1/randomness-puppet | yaml | ## Code Before:
---
ufw_allow:
allow-ssh-from-anywhere:
port: '22'
from: 'any'
## Instruction:
Install alpine and irssi on shell machine
## Code After:
---
ufw_allow:
allow-ssh-from-anywhere:
port: '22'
from: 'any'
base_packages:
- alpine
- irssi
|
2135f92b8a71240a184610e2dab18c1410767292 | .travis.yml | .travis.yml | sudo: false
language: ruby
rvm:
- 2.2.0
- 2.3.0
- 2.4.0
- 2.5.0
- ruby-head
before_install: gem install bundler -v 1.15.4
| sudo: false
language: ruby
rvm:
- 2.3.0
- 2.4.0
- 2.5.7
- 2.6.0
- 2.7.0
- ruby-head
before_install: gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
| Add CI testing for ruby versions 2.6 and 2.7. | Add CI testing for ruby versions 2.6 and 2.7.
Update Travis CI script to install correct version of bundler.
| YAML | mit | kinkade/active_job_resque_solo,kinkade/active_job_resque_solo | yaml | ## Code Before:
sudo: false
language: ruby
rvm:
- 2.2.0
- 2.3.0
- 2.4.0
- 2.5.0
- ruby-head
before_install: gem install bundler -v 1.15.4
## Instruction:
Add CI testing for ruby versions 2.6 and 2.7.
Update Travis CI script to install correct version of bundler.
## Code After:
sudo: false
language: ruby
rv... |
e460d70db26e0f25e8ea428dc4eb5b99484bac61 | README.md | README.md |
Twisted wrapper for [Kazoo](https://github.com/python-zk/kazoo/).
## Status
This is not yet meant for public use.
## Running tests
Use [`tox`](http://tox.testrun.org/).
|
Twisted wrapper for [Kazoo](https://github.com/python-zk/kazoo/).
## Status
This is not yet meant for public use.
## Running tests
Use [`tox`](http://tox.testrun.org/). By default, this will run the
entire test suite plus a number of sanity checks. Any additional
positional arguments passed to `tox` will be passed... | Document how to use tox to run part of the test suite | Document how to use tox to run part of the test suite
| Markdown | apache-2.0 | rackerlabs/txkazoo | markdown | ## Code Before:
Twisted wrapper for [Kazoo](https://github.com/python-zk/kazoo/).
## Status
This is not yet meant for public use.
## Running tests
Use [`tox`](http://tox.testrun.org/).
## Instruction:
Document how to use tox to run part of the test suite
## Code After:
Twisted wrapper for [Kazoo](https://github... |
e4baaacdd014a281330f866da2fdaa6d94fee401 | functions/fish_title.fish | functions/fish_title.fish | function _ssh_find_config_value
ssh -G $argv[2..-1] | grep -ie "^$argv[1] " | sed "s/^$argv[1] \(.*\)/\1/I"
end
function _tokenize_command
commandline -r $argv[1]
commandline -o
commandline -r ""
end
function fish_title
set -l title ""
switch $_
case fish
set title (prompt_pwd)
case vim
... | function _ssh_find_config_value
ssh -G $argv[2..-1] | grep -ie "^$argv[1] " | sed "s/^$argv[1] \(.*\)/\1/I"
end
function _tokenize_command
commandline -r $argv[1]
commandline -o
commandline -r ""
end
function fish_title
set -l title ""
switch $_
case fish
set title (prompt_pwd)
case vim
... | Add host and user to title if ssh connection is detected | Add host and user to title if ssh connection is detected
| fish | mit | wilfriedvanasten/miscvar,wilfriedvanasten/miscvar,wilfriedvanasten/miscvar | fish | ## Code Before:
function _ssh_find_config_value
ssh -G $argv[2..-1] | grep -ie "^$argv[1] " | sed "s/^$argv[1] \(.*\)/\1/I"
end
function _tokenize_command
commandline -r $argv[1]
commandline -o
commandline -r ""
end
function fish_title
set -l title ""
switch $_
case fish
set title (prompt_pwd)
... |
ee90682c0d97e953fd61c1d6c30bbf800fbc5de0 | styles/base.scss | styles/base.scss | @import 'reset';
@import 'variables';
@import 'components/components';
body {
font-size: 16px;
font-family: HelveticaNeue-Thin, sans-serif;
line-height: 1.625;
background-color: #001932;
color: #fff;
}
h1 {
font-size: 32px;
font-family: HelveticaNeue-UltraLight, sans-serif;
margin-bottom: 10px;
}
... | @import 'reset';
@import 'variables';
@import 'components/components';
body {
font-size: 16px;
font-family: HelveticaNeue-Thin, sans-serif;
line-height: 1.625;
background-color: #001932;
color: #fff;
}
h1 {
font-size: 32px;
font-family: HelveticaNeue-UltraLight, sans-serif;
margin-bottom: 10px;
}
... | Add bottom margin to paragraphs | Add bottom margin to paragraphs
| SCSS | mit | dotKom/glowing-fortnight,dotKom/glowing-fortnight | scss | ## Code Before:
@import 'reset';
@import 'variables';
@import 'components/components';
body {
font-size: 16px;
font-family: HelveticaNeue-Thin, sans-serif;
line-height: 1.625;
background-color: #001932;
color: #fff;
}
h1 {
font-size: 32px;
font-family: HelveticaNeue-UltraLight, sans-serif;
margin-b... |
3e780f65e09619703f18bc47792df167969b100f | ArtsyWidget/FullBleed/FullBleed+Entry.swift | ArtsyWidget/FullBleed/FullBleed+Entry.swift | import Foundation
import WidgetKit
extension FullBleed {
struct Entry: TimelineEntry {
let artwork: Artwork
let date: Date
static func fallback() -> Entry {
let artwork = Artwork.fallback()
let date = Date()
let entry = Entry(artwork: artwork, da... | import Foundation
import WidgetKit
extension FullBleed {
struct Entry: TimelineEntry {
let artwork: Artwork
let date: Date
static func fallback() -> Entry {
let artwork = Fixtures.primaryArtwork
let date = Date()
let entry = Entry(artwork: artwor... | Use fixtures rather than fallback for full bleed | Use fixtures rather than fallback for full bleed
| Swift | mit | artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen | swift | ## Code Before:
import Foundation
import WidgetKit
extension FullBleed {
struct Entry: TimelineEntry {
let artwork: Artwork
let date: Date
static func fallback() -> Entry {
let artwork = Artwork.fallback()
let date = Date()
let entry = Entry(artw... |
89c30b602c1c50018f4732ae47b4baec00329441 | lib/cloud_conductor/terraform/parent.rb | lib/cloud_conductor/terraform/parent.rb | module CloudConductor
class Terraform
class Parent
attr_accessor :modules
attr_reader :output
def initialize(cloud)
@cloud = cloud
@modules = []
case cloud.type
when 'aws'
@variables = %w(bootstrap_expect aws_access_key aws_secret_key aws_region ssh_ke... | module CloudConductor
class Terraform
class Parent
attr_accessor :modules
attr_reader :output
def initialize(cloud)
@cloud = cloud
@modules = []
case cloud.type
when 'aws'
@variables = %w(bootstrap_expect aws_access_key aws_secret_key aws_region ssh_ke... | Add ssh_username variable when execute terraform | Add ssh_username variable when execute terraform
| Ruby | apache-2.0 | cloudconductor/cloud_conductor,cloudconductor/cloud_conductor,cloudconductor/cloud_conductor | ruby | ## Code Before:
module CloudConductor
class Terraform
class Parent
attr_accessor :modules
attr_reader :output
def initialize(cloud)
@cloud = cloud
@modules = []
case cloud.type
when 'aws'
@variables = %w(bootstrap_expect aws_access_key aws_secret_key a... |
cc78601ceb73646da47bf1dd038f07e5f90510a1 | doc/manual/source/operations/create_users.rst | doc/manual/source/operations/create_users.rst | Creating users
==============
Creating users in CartoDB is simple thanks to the ``create_dev_user`` script located in ``scripts/create_dev_user``. To execute this script, be sure to be located at the cartodb repository root directory and simply run:
.. code-block:: bash
$ ./script/create_dev_user
You will be prom... | Creating users
==============
Creating users in CartoDB is simple thanks to the ``create_dev_user`` script located in ``scripts/create_dev_user``. To execute this script, be sure to be located at the cartodb repository root directory and simply run:
.. code-block:: bash
$ ./script/create_dev_user
You will be prom... | Remove admin password from documentation | Remove admin password from documentation
| reStructuredText | bsd-3-clause | splashblot/dronedb,codeandtheory/cartodb,codeandtheory/cartodb,CartoDB/cartodb,splashblot/dronedb,bloomberg/cartodb,codeandtheory/cartodb,codeandtheory/cartodb,splashblot/dronedb,splashblot/dronedb,bloomberg/cartodb,bloomberg/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,bloomberg/cartodb,CartoDB/cartodb,spla... | restructuredtext | ## Code Before:
Creating users
==============
Creating users in CartoDB is simple thanks to the ``create_dev_user`` script located in ``scripts/create_dev_user``. To execute this script, be sure to be located at the cartodb repository root directory and simply run:
.. code-block:: bash
$ ./script/create_dev_user
... |
19b8d15036cb3f632c7ec6699eb4e894ff8a10da | package.json | package.json | {
"name": "lfg-hypetrain",
"version": "2.0.0",
"homepage": "http://alexvan.camp/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "Provides a hype train for donations/subscriptions. Has no view page.",
"license": "MIT",
"nodecg": {
"compatibleRange": "~0.7.0",
"dashboardPanels": [
... | {
"name": "lfg-hypetrain",
"version": "2.0.0",
"homepage": "http://alexvan.camp/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "Provides a hype train for donations/subscriptions. Has no view page.",
"license": "MIT",
"nodecg": {
"compatibleRange": "~0.7.0",
"dashboardPanels": [
... | Add `headerColor` to panel manifest | Add `headerColor` to panel manifest
| JSON | mit | SupportClass/lfg-hypetrain,SupportClass/lfg-hypetrain | json | ## Code Before:
{
"name": "lfg-hypetrain",
"version": "2.0.0",
"homepage": "http://alexvan.camp/",
"author": "Alex Van Camp <email@alexvan.camp>",
"description": "Provides a hype train for donations/subscriptions. Has no view page.",
"license": "MIT",
"nodecg": {
"compatibleRange": "~0.7.0",
"dash... |
0b4900a73fb6206ad82511b2054843baec172618 | gpm/spinner.c | gpm/spinner.c | // Calculates the 45th Fibonacci number with a visual indicator.
#include <stdio.h>
#include <assert.h>
#include <libdill.h>
// Calculates Fibonacci of x.
static int fib(int x)
{
// Need to yield or spinner will not have any time to spin.
int rc = yield();
assert(rc == 0);
if (x < 2) return x;
return fib(x - 1) ... | // Calculates the 45th Fibonacci number with a visual indicator.
// Note: using yield() in fib() may allow the spinner to actually spin, but
// fib() takes a lot longer to complete. E.g. Over 2 minutes with yield()
// vs. 10 seconds without it.
#include <stdio.h>
#include <assert.h>
#include <libdill.h>
// Calculates ... | Add note about using yield(). | Add note about using yield().
| C | mit | jppunnett/libdill-tutorial | c | ## Code Before:
// Calculates the 45th Fibonacci number with a visual indicator.
#include <stdio.h>
#include <assert.h>
#include <libdill.h>
// Calculates Fibonacci of x.
static int fib(int x)
{
// Need to yield or spinner will not have any time to spin.
int rc = yield();
assert(rc == 0);
if (x < 2) return x;
re... |
6801d288ec728671330a6881306753abd30e0a8f | app/student.front.js | app/student.front.js | const $answer = $('.answer')
const {makeRichText} = require('./rich-text-editor')
const save = ($elem, async = true) => $.post({
url: '/save',
data: {text: $elem.html(), answerId: $elem.attr('id')},
async
})
function saveScreenshot(questionId) {
return ({data, type}) => {
return $.post({
... | const $answer = $('.answer')
const {makeRichText} = require('./rich-text-editor')
const save = ($elem, async = true) => $.post({
url: '/save',
data: {text: $elem.html(), answerId: $elem.attr('id')},
async
})
function saveScreenshot(questionId) {
return ({data, type}) => {
return $.post({
... | Update answer content before initializing rich text | Update answer content before initializing rich text
| JavaScript | mit | digabi/math-editor,digabi/rich-text-editor,digabi/rich-text-editor,digabi/rich-text-editor,digabi/math-editor | javascript | ## Code Before:
const $answer = $('.answer')
const {makeRichText} = require('./rich-text-editor')
const save = ($elem, async = true) => $.post({
url: '/save',
data: {text: $elem.html(), answerId: $elem.attr('id')},
async
})
function saveScreenshot(questionId) {
return ({data, type}) => {
retur... |
60293ce8fac4e3399f86c3dcdd0f5de98f0520a9 | src/Shanhaijing/SentryExt/SentryExtServiceProvider.php | src/Shanhaijing/SentryExt/SentryExtServiceProvider.php | <?php namespace Shanhaijing\SentryExt;
use Shanhaijing\SentryExt\Users\Eloquent\Provider as UserProvider;
use Cartalyst\Sentry\SentryServiceProvider;
class SentryExtServiceProvider extends SentryServiceProvider {
protected function registerUserProvider()
{
$this->app['sentry.user'] = $this->app->shar... | <?php namespace Shanhaijing\SentryExt;
use Shanhaijing\SentryExt\Users\Eloquent\Provider as UserProvider;
use Cartalyst\Sentry\SentryServiceProvider;
class SentryExtServiceProvider extends SentryServiceProvider {
protected function registerUserProvider()
{
$this->app['sentry.user'] = $this->app->shar... | Adjust function name for setLoginAttributeName. | Adjust function name for setLoginAttributeName.
This is not my fault, cause sentry changed this name.
| PHP | mit | harryxu/shanhaijing,harryxu/shanhaijing,harryxu/shanhaijing,harryxu/shanhaijing | php | ## Code Before:
<?php namespace Shanhaijing\SentryExt;
use Shanhaijing\SentryExt\Users\Eloquent\Provider as UserProvider;
use Cartalyst\Sentry\SentryServiceProvider;
class SentryExtServiceProvider extends SentryServiceProvider {
protected function registerUserProvider()
{
$this->app['sentry.user'] = ... |
4bf71f7b8045dd224531ebf9cdf5e479f60bde33 | angular_components/lib/material_tab/fixed_material_tab_strip.html | angular_components/lib/material_tab/fixed_material_tab_strip.html | <!--
Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<div class="navi-bar" focusList role="tablist">
<div class="tab-indicator" [style.transform]="tabIn... | <!--
Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<div class="navi-bar" role="tablist" focusList loop ignoreUpAndDown>
<div class="tab-indicator" [st... | Make the customizable/scrolling material tab ignore up and down arrows for focusing. Also making it loop when looping through elements. | Make the customizable/scrolling material tab ignore up and down arrows for focusing. Also making it loop when looping through elements.
PiperOrigin-RevId: 249547731
| HTML | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | html | ## Code Before:
<!--
Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
for details. All rights reserved. Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.
-->
<div class="navi-bar" focusList role="tablist">
<div class="tab-indicator" [style.t... |
450cb155d87b49a718e465d582bd2ccafb3244dd | tests/test_calculator.py | tests/test_calculator.py | import unittest
from app.calculator import Calculator
class TestCalculator(unittest.TestCase):
def setUp(self):
self.calc = Calculator()
def test_calculator_addition_method_returns_correct_result(self):
calc = Calculator()
result = calc.addition(2,2)
self.assertEqual(4, resu... | import unittest
from app.calculator import Calculator
class TestCalculator(unittest.TestCase):
def setUp(self):
self.calc = Calculator()
def test_calculator_addition_method_returns_correct_result(self):
calc = Calculator()
result = calc.addition(2,2)
self.assertEqual(4, resu... | Add new test for division | Add new test for division
| Python | apache-2.0 | kamaxeon/fap | python | ## Code Before:
import unittest
from app.calculator import Calculator
class TestCalculator(unittest.TestCase):
def setUp(self):
self.calc = Calculator()
def test_calculator_addition_method_returns_correct_result(self):
calc = Calculator()
result = calc.addition(2,2)
self.ass... |
ed56f32b9145ae50d0cd9714fe629d0d1eca60f9 | spec/spec_helper.rb | spec/spec_helper.rb | require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'rspec'
require 'rack/test'
# set test environment
Sinatra::Base.set :environment, :test
Sinatra::Base.set :run, false
Sinatra::Base.set :raise_errors, true
Sinatra::Base.set :logging, false
require 'application'
# establish in-memory database for ... | require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'rspec'
require 'rack/test'
# set test environment
Sinatra::Base.set :environment, :test
Sinatra::Base.set :run, false
Sinatra::Base.set :raise_errors, true
Sinatra::Base.set :logging, false
require File.join(File.dirname(__FILE__), '../application'... | Support for Ruby 1.9.x (thanks flexd!) | Support for Ruby 1.9.x (thanks flexd!)
| Ruby | mit | bencalegari/the_final_countdown,bencalegari/the_final_countdown | ruby | ## Code Before:
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
require 'rspec'
require 'rack/test'
# set test environment
Sinatra::Base.set :environment, :test
Sinatra::Base.set :run, false
Sinatra::Base.set :raise_errors, true
Sinatra::Base.set :logging, false
require 'application'
# establish in-memo... |
1f821124e3f0788ed54a7fe7dc70cf9f61a31dee | README.md | README.md |
Built using Polymer
|
Built using Polymer
Current State of the Website should be [here](afzalarsalan.github.io)
| Add absolute linkt to dev host | Add absolute linkt to dev host
| Markdown | bsd-3-clause | afzalarsalan/ServiceLearningWebsite2015,afzalarsalan/ServiceLearningWebsite2015,afzalarsalan/ServiceLearningWebsite2015 | markdown | ## Code Before:
Built using Polymer
## Instruction:
Add absolute linkt to dev host
## Code After:
Built using Polymer
Current State of the Website should be [here](afzalarsalan.github.io)
|
45d12f9f97c24295dd04dd63f8c651fea4c67d68 | README.md | README.md | switch
======
A lightweight switch-like widget using twitter bootstrap and jQuery. This is good for simulating states like on/off, user/admin etc.
The files to be included are switch.css and switch.js . For the buttons, this widget uses a btn-group. The html looks like this:
```html
<div class="btn-group" data-toggl... | switch.js
======
A lightweight switch-like widget using twitter bootstrap and jQuery. This is good for simulating states like on/off, user/admin etc.
#Files
The files to be included are switch.css and switch.js and the required html markup that looks like this:
```html
<div class="btn-group" data-toggle="buttons-rad... | Include examples - initial try | Include examples - initial try
| Markdown | mit | rash-mi/switch | markdown | ## Code Before:
switch
======
A lightweight switch-like widget using twitter bootstrap and jQuery. This is good for simulating states like on/off, user/admin etc.
The files to be included are switch.css and switch.js . For the buttons, this widget uses a btn-group. The html looks like this:
```html
<div class="btn-g... |
33a7c0b739a952449727b85134633da79941ad96 | browser-test-config/browserstack-karma.js | browser-test-config/browserstack-karma.js | var baseKarma = require('./base-karma')
module.exports = function(config) {
var baseConfig = baseKarma(config);
config.set(Object.assign(baseConfig, {
browsers: [
'bs_firefox_android',
'bs_chrome_mac',
],
reporters: [
'mocha', 'BrowserStack',
],
client: {
mocha: {
... | var baseKarma = require('./base-karma')
module.exports = function(config) {
var baseConfig = baseKarma(config);
config.set(Object.assign(baseConfig, {
browsers: [
'bs_firefox_android',
'bs_chrome_mac',
'bs_ie_11',
'bs_edge',
],
reporters: [
'mocha', 'BrowserStack',
]... | Configure BrowserStack testing on IE 11 and Edge | Configure BrowserStack testing on IE 11 and Edge
| JavaScript | apache-2.0 | FSMaxB/mathjs,josdejong/mathjs,josdejong/mathjs,josdejong/mathjs,FSMaxB/mathjs,FSMaxB/mathjs,josdejong/mathjs,FSMaxB/mathjs,FSMaxB/mathjs,josdejong/mathjs | javascript | ## Code Before:
var baseKarma = require('./base-karma')
module.exports = function(config) {
var baseConfig = baseKarma(config);
config.set(Object.assign(baseConfig, {
browsers: [
'bs_firefox_android',
'bs_chrome_mac',
],
reporters: [
'mocha', 'BrowserStack',
],
client: {
... |
16c1352ecf8583615e482c431ec5183fdb718f67 | split_file.py | split_file.py | from strip_comments import strip_comments
import re
__all__ = ["split_coq_file_contents"]
def split_coq_file_contents(contents):
"""Splits the contents of a coq file into multiple statements.
This is done by finding one or three periods followed by
whitespace. This is a dumb algorithm, but it seems to b... | from strip_comments import strip_comments
import re
__all__ = ["split_coq_file_contents"]
def merge_quotations(statements):
"""If there are an odd number of "s in a statement, assume that we
broke the middle of a string. We recombine that string."""
cur = None
for i in statements:
if i.count... | Make splitting more robust to periods in strings | Make splitting more robust to periods in strings
| Python | mit | JasonGross/coq-tools,JasonGross/coq-tools | python | ## Code Before:
from strip_comments import strip_comments
import re
__all__ = ["split_coq_file_contents"]
def split_coq_file_contents(contents):
"""Splits the contents of a coq file into multiple statements.
This is done by finding one or three periods followed by
whitespace. This is a dumb algorithm, b... |
3c2cf102602e5e203f83c8535a2601f4876dcff9 | kit/index.js | kit/index.js | const app = require('muffin')
const router = app.router
router.get('/', function *(next) {
console.log('Requested home')
yield next
})
app.run(router)
| const app = require('muffin')
const router = app.router
router.get('/', function *(next) {
console.log('Requested home')
yield next
})
app.run(router, {
render: {
defaultLayout: 'default'
}
})
| Set some sample rendering options | Set some sample rendering options
| JavaScript | mit | muffinjs/cli,muffin/cli | javascript | ## Code Before:
const app = require('muffin')
const router = app.router
router.get('/', function *(next) {
console.log('Requested home')
yield next
})
app.run(router)
## Instruction:
Set some sample rendering options
## Code After:
const app = require('muffin')
const router = app.router
router.get('/', functio... |
0213bbb8f8075b2dc36a33380a66932c9d541f63 | src/sphobjinv/__init__.py | src/sphobjinv/__init__.py |
from sphobjinv.data import DataFields, DataObjBytes, DataObjStr
from sphobjinv.enum import HeaderFields, SourceTypes
from sphobjinv.error import (
SphobjinvError,
VersionError,
)
from sphobjinv.fileops import readbytes, readjson, urlwalk, writebytes, writejson
from sphobjinv.inventory import Inventory
from sp... |
from sphobjinv.data import DataFields, DataObjBytes, DataObjStr
from sphobjinv.enum import HeaderFields, SourceTypes
from sphobjinv.error import SphobjinvError, VersionError
from sphobjinv.fileops import readbytes, readjson, urlwalk, writebytes, writejson
from sphobjinv.inventory import Inventory
from sphobjinv.re im... | Clean up the error imports | Clean up the error imports
The new errors that had been added for _intersphinx.py had left
the sphobjinv.error import line split. No need, when it all fits on
one line.
| Python | mit | bskinn/sphobjinv | python | ## Code Before:
from sphobjinv.data import DataFields, DataObjBytes, DataObjStr
from sphobjinv.enum import HeaderFields, SourceTypes
from sphobjinv.error import (
SphobjinvError,
VersionError,
)
from sphobjinv.fileops import readbytes, readjson, urlwalk, writebytes, writejson
from sphobjinv.inventory import I... |
9ef7d006c9c882043d2c6f6e27a62d6d26198dac | tests/png.js | tests/png.js | QUnit.module("png");
QUnit.test("png-image-element format returns an image", function(assert) {
var done = assert.async();
var image = Viz("digraph { a -> b; }", { format: "png-image-element" });
assert.ok(image instanceof Image, "image should be an Image");
image.onload = function() {
done();
}
... | QUnit.module("png");
QUnit.test("png-image-element format returns an image", function(assert) {
var done = assert.async();
var image = Viz("digraph { a -> b; }", { format: "png-image-element" });
assert.ok(image instanceof Image, "image should be an Image");
image.onload = function() {
done();
}
... | Add test for scale option. | Add test for scale option.
| JavaScript | mit | mdaines/viz.js,mdaines/viz.js,mdaines/viz.js,mdaines/viz.js | javascript | ## Code Before:
QUnit.module("png");
QUnit.test("png-image-element format returns an image", function(assert) {
var done = assert.async();
var image = Viz("digraph { a -> b; }", { format: "png-image-element" });
assert.ok(image instanceof Image, "image should be an Image");
image.onload = function() {
... |
2c502a77ad18d34470e2be89ed1c7a38e6f3799d | tests/test_drogher.py | tests/test_drogher.py | import pytest
import drogher
from drogher.exceptions import InvalidBarcode
class TestDrogher:
def test_barcode(self):
shipper = drogher.barcode('1Z999AA10123456784')
assert shipper.shipper == 'UPS'
def test_invalid_barcode(self):
with pytest.raises(InvalidBarcode):
droghe... | import pytest
import drogher
from drogher.exceptions import InvalidBarcode
class TestDrogher:
def test_dhl_barcode(self):
shipper = drogher.barcode('1656740256')
assert shipper.shipper == 'DHL'
def test_fedex_express_barcode(self):
shipper = drogher.barcode('9632001960000000000400152... | Test barcode function with all shippers | Test barcode function with all shippers
| Python | bsd-3-clause | jbittel/drogher | python | ## Code Before:
import pytest
import drogher
from drogher.exceptions import InvalidBarcode
class TestDrogher:
def test_barcode(self):
shipper = drogher.barcode('1Z999AA10123456784')
assert shipper.shipper == 'UPS'
def test_invalid_barcode(self):
with pytest.raises(InvalidBarcode):
... |
a4fb2572a0ee5cd9e51744daad0a926930441fbe | src/main/java/io/burt/jmespath/jp/Main.java | src/main/java/io/burt/jmespath/jp/Main.java | package io.burt.jmespath.jp;
import io.burt.jmespath.Query;
import io.burt.jmespath.JmesPathException;
public class Main {
public static void main(String[] args) {
if (args.length == 0 || args[0].length() == 0) {
System.exit(1);
}
try {
Query query = Query.fromString(args[0]);
System.e... | package io.burt.jmespath.jp;
import java.io.IOException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.core.JsonParseException;
import io.burt.jmespath.Query;
import io.burt.jmespath.Adapter;
import io.burt.jmespath.JmesPathException;... | Make the jp tool process the input too | Make the jp tool process the input too | Java | bsd-3-clause | burtcorp/jmespath-java | java | ## Code Before:
package io.burt.jmespath.jp;
import io.burt.jmespath.Query;
import io.burt.jmespath.JmesPathException;
public class Main {
public static void main(String[] args) {
if (args.length == 0 || args[0].length() == 0) {
System.exit(1);
}
try {
Query query = Query.fromString(args[0])... |
3c13da1be0d161b5e852fa480234488a8c52e763 | test/IRGen/async/run-call-dynamic-void_to_void.swift | test/IRGen/async/run-call-dynamic-void_to_void.swift | // RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -emit-ir -parse-as-library -module-name main | %FileCheck %s --check-prefix=CHECK-LL
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -parse-as-library -module-name main -o %t/main %ta... | // RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -emit-ir -parse-as-library -module-name main | %FileCheck %s --check-prefix=CHECK-LL
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -parse-as-library -module-name main -o %t/main %ta... | Unblock CI by disabling a test that is waiting on an automerger. | [build-wrangler] Unblock CI by disabling a test that is waiting on an automerger.
| Swift | apache-2.0 | atrick/swift,roambotics/swift,parkera/swift,roambotics/swift,xwu/swift,benlangmuir/swift,glessard/swift,tkremenek/swift,gregomni/swift,JGiola/swift,rudkx/swift,hooman/swift,gregomni/swift,tkremenek/swift,hooman/swift,glessard/swift,tkremenek/swift,tkremenek/swift,xwu/swift,roambotics/swift,parkera/swift,glessard/swift,... | swift | ## Code Before:
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -emit-ir -parse-as-library -module-name main | %FileCheck %s --check-prefix=CHECK-LL
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -g %s -parse-as-library -module-name mai... |
b8a502ae8724cf1e4b2d05d0e855dd33063ea77c | .travis.yml | .travis.yml |
matrix:
include:
- os: linux
sudo: required
services:
- docker
- os: osx
notifications:
email: false
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gpgme ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then hack/travis_osx.sh ; fi
- if [[ "$TRAVIS_OS_NAME" =... |
matrix:
include:
- os: linux
sudo: required
services:
- docker
- os: osx
notifications:
email: false
install:
# NOTE: The (brew update) should not be necessary, and slows things down;
# we include it as a workaround for https://github.com/Homebrew/brew/issues/3299
# ideally Travis sh... | Work around broken brew in Travis | Work around broken brew in Travis
Per https://github.com/Homebrew/brew/issues/3299 , (brew update)
is needed to avoid a
> ==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
> ######################################################################## 100.0%
> ==> ... | YAML | apache-2.0 | jwhonce/skopeo,projectatomic/skopeo,mtrmac/skopeo,mtrmac/skopeo,mtrmac/skopeo,jwhonce/skopeo,projectatomic/skopeo | yaml | ## Code Before:
matrix:
include:
- os: linux
sudo: required
services:
- docker
- os: osx
notifications:
email: false
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gpgme ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then hack/travis_osx.sh ; fi
- if [[ "$T... |
fb5c2e5df4f700fb19663bbe96e7aa2710e627ca | osprey/execute_dump.py | osprey/execute_dump.py | from __future__ import print_function, absolute_import, division
import csv
import json
from six.moves import cStringIO
from .config import Config
from .trials import Trial
def execute(args, parser):
config = Config(args.config, verbose=False)
session = config.trials()
columns = Trial.__mapper__.columns... | from __future__ import print_function, absolute_import, division
import csv
import json
from six.moves import cStringIO
from .config import Config
from .trials import Trial
def execute(args, parser):
config = Config(args.config, verbose=False)
session = config.trials()
columns = Trial.__mapper__.columns... | Store hyperparameters with the other settings | Store hyperparameters with the other settings
Instead of storing them in their own 'parameters' directory. | Python | apache-2.0 | msmbuilder/osprey,msultan/osprey,pandegroup/osprey,msultan/osprey,msmbuilder/osprey,pandegroup/osprey | python | ## Code Before:
from __future__ import print_function, absolute_import, division
import csv
import json
from six.moves import cStringIO
from .config import Config
from .trials import Trial
def execute(args, parser):
config = Config(args.config, verbose=False)
session = config.trials()
columns = Trial.__... |
f8ed32b7850514392a7a9ea2532d50dc233b0efb | background.js | background.js | (function () {
'use strict';
// Awesome Browser Shortcuts
chrome.commands.onCommand.addListener(function (command) {
console.log(command);
if (command === 'toggle-pin') {
// Get current tab in the active window
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
var currentTab = tab... | (function () {
'use strict';
// Awesome Browser Shortcuts
chrome.commands.onCommand.addListener(function (command) {
if (command === 'toggle-pin') {
// Get current tab in the active window
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
var currentTab = tabs[0];
chrome.tabs.up... | Fix toggle-pin and clean code | Fix toggle-pin and clean code
| JavaScript | mit | djadmin/browse-awesome | javascript | ## Code Before:
(function () {
'use strict';
// Awesome Browser Shortcuts
chrome.commands.onCommand.addListener(function (command) {
console.log(command);
if (command === 'toggle-pin') {
// Get current tab in the active window
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
var ... |
4ab92731b6e2f2a6abf31b757e918ed5639c3ba9 | spec/features/admin/newsletters_spec.rb | spec/features/admin/newsletters_spec.rb | require 'rails_helper'
feature 'Admin newsletters emails' do
let(:download_button_text) { 'Download zip with users list' }
background do
@admin = create(:administrator)
login_as(@admin.user)
visit admin_newsletters_path
end
scenario 'Index' do
expect(page).to have_content download_button_tex... | require 'rails_helper'
feature 'Admin newsletters emails' do
let(:download_button_text) { 'Download zip with users list' }
background do
@admin = create(:administrator)
@newsletter_user = create(:user, newsletter: true)
@non_newsletter_user = create(:user, newsletter: false)
login_as(@admin.user)... | Add expectations for newsletter users and non-newsletter users on email zip download scenario | Add expectations for newsletter users and non-newsletter users on email zip download scenario
| Ruby | agpl-3.0 | CDJ11/CDJ,AyuntamientoMadrid/participacion,deivid-rodriguez/participacion,consul/consul,usabi/consul_san_borondon,consul/consul,consul/consul,lalibertad/consul,votedevin/consul,AjuntamentdeCastello/consul,artofhuman/consul,artofhuman/consul,AyuntamientoMadrid/consul,usabi/consul_san_borondon,AyuntamientoPuertoReal/deci... | ruby | ## Code Before:
require 'rails_helper'
feature 'Admin newsletters emails' do
let(:download_button_text) { 'Download zip with users list' }
background do
@admin = create(:administrator)
login_as(@admin.user)
visit admin_newsletters_path
end
scenario 'Index' do
expect(page).to have_content dow... |
e9e42f61fd1a687d1f0aaa4767150936c2f68b9b | .travis.yml | .travis.yml | language: go
os:
- linux
- osx
script:
- go build -v ./...
- go test -v -cover ./...
| language: go
go:
- 1.5
os:
- linux
- osx
script:
- go build -v ./...
- go test -v -cover ./...
| Use Go 1.5 on Travis CI | Use Go 1.5 on Travis CI
| YAML | mit | rightscale/right_st,rightscale/right_st | yaml | ## Code Before:
language: go
os:
- linux
- osx
script:
- go build -v ./...
- go test -v -cover ./...
## Instruction:
Use Go 1.5 on Travis CI
## Code After:
language: go
go:
- 1.5
os:
- linux
- osx
script:
- go build -v ./...
- go test -v -cover ./...
|
131d2426d52febd2f577ca4675d71f06048ba141 | app/controllers/abuse_comments_controller.rb | app/controllers/abuse_comments_controller.rb |
class AbuseCommentsController < ApplicationController
before_action :verify_core
before_action :set_comment, except: [:create]
before_action :verify_access, except: [:create]
skip_before_action :verify_authenticity_token, only: [:update]
def create
@comment = AbuseComment.new comment_params.merge(user: ... |
class AbuseCommentsController < ApplicationController
before_action :verify_core
before_action :set_comment, except: [:create]
skip_before_action :verify_authenticity_token, only: [:update]
def create
@comment = AbuseComment.new comment_params.merge(user: current_user)
@comment.text = @comment.text.gs... | Allow all core to edit abuse reports - 1 | Allow all core to edit abuse reports - 1 | Ruby | cc0-1.0 | j-f1/forked-metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,j-f1/forked-metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke | ruby | ## Code Before:
class AbuseCommentsController < ApplicationController
before_action :verify_core
before_action :set_comment, except: [:create]
before_action :verify_access, except: [:create]
skip_before_action :verify_authenticity_token, only: [:update]
def create
@comment = AbuseComment.new comment_par... |
74bcdaec3c9f173b2292f88059fc45fb2196222f | BaselineOfPetitParser2Core/BaselineOfPetitParser2Core.class.st | BaselineOfPetitParser2Core/BaselineOfPetitParser2Core.class.st | Class {
#name : #BaselineOfPetitParser2Core,
#superclass : #BaselineOf,
#category : 'BaselineOfPetitParser2Core'
}
{ #category : #baselines }
BaselineOfPetitParser2Core >> baseline: spec [
<baseline>
spec for: #'common' do: [
spec blessing: #'baseline'.
spec description: 'PetitParser2Core'.
spec repository... | Class {
#name : #BaselineOfPetitParser2Core,
#superclass : #BaselineOf,
#category : 'BaselineOfPetitParser2Core'
}
{ #category : #baselines }
BaselineOfPetitParser2Core >> baseline: spec [
<baseline>
spec for: #'common' do: [
spec blessing: #'baseline'.
spec description: 'PetitParser2Core'.
spec
packag... | Remove the baseline repo spec to allow for forking. | Remove the baseline repo spec to allow for forking. | Smalltalk | mit | kursjan/petitparser2,kursjan/petitparser2 | smalltalk | ## Code Before:
Class {
#name : #BaselineOfPetitParser2Core,
#superclass : #BaselineOf,
#category : 'BaselineOfPetitParser2Core'
}
{ #category : #baselines }
BaselineOfPetitParser2Core >> baseline: spec [
<baseline>
spec for: #'common' do: [
spec blessing: #'baseline'.
spec description: 'PetitParser2Core'.
... |
00da64c25d93f7de1200ee02d65fb37dfbddffed | wcfsetup/install/files/global.php | wcfsetup/install/files/global.php | <?php
/**
* @author Marcel Werk
* @copyright 2001-2015 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @category Community Framework
*/
// ignore direct access
if (!defined('PACKAGE_ID')) {
@header("HTTP/1.0 404 Not Found");... | <?php
/**
* @author Marcel Werk
* @copyright 2001-2015 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @category Community Framework
*/
// ignore direct access
if (!defined('PACKAGE_ID')) {
@header("HTTP/1.0 404 Not Found");... | Remove check for outdated APC version | Remove check for outdated APC version
APC 3.1.4 won’t even run on PHP 5.4, so it’s safe to remove
the check here.
| PHP | lgpl-2.1 | SoftCreatR/WCF,Cyperghost/WCF,joshuaruesweg/WCF,SoftCreatR/WCF,MenesesEvandro/WCF,Morik/WCF,0xLeon/WCF,joshuaruesweg/WCF,Morik/WCF,Cyperghost/WCF,Morik/WCF,WoltLab/WCF,WoltLab/WCF,Cyperghost/WCF,0xLeon/WCF,WoltLab/WCF,joshuaruesweg/WCF,Cyperghost/WCF,0xLeon/WCF,Cyperghost/WCF,MenesesEvandro/WCF,SoftCreatR/WCF,WoltLab/W... | php | ## Code Before:
<?php
/**
* @author Marcel Werk
* @copyright 2001-2015 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf
* @category Community Framework
*/
// ignore direct access
if (!defined('PACKAGE_ID')) {
@header("HTTP/1.0 ... |
2b46319b1483f159995d89c923957111b2e0ab71 | util/transitionToParams.js | util/transitionToParams.js | function transitionToParams(params) {
const location = this.props.location;
const allParams = Object.assign({}, location.query, params);
const keys = Object.keys(allParams);
let url = location.pathname;
if (keys.length) {
url += `?${keys.map(key => `${key}=${encodeURIComponent(allParams[key])}`).join('&'... | function transitionToParams(params) {
const location = this.props.location;
const allParams = Object.assign({}, location.query, params);
const keys = Object.keys(allParams);
let url = location.pathname;
if (keys.length) {
url += `?${keys.map(key => `${key}=${encodeURIComponent(allParams[key])}`).join('&'... | Use API from released version of react-router v4 STRIPES-173 | Use API from released version of react-router v4 STRIPES-173
| JavaScript | apache-2.0 | folio-org/stripes-components,folio-org/stripes-components | javascript | ## Code Before:
function transitionToParams(params) {
const location = this.props.location;
const allParams = Object.assign({}, location.query, params);
const keys = Object.keys(allParams);
let url = location.pathname;
if (keys.length) {
url += `?${keys.map(key => `${key}=${encodeURIComponent(allParams[k... |
d7a54f8e2ad3ab383de63a6716a1ad6ddd30f3a2 | README.rst | README.rst | Switchy
=======
A fast FreeSWITCH ESL control library with an emphasis on load testing.
Among other things, Switchy let's you
- drive N slaves as call generators
- write call applications in pure python using a super thin
ESL api wrapper
- dynamically modify call flows at runtime
- collect perfo... | Switchy
=======
A fast FreeSWITCH ESL control library with an emphasis on load testing.
Among other things, Switchy let's you
- drive N slaves as call generators
- write call applications in pure python using a super thin
ESL api wrapper
- dynamically modify call flows at runtime
- collect perfo... | Update readme with docs link | Update readme with docs link
| reStructuredText | mpl-2.0 | sangoma/switchy,wwezhuimeng/switch | restructuredtext | ## Code Before:
Switchy
=======
A fast FreeSWITCH ESL control library with an emphasis on load testing.
Among other things, Switchy let's you
- drive N slaves as call generators
- write call applications in pure python using a super thin
ESL api wrapper
- dynamically modify call flows at runtime
... |
81e236f81343f7e4f21cf6b01329d3d1ac738f9f | tests/test_pulse_types.py | tests/test_pulse_types.py | import unittest
from QGL import *
from QGL.PulseSequencer import *
from .helpers import setup_test_lib
class PulseTypes(unittest.TestCase):
def setUp(self):
setup_test_lib()
self.q1 = QubitFactory('q1')
self.q2 = QubitFactory('q2')
self.q3 = QubitFactory('q3')
self.q4 = Qub... | import unittest
from QGL import *
from QGL.PulseSequencer import *
import QGL.config
from .helpers import setup_test_lib
class PulseTypes(unittest.TestCase):
def setUp(self):
setup_test_lib()
QGL.config.cnot_implementation = 'CNOT_CR'
self.q1 = QubitFactory('q1')
self.q2 = QubitFac... | Make test environment use CNOT_CR implementation of CNOT. | Make test environment use CNOT_CR implementation of CNOT.
At least for the test_pulse_types tests.
| Python | apache-2.0 | BBN-Q/QGL,BBN-Q/QGL | python | ## Code Before:
import unittest
from QGL import *
from QGL.PulseSequencer import *
from .helpers import setup_test_lib
class PulseTypes(unittest.TestCase):
def setUp(self):
setup_test_lib()
self.q1 = QubitFactory('q1')
self.q2 = QubitFactory('q2')
self.q3 = QubitFactory('q3')
... |
216912f57044e4be91f31ffa58e2589f557a9391 | .travis.yml | .travis.yml | language: node_js
os:
- linux
- osx
branches:
only:
- master
node_js:
- "node"
- "6"
- "5"
- "4"
before_script:
- chmod +x ./scripts/travis-build.sh
script: ./scripts/travis-build.sh
| language: node_js
os:
- linux
- osx
branches:
only:
- master
node_js:
- "node"
- "6"
- "5"
- "4"
before_script:
- chmod +x ./scripts/travis-build.sh
script: ./scripts/travis-build.sh
cache:
directories:
- node_modules
| Revert "Do not cache node_modules in Travis" | Revert "Do not cache node_modules in Travis"
This reverts commit ff2df88701360319f4f0687ffe4177fc4bbc1ded.
| YAML | mit | yannbertrand/youtube-dl-gui,yannbertrand/youtube-dl-gui,yannbertrand/youtube-dl-gui | yaml | ## Code Before:
language: node_js
os:
- linux
- osx
branches:
only:
- master
node_js:
- "node"
- "6"
- "5"
- "4"
before_script:
- chmod +x ./scripts/travis-build.sh
script: ./scripts/travis-build.sh
## Instruction:
Revert "Do not cache node_modules in Travis"
This reverts commit ff2df887013603... |
57cbf4b5a275a7859227d7fee6118d1ec618c3ad | Tests/Fakery/Generators/BankSpec.swift | Tests/Fakery/Generators/BankSpec.swift | import Quick
import Nimble
@testable import Fakery
class BankSpec: QuickSpec {
override func spec() {
describe("Bank") {
var bank: Bank!
beforeEach {
let parser = Parser(locale: "en-TEST")
bank = Bank(parser: parser)
}
descr... | import Quick
import Nimble
@testable import Fakery
class BankSpec: QuickSpec {
override func spec() {
describe("Bank") {
var bank: Bank!
beforeEach {
let parser = Parser(locale: "en-TEST")
bank = Bank(parser: parser)
}
descr... | Add capability to generate Dutch BBAN numbers | Add capability to generate Dutch BBAN numbers
| Swift | mit | vadymmarkov/Faker,vadymmarkov/Faker | swift | ## Code Before:
import Quick
import Nimble
@testable import Fakery
class BankSpec: QuickSpec {
override func spec() {
describe("Bank") {
var bank: Bank!
beforeEach {
let parser = Parser(locale: "en-TEST")
bank = Bank(parser: parser)
}
... |
747b2e6ef6fa3b306d758861f31976f0a42f6ca9 | src/PasswordGenerator.php | src/PasswordGenerator.php | <?php
namespace Nubs\PwMan;
use RandomLib\Factory as RandomFactory;
/**
* Generate random passwords.
*/
class PasswordGenerator
{
/** @type string The characters to use in the password. */
private $_characters;
/** @type int The length of the password. */
private $_length;
/**
* Construct... | <?php
namespace Nubs\PwMan;
use RandomLib\Factory as RandomFactory;
/**
* Generate random passwords.
*/
class PasswordGenerator
{
/** @type string The characters to use in the password. */
private $_characters;
/** @type int The length of the password. */
private $_length;
/**
* Construct... | Allow characters/length to be overriden in the generator. | Allow characters/length to be overriden in the generator.
| PHP | mit | nubs/pwman | php | ## Code Before:
<?php
namespace Nubs\PwMan;
use RandomLib\Factory as RandomFactory;
/**
* Generate random passwords.
*/
class PasswordGenerator
{
/** @type string The characters to use in the password. */
private $_characters;
/** @type int The length of the password. */
private $_length;
/**
... |
e693e67fe6c2f6a5add3631fd7512c57fed05a68 | Tests/File/Size/FileSizeConverterTest.php | Tests/File/Size/FileSizeConverterTest.php | <?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2020, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace... | <?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2020, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace... | Add file size converter test. | Add file size converter test.
| PHP | mit | DarvinStudio/darvin-utils | php | ## Code Before:
<?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2020, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code... |
35c97d14eede0e48a0daff8e7f04aeba09f02268 | get.py | get.py |
from requests import get
from bs4 import BeautifulSoup as BS
from os.path import exists
url = "https://www.projecteuler.net/problem=%d"
def get_info(i):
soup = BS(get(url % i, verify=False).content)
problem = soup.find(id="content")
title = problem.h2.string
content = problem.find(class_="problem_co... |
from requests import get
from bs4 import BeautifulSoup as BS
from os.path import exists
from multiprocessing import Pool
url = "https://www.projecteuler.net/problem=%d"
def get_info(i):
soup = BS(get(url % i, verify=False).content)
problem = soup.find(id="content")
title = problem.h2.string
content ... | Use multiprocessing.Pool to speed up | Use multiprocessing.Pool to speed up
| Python | mit | zlsun/ProjectEuler | python | ## Code Before:
from requests import get
from bs4 import BeautifulSoup as BS
from os.path import exists
url = "https://www.projecteuler.net/problem=%d"
def get_info(i):
soup = BS(get(url % i, verify=False).content)
problem = soup.find(id="content")
title = problem.h2.string
content = problem.find(cl... |
27d0877793a2c79bed99228ad5f7c785473baccd | lib/fake_xml_server/api.rb | lib/fake_xml_server/api.rb | require 'sinatra/base'
require 'sinatra/respond_with'
class Api < Sinatra::Base
register Sinatra::RespondWith
before do
headers 'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => %w{ GET },
'Access-Control-Allow-Headers' => %w{ Content-Type }
end
get '/xml_server/:doc' do... | require 'sinatra/base'
require 'sinatra/respond_with'
class Api < Sinatra::Base
register Sinatra::RespondWith
before do
headers 'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => %w{ GET },
'Access-Control-Allow-Headers' => %w{ Content-Type }
end
get '/xml_server/:doc' do... | Add positive response to post | Add positive response to post
| Ruby | mit | latin-language-toolkit/fake_xml_server | ruby | ## Code Before:
require 'sinatra/base'
require 'sinatra/respond_with'
class Api < Sinatra::Base
register Sinatra::RespondWith
before do
headers 'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => %w{ GET },
'Access-Control-Allow-Headers' => %w{ Content-Type }
end
get '/xml... |
a124812cbfcadbee58fdb8a1564026d377e842fb | _layouts/post.html | _layouts/post.html | ---
layout: default
---
<div class="unit one-fifth hide-on-mobiles"> </div>
<div class="unit three-fifths">
<!-- begin content -->
<div class="unit two-thirds">
<p>
{% if page.external-url %}
<a href="{{ page.external-url }}" target="_blank">{{ page.title }} →</a>
{% endif %}
<... | ---
layout: default
---
<div class="unit one-fifth hide-on-mobiles"> </div>
<div class="unit three-fifths">
<!-- begin content -->
<div class="unit two-thirds">
<p>
{% if page.external-url %}
<a href="{{ page.external-url }}" target="_blank">{{ page.title }} →</a>
{% endif %}
<... | Remove link in sidebar because redundant elements cause user confusion | Remove link in sidebar because redundant elements cause user confusion
| HTML | mit | parkr/webdev,parkr/webdev,parkr/webdev | html | ## Code Before:
---
layout: default
---
<div class="unit one-fifth hide-on-mobiles"> </div>
<div class="unit three-fifths">
<!-- begin content -->
<div class="unit two-thirds">
<p>
{% if page.external-url %}
<a href="{{ page.external-url }}" target="_blank">{{ page.title }} →</a>
{... |
8a7499b1908ab02ccc559a8ae75bdc6602f9a82f | package.json | package.json | {
"name": "pdf.js",
"version": "0.8.0",
"devDependencies": {
"jsdoc": "3.3.0-alpha9",
"jshint": "~2.4.0",
"wintersmith": "~2.0.0",
"moment": "~2.3.0",
"underscore": "~1.4.0",
"typogr": "~0.5.0",
"yargs": "~1.2.1"
},
"scripts": {
"test": "node ./node_modules/.bin/jshint ."
},
... | {
"name": "pdf.js",
"version": "0.8.0",
"devDependencies": {
"jsdoc": "3.3.0-alpha9",
"jshint": "~2.4.0",
"wintersmith": "~2.0.0",
"moment": "~2.3.0",
"underscore": "~1.4.0",
"typogr": "~0.5.0",
"yargs": "~1.2.1"
},
"scripts": {
"test": "node ./node_modules/.bin/jshint --extra-... | Update linting on Travis to cover *.jsm files (PR 5406 followup) | Update linting on Travis to cover *.jsm files (PR 5406 followup)
Trivial followup to PR 5406.
| JSON | apache-2.0 | THausherr/pdf.js,Lhuihui/pdf.js,tinderboxhq/pdf.js,viveksjain/pdf.js,mmaroti/pdf.js,gorcz/pdf.js,mcanthony/pdf.js,pairyo/pdf.js,pairyo/pdf.js,savinn/pdf.js,erikdejonge/pdf.js,msarti/pdf.js,selique/pdf.js,mysterlune/pdf.js,jazzy-em/pdf.js,shaowei-su/pdf.js,Flekyno/pdfjs,Ricardh522/pdf.js,zyfran/pdf.js,parthiban019/pdf.j... | json | ## Code Before:
{
"name": "pdf.js",
"version": "0.8.0",
"devDependencies": {
"jsdoc": "3.3.0-alpha9",
"jshint": "~2.4.0",
"wintersmith": "~2.0.0",
"moment": "~2.3.0",
"underscore": "~1.4.0",
"typogr": "~0.5.0",
"yargs": "~1.2.1"
},
"scripts": {
"test": "node ./node_modules/.bin... |
f6320a37befffacb1765a4b78ee27f5be0891479 | README.markdown | README.markdown | Mapsbridge
==========
Google Maps includes a feature called My Places, which allows users to save maps with multiple locations. They are useful for planning trips, noting good restaurants, etc. These maps can be viewed on the iPad's Google Maps app, but only if the URL is in a special format. Furthermore, there's no e... | **Note:** Mapsbridge does not support Apple Maps or two-factor auth, and is drifting out of date. If you'd like to maintain this project, let me know or send me a pull request. Otherwise, I suggest using [My Maps Editor](https://itunes.apple.com/us/app/my-maps-editor/id389114621), which offers the same functionality as... | Update readme to note project is old | Update readme to note project is old
| Markdown | mit | tdeitch/mapsbridge | markdown | ## Code Before:
Mapsbridge
==========
Google Maps includes a feature called My Places, which allows users to save maps with multiple locations. They are useful for planning trips, noting good restaurants, etc. These maps can be viewed on the iPad's Google Maps app, but only if the URL is in a special format. Furthermo... |
af256e3796f997b5f66d34c7ec25c2a1c560e36f | CHANGELOG.md | CHANGELOG.md | All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- New changelog.
### Changed
- Update tests to work wi... | All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [1.0.1] - 2020-04-02
### Added
- New changelog.
### Changed
... | Update changelog for new release. | Update changelog for new release.
| Markdown | mit | shiftonelabs/laravel-cascade-deletes | markdown | ## Code Before:
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- New changelog.
### Changed
- Update ... |
b54d3b939e13ed676f7329630513940172ff321e | src/Factory/ChainFactory.php | src/Factory/ChainFactory.php | <?php
/*
* This file is part of php-cache organization.
*
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Cache\AdapterBundle\Factory;
use Cac... | <?php
/*
* This file is part of php-cache organization.
*
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Cache\AdapterBundle\Factory;
use Cac... | Improve after PR on ChainAdapter | Improve after PR on ChainAdapter
| PHP | mit | aequasi/adapter-bundle,php-cache/adapter-bundle,php-cache/adapter-bundle | php | ## Code Before:
<?php
/*
* This file is part of php-cache organization.
*
* (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Cache\AdapterBundle\F... |
f073ba047cfbcbf57dd4b30452f8ba60701ed555 | gig/gig01-01/README.md | gig/gig01-01/README.md |
[](https://ssh.cloud.google.com/cloudshell/open?cloudshell_git_repo=https://github.com/GoogleCloudPlatform/gcp-getting-started-lab-jp&cloudshell_working_dir=gig/gig01-01&cloudshell_tutorial=tutorial.md)
**This is not an officially supported Googl... |
[](https://ssh.cloud.google.com/cloudshell/open?cloudshell_git_repo=https://github.com/GoogleCloudPlatform/gcp-getting-started-lab-jp&cloudshell_working_dir=gig/gig01-01&cloudshell_tutorial=tutorial.md)
**This is not an officially supported Googl... | Add command to launch a tutorial | Add command to launch a tutorial
| Markdown | apache-2.0 | GoogleCloudPlatform/gcp-getting-started-lab-jp,GoogleCloudPlatform/gcp-getting-started-lab-jp,GoogleCloudPlatform/gcp-getting-started-lab-jp,GoogleCloudPlatform/gcp-getting-started-lab-jp | markdown | ## Code Before:
[](https://ssh.cloud.google.com/cloudshell/open?cloudshell_git_repo=https://github.com/GoogleCloudPlatform/gcp-getting-started-lab-jp&cloudshell_working_dir=gig/gig01-01&cloudshell_tutorial=tutorial.md)
**This is not an officially... |
62e99fdf652e9528e6daa4ab3adc5cf1da5b323c | spec/atdis/separated_url_spec.rb | spec/atdis/separated_url_spec.rb | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe ATDIS::SeparatedURL do
describe "#merge" do
it "should add a new parameter" do
ATDIS::SeparatedURL.merge("http://foo.com/bar?foo=twenty&bar=12", :page => 2).should ==
"http://foo.com/bar?bar=12&foo=twenty&page=2"
end
... | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe ATDIS::SeparatedURL do
describe "#merge" do
it "should add a new parameter" do
ATDIS::SeparatedURL.merge("http://foo.com/bar?foo=twenty&bar=12", :page => 2).should ==
"http://foo.com/bar?bar=12&foo=twenty&page=2"
end
... | Add another test to SeparatedUrl to round out test coverage | Add another test to SeparatedUrl to round out test coverage
| Ruby | mit | openaustralia/atdis | ruby | ## Code Before:
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe ATDIS::SeparatedURL do
describe "#merge" do
it "should add a new parameter" do
ATDIS::SeparatedURL.merge("http://foo.com/bar?foo=twenty&bar=12", :page => 2).should ==
"http://foo.com/bar?bar=12&foo=twenty&... |
e981cc2a51cf6bf099b4115610500aecb1ace270 | sources/wmo.int/2015-country-matcher/meta.txt | sources/wmo.int/2015-country-matcher/meta.txt | URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
| URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Checked: 2015-01-28
Description:
Please input country names into the textfield
and press match to start matching process
| Check data.csv vs source in HTML format | Check data.csv vs source in HTML format
I compared the data with the table row by row, and found no differences.
| Text | cc0-1.0 | eric-brechemier/ipcc-countries,eric-brechemier/ipcc-countries | text | ## Code Before:
URL: https://www.wmo.int/cpdb/tools/countrymatcher
Title: Country2PUB5 matcher
Description:
Please input country names into the textfield
and press match to start matching process
## Instruction:
Check data.csv vs source in HTML format
I compared the data with the table row by row, and found no diffe... |
5ec9ccaaac1caae688aca4eca35f391f78ee6a95 | src/olympia/migrations/933-remove-clientdata.sql | src/olympia/migrations/933-remove-clientdata.sql | ALTER TABLE `reviews` DROP FOREIGN KEY `client_data_id_refs_id_c0e106c0`, DROP KEY `reviews_1446fb9b`, DROP COLUMN `client_data_id`;
ALTER TABLE `stats_contributions` DROP FOREIGN KEY `client_data_id_refs_id_d3f47e0e`, DROP KEY `stats_contributions_1446fb9b`, DROP COLUMN `client_data_id`;
DROP TABLE IF EXISTS `client_d... | DROP PROCEDURE IF EXISTS drop_client_data_cols;
DELIMITER ';;'
CREATE PROCEDURE drop_client_data_cols() BEGIN
/* drop the client_data foreign keys - since the fks have 2 possible names each, look them up in information_schema */
/* reviews */
IF EXISTS (SELECT 1 FROM information_schema.table_constraints W... | Fix migration 933 removing client_data: some envs have different FK names | Fix migration 933 removing client_data: some envs have different FK names
| SQL | bsd-3-clause | lavish205/olympia,atiqueahmedziad/addons-server,aviarypl/mozilla-l10n-addons-server,harry-7/addons-server,lavish205/olympia,bqbn/addons-server,eviljeff/olympia,tsl143/addons-server,wagnerand/addons-server,psiinon/addons-server,wagnerand/olympia,bqbn/addons-server,diox/olympia,mozilla/olympia,kumar303/addons-server,wagn... | sql | ## Code Before:
ALTER TABLE `reviews` DROP FOREIGN KEY `client_data_id_refs_id_c0e106c0`, DROP KEY `reviews_1446fb9b`, DROP COLUMN `client_data_id`;
ALTER TABLE `stats_contributions` DROP FOREIGN KEY `client_data_id_refs_id_d3f47e0e`, DROP KEY `stats_contributions_1446fb9b`, DROP COLUMN `client_data_id`;
DROP TABLE IF ... |
1d41bd31d6acf8e02c07c089559893cd0c8188fb | lib/merb-core/plugins.rb | lib/merb-core/plugins.rb | module Merb
module Plugins
# ==== Returns
# Hash::
# The configuration loaded from Merb.root / "config/plugins.yml" or, if
# the load fails, an empty hash.
def self.config
@config ||= begin
file = Merb.root / "config" / "plugins.yml"
(File.exists?(file) && YAML.load_fil... | module Merb
module Plugins
# ==== Returns
# Hash::
# The configuration loaded from Merb.root / "config/plugins.yml" or, if
# the load fails, an empty hash whose default value is another Hash.
def self.config
@config ||= begin
# this is so you can do Merb.plugins.config[:helpers... | Make Merb::Plugins.config[:foo] default to {} | Make Merb::Plugins.config[:foo] default to {}
| Ruby | mit | merb/merb,wycats/merb,wycats/merb,benburkert/merb-core,wycats/merb,benburkert/merb-core,wycats/merb,merb/merb,merb/merb,wycats/merb | ruby | ## Code Before:
module Merb
module Plugins
# ==== Returns
# Hash::
# The configuration loaded from Merb.root / "config/plugins.yml" or, if
# the load fails, an empty hash.
def self.config
@config ||= begin
file = Merb.root / "config" / "plugins.yml"
(File.exists?(file) ... |
8d50052520b5a863bf89778c35db1f73baa9cc23 | db/migrations/20170211211305_AddUserIsAdmin.sql | db/migrations/20170211211305_AddUserIsAdmin.sql |
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE users ADD COLUMN is_admin boolean;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
|
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE users ADD COLUMN is_admin boolean NOT NULL DEFAULT FALSE;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
| Fix default sql value for is_admin | fix(user): Fix default sql value for is_admin
| SQL | mit | ml-tv/tv-api,ml-tv/tv-api | sql | ## Code Before:
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
ALTER TABLE users ADD COLUMN is_admin boolean;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
## Instruction:
fix(user): Fix default sql value for is_admin
## Code After:
-- +goose ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.