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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1e5cf9286af604761653e121ab1229ef65f5137b | lib/chunky_png/canvas/data_url_exporting.rb | lib/chunky_png/canvas/data_url_exporting.rb | module ChunkyPNG
class Canvas
# Methods to export a canvas to a PNG data URL.
module DataUrlExporting
# Exports the canvas as a data url (e.g. data:image/png;base64,<data>) that can
# easily be used inline in CSS or HTML.
# @return [String] The canvas formatted as a data URL string.
de... | module ChunkyPNG
class Canvas
# Methods to export a canvas to a PNG data URL.
module DataUrlExporting
# Exports the canvas as a data url (e.g. data:image/png;base64,<data>) that can
# easily be used inline in CSS or HTML.
# @return [String] The canvas formatted as a data URL string.
de... | Use `delete` rather then unneeded `gsub` to delete newlines. | standard.rb: Use `delete` rather then unneeded `gsub` to delete newlines.
| Ruby | mit | wvanbergen/chunky_png | ruby | ## Code Before:
module ChunkyPNG
class Canvas
# Methods to export a canvas to a PNG data URL.
module DataUrlExporting
# Exports the canvas as a data url (e.g. data:image/png;base64,<data>) that can
# easily be used inline in CSS or HTML.
# @return [String] The canvas formatted as a data URL ... |
f38eb25fe13320297baad173c8e6d6ac7cfb9542 | spacy/tests/tokens/test_vec.py | spacy/tests/tokens/test_vec.py | from __future__ import unicode_literals
from spacy.en import English
import pytest
@pytest.mark.models
def test_vec(EN):
hype = EN.vocab['hype']
assert hype.orth_ == 'hype'
assert 0.08 >= hype.vector[0] > 0.07
@pytest.mark.models
def test_capitalized(EN):
hype = EN.vocab['Hype']
assert hype.ort... | from __future__ import unicode_literals
from spacy.en import English
import pytest
@pytest.mark.models
def test_vec(EN):
hype = EN.vocab['hype']
assert hype.orth_ == 'hype'
assert -0.7 >= hype.vector[0] > -0.8
@pytest.mark.models
def test_capitalized(EN):
hype = EN.vocab['Hype']
assert hype.ort... | Fix test for word vector | Fix test for word vector
| Python | mit | oroszgy/spaCy.hu,recognai/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,banglakit/spaCy,explosion/spaCy,explosion/spaCy,raphael0202/spaCy,banglakit/spaCy,Gregory-Howard/spaCy,recognai/spaCy,Gregory-Howard/spaCy,recognai/spaCy,Gregory-Howard/spaCy,aikramer2/spaCy,honnibal/spaCy,recognai/spaCy,banglakit/spaCy,explosion/spaCy,a... | python | ## Code Before:
from __future__ import unicode_literals
from spacy.en import English
import pytest
@pytest.mark.models
def test_vec(EN):
hype = EN.vocab['hype']
assert hype.orth_ == 'hype'
assert 0.08 >= hype.vector[0] > 0.07
@pytest.mark.models
def test_capitalized(EN):
hype = EN.vocab['Hype']
... |
8d495e6c81abac7b3d6bc125521282a0ba3c817d | app/js/config.js | app/js/config.js | require.config({
baseUrl: 'js/lib',
paths: {
"app": '../app',
"jquery": '../../bower_components/jquery/dist/jquery',
"foundation": '../../bower_components/foundation/js/foundation',
"angular": '../../bower_components/angular/angular',
"angular-route": '../../bower_compo... | require.config({
baseUrl: 'js/lib',
waitSeconds : 0,
paths: {
"app": '../app',
"jquery": '../../bower_components/jquery/dist/jquery',
"foundation": '../../bower_components/foundation/js/foundation',
"angular": '../../bower_components/angular/angular',
"angular-rout... | Allow the editor to load on slow computers and connections | Allow the editor to load on slow computers and connections
# Require.js will abandon loading any module that takes more than 7 seconds
# to load. For editors with slow connections and computers, this limit may
# be reached. Since this isn't a production app, long load times are ok!
| JavaScript | mit | ucam-cl-dtg/scooter,ucam-cl-dtg/scooter | javascript | ## Code Before:
require.config({
baseUrl: 'js/lib',
paths: {
"app": '../app',
"jquery": '../../bower_components/jquery/dist/jquery',
"foundation": '../../bower_components/foundation/js/foundation',
"angular": '../../bower_components/angular/angular',
"angular-route": '.... |
6abeacbb6bd789e5c1a0d7e496058fca073b8a91 | templates/lint.html | templates/lint.html | {% extends "base.html" %}
{% block body %}
<h3>{{ linter }} recent error summary <small>since {{ since }}</small></h3>
<p>
Some of these may be false-positives. You should review closely before
taking action.
</p>
<table class="table table-striped">
<thead>
<th># o... | {% extends "base.html" %}
{% block body %}
<h3>{{ linter }} recent error summary <small>since {{ since }}</small></h3>
<p>
Some of these may be false-positives. You should review closely before
taking action.
</p>
<table class="table table-striped">
<thead>
<th># o... | Exclude expired certs. Thanks @dreid! | Exclude expired certs. Thanks @dreid!
| HTML | bsd-3-clause | alex/revocation-tracker,alex/revocation-tracker | html | ## Code Before:
{% extends "base.html" %}
{% block body %}
<h3>{{ linter }} recent error summary <small>since {{ since }}</small></h3>
<p>
Some of these may be false-positives. You should review closely before
taking action.
</p>
<table class="table table-striped">
<thead>
... |
7a866fdcee0e581fb3e628059c377bec20d730fa | .travis.yml | .travis.yml | language: go
sudo: false
os:
- linux
- osx
before_install:
- curl -O https://ready-steady.github.io/travis/gfortran.sh && source gfortran.sh
install:
- go get -d -t ./...
- make install
script:
- go test -v
notifications:
email: false
addons:
apt:
packages:
- gfortran
| language: go
sudo: false
os:
- linux
- osx
before_install:
- curl -O https://ready-steady.github.io/travis/gfortran.sh && source gfortran.sh
install:
- go get -d -t ./...
- make install
script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export LD_LIBRARY_PATH="$(pwd)/source:${LD_LIBRARY_PATH}";
... | Make the tests pass on Travis’ Linux | Make the tests pass on Travis’ Linux
| YAML | mit | ready-steady/lapack,ready-steady/lapack | yaml | ## Code Before:
language: go
sudo: false
os:
- linux
- osx
before_install:
- curl -O https://ready-steady.github.io/travis/gfortran.sh && source gfortran.sh
install:
- go get -d -t ./...
- make install
script:
- go test -v
notifications:
email: false
addons:
apt:
packages:
- gfortran
##... |
b730bcde179a066c999555c1f060191796c8cd64 | Casks/bowery.rb | Casks/bowery.rb | class Bowery < Cask
version '3.2.9'
sha256 'fbcc62c54f24b75ade5b43037fea20d388c3a61aaf458d3295fc51975eb27c16'
url "http://desktop.bowery.io/#{version}_darwin_amd64.zip"
homepage 'http://bowery.io/'
license :unknown
pkg 'bowery.pkg'
uninstall :pkgutil => 'com.bowery.desktop'
end
| class Bowery < Cask
version '3.2.11'
sha256 'dbdbad37b8d17e72c227858037b67aa531e3c8b8031c314166a275121fd73468'
url "http://desktop.bowery.io/#{version}_darwin_amd64.zip"
homepage 'http://bowery.io/'
license :unknown
pkg 'bowery.pkg'
uninstall :pkgutil => 'com.bowery.desktop'
end
| Update Bowery.app to version 3.2.11 | Update Bowery.app to version 3.2.11
| Ruby | bsd-2-clause | nickpellant/homebrew-cask,mathbunnyru/homebrew-cask,rkJun/homebrew-cask,FranklinChen/homebrew-cask,epmatsw/homebrew-cask,toonetown/homebrew-cask,lumaxis/homebrew-cask,deanmorin/homebrew-cask,goxberry/homebrew-cask,lantrix/homebrew-cask,FredLackeyOfficial/homebrew-cask,BenjaminHCCarr/homebrew-cask,frapposelli/homebrew-c... | ruby | ## Code Before:
class Bowery < Cask
version '3.2.9'
sha256 'fbcc62c54f24b75ade5b43037fea20d388c3a61aaf458d3295fc51975eb27c16'
url "http://desktop.bowery.io/#{version}_darwin_amd64.zip"
homepage 'http://bowery.io/'
license :unknown
pkg 'bowery.pkg'
uninstall :pkgutil => 'com.bowery.desktop'
end
## Instr... |
b591655c8e833655aa64d017f76fdca8464eb088 | atom/atom.sh | atom/atom.sh |
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
echo "• Setting Atom up"
ATOMDIR=$HOME/.atom
for file in "config.cson" "init.coffee" "keymap.cson" "snippets.cson" "styles.less"; do
# Backup first
if [[ -f "$ATOMDIR/${file}" ]]; then
mv -v "$ATOMDIR/${file}" "$ATOMDIR/${file}.bak"
fi
# Then symlink c... |
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
echo "• Setting Atom up"
ATOMDIR=$HOME/.atom
for file in "config.cson" "init.coffee" "keymap.cson" "snippets.cson" "styles.less"; do
# Backup first
if [[ -f "$ATOMDIR/${file}" ]]; then
mv -v "$ATOMDIR/${file}" "$ATOMDIR/${file}.bak"
fi
# Then symlink c... | Remove autosave Atom package since it's bundled with the editor now | Remove autosave Atom package since it's bundled with the editor now
| Shell | mit | rodionovd/dotfiles,rodionovd/dotfiles | shell | ## Code Before:
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
echo "• Setting Atom up"
ATOMDIR=$HOME/.atom
for file in "config.cson" "init.coffee" "keymap.cson" "snippets.cson" "styles.less"; do
# Backup first
if [[ -f "$ATOMDIR/${file}" ]]; then
mv -v "$ATOMDIR/${file}" "$ATOMDIR/${file}.bak"
fi
... |
8d3c2715db74cae24bff16ff9a068b0af8d194f3 | packages/@orbit/integration-tests/test/support/jsonapi.ts | packages/@orbit/integration-tests/test/support/jsonapi.ts | import { Orbit } from '@orbit/core';
export function jsonapiResponse(
_options: any,
body?: any,
timeout?: number
): Promise<Response> {
let options: any;
let response: Response;
if (typeof _options === 'number') {
options = { status: _options };
} else {
options = _options || {};
}
options.... | import { Orbit } from '@orbit/core';
export function jsonapiResponse(
_options: unknown,
body?: unknown,
timeout?: number
): Promise<Response> {
let options: any;
let response: Response;
if (typeof _options === 'number') {
options = { status: _options };
} else {
options = _options || {};
}
... | Fix typing / linting issues in @orbit/integration-tests | Fix typing / linting issues in @orbit/integration-tests
| TypeScript | mit | orbitjs/orbit.js,orbitjs/orbit.js | typescript | ## Code Before:
import { Orbit } from '@orbit/core';
export function jsonapiResponse(
_options: any,
body?: any,
timeout?: number
): Promise<Response> {
let options: any;
let response: Response;
if (typeof _options === 'number') {
options = { status: _options };
} else {
options = _options || {}... |
981bac39056584ec9c16e5a8d0f7a972d7365a3f | tests/test_module_dispatcher.py | tests/test_module_dispatcher.py | import pytest
from conftest import (POSITIVE_HOST_PATTERNS, NEGATIVE_HOST_PATTERNS)
@pytest.mark.parametrize("host_pattern, num_hosts", POSITIVE_HOST_PATTERNS)
def test_len(host_pattern, num_hosts, hosts):
assert len(getattr(hosts, host_pattern)) == num_hosts
@pytest.mark.parametrize("host_pattern, num_hosts", ... | import pytest
from conftest import (POSITIVE_HOST_PATTERNS, NEGATIVE_HOST_PATTERNS)
@pytest.mark.parametrize("host_pattern, num_hosts", POSITIVE_HOST_PATTERNS)
def test_len(host_pattern, num_hosts, hosts):
assert len(getattr(hosts, host_pattern)) == num_hosts
@pytest.mark.parametrize("host_pattern, num_hosts", ... | Use more prefered exc_info inspection technique | Use more prefered exc_info inspection technique
| Python | mit | jlaska/pytest-ansible | python | ## Code Before:
import pytest
from conftest import (POSITIVE_HOST_PATTERNS, NEGATIVE_HOST_PATTERNS)
@pytest.mark.parametrize("host_pattern, num_hosts", POSITIVE_HOST_PATTERNS)
def test_len(host_pattern, num_hosts, hosts):
assert len(getattr(hosts, host_pattern)) == num_hosts
@pytest.mark.parametrize("host_patte... |
5117290eaf25fa4d0e0e67cbe306e150b91d28ee | .travis.yml | .travis.yml | language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update
- sudo apt-get install -qq python-pyside --fix-missing
- sudo apt-get install -qq python-qt4 --fix-missing
- sudo apt-get install -qq python3-pyside --fix-missing
- sudo apt-get install -qq python3-pyqt... | language: python
python:
- "2.7"
- "3.5"
- "3.6"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update
- sudo apt-get install -qq python-pyside --fix-missing
- sudo apt-get install -qq python-qt4 --fix-missing
- sudo apt-get install -qq python3-pyside --fix-missing
- sudo apt-get inst... | Add test to python 3.5 and 3.6 | [NEW] Add test to python 3.5 and 3.6
| YAML | mit | mstuttgart/qdarkgray-stylesheet,mstuttgart/qdarkgray-stylesheet | yaml | ## Code Before:
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update
- sudo apt-get install -qq python-pyside --fix-missing
- sudo apt-get install -qq python-qt4 --fix-missing
- sudo apt-get install -qq python3-pyside --fix-missing
- sudo apt-get install ... |
bc97ac2fe5282b7e089938c97d39a74e3041d49c | README.md | README.md | A polyfill for HTML Custom Elements
[](https://travis-ci.org/webcomponents/custom-elements)
## Building & Running Tests
1. Install web-component-tester
```bash
$ npm i -g web-component-tester
```
2. Checkout the w... | A polyfill for HTML Custom Elements
[](https://travis-ci.org/webcomponents/custom-elements)
## Building & Running Tests
1. Install web-component-tester
```bash
$ npm i -g web-component-tester
```
2. Checkout the w... | Update readme to mention native-shim | Update readme to mention native-shim
@sorvell PTAL | Markdown | bsd-3-clause | webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills | markdown | ## Code Before:
A polyfill for HTML Custom Elements
[](https://travis-ci.org/webcomponents/custom-elements)
## Building & Running Tests
1. Install web-component-tester
```bash
$ npm i -g web-component-tester
```
2... |
407c7eda3177fa53160d1b2a88a4c826a134087e | views/templates/index.less | views/templates/index.less | padding-top: 0;
ul {
margin: 0 0 0 0; //Bottom margin as much as bottom tabbar.
padding: 0;
.clearfix;
}
.template-cell {
// Spacing
.cell {
height: auto;
}
.left, .middle, .right {
float: none;
width: auto;
... | padding-top: 0;
ul {
margin: 0 0 0 0; //Bottom margin as much as bottom tabbar.
padding: 0;
.clearfix;
}
.list-cell li:first-child {
border-top: none;
}
.template-cell {
// Spacing
.cell {
height: auto;
}
.left, .mid... | Remove 1px border from first template cell. GH-930 | Remove 1px border from first template cell. GH-930 | Less | mpl-2.0 | codex8/webmaker-app,rodmoreno/webmaker-android,vazquez/webmaker-android,alicoding/webmaker-android,thejdeep/webmaker-app,thejdeep/webmaker-app,k88hudson/webmaker-android,alanmoo/webmaker-android,vazquez/webmaker-android,bolaram/webmaker-android,mozilla/webmaker-android,alanmoo/webmaker-android,gvn/webmaker-android,bola... | less | ## Code Before:
padding-top: 0;
ul {
margin: 0 0 0 0; //Bottom margin as much as bottom tabbar.
padding: 0;
.clearfix;
}
.template-cell {
// Spacing
.cell {
height: auto;
}
.left, .middle, .right {
float: none;
... |
673765df05f1a7e5ca09d6024fc6d77f8656f707 | HelloWorld/public/index.php | HelloWorld/public/index.php | <?php
require_once( '../../vendor/autoload.php' );
( new \Staq\Server )
->getCurrentApplication( )
->addController( '/(:path)', function($path='World') {
return 'Hello '.$path;
})
->run( );
| <?php
require_once( '../../vendor/autoload.php' );
( new \Staq\Server )
->getCurrentApplication( ) // We get the current application, it will returns an empty one
->addController( '/(:path)', function($path='World') {
return 'Hello '.$path;
}) ... | Add comments on main file | Add comments on main file
| PHP | mit | Elephant418/Staq-HelloWorld | php | ## Code Before:
<?php
require_once( '../../vendor/autoload.php' );
( new \Staq\Server )
->getCurrentApplication( )
->addController( '/(:path)', function($path='World') {
return 'Hello '.$path;
})
->run( );
## Instruction:
Add comments on main file
## Code After:
<?php
require_once( '../../vendor/autoload.php... |
185c096ed0ef881e077808a8d8126fc5d6234104 | src/h/CMakeLists.txt | src/h/CMakeLists.txt | ###############################################################
#
# Copyright (C) 1990-2010, Redhat.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# http://www.apache.... | ###############################################################
#
# Copyright (C) 1990-2010, Redhat.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# http://www.apache.... | Fix another dependency issue in src/h | Fix another dependency issue in src/h
We inadvertently left out a dependency in
9d4ca19ab30b32a9e6a542f303e9aeabb1c19a69
The ticket is #1905
| Text | apache-2.0 | htcondor/htcondor,djw8605/condor,htcondor/htcondor,djw8605/condor,djw8605/condor,htcondor/htcondor,djw8605/htcondor,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,zhangzhehust/htcondor,zhangzhehust/ht... | text | ## Code Before:
###############################################################
#
# Copyright (C) 1990-2010, Redhat.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License. You may
# obtain a copy of the License at
#
# ht... |
812cf16c0de756a5683267a6d06309dc3e1eb4e4 | assets/css/_headline.scss | assets/css/_headline.scss | .headline {
font-family: $fontSecondary;
}
.headline--darkbg {
color: #fff;
}
.headline--upper {
text-transform: uppercase;
font-weight: 600;
}
.headline--spaced {
letter-spacing: .25em;
}
.headline--light {
opacity: .5;
}
.headline--seperated {
padding-bottom: $baseUnit/8;
margin-bottom: $baseUnit... | .headline {
font-family: $fontSecondary;
}
.headline--darkbg {
color: #fff;
}
.headline--upper {
text-transform: uppercase;
font-weight: 600;
}
.headline--spaced {
letter-spacing: .25em;
}
.headline--light {
opacity: .5;
}
.headline--seperated {
padding-bottom: $baseUnit/8;
margin-bottom: $baseUnit... | Adjust headline.scss for use with pageColors mixin | Adjust headline.scss for use with pageColors mixin
| SCSS | mit | frdmn/blog.frd.mn | scss | ## Code Before:
.headline {
font-family: $fontSecondary;
}
.headline--darkbg {
color: #fff;
}
.headline--upper {
text-transform: uppercase;
font-weight: 600;
}
.headline--spaced {
letter-spacing: .25em;
}
.headline--light {
opacity: .5;
}
.headline--seperated {
padding-bottom: $baseUnit/8;
margin-b... |
ade32137ebcb6c6ba30e5ed185c9e51e9c942915 | templates/zerver/help/star-a-message.md | templates/zerver/help/star-a-message.md |
Starring messages is a good way to keep track of important messages, such as
tasks you need to go back to or documents you reference often.
### Star a message
{start_tabs}
{!message-actions.md!}
1. Click the star (<i class="fa fa-star-o"></i>) icon.
{end_tabs}
Starred messages have a filled in star (<i class="fa... |
Starring messages is a good way to keep track of important messages, such as
tasks you need to go back to or documents you reference often.
## Star a message
{start_tabs}
{tab|desktop}
{!message-actions.md!}
1. Click the star (<i class="fa fa-star-o"></i>) icon.
{tab|mobile}
1. Long press on a message.
1. Selec... | Improve documentation for starred messages. | help: Improve documentation for starred messages.
* Add mobile app instructions for interacting with them.
* Fix inconsistent headings.
* Document the new state that starred message counts are the deafult,
and mention the "come back to" workflow for them.
| Markdown | apache-2.0 | kou/zulip,hackerkid/zulip,zulip/zulip,andersk/zulip,andersk/zulip,andersk/zulip,hackerkid/zulip,hackerkid/zulip,zulip/zulip,punchagan/zulip,kou/zulip,rht/zulip,andersk/zulip,punchagan/zulip,eeshangarg/zulip,hackerkid/zulip,rht/zulip,eeshangarg/zulip,punchagan/zulip,hackerkid/zulip,hackerkid/zulip,hackerkid/zulip,eeshan... | markdown | ## Code Before:
Starring messages is a good way to keep track of important messages, such as
tasks you need to go back to or documents you reference often.
### Star a message
{start_tabs}
{!message-actions.md!}
1. Click the star (<i class="fa fa-star-o"></i>) icon.
{end_tabs}
Starred messages have a filled in st... |
1aa121daa3c99849173d5cd4c6a80d6bf94f5186 | saleor/attribute/__init__.py | saleor/attribute/__init__.py | class AttributeInputType:
"""The type that we expect to render the attribute's values as."""
DROPDOWN = "dropdown"
MULTISELECT = "multiselect"
FILE = "file"
REFERENCE = "reference"
CHOICES = [
(DROPDOWN, "Dropdown"),
(MULTISELECT, "Multi Select"),
(FILE, "File"),
... | class AttributeInputType:
"""The type that we expect to render the attribute's values as."""
DROPDOWN = "dropdown"
MULTISELECT = "multiselect"
FILE = "file"
REFERENCE = "reference"
CHOICES = [
(DROPDOWN, "Dropdown"),
(MULTISELECT, "Multi Select"),
(FILE, "File"),
... | Add info about required updates in AttributeEntityType | Add info about required updates in AttributeEntityType
| Python | bsd-3-clause | mociepka/saleor,mociepka/saleor,mociepka/saleor | python | ## Code Before:
class AttributeInputType:
"""The type that we expect to render the attribute's values as."""
DROPDOWN = "dropdown"
MULTISELECT = "multiselect"
FILE = "file"
REFERENCE = "reference"
CHOICES = [
(DROPDOWN, "Dropdown"),
(MULTISELECT, "Multi Select"),
(FILE,... |
2a5d3c9b11a3a644d7e2ddf9c6687894a214b1f9 | templates/vue/package.json | templates/vue/package.json | {
"name": "aspnet",
"version": "1.0.0",
"private": true,
"instapack": {
"output": "wwwroot",
"concat": {
"vendor": [
"es6-promise/dist/es6-promise.auto",
"bootstrap.native/dist/polyfill",
"bootstrap.native/dist/bootstrap-native-v4"
]
},
"alias": {
"vue":... | {
"name": "aspnet",
"version": "1.0.0",
"private": true,
"instapack": {
"output": "wwwroot",
"concat": {
"vendor": [
"es6-promise/dist/es6-promise.auto",
"bootstrap.native/dist/polyfill",
"bootstrap.native/dist/bootstrap-native-v4"
]
},
"alias": {
"vue":... | Remove vee-validate from vue template. | Remove vee-validate from vue template.
| JSON | mit | ryanelian/instapack,ryanelian/ryan-compiler,ryanelian/ryan-compiler,ryanelian/instapack,ryanelian/instapack,ryanelian/ryan-compiler | json | ## Code Before:
{
"name": "aspnet",
"version": "1.0.0",
"private": true,
"instapack": {
"output": "wwwroot",
"concat": {
"vendor": [
"es6-promise/dist/es6-promise.auto",
"bootstrap.native/dist/polyfill",
"bootstrap.native/dist/bootstrap-native-v4"
]
},
"alias"... |
dccd2543b9e36ac76f1dcb24673b5781149ead44 | lib/rom/sql/commands/update.rb | lib/rom/sql/commands/update.rb | require 'rom/sql/commands'
module ROM
module SQL
module Commands
class Update < ROM::Commands::Update
option :original, type: Hash, reader: true
alias_method :to, :call
def execute(tuple)
attributes = input[tuple]
validator.call(attributes)
changed =... | require 'rom/sql/commands'
module ROM
module SQL
module Commands
class Update < ROM::Commands::Update
option :original, type: Hash, reader: true
alias_method :to, :call
def execute(tuple)
attributes = input[tuple]
validator.call(attributes)
changed =... | Use dataset for Update command | Use dataset for Update command
| Ruby | mit | kwando/rom-sql,cflipse/rom-sql,spscream/rom-sql,rom-rb/rom-sql,jamesmoriarty/rom-sql,rom-rb/rom-sql | ruby | ## Code Before:
require 'rom/sql/commands'
module ROM
module SQL
module Commands
class Update < ROM::Commands::Update
option :original, type: Hash, reader: true
alias_method :to, :call
def execute(tuple)
attributes = input[tuple]
validator.call(attributes)
... |
eebebcbea425efa3fc0c38528e5bf862a6dcfc7f | README.md | README.md | An online image dataset sharing and annotating platform.
## Setup
Clone this repository:
git clone https://github.com/ikafire/OpenObjectMarker
cd OpenObjectMarker
Install node package dependency:
sudo npm install -g # install the cmd tool (e.g., gulp and bower)
sudo npm install
Install bower compo... | An online image dataset sharing and annotating platform.
## Setup
Install node.js and npm:
# Mac OSX:
go to https://nodejs.org/en/ and download the .pkg.
# Ubuntu:
just install it by apt-get
Clone this repository:
git clone https://github.com/ikafire/OpenObjectMarker
cd OpenObjectMarker
I... | Add some command for installing building tool | [Readme] Add some command for installing building tool
| Markdown | bsd-3-clause | stitux/OpenObjectMarker,stitux/OpenObjectMarker,ikafire/OpenObjectMarker,colin8930/OpenObjectMarker,colin8930/OpenObjectMarker,ikafire/OpenObjectMarker | markdown | ## Code Before:
An online image dataset sharing and annotating platform.
## Setup
Clone this repository:
git clone https://github.com/ikafire/OpenObjectMarker
cd OpenObjectMarker
Install node package dependency:
sudo npm install -g # install the cmd tool (e.g., gulp and bower)
sudo npm install
Ins... |
92f332f2e43d49e3b587cca202dda6a3c8147573 | spec/controllers/groups_controller_spec.rb | spec/controllers/groups_controller_spec.rb | require 'spec_helper'
describe GroupsController do
render_views
describe "#show" do
context "with a group name" do
it "routes to the correct group" do
group = Factory(:group, :name => "foobar")
get :show, :name => "foobar"
assigns[:group].should == group
end
it "thro... | require 'spec_helper'
describe GroupsController do
render_views
describe "#show" do
context "with a group name" do
it "routes to the correct group" do
group = Factory(:group, :name => "foobar")
get :show, :name => "foobar"
assigns[:group].should == group
end
it "thro... | Fix tests for new 404 page | Fix tests for new 404 page | Ruby | mit | zbrock/billcrush,zbrock/billcrush | ruby | ## Code Before:
require 'spec_helper'
describe GroupsController do
render_views
describe "#show" do
context "with a group name" do
it "routes to the correct group" do
group = Factory(:group, :name => "foobar")
get :show, :name => "foobar"
assigns[:group].should == group
end... |
7f03c8e7221c28405473b9438592e837f99aead7 | bundles/at.medevit.elexis.agenda.ui.rcp/build.properties | bundles/at.medevit.elexis.agenda.ui.rcp/build.properties | source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
| source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml,\
fragment.e4xmi
| Refactor a.m.e.agenda.ui for rcp/rap usage, add missing fragment | [18505] Refactor a.m.e.agenda.ui for rcp/rap usage, add missing fragment | INI | epl-1.0 | DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base,DavidGutknecht/elexis-3-base | ini | ## Code Before:
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
## Instruction:
[18505] Refactor a.m.e.agenda.ui for rcp/rap usage, add missing fragment
## Code After:
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.,\
pl... |
2a56e9a5ec7d67338ac4affb9d8eabbb58a0f7fd | exercises/practice/hello-world/hello-world.lisp | exercises/practice/hello-world/hello-world.lisp | (defpackage #:hello-world
(:use #:cl)
(:export #:hello))
(in-package #:hello-world)
(defun hello ())
| (defpackage #:hello-world
(:use #:cl)
(:export #:hello))
(in-package #:hello-world)
(defun hello () "Put your greeting here.")
| Add in stub string for the exercise. | Add in stub string for the exercise.
This is meant to be the VERY FIRST exercise - so extra hand-holding
required.
The benefit of this hand-holding is that now the student will have
been shown how to make literal strings - so I won't feel bad about
using literal strings without further explanation.
| Common Lisp | mit | exercism/xlisp,exercism/xlisp | common-lisp | ## Code Before:
(defpackage #:hello-world
(:use #:cl)
(:export #:hello))
(in-package #:hello-world)
(defun hello ())
## Instruction:
Add in stub string for the exercise.
This is meant to be the VERY FIRST exercise - so extra hand-holding
required.
The benefit of this hand-holding is that now the student will ha... |
840941ab5dc9b20e86f4177eced59d29581b51c4 | src/oversions.ml | src/oversions.ml | type version = Ocaml_version.t
let primary = Ocaml_version.Releases.latest
let recents = Ocaml_version.Releases.recent
let older_than_4_07 v =
Ocaml_version.compare v Ocaml_version.Releases.v4_07_0 < 0
let to_string v =
Ocaml_version.to_string (Ocaml_version.with_just_major_and_minor v)
| type version = Ocaml_version.t
let primary = Ocaml_version.Releases.latest
let recents = Ocaml_version.Releases.recent @ Ocaml_version.Releases.unreleased_betas
let older_than_4_07 v =
Ocaml_version.compare v Ocaml_version.Releases.v4_07_0 < 0
let to_string v =
Ocaml_version.to_string (Ocaml_version.with_just_ma... | Add beta versions of the compiler to the CI matrix | Add beta versions of the compiler to the CI matrix
| OCaml | isc | avsm/mirage-ci | ocaml | ## Code Before:
type version = Ocaml_version.t
let primary = Ocaml_version.Releases.latest
let recents = Ocaml_version.Releases.recent
let older_than_4_07 v =
Ocaml_version.compare v Ocaml_version.Releases.v4_07_0 < 0
let to_string v =
Ocaml_version.to_string (Ocaml_version.with_just_major_and_minor v)
## Instr... |
642afe3746496a4195f5d9cb7a666f1b135c2ba2 | app/scripts/index.tsx | app/scripts/index.tsx | import 'core-js/stable';
import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './redux/store';
import App from './components/App';
import 'purecss/build/pure-min.css';
// Static assets
import '../.htaccess';
impo... | import 'core-js/stable';
import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import 'purecss/build/pure-min.css';
import store from './redux/store';
import App from './components/App';
// Static assets
import '../.htaccess';
impo... | Correct import order for pure css | Correct import order for pure css
| TypeScript | mit | benct/tomlin-web,benct/tomlin-web | typescript | ## Code Before:
import 'core-js/stable';
import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './redux/store';
import App from './components/App';
import 'purecss/build/pure-min.css';
// Static assets
import '../... |
99ef2748485ff8ef67a0595b62912f176a7a593c | mk/prog.mk | mk/prog.mk |
OBJS+= ${SRCS:.c=.o}
include ${MK}/sys.mk
# Some systems don't include /lib in their standard link path
# so we should embed it if different
_RPATH_SH= if test "${SHLIBDIR}" != "/usr/${LIBNAME}"; then \
echo "-Wl,-rpath-link,${DESTDIR}${SHLIBDIR}:${DESTDIR}/usr/lib"; \
fi
_RPATH!= ${_RPATH_SH}
LDFLAGS+= $... |
OBJS+= ${SRCS:.c=.o}
include ${MK}/sys.mk
# Some systems don't include /lib in their standard link path
# so we should embed it if different
_RPATH_SH= if test "${SHLIBDIR}" != "/usr/${LIBNAME}"; then \
echo "-Wl,-rpath=/${LIBNAME}"; \
fi
_RPATH!= ${_RPATH_SH}
LDFLAGS+= ${_RPATH}$(shell ${_RPATH_SH})
LDFL... | Fix rpathness on NetBSD again. | Fix rpathness on NetBSD again.
| Makefile | bsd-2-clause | williamh/openrc,OpenRC/openrc,williamh/openrc,OpenRC/openrc,dwfreed/openrc,dwfreed/openrc,dwfreed/openrc,OpenRC/openrc,williamh/openrc | makefile | ## Code Before:
OBJS+= ${SRCS:.c=.o}
include ${MK}/sys.mk
# Some systems don't include /lib in their standard link path
# so we should embed it if different
_RPATH_SH= if test "${SHLIBDIR}" != "/usr/${LIBNAME}"; then \
echo "-Wl,-rpath-link,${DESTDIR}${SHLIBDIR}:${DESTDIR}/usr/lib"; \
fi
_RPATH!= ${_RPATH_... |
986fd9e239408330aba186dc364f240a96c3b578 | doc/arch-design-rst/source/massively-scalable.rst | doc/arch-design-rst/source/massively-scalable.rst | ==================
Massively scalable
==================
| ==================
Massively scalable
==================
A massively scalable architecture is a cloud implementation
that is either a very large deployment, such as a commercial
service provider might build, or one that has the capability
to support user requests for large amounts of cloud resources.
An example is an... | Convert convert massively scalable to RST | [arch-design] Convert convert massively scalable to RST
Change-Id: Iffc96af2a673b0327ce90c6f889546bfea685b3d
Implements: blueprint archguide-mitaka-rst
| reStructuredText | apache-2.0 | AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals,openstack/openstack-manuals,openstack/openstack-manuals,AlekhyaMallina-Vedams/openstack-manuals | restructuredtext | ## Code Before:
==================
Massively scalable
==================
## Instruction:
[arch-design] Convert convert massively scalable to RST
Change-Id: Iffc96af2a673b0327ce90c6f889546bfea685b3d
Implements: blueprint archguide-mitaka-rst
## Code After:
==================
Massively scalable
==================
A m... |
e49bbcd658a1614be48726388cc1fcda08af2c82 | app/views/courses/show.html.erb | app/views/courses/show.html.erb | <h2><%= @course.title %></h2>
<p>Learner: <%= @course.learner.name %></p>
<p>Tutor: <%= @course.tutor.name %></p>
<p>Price: <%= @course.price %></p>
<p>Length: <%= @course.length %></p>
<p>Status: <%= @course.status %></p>
<h3>Learning Objectives</h3>
<% @course.learning_objectives.each do |lo| %>
<li><%= lo.objective ... | <h2><%= @course.title %></h2>
<p>Learner: <%= @course.learner.name %></p>
<p>Tutor: <%= @course.tutor.name %></p>
<p>Price: <%= @course.price %></p>
<p>Length: <%= @course.length %></p>
<p>Status: <%= @course.status %></p>
<h3>Learning Objectives</h3>
<% @course.learning_objectives.each do |lo| %>
<li><%= lo.objective ... | Add edit lesson link to lesson page | Add edit lesson link to lesson page
| HTML+ERB | mit | raquelxmoss/learning_connect,raquelxmoss/learning_connect,raquelxmoss/learning_connect | html+erb | ## Code Before:
<h2><%= @course.title %></h2>
<p>Learner: <%= @course.learner.name %></p>
<p>Tutor: <%= @course.tutor.name %></p>
<p>Price: <%= @course.price %></p>
<p>Length: <%= @course.length %></p>
<p>Status: <%= @course.status %></p>
<h3>Learning Objectives</h3>
<% @course.learning_objectives.each do |lo| %>
<li><... |
71cd4702d56c252d64db94cb7dd7216f88473808 | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
sudo: false
addons:
apt:
sources:
- debian-sid
packages:
- libssl1.0.0
env:
matrix:
- VAULT_VER=0.5.2
- VAULT_VER=0.6.0
- VAULT_VER=0.6.1
- VAULT_VER=0.6.2
- VAULT_VER=0.6.3
- VAULT_VER=0.6.4
- VAULT_VER=0.6.5
- VAULT_VER=0.7... | language: java
jdk:
- oraclejdk8
sudo: false
addons:
apt:
sources:
- debian-sid
packages:
- libssl1.0.0
env:
matrix:
- VAULT_VER=0.5.2
- VAULT_VER=0.6.0
- VAULT_VER=0.6.1
- VAULT_VER=0.6.2
- VAULT_VER=0.6.3
- VAULT_VER=0.6.4
- VAULT_VER=0.6.5
- VAULT_VER=0.7... | Use Maven wrapper for build. | Use Maven wrapper for build.
Use a well-defined Maven version to control the build environment.
See gh-83.
| YAML | apache-2.0 | mp911de/spring-vault,mp911de/spring-vault | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
sudo: false
addons:
apt:
sources:
- debian-sid
packages:
- libssl1.0.0
env:
matrix:
- VAULT_VER=0.5.2
- VAULT_VER=0.6.0
- VAULT_VER=0.6.1
- VAULT_VER=0.6.2
- VAULT_VER=0.6.3
- VAULT_VER=0.6.4
- VAULT_VER=0.6.5
... |
e1718001f69257f3c5fef0e5ccf91ea5840cae04 | XS.xs | XS.xs |
MODULE = Path::Hilbert::XS PACKAGE = Path::Hilbert::XS
PROTOTYPES: DISABLE
|
/* rotate/flip a quadrant appropriately */
static void rot(int n, int *x, int *y, int rx, int ry) {
if (ry) {
return;
}
if (rx) {
*x = n - 1 - *x;
*y = n - 1 - *y;
}
/* swap x and y, reusing ry shamelessly */
ry = *x;
*x = *y;
*y = ry;
}
static int valid_n(int side) {
double rv = pow(... | Add the C implementation for Hilbert curve | Add the C implementation for Hilbert curve
| XS | mit | p5pclub/path-hilbert-xs,p5pclub/path-hilbert-xs | xs | ## Code Before:
MODULE = Path::Hilbert::XS PACKAGE = Path::Hilbert::XS
PROTOTYPES: DISABLE
## Instruction:
Add the C implementation for Hilbert curve
## Code After:
/* rotate/flip a quadrant appropriately */
static void rot(int n, int *x, int *y, int rx, int ry) {
if (ry) {
return;
}
if (rx) {
*x =... |
1f1c7baa0ae1bf77f59a7bae8ff7ca4a51950f28 | js/app/models/searchResults.js | js/app/models/searchResults.js | define(['jquery', 'underscore', 'backbone', 'model_search_item'], function($, _, Backbone, Models) {
Models.SearchResults = Backbone.Collection.extend({
model: Models.SearchItem,
initialize: function() {
this.fetch();
},
parse: function(response, options) {
return response.result.results;
}
});
retur... | define(['jquery', 'underscore', 'backbone', 'model_search_item'], function($, _, Backbone, Models) {
Models.SearchResults = Backbone.Collection.extend({
model: Models.SearchItem,
url: '/service/products/search/',
initialize: function() {
this.fetch();
},
parse: function(response, options) {
return resp... | Add URL back to Models.SearchResults. | Add URL back to Models.SearchResults.
| JavaScript | mit | burnflare/CrowdBuy,burnflare/CrowdBuy | javascript | ## Code Before:
define(['jquery', 'underscore', 'backbone', 'model_search_item'], function($, _, Backbone, Models) {
Models.SearchResults = Backbone.Collection.extend({
model: Models.SearchItem,
initialize: function() {
this.fetch();
},
parse: function(response, options) {
return response.result.results;... |
fb44a4bf4713dfde73c3560497b2dcff613a3837 | README.md | README.md | Farm
====
"Farm out" background jobs by running them immediately as a one-off Heroku process. Only works with Rails >= 3.0.
Install:
gem install farm
Set the environment variables `API_KEY` and `APP_NAME` to your Heroku API key and the name of your app on Heroku, respectively.
Call with the farm method:
F... | Farm
====
"Farm out" background jobs by running them immediately as a one-off Heroku process.
Installation and Setup:
-----------------------
gem install farm
Set the environment variables `API_KEY` and `APP_NAME` to your Heroku API key and the name of your app on Heroku, respectively.
### Rails >= 3.0:
The i... | Update docs wrt removing rails dependency. | Update docs wrt removing rails dependency.
| Markdown | mit | mattmanning/farm | markdown | ## Code Before:
Farm
====
"Farm out" background jobs by running them immediately as a one-off Heroku process. Only works with Rails >= 3.0.
Install:
gem install farm
Set the environment variables `API_KEY` and `APP_NAME` to your Heroku API key and the name of your app on Heroku, respectively.
Call with the far... |
151c3484da58fa02f7d2c69454be3cb4e3395d05 | recipes/recipe_modules/bot_update/tests/ensure_checkout.py | recipes/recipe_modules/bot_update/tests/ensure_checkout.py |
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusCodeIn, 0) +
a... |
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusSuccess) +
api... | Replace post-process checks with ones that are not deprecated | Replace post-process checks with ones that are not deprecated
R=40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org
Bug: 899266
Change-Id: Ia9b1f38590d636fa2858a2bd0bbf75d6b2cfe8fa
Reviewed-on: https://chromium-review.googlesource.com/c/1483033
Reviewed-by: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@... | Python | bsd-3-clause | CoherentLabs/depot_tools,CoherentLabs/depot_tools | python | ## Code Before:
from recipe_engine import post_process
DEPS = [
'bot_update',
'gclient',
'recipe_engine/json',
]
def RunSteps(api):
api.gclient.set_config('depot_tools')
api.bot_update.ensure_checkout()
def GenTests(api):
yield (
api.test('basic') +
api.post_process(post_process.StatusCode... |
364ec4e9674b37d8b2fd9d346d74b6daa159056e | t/500-plugin.t | t/500-plugin.t |
{
package Interhack::Plugin::Test;
use Moose::Role;
sub loaded { 1 }
}
use strict;
use warnings;
use Interhack::Test tests => 2;
# test that we can load plugins OK, and things are detected to be be bad if we
# can't find a plugin
my $interhack = Interhack::Test->new();
SKIP:
{
$interhack->load_plu... |
{
package Interhack::Plugin::Test;
use Moose::Role;
sub loaded { 1 }
around 'recvd' => sub { my ($orig, $self) = @_; '1' . $orig->($self ) };
}
{
package Interhack::Plugin::Test2;
use Moose::Role;
sub loaded2 { 1 }
around 'recvd' => sub { my ($orig, $self) = @_; '2' . $orig->($self )... | Add tests for plugins loading both ways | Add tests for plugins loading both ways | Perl | bsd-3-clause | TAEB/Interhack2 | perl | ## Code Before:
{
package Interhack::Plugin::Test;
use Moose::Role;
sub loaded { 1 }
}
use strict;
use warnings;
use Interhack::Test tests => 2;
# test that we can load plugins OK, and things are detected to be be bad if we
# can't find a plugin
my $interhack = Interhack::Test->new();
SKIP:
{
$int... |
dae5d2fab098a001ad78a5652b2c6defcabd3581 | src/register.js | src/register.js | import React from 'react';
import addons from '@kadira/storybook-addons';
import {setAddon} from '@kadira/storybook';
import MarkdownPanel from './MarkdownPanel';
const ADDON_ID = 'storybook-addon-markdown';
const PANEL_ID = `${ADDON_ID}/markdown-panel`;
addons.register(ADDON_ID, (api) => {
const channel = addons.... | import React from 'react';
import addons from '@kadira/storybook-addons';
import MarkdownPanel from './MarkdownPanel';
const ADDON_ID = 'storybook-addon-markdown';
const PANEL_ID = `${ADDON_ID}/markdown-panel`;
addons.register(ADDON_ID, (api) => {
const channel = addons.getChannel();
addons.addPanel(PANEL_ID, {
... | Fix bug that was causing dataId error | Fix bug that was causing dataId error
| JavaScript | mit | mihalik/storybook-addon-markdown,mihalik/storybook-addon-markdown | javascript | ## Code Before:
import React from 'react';
import addons from '@kadira/storybook-addons';
import {setAddon} from '@kadira/storybook';
import MarkdownPanel from './MarkdownPanel';
const ADDON_ID = 'storybook-addon-markdown';
const PANEL_ID = `${ADDON_ID}/markdown-panel`;
addons.register(ADDON_ID, (api) => {
const c... |
259396028862e4c7b2a00e2c908be2b8ffeee991 | setup.py | setup.py | import os
import distutils.core
import sys
try:
import setuptools
except ImportError:
pass
try:
license = open('LICENSE').read()
except:
license = None
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def desc():
info = read('README.rst')
try:
... | import os
import distutils.core
import sys
try:
import setuptools
except ImportError:
pass
try:
license = open('LICENSE').read()
except:
license = None
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def desc():
info = read('README.rst')
try:
... | Add the Python version and license classifiers | Add the Python version and license classifiers
Signed-off-by: Tomas Sedovic <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@sedovic.cz>
| Python | mit | codepython/sockjs-tornado,ImaginationForPeople/sockjs-tornado,codepython/sockjs-tornado,barseghyanartur/sockjs-tornado,mrjoes/sockjs-tornado,ImaginationForPeople/sockjs-tornado,DexterInd/sockjs-tornado,codepython/sockjs-tornado,MrJoes/sockjs-tornado,DexterInd/sockjs-tornado,pjknkda/sockjs-tornado,DexterInd/sockjs-torna... | python | ## Code Before:
import os
import distutils.core
import sys
try:
import setuptools
except ImportError:
pass
try:
license = open('LICENSE').read()
except:
license = None
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def desc():
info = read('README.rst')... |
3825c78617cf969f0ca37b9b0bde385a480a5ad5 | app/views/search/_no_results_of_type_notice.html.haml | app/views/search/_no_results_of_type_notice.html.haml | .col-xs-12.col-md-9
.alert.alert-info
Sorry, we couldn’t find any
= @type == "users" ? @type : "scrapers"
relevant to your search term
%strong “#{@q}”.
| .col-xs-12.col-md-9
.alert.alert-info
Sorry, we couldn’t find any
- if @type == "users"
users
- else
scrapers
- if !@scrapers_total_count.zero? && @scrapers.total_count.zero?
%em with data,
that are
relevant to your search term
%strong “#{@q}”.
| Add 'no results with data' case to notice partial | Add 'no results with data' case to notice partial
| Haml | agpl-3.0 | otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph | haml | ## Code Before:
.col-xs-12.col-md-9
.alert.alert-info
Sorry, we couldn’t find any
= @type == "users" ? @type : "scrapers"
relevant to your search term
%strong “#{@q}”.
## Instruction:
Add 'no results with data' case to notice partial
## Code After:
.col-xs-12.col-md-9
.alert.alert-info
Sorry, ... |
2191d73bd3a1c2b02a82429da837ce4df808d664 | tests/acceptance/index-test.js | tests/acceptance/index-test.js | import { test } from 'qunit';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | Polymer | index');
test('visiting /', function(assert) {
visit('/');
andThen(function() {
assert.equal(this.currentURL(), '/');
});
andThen(function() {
let do... | import { test } from 'qunit';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | Polymer | index');
test('visiting /', function(assert) {
visit('/');
andThen(function() {
assert.equal(currentURL(), '/');
});
andThen(function() {
let done = ... | Fix scope access in index acceptance test 🔨 | Fix scope access in index acceptance test 🔨
This somehow only just started causing problems in ember-cli >= 2.8.0
| JavaScript | mit | dunnkers/ember-polymer,dunnkers/ember-polymer | javascript | ## Code Before:
import { test } from 'qunit';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | Polymer | index');
test('visiting /', function(assert) {
visit('/');
andThen(function() {
assert.equal(this.currentURL(), '/');
});
andThen(functio... |
991830788857513701a7b7618cb953bf52e43608 | public/index.php | public/index.php | <?php
require __DIR__ . '/../vendor/autoload.php';
session_start();
// Instantiate the app
$settings = require __DIR__ . '/../app/settings.php';
$app = new \Slim\App($settings);
// Set up dependencies
require __DIR__ . '/../app/dependencies.php';
// Register middleware
// e.g: $app->add(new \Slim\Csrf\Guard);
// R... | <?php
if (PHP_SAPI == 'cli-server') {
// To help the built-in PHP dev server, check if the request was actually for
// something which should probably be served as a static file
$file = __DIR__ . $_SERVER['REQUEST_URI'];
if (is_file($file)) {
return false;
}
}
require __DIR__ . '/../vendor... | Add support for PHP's built-in server | Add support for PHP's built-in server
| PHP | bsd-3-clause | elevenone/slim3-skeleton,musaid/slim3-skeleton,akrabat/slim3-skeleton,akrabat/slim3-skeleton,pabloroca/slim3-simple-rest-skeleton,elevenone/slim3-skeleton,musaid/slim3-skeleton,moritz-h/slim3-rest-skeleton | php | ## Code Before:
<?php
require __DIR__ . '/../vendor/autoload.php';
session_start();
// Instantiate the app
$settings = require __DIR__ . '/../app/settings.php';
$app = new \Slim\App($settings);
// Set up dependencies
require __DIR__ . '/../app/dependencies.php';
// Register middleware
// e.g: $app->add(new \Slim\Cs... |
ed341ef2a5ee045c839d722b6562297b802ba130 | src/client/index.ts | src/client/index.ts | import { setup } from '@cycle/run'
import { makeHTTPDriver } from '@cycle/http'
import { makeDOMDriver } from '@cycle/dom'
import { makeHistoryDriver } from '@cycle/history'
import { timeDriver } from '@cycle/time'
import switchPath from 'switch-path'
import ClientRoutes from './routes'
import Main from './main'
// r... | import { setup } from '@cycle/run'
import { makeHTTPDriver } from '@cycle/http'
import { makeDOMDriver } from '@cycle/dom'
import { makeHistoryDriver } from '@cycle/history'
import { timeDriver } from '@cycle/time'
import ClientRoutes from './routes'
import Main from './main'
// register ServiceWorker
require('offlin... | Remove unused import, make History driver restartable | Remove unused import, make History driver restartable
| TypeScript | mit | wyqydsyq/unicycle,wyqydsyq/unicycle | typescript | ## Code Before:
import { setup } from '@cycle/run'
import { makeHTTPDriver } from '@cycle/http'
import { makeDOMDriver } from '@cycle/dom'
import { makeHistoryDriver } from '@cycle/history'
import { timeDriver } from '@cycle/time'
import switchPath from 'switch-path'
import ClientRoutes from './routes'
import Main fro... |
d6cfabce314da408e0f01b261ab7abe92ad228d2 | packages/ag-grid-docs/src/_assets/ts/ag-grid-enterprise-main.ts | packages/ag-grid-docs/src/_assets/ts/ag-grid-enterprise-main.ts | import "../../../../ag-grid-enterprise/src/main.ts";
| import "../../../../ag-grid-enterprise/src/modules/chartsModule.ts";
import "../../../../ag-grid-enterprise/src/main.ts";
| Add charts module to runner | Add charts module to runner
| TypeScript | mit | ceolter/ag-grid,ceolter/ag-grid,ceolter/angular-grid,ceolter/angular-grid | typescript | ## Code Before:
import "../../../../ag-grid-enterprise/src/main.ts";
## Instruction:
Add charts module to runner
## Code After:
import "../../../../ag-grid-enterprise/src/modules/chartsModule.ts";
import "../../../../ag-grid-enterprise/src/main.ts";
|
f2949e075bfb1503cd6eec098606d9219e898538 | _includes/post.html | _includes/post.html | <article class="post">
<header class="post_header">
<h1 class="post_title">{% if post %}<a href="{{ post.url }}">{{ post.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<div class="post_meta">
Published on
<time datetime="{% if post %}{{ post.date | date_to_xmlschema }}{% else %}{{ page.dat... | <article class="post">
<header class="post_header">
<h1 class="post_title">{% if post %}<a href="{{ post.url }}">{{ post.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<div class="post_meta">
Published on
<time datetime="{% if post %}{{ post.date | date_to_xmlschema }}{% else %}{{ page.dat... | Fix showing "Read more" link on archives | Fix showing "Read more" link on archives
Only show "Read more" link for posts that are excerpted.
| HTML | mit | jasecoop/jasecoop-jekyll,jbhannah/jbhannah.net-jekyll,jbhannah/jbhannah.net-jekyll,jasecoop/jasecoop-jekyll,jbhannah/jbhannah.net-jekyll | html | ## Code Before:
<article class="post">
<header class="post_header">
<h1 class="post_title">{% if post %}<a href="{{ post.url }}">{{ post.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<div class="post_meta">
Published on
<time datetime="{% if post %}{{ post.date | date_to_xmlschema }}{% el... |
8ebab71c09a36c6537d43144e22e23aa28d08689 | languages/ru.yml | languages/ru.yml | index:
home: 'Главная'
search: 'Поиск'
archive: 'архив'
category: 'категории'
uncategorized: 'без категории'
tag: 'тэг'
nav:
next: 'Далее'
prev: 'Назад'
older: 'Старые'
newer: 'Новые'
widget:
recents: 'недавние'
archives: 'архивы'
categories: 'категории'
links: 'с... | index:
home: 'Главная'
search: 'Поиск'
archive: 'архив'
category: 'категории'
uncategorized: 'без категории'
tag: 'тэг'
nav:
next: 'Далее'
prev: 'Назад'
older: 'Старые'
newer: 'Новые'
widget:
recents: 'недавние'
archives: 'архивы'
categories: 'категории'
links: 'с... | Add "Read More" for Russian translation | Add "Read More" for Russian translation | YAML | mit | MeoKUN/MeoKUN.github.io,MeoKUN/MeoKUN.github.io,ppoffice/hexo-theme-icarus,gsmadi/hexo-theme-icarus,sasivarnan/hexo-theme-icarus,sasivarnan/hexo-theme-icarus,MeoKUN/MeoKUN.github.io,gsmadi/hexo-theme-icarus | yaml | ## Code Before:
index:
home: 'Главная'
search: 'Поиск'
archive: 'архив'
category: 'категории'
uncategorized: 'без категории'
tag: 'тэг'
nav:
next: 'Далее'
prev: 'Назад'
older: 'Старые'
newer: 'Новые'
widget:
recents: 'недавние'
archives: 'архивы'
categories: 'категори... |
8fffc7a7e77e66b2475f03e842eb0cf093eab293 | e2e/main.test.js | e2e/main.test.js | import test from 'ava';
import electronPath from 'electron';
import { Application } from 'spectron';
import path from 'path';
const appPath = path.join(__dirname, '..');
test.beforeEach(async t => {
t.context.app = new Application({ // eslint-disable-line no-param-reassign
path: electronPath,
args: [appPath... | import test from 'ava';
import electronPath from 'electron';
import { Application } from 'spectron';
import path from 'path';
const appPath = path.join(__dirname, '..');
test.beforeEach(async t => {
t.context.app = new Application({ // eslint-disable-line no-param-reassign
path: electronPath,
args: [appPath... | Increase chrome driver start timeout | Increase chrome driver start timeout
| JavaScript | mit | psychobolt/electron-boilerplate,psychobolt/electron-boilerplate | javascript | ## Code Before:
import test from 'ava';
import electronPath from 'electron';
import { Application } from 'spectron';
import path from 'path';
const appPath = path.join(__dirname, '..');
test.beforeEach(async t => {
t.context.app = new Application({ // eslint-disable-line no-param-reassign
path: electronPath,
... |
029d492c93c4afe5f728c9d37d09ab0c11c80e37 | project/plugins.sbt | project/plugins.sbt | addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
addSbtPlugin("com.gilt" % "sbt-dependency-graph-sugar" % "0.7.4")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
addSbtPlugin("io.get-coursier" % "sbt-coursier-java-6" % "1.0.0-M11")
addSbtPlugin(... | addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
addSbtPlugin("io.get-coursier" % "sbt-coursier-java-6" % "1.0.0-M11")
addSbtPlugin("com.lihaoyi" % "scalatex-sbt-plugin" % "0.3.5")
| Remove sbt-dependency-graph-sugar, clashes with newer, global sbt-dependency-graph | Remove sbt-dependency-graph-sugar, clashes with newer, global sbt-dependency-graph
| Scala | bsd-3-clause | MasseGuillaume/scalameta,scalameta/scalameta,DavidDudson/scalameta,scalameta/scalameta,MasseGuillaume/scalameta,scalameta/scalameta,scalameta/scalameta,xeno-by/scalameta,olafurpg/scalameta,xeno-by/scalameta,MasseGuillaume/scalameta,olafurpg/scalameta,DavidDudson/scalameta,Dveim/scalameta,scalameta/scalameta,xeno-by/sca... | scala | ## Code Before:
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.1")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
addSbtPlugin("com.gilt" % "sbt-dependency-graph-sugar" % "0.7.4")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")
addSbtPlugin("io.get-coursier" % "sbt-coursier-java-6" % "1.0.0-M11"... |
1557411c86d6d9d2aa2718a6349cd3f4ad854458 | .travis/compare-files.sh | .travis/compare-files.sh |
source .travis/common.sh
SORT="sort -s"
# Get a list of current files
CURRENT_FILES=$(mktemp --suffix=.current.files)
echo -e "Files which *currently* exist" > $CURRENT_FILES
echo "-------------------" >> $CURRENT_FILES
utils/listfiles.py | sed -e"s@^$PWD/@@" | $SORT >> $CURRENT_FILES
# Get a list of possible files... |
source .travis/common.sh
SORT="sort -s"
# Get a list of current files
CURRENT_FILES=$(mktemp --suffix=.current.files)
echo -e "Files which *currently* exist" > $CURRENT_FILES
echo "-------------------" >> $CURRENT_FILES
utils/listfiles.py | sed -e"s@^$PWD/@@" | $SORT >> $CURRENT_FILES
# Get a list of possible files... | Use a width of 200 characters. | travis: Use a width of 200 characters.
Signed-off-by: Tim 'mithro' Ansell <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@mith.ro>
| Shell | isc | SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs | shell | ## Code Before:
source .travis/common.sh
SORT="sort -s"
# Get a list of current files
CURRENT_FILES=$(mktemp --suffix=.current.files)
echo -e "Files which *currently* exist" > $CURRENT_FILES
echo "-------------------" >> $CURRENT_FILES
utils/listfiles.py | sed -e"s@^$PWD/@@" | $SORT >> $CURRENT_FILES
# Get a list o... |
c5b58f7107ecf2573e8259b7b98ac69c413f1389 | lib/link_thumbnailer/response.rb | lib/link_thumbnailer/response.rb |
module LinkThumbnailer
class Response
def initialize(response)
@response = response
end
def charset
@charset ||= extract_charset
end
def body
@body ||= extract_body
end
private
def extract_charset
content_type = @response['Content-Type'] || ''
m = con... |
module LinkThumbnailer
class Response
def initialize(response)
@response = response
end
def charset
@charset ||= extract_charset
end
def body
@body ||= extract_body
end
private
def extract_charset
content_type = @response['Content-Type'] || ''
m = con... | Fix a mistake in regular expression | Fix a mistake in regular expression
| Ruby | mit | gottfrois/link_thumbnailer | ruby | ## Code Before:
module LinkThumbnailer
class Response
def initialize(response)
@response = response
end
def charset
@charset ||= extract_charset
end
def body
@body ||= extract_body
end
private
def extract_charset
content_type = @response['Content-Type'] || ... |
f64f9f1d6cded4144da3053eee875ca27b022c36 | Dockerfiles/developement-images/centos_7/3.6/Dockerfile | Dockerfiles/developement-images/centos_7/3.6/Dockerfile | FROM balabit/centos_base_for_syslog_ng:latest
MAINTAINER Andras Mitzki <andras.mitzki@balabit.com>
ENV BRANCH_NAME="3.6/master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng.sh
ENV INCUBATOR_BRANCH_NAME="master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/se... | FROM balabit/centos_base_for_syslog_ng:latest
MAINTAINER Andras Mitzki <andras.mitzki@balabit.com>
ENV BRANCH_NAME="3.6/master"
ENV OTHER_CONFIGURE_OPTS="--disable-systemd"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng.sh
ENV INCUBATOR_BRANCH_NA... | Add "--disable-systemd" configure option to syslogng36 centos build | Add "--disable-systemd" configure option to syslogng36 centos build
Without this option syslog-ng not compiled because the following error:
* ./lib/.libs/libsyslog-ng.so: undefined reference to `sd_notify'
However syslog-ng37 can be compiled with systemd support
| unknown | lgpl-2.1 | ihrwein/syslog-ng-docker | unknown | ## Code Before:
FROM balabit/centos_base_for_syslog_ng:latest
MAINTAINER Andras Mitzki <andras.mitzki@balabit.com>
ENV BRANCH_NAME="3.6/master"
RUN . ${SELF_BUILD_SCRIPT_DIR}/setup_environment_variables.sh && ${SELF_BUILD_SCRIPT_DIR}/checkout_and_build_syslog_ng.sh
ENV INCUBATOR_BRANCH_NAME="master"
RUN . ${SELF_BUIL... |
d3f96b24e7abe25d5b38e5c1614cbb6ea668b275 | sass/helper-classes/_lists.scss | sass/helper-classes/_lists.scss | /* Convenient override to using list elements
Source: Twitter Bootstrap */
%list-inline {
padding-left: 0;
margin: 0;
& > li {
display: inline-block;
float: left;
list-style: none;
& > a {
display: block;
}
}
}
%list-block {
padding-left: 0;
... | /* Convenient override to using list elements
Source: Twitter Bootstrap */
%list-inline {
padding-left: 0;
margin: 0;
&>li {
display: inline-block;
float: left;
list-style: none;
&>a {
// display: block;
}
}
}
%list-block {
padding-left: 0;
&... | Remove display block from block & inline lists | Remove display block from block & inline lists
| SCSS | mit | charles-kibue/sass-init,kareemkibue/css | scss | ## Code Before:
/* Convenient override to using list elements
Source: Twitter Bootstrap */
%list-inline {
padding-left: 0;
margin: 0;
& > li {
display: inline-block;
float: left;
list-style: none;
& > a {
display: block;
}
}
}
%list-block {
paddi... |
5a395806dcea5de4877915d84100414f90db8a15 | recipes/perl-class-method-modifiers/meta.yaml | recipes/perl-class-method-modifiers/meta.yaml | package:
name: perl-class-method-modifiers
version: "2.11"
source:
fn: Class-Method-Modifiers-2.11.tar.gz
url: http://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-2.11.tar.gz
md5: c6982e9e89325713d5afaff82cfe1744
build:
number: 0
skip: True # [osx]
requirements:
build:
- perl-th... | package:
name: perl-class-method-modifiers
version: "2.11"
source:
fn: Class-Method-Modifiers-2.11.tar.gz
url: http://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-2.11.tar.gz
md5: c6982e9e89325713d5afaff82cfe1744
build:
number: 1
requirements:
build:
- perl-threaded
- perl-tes... | Add OSX build for Perl Class::Method::Modifiers | Add OSX build for Perl Class::Method::Modifiers
| YAML | mit | CGATOxford/bioconda-recipes,ostrokach/bioconda-recipes,keuv-grvl/bioconda-recipes,JenCabral/bioconda-recipes,keuv-grvl/bioconda-recipes,saketkc/bioconda-recipes,pinguinkiste/bioconda-recipes,oena/bioconda-recipes,peterjc/bioconda-recipes,zachcp/bioconda-recipes,dmaticzka/bioconda-recipes,keuv-grvl/bioconda-recipes,phac... | yaml | ## Code Before:
package:
name: perl-class-method-modifiers
version: "2.11"
source:
fn: Class-Method-Modifiers-2.11.tar.gz
url: http://cpan.metacpan.org/authors/id/E/ET/ETHER/Class-Method-Modifiers-2.11.tar.gz
md5: c6982e9e89325713d5afaff82cfe1744
build:
number: 0
skip: True # [osx]
requirements:
buil... |
bd6fdbefa430e610477524f84a0a14118950b0f4 | public/client/views/MessageView.js | public/client/views/MessageView.js | //returns rendered template
var MessageView = Backbone.View.extend({
className: 'message-display',
template : _.template(
'<span>'+
'<img src="client/images/avatars/<%- avatar %>.png">'+
'<strong><%- username %></strong>@<%- room %> - <span style="display: none;" class="alt-text"><%- translations[... | //returns rendered template
var MessageView = Backbone.View.extend({
className: 'message-display',
template : _.template(
'<span>'+
'<img src="client/images/avatars/<%- avatar %>.png">'+
'<strong><%- username %></strong>@<%- room %> - <span class="text"><%- text %></span> <div style="display: none;... | Change html and event listeners for translated text | Change html and event listeners for translated text
| JavaScript | mit | leeric92/HumpbackSeahorses,leeric92/HumpbackSeahorses,leeric92/HumpbackSeahorses | javascript | ## Code Before:
//returns rendered template
var MessageView = Backbone.View.extend({
className: 'message-display',
template : _.template(
'<span>'+
'<img src="client/images/avatars/<%- avatar %>.png">'+
'<strong><%- username %></strong>@<%- room %> - <span style="display: none;" class="alt-text"><... |
7c6cad705c7fe7fb737a8ae543168bd0dfe03728 | NScrypt/deployment/prereqs.yml | NScrypt/deployment/prereqs.yml | ---
# Debian packages
- name: Install python-software-properties
apt: pkg=python-software-properties
- name: Brightbox repository for more up-to-date ruby
command: apt-add-repository -y ppa:brightbox/ruby-ng
- name: Run apt-get update
apt: update_cache=yes
- name: Install debian packages
apt: pkg={{ item }}... | ---
# Debian packages
- name: Run apt-get update
apt: update_cache=yes
- name: Install python-software-properties
apt: pkg=python-software-properties
- name: Brightbox repository for more up-to-date ruby
command: apt-add-repository -y ppa:brightbox/ruby-ng
- name: Run apt-get update
apt: update_cache=yes
-... | Update apt-get cache before package install | Update apt-get cache before package install
| YAML | bsd-2-clause | joequant/scms,joequant/scms,joequant/scms,joequant/scms | yaml | ## Code Before:
---
# Debian packages
- name: Install python-software-properties
apt: pkg=python-software-properties
- name: Brightbox repository for more up-to-date ruby
command: apt-add-repository -y ppa:brightbox/ruby-ng
- name: Run apt-get update
apt: update_cache=yes
- name: Install debian packages
apt... |
ce9d1c4f6d85558d254f0a5b3ace6cd057a5729f | src/plugins/network/CMakeLists.txt | src/plugins/network/CMakeLists.txt | add_subdirectory( qhttp )
# add_subdirectory( qnam )
# add_subdirectory( kio )
| add_subdirectory( qnam )
# add_subdirectory( kio )
| Make QNetworkAccessManager based network plugin the default one, as QHttp is kind of deprecated in Qt and QNAM is faster. | Make QNetworkAccessManager based network plugin the default one,
as QHttp is kind of deprecated in Qt and QNAM is faster.
svn path=/trunk/KDE/kdeedu/marble/; revision=976233
| Text | lgpl-2.1 | tzapzoor/marble,adraghici/marble,probonopd/marble,utkuaydin/marble,tzapzoor/marble,AndreiDuma/marble,tucnak/marble,rku/marble,AndreiDuma/marble,Earthwings/marble,tucnak/marble,AndreiDuma/marble,tucnak/marble,quannt24/marble,David-Gil/marble-dev,tzapzoor/marble,utkuaydin/marble,probonopd/marble,David-Gil/marble-dev,tucn... | text | ## Code Before:
add_subdirectory( qhttp )
# add_subdirectory( qnam )
# add_subdirectory( kio )
## Instruction:
Make QNetworkAccessManager based network plugin the default one,
as QHttp is kind of deprecated in Qt and QNAM is faster.
svn path=/trunk/KDE/kdeedu/marble/; revision=976233
## Code After:
add_subdirectory(... |
c9ee2f2de57b0475a35d048335255f6dd8a8a78c | www/app/views/shared/_footer.html.haml | www/app/views/shared/_footer.html.haml | %footer#app-footer
%p
A
project
developed as part of the 2014 EUHackathon. <br />
Open-source @ <a href='https://github.com/euhackathon/'>Github
| %footer#app-footer
%p
A
project
developed as part of the 2014 EUHackathon. <br />
Open-source @ <a href='https://github.com/euhackathon/'>Github <br />
Information about companies is taken from the <a href='http://ec.europa.eu/transparencyregister/info/homePage.do'>Transparency Register</a>.
| Add URL about transparency register | Add URL about transparency register
| Haml | mit | euhackathon/commission-today,euhackathon/commission-today,euhackathon/commission-today | haml | ## Code Before:
%footer#app-footer
%p
A
project
developed as part of the 2014 EUHackathon. <br />
Open-source @ <a href='https://github.com/euhackathon/'>Github
## Instruction:
Add URL about transparency register
## Code After:
%footer#app-footer
%p
A
project
developed as part of the ... |
9f00c0f2485b7b35ea8614e0a02998181f87a266 | README.md | README.md | Mobilio-menu
============
Transforms your menu to an off-canvas mobile menu with 2 lines of javascript, no dependencies or external libraries. <strong>Only 1kb JS and 3kb CSS when gzipped.</strong>
##Example:
var elem = document.querySelector('#myList');
mobilioMenu.init(elem, { breakpoint:768 });
##O... | Mobilio-menu
============
Transforms your menu to an off-canvas mobile menu with 2 lines of javascript, no dependencies or external libraries. <strong>Only 1kb JS and 3kb CSS when gzipped.</strong>
##Example:
var elem = document.querySelector('#myList');
mobilioMenu.create(elem, { breakpoint:768 });
##Options... | Update readme with correct create-method | Update readme with correct create-method
| Markdown | mit | vilhelmjosander/mobilio-menu,vilhelmjosander/mobilio-menu | markdown | ## Code Before:
Mobilio-menu
============
Transforms your menu to an off-canvas mobile menu with 2 lines of javascript, no dependencies or external libraries. <strong>Only 1kb JS and 3kb CSS when gzipped.</strong>
##Example:
var elem = document.querySelector('#myList');
mobilioMenu.init(elem, { breakpoint:768 }... |
6c7111de40c6b13cae721f84008347d1a818df8c | sparql/cast_single_lots_as_contracts.mustache | sparql/cast_single_lots_as_contracts.mustache | PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
DELETE {
?lot a pproc:Lot ;
... | PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
DELETE {
?lot a pproc:Lot ;
... | Correct identifier to use when casting single lots as contracts | Correct identifier to use when casting single lots as contracts
| HTML+Django | epl-1.0 | jindrichmynarz/vvz-to-rdf,jindrichmynarz/vvz-to-rdf,jindrichmynarz/vvz-to-rdf | html+django | ## Code Before:
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX pc: <http://purl.org/procurement/public-contracts#>
PREFIX pproc: <http://contsem.unizar.es/def/sector-publico/pproc#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
DELETE {
?lot a ... |
a17a02c79cd0f374eb32cd0203453ce20fedfb71 | recipes/drivers/recipe.sh | recipes/drivers/recipe.sh | GIT=https://gitlab.redox-os.org/redox-os/drivers.git
BRANCH=redox-unix
CARGOBUILD="build"
CARGOFLAGS="--all"
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pcid/filesystem.tom... | GIT=https://gitlab.redox-os.org/redox-os/drivers.git
CARGOBUILD="build"
CARGOFLAGS="--all"
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pcid/filesystem.toml"
mkdir -pv ... | Move drivers back to master branch | Move drivers back to master branch
| Shell | mit | redox-os/cookbook,redox-os/cookbook,redox-os/cookbook,redox-os/cookbook | shell | ## Code Before:
GIT=https://gitlab.redox-os.org/redox-os/drivers.git
BRANCH=redox-unix
CARGOBUILD="build"
CARGOFLAGS="--all"
function recipe_version {
echo "0.1.1"
skip=1
}
function recipe_stage {
mkdir -pv "$1/etc/pcid"
cp -v initfs.toml "$1/etc/pcid/initfs.toml"
cp -v filesystem.toml "$1/etc/pci... |
6518fd5664a07cce9dec1236ca604abadf56d610 | init.fish | init.fish | function init -a path --on-event init_fonts
set -g FONT_MOCK_INDEX "$path/mock_index.json"
set -g FONT_MOCK_SHOW "$path/mock_show.json"
set -q XDG_DATA_HOME;
or set -l XDG_DATA_HOME "$HOME/.local"
set -q FONTS_PATH;
or set -g FONTS_PATH "$XDG_DATA_HOME/share/fonts"
set -g FONTS_CONFIG "$OMF_CONFI... | function init -a path --on-event init_fonts
set -g FONT_MOCK_INDEX "$path/mock_index.json"
set -g FONT_MOCK_SHOW "$path/mock_show.json"
if not set -q FONTS_PATH
if test 'Darwin' = (uname)
set -g FONTS_PATH "$HOME/Library/Fonts"
else
set -q XDG_DATA_HOME; or set -l XDG_DATA_HOME "$HOME/.local"... | Support OS X user font path | Support OS X user font path
| fish | mit | derekstavis/plugin-fonts | fish | ## Code Before:
function init -a path --on-event init_fonts
set -g FONT_MOCK_INDEX "$path/mock_index.json"
set -g FONT_MOCK_SHOW "$path/mock_show.json"
set -q XDG_DATA_HOME;
or set -l XDG_DATA_HOME "$HOME/.local"
set -q FONTS_PATH;
or set -g FONTS_PATH "$XDG_DATA_HOME/share/fonts"
set -g FONTS_CO... |
01347b2725c67ba57aff3b48f69907cb2fcd95d0 | pinchangeserver/setup.py | pinchangeserver/setup.py | from setuptools import find_packages, setup
setup(name="umaineapi_pinchangeserver",
version = "0.1",
description = "A service for connecting to myHousing using a Maine ID and ",
author = "Noah Howard",
platforms = ["any"],
license = "BSD",
packages = find_packages(),
install_r... | from setuptools import find_packages, setup
setup(name="umaineapi_pinchangeserver",
version = "0.1",
description = "A service for connecting to myHousing using a Maine ID and ",
author = "Noah Howard",
platforms = ["any"],
license = "BSD",
packages = find_packages(),
install_r... | Add in dependency for flask cors | Add in dependency for flask cors | Python | mit | nh-99/UMaine-Service-API,nh-99/UMaine-Service-API | python | ## Code Before:
from setuptools import find_packages, setup
setup(name="umaineapi_pinchangeserver",
version = "0.1",
description = "A service for connecting to myHousing using a Maine ID and ",
author = "Noah Howard",
platforms = ["any"],
license = "BSD",
packages = find_packages(),... |
f21192372ee89751b41907cc3a22269aaa674281 | snap/snapcraft.yaml | snap/snapcraft.yaml |
name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
Gitless is an experimental version control system built on top of Git.
Many people complain that Git is hard to use. We think the problem lies
deeper than the user interface, in the concepts underlying Git. Git... |
name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
Gitless is an experimental version control system built on top of Git.
Many people complain that Git is hard to use. We think the problem lies
deeper than the user interface, in the concepts underlying Git. Git... | Use recommended 0.26.x version of libgit2 | Use recommended 0.26.x version of libgit2
pygit2 0.26.4 needs at 0.26.x branch of libgit2
https://www.pygit2.org/install.html#version-numbers | YAML | mit | sdg-mit/gitless,sdg-mit/gitless | yaml | ## Code Before:
name: gitless
version: git
summary: A simple version control system built on top of Git
description: |
Gitless is an experimental version control system built on top of Git.
Many people complain that Git is hard to use. We think the problem lies
deeper than the user interface, in the concepts und... |
e8214882cfc4b37c2c492192ea6ebf7564925d46 | templates/home.mak | templates/home.mak | <%inherit file="master.mak"/>
<div class="hero-unit">
<h1>Hello, world!</h1>
<p>This is a wonderful experiment using Twitter Boostrap, Flask, and Mako to make awesome.</p>
<p><a href="#" class="btn btn-primary btn-large">Learn more »</a></p>
</div>
<div class="row-fluid">
<div class="span4">
<h2>One</h2>
<p... | <%inherit file="master.mak"/>
<div class="hero-unit">
<h1>HFOSS</h1>
<p>The RIT Humanitarian Free/Open Source Software Development Course</p>
</div>
| Remove giant ugly buttons, make welcome message obvious | Remove giant ugly buttons, make welcome message obvious
| Makefile | apache-2.0 | decause/hflossk,decause/hflossk | makefile | ## Code Before:
<%inherit file="master.mak"/>
<div class="hero-unit">
<h1>Hello, world!</h1>
<p>This is a wonderful experiment using Twitter Boostrap, Flask, and Mako to make awesome.</p>
<p><a href="#" class="btn btn-primary btn-large">Learn more »</a></p>
</div>
<div class="row-fluid">
<div class="span4">
<... |
c4f160095f495f35eae163dc4e09e31cad715b13 | ui/templates/items/list.html | ui/templates/items/list.html | {% extends 'base.html' %}
{% block javascripts %}
<script src="/static/js/jquery.validate.js"></script>
{% endblock %}
{% block content %}
<div class="container">
<div class="page-header">
<h3 class="col-xs-10">Item Maintenance</h3>
<button type="button" id="btn_new_item"
class="btn ... | {% extends 'base.html' %}
{% block javascripts %}
<script src="/static/js/jquery.validate.js"></script>
<script type="text/javascript">
//<![CDATA[
$('body').on('hidden.bs.modal', '.modal', function() {
$(this).removeData('bs.modal');
});
//]>
</script>
{% endblock %}
{% block content %}
<div class="container">
... | Make item form (elements) reload every time it opens | Make item form (elements) reload every time it opens
| HTML | agpl-3.0 | sudaraka/sopin-web,sudaraka/sopin-web | html | ## Code Before:
{% extends 'base.html' %}
{% block javascripts %}
<script src="/static/js/jquery.validate.js"></script>
{% endblock %}
{% block content %}
<div class="container">
<div class="page-header">
<h3 class="col-xs-10">Item Maintenance</h3>
<button type="button" id="btn_new_item"
... |
ffa1576388b29517b360d787acf976718531f228 | app/views/companies/index.html.erb | app/views/companies/index.html.erb | <div class="row">
<h2>Featured Companies</h2>
<% if @companies.any? %>
<% @companies.each do |company| %>
<div class="col m3 top-company">
<h5><%= link_to company.name , company_path(company)%></h5>
<img class="company-img" src="<%= company.profile_image_url %>" alt="<%= company.name %>" ... | <div class="row">
<h2>Featured Companies</h2>
<% if @companies.any? %>
<% @companies.each do |company| %>
<div class="col m3 top-company">
<h5><%= link_to company.name , company_path(company)%></h5>
<img class="company-img" src="<%= company.profile_image_url %>" alt="<%= company.name %>" ... | Add data to view to be used on page load | Add data to view to be used on page load
| HTML+ERB | mit | husseinmaad/open-div,husseinmaad/open-div,husseinmaad/open-div | html+erb | ## Code Before:
<div class="row">
<h2>Featured Companies</h2>
<% if @companies.any? %>
<% @companies.each do |company| %>
<div class="col m3 top-company">
<h5><%= link_to company.name , company_path(company)%></h5>
<img class="company-img" src="<%= company.profile_image_url %>" alt="<%= c... |
97c20971e30271a87cb854f3148ab39404354cd6 | sourcify.gemspec | sourcify.gemspec | $:.push File.expand_path("../lib", __FILE__)
require "sourcify/version"
Gem::Specification.new do |s|
s.name = "sourcify"
s.version = Sourcify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["NgTzeYang"]
s.email = ["ngty77@gmail.com"]
s.homepage = "http://github.com/ngty/s... | $:.push File.expand_path("../lib", __FILE__)
require "sourcify/version"
Gem::Specification.new do |s|
s.name = "sourcify"
s.version = Sourcify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["NgTzeYang"]
s.email = ["ngty77@gmail.com"]
s.homepage = "http://github.com/ngty/s... | Add ParseTree as a dependency for 1.8.6. | Add ParseTree as a dependency for 1.8.6.
| Ruby | mit | ngty/sourcify,ngty/sourcify | ruby | ## Code Before:
$:.push File.expand_path("../lib", __FILE__)
require "sourcify/version"
Gem::Specification.new do |s|
s.name = "sourcify"
s.version = Sourcify::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["NgTzeYang"]
s.email = ["ngty77@gmail.com"]
s.homepage = "http://g... |
e2920fe5fdf8744e781ab08aae3d44bed154c64b | .github/workflows/erlang.yml | .github/workflows/erlang.yml | name: Erlang CI
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
erlang: ["18.0", "21.3"]
runs-on: ubuntu-latest
container:
image: erlang:${{ matrix.erlang }}
steps:
- uses: actions/checkout@v2
- name: Get deps
run: rebar3 get-deps
- n... | name: Erlang CI
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
erlang: ["18.3", "21.3", "latest"]
runs-on: ubuntu-latest
container:
image: erlang:${{ matrix.erlang }}
steps:
- uses: actions/checkout@v2
- name: Get deps
run: rebar3 get-de... | Fix version 18.3 + add latest | Fix version 18.3 + add latest | YAML | apache-2.0 | processone/fast_yaml | yaml | ## Code Before:
name: Erlang CI
on: [push, pull_request]
jobs:
build:
name: Build
strategy:
matrix:
erlang: ["18.0", "21.3"]
runs-on: ubuntu-latest
container:
image: erlang:${{ matrix.erlang }}
steps:
- uses: actions/checkout@v2
- name: Get deps
run: rebar3 ... |
8b9f2efe71d3a635e5dd4bb9ae2df6f1a056813b | knife-vsphere.gemspec | knife-vsphere.gemspec |
$:.unshift(File.dirname(__FILE__) + "/lib")
require "knife-vsphere/version"
Gem::Specification.new do |s|
s.name = "knife-vsphere"
s.version = KnifeVsphere::VERSION
s.summary = "VMware vSphere support for Chef Infra's Knife command"
s.authors = "Ezra Pagel"
s.description = "VMware vSphere support for Chef I... |
$:.unshift(File.dirname(__FILE__) + "/lib")
require "knife-vsphere/version"
Gem::Specification.new do |s|
s.name = "knife-vsphere"
s.version = KnifeVsphere::VERSION
s.summary = "VMware vSphere support for Chef Infra's Knife command"
s.authors = "Ezra Pagel"
s.description = "VMware vSphere support for Chef I... | Make sure we ship the license file with the gem | Make sure we ship the license file with the gem
We need this for license scout
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| Ruby | apache-2.0 | ezrapagel/knife-vsphere,adamleff/knife-vsphere,chef-partners/knife-vsphere | ruby | ## Code Before:
$:.unshift(File.dirname(__FILE__) + "/lib")
require "knife-vsphere/version"
Gem::Specification.new do |s|
s.name = "knife-vsphere"
s.version = KnifeVsphere::VERSION
s.summary = "VMware vSphere support for Chef Infra's Knife command"
s.authors = "Ezra Pagel"
s.description = "VMware vSphere su... |
3214e82877de839d429db634f80681ccf41e3605 | plugins/emacs/emacsclient.sh | plugins/emacs/emacsclient.sh | x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
if [ -z "$x" ] ;then
# Create one if there is no X window yet.
emacsclient --alternate-editor "" --create-frame "$@"
else
# prevent creating another X frame if there is at least one present.
emacsclient --alternate-editor "" "$... | x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
if [ -z "$x" ] || [ "$x" = "nil" ] ;then
# Create one if there is no X window yet.
emacsclient --alternate-editor "" --create-frame "$@"
else
# prevent creating another X frame if there is at least one present.
emacsclient --al... | Add check for display list equals nil | Add check for display list equals nil
Emacs returns either a sequence of availbale displays or nil. Checking
nil fixes this script to work as expected.
| Shell | mit | arowla/oh-my-zsh,arowla/oh-my-zsh,arowla/oh-my-zsh,arowla/oh-my-zsh | shell | ## Code Before:
x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null`
if [ -z "$x" ] ;then
# Create one if there is no X window yet.
emacsclient --alternate-editor "" --create-frame "$@"
else
# prevent creating another X frame if there is at least one present.
emacsclient --altern... |
c3488fe1453936685be6bec9eb762b2861f841d2 | spec/bin/churn_spec.rb | spec/bin/churn_spec.rb | require 'spec_helper'
describe "Churn command" do
it "prints churn metrics as text by default" do
output = %x[ cd spec/samplerepo & churn ]
expect(output).to match /^Commits:\s*\d*\sTotal Churn:\s*\d*\sLines added:\s*\d*\sLines deleted:\s*\d*\s$/
end
it "prints churn metrics as json" do
output = %x[ ... | require 'spec_helper'
describe "Churn command" do
it "prints churn metrics as text by default" do
output = %x[ churn ]
expect(output).to match /^Commits:\s*\d*\sTotal Churn:\s*\d*\sLines added:\s*\d*\sLines deleted:\s*\d*\s$/
end
it "prints churn metrics as json" do
output = %x[ churn --json]
exp... | Change directory when testing default `churn` command | Change directory when testing default `churn` command
| Ruby | mit | andymeneely/interactive_churn | ruby | ## Code Before:
require 'spec_helper'
describe "Churn command" do
it "prints churn metrics as text by default" do
output = %x[ cd spec/samplerepo & churn ]
expect(output).to match /^Commits:\s*\d*\sTotal Churn:\s*\d*\sLines added:\s*\d*\sLines deleted:\s*\d*\s$/
end
it "prints churn metrics as json" do
... |
db841cacc2eeacb53d68b3b28c5ad257c1f963ef | mkdeps.sh | mkdeps.sh |
(cd ../../ekmett/bifunctors && cabal clean && cabal install --allow-newer)
# (cd ../../ekmett/comonad && cabal clean && cabal install --allow-newer)
(cd ../../ekmett/free && cabal clean && cabal install --allow-newer)
(cd ../../alanz/HUnit && cabal clean && cabal install --allow-newer)
cabal install -... | (cd ../../ekmett/bifunctors && cabal clean && cabal install --allow-newer)
# https://github.com/ekmett/free.git master
(cd ../../ekmett/free && cabal clean && cabal install --allow-newer)
# https://github.com/alanz/HUnit.git ghc-head
(cd ../../alanz/HUnit && cabal clean && cabal install --allow-newer)
ca... | Document source of repos for deps | Document source of repos for deps
| Shell | bsd-3-clause | alanz/ghc-exactprint,mpickering/ghc-exactprint | shell | ## Code Before:
(cd ../../ekmett/bifunctors && cabal clean && cabal install --allow-newer)
# (cd ../../ekmett/comonad && cabal clean && cabal install --allow-newer)
(cd ../../ekmett/free && cabal clean && cabal install --allow-newer)
(cd ../../alanz/HUnit && cabal clean && cabal install --allow-newer)
... |
f6aee1feb5f1cd4625fa565d08daaac3e797d9fe | app/assets/javascripts/tests.js | app/assets/javascripts/tests.js | (function($) {
$(function () {
window.cxVariation = cxApi.chooseVariation();
if(window.cxVariation === 1){
var $donate = $('.sidebar__donate-cta');
var $link = $('.sidebar__donate-cta__button', $donate);
var experimentHref = URI($link.attr('href')).removeSearch('utm_content').
addSea... | (function($) {
$(function () {
window.cxVariation = cxApi.chooseVariation();
if(window.cxVariation === 1){
var $donate = $('.sidebar__donate-cta');
var $link = $('.sidebar__donate-cta__button', $donate);
var experimentHref = URI($link.attr('href')).removeSearch('utm_content').
addSea... | Fix A/B test donate button link | Fix A/B test donate button link
| JavaScript | mit | mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme,mysociety/whatdotheyknow-theme | javascript | ## Code Before:
(function($) {
$(function () {
window.cxVariation = cxApi.chooseVariation();
if(window.cxVariation === 1){
var $donate = $('.sidebar__donate-cta');
var $link = $('.sidebar__donate-cta__button', $donate);
var experimentHref = URI($link.attr('href')).removeSearch('utm_content')... |
c0349d23f854a0edc9c390d025e40d7c4566928f | src/Djebbz/TicketBundle/Controller/DefaultController.php | src/Djebbz/TicketBundle/Controller/DefaultController.php | <?php
namespace Djebbz\TicketBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Djebbz\TicketBundle\Model\TicketQuery;
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render(
'DjebbzTicketBundle:Default:index.html.tw... | <?php
namespace Djebbz\TicketBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Djebbz\TicketBundle\Model\TicketQuery;
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render(
'DjebbzTicketBundle:Default:index.html.tw... | Print a message when there's no ticket in db | Print a message when there's no ticket in db
| PHP | mit | DjebbZ/symfony-playground | php | ## Code Before:
<?php
namespace Djebbz\TicketBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Djebbz\TicketBundle\Model\TicketQuery;
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render(
'DjebbzTicketBundle:Defau... |
7efb8dba8b4642ee93ec82f6e706b11011ebe10f | tsql/examples/trucate.sql | tsql/examples/trucate.sql | TRUNCATE TABLE HumanResources.JobCandidate;
GO
TRUNCATE TABLE PartitionTable1
WITH (PARTITIONS (2, 4, 6 TO 8));
GO
| TRUNCATE TABLE HumanResources.JobCandidate;
GO
TRUNCATE TABLE PartitionTable1
WITH (PARTITIONS (2, 4, 6 TO 8));
GO
TRUNCATE TABLE DifferentDB..JobCandidate;
GO
| Add test for truncate in different database | Add test for truncate in different database
| SQL | mit | antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4,antlr/grammars-v4 | sql | ## Code Before:
TRUNCATE TABLE HumanResources.JobCandidate;
GO
TRUNCATE TABLE PartitionTable1
WITH (PARTITIONS (2, 4, 6 TO 8));
GO
## Instruction:
Add test for truncate in different database
## Code After:
TRUNCATE TABLE HumanResources.JobCandidate;
GO
TRUNCATE TABLE PartitionTable1
WITH (PARTITIONS (2, 4, 6... |
9068a532bfc7ff2b6d6fb276efda669a5cd60b36 | example.py | example.py | import os
import mmstats
import libgettid
class MyStats(mmstats.BaseMmStats):
pid = mmstats.StaticUIntField(label="sys.pid", value=os.getpid)
tid = mmstats.StaticInt64Field(label="sys.tid", value=libgettid.gettid)
uid = mmstats.StaticUInt64Field(label="sys.uid", value=os.getuid)
gid = mmstats.StaticUIn... | import os
import mmstats
import libgettid
class MyStats(mmstats.BaseMmStats):
pid = mmstats.StaticUIntField(label="sys.pid", value=os.getpid)
tid = mmstats.StaticInt64Field(label="sys.tid", value=libgettid.gettid)
uid = mmstats.StaticUInt64Field(label="sys.uid", value=os.getuid)
gid = mmstats.StaticUIn... | Make it more obvious that values initialize at 0 | Make it more obvious that values initialize at 0
| Python | bsd-3-clause | schmichael/mmstats,schmichael/mmstats,schmichael/mmstats,schmichael/mmstats | python | ## Code Before:
import os
import mmstats
import libgettid
class MyStats(mmstats.BaseMmStats):
pid = mmstats.StaticUIntField(label="sys.pid", value=os.getpid)
tid = mmstats.StaticInt64Field(label="sys.tid", value=libgettid.gettid)
uid = mmstats.StaticUInt64Field(label="sys.uid", value=os.getuid)
gid = m... |
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f | .travis.yml | .travis.yml | language: cpp
compiler:
- clang
before_install: ./buildbot/travis-checkout.sh
script: ./buildbot/travis-test.sh
os:
- linux
- osx
| language: cpp
compiler:
- clang
before_install: ./buildbot/travis-checkout.sh
script: ./buildbot/travis-test.sh
os:
- linux
- osx
branches:
only:
- master
| Make Travis build only the master branch | Make Travis build only the master branch
Otherwise, it tries to build md-pages, infra-config, etc.
Ref:
https://docs.travis-ci.com/user/customizing-the-build/#Building-Specific-Branches
Change-Id: I2237a41b5c232b7d6d55bbf5331bf3c24f694c66
Reviewed-on: https://chromium-review.googlesource.com/907427
Reviewed-by: Mark... | YAML | bsd-3-clause | msc-/gyp,bnoordhuis/gyp,turbulenz/gyp,chromium/gyp,msc-/gyp,turbulenz/gyp,bnoordhuis/gyp,Phuehvk/gyp,adblockplus/gyp,msc-/gyp,Phuehvk/gyp,adblockplus/gyp,chromium/gyp,adblockplus/gyp,bnoordhuis/gyp,chromium/gyp,bnoordhuis/gyp,adblockplus/gyp,msc-/gyp,turbulenz/gyp,Phuehvk/gyp,Phuehvk/gyp,adblockplus/gyp,turbulenz/gyp,m... | yaml | ## Code Before:
language: cpp
compiler:
- clang
before_install: ./buildbot/travis-checkout.sh
script: ./buildbot/travis-test.sh
os:
- linux
- osx
## Instruction:
Make Travis build only the master branch
Otherwise, it tries to build md-pages, infra-config, etc.
Ref:
https://docs.travis-ci.com/user/customizing-th... |
8922c0df0aec702de461c097df59577f59372bcb | lib/default-extractor.js | lib/default-extractor.js | var parse = require('dox').parseComments;
var extractModuleMeta = require('./utils/extract-module-meta');
/**
* @param {string} content
* @param {Object} context
* @param {Object} context.loader Loader context
* @param {Object} [context.plugin] Plugin instance
* @returns {{body: Array}}
*/
module.exports = funct... | var parse = require('dox').parseComments;
var extractModuleMeta = require('./utils/extract-module-meta');
var examplesParser = require('./utils/examples-parser');
/**
* @param {string} source
* @param {Object} context
* @param {Object} context.loader Loader context
* @param {Object} [context.plugin] Plugin instanc... | Update default extractor to extract examples | Update default extractor to extract examples
| JavaScript | mit | kisenka/webpack-docs-plugin,kisenka/docpack | javascript | ## Code Before:
var parse = require('dox').parseComments;
var extractModuleMeta = require('./utils/extract-module-meta');
/**
* @param {string} content
* @param {Object} context
* @param {Object} context.loader Loader context
* @param {Object} [context.plugin] Plugin instance
* @returns {{body: Array}}
*/
module... |
3ac381d6d06d1de10a5eb2dd2ff7b49c5f3062c4 | src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java | src/test/java/com/rarchives/ripme/tst/ripper/rippers/GfycatRipperTest.java | package com.rarchives.ripme.tst.ripper.rippers;
import com.rarchives.ripme.ripper.rippers.GfycatRipper;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URL;
public class GfycatRipperTest extends RippersTest {
/**
* Rips correctly formatted URL directly from G... | package com.rarchives.ripme.tst.ripper.rippers;
import com.rarchives.ripme.ripper.rippers.GfycatRipper;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URL;
public class GfycatRipperTest extends RippersTest {
/**
* Rips correctly formatted URL directly from G... | Add unit test for Gfycat Amp links | Add unit test for Gfycat Amp links | Java | mit | rephormat/ripme,sleaze/ripme,sleaze/ripme,rephormat/ripme,rephormat/ripme,sleaze/ripme | java | ## Code Before:
package com.rarchives.ripme.tst.ripper.rippers;
import com.rarchives.ripme.ripper.rippers.GfycatRipper;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URL;
public class GfycatRipperTest extends RippersTest {
/**
* Rips correctly formatted URL directly fr... |
ffb8bc9d5ead11f1843fdcfc9c0a6b4ced0dac7f | bm.sh | bm.sh | DSAT=./dist/build/dsat/dsat
BMFILE=bm-$(gdate +%F.%H%M)
# record feature set
echo "SAT solver features under test:"
$DSAT -print-features
ABORT="error, exiting without completing tests"
FAILURE="test failure"
echo "Testing quick check properties"
time $DSAT -verify 2>&1
NSAT=1000
echo "Testing $NSAT satisfiable pro... | DSAT=./dist/build/dsat/dsat
BMFILE=bm-$(gdate +%F.%H%M)
OPTIONS=""
# record feature set
echo "SAT solver features under test:"
$DSAT --print-features $OPTIONS
# NSAT=1000
# echo "Testing $NSAT satisfiable problems (20 vars)"
# time ls -1 ./tests/problems/uf20/*.cnf | head -$NSAT | while read F; do $DSAT $F $OPTIONS;... | Set up for actual benchmarking | Set up for actual benchmarking
| Shell | bsd-3-clause | rbonifacio/funsat,dbueno/funsat,rbonifacio/funsat,rbonifacio/funsat,dbueno/funsat,rbonifacio/funsat | shell | ## Code Before:
DSAT=./dist/build/dsat/dsat
BMFILE=bm-$(gdate +%F.%H%M)
# record feature set
echo "SAT solver features under test:"
$DSAT -print-features
ABORT="error, exiting without completing tests"
FAILURE="test failure"
echo "Testing quick check properties"
time $DSAT -verify 2>&1
NSAT=1000
echo "Testing $NSAT... |
fcead029c43f9a3090d2235e446ff1f18db2cdd9 | index.js | index.js | 'use strict';
var http = require('http');
var util = require('util');
var PassThrough = require('stream').PassThrough;
// A PassThrough stream that takes a list of valid status codes. The
// supplied status codes will act as a whilelist of allowed HTTP
// response codes. If a HTTP reponse is received which doens't co... | 'use strict';
var http = require('http');
var util = require('util');
var PassThrough = require('stream').PassThrough;
// A PassThrough stream that takes a list of valid status codes. The
// supplied status codes will act as a whilelist of allowed HTTP
// response codes. If a HTTP reponse is received which doens't co... | Add HTTP method and URL to error object in case of invalid status code | Add HTTP method and URL to error object in case of invalid status code
| JavaScript | mit | watson/flowhttp-status | javascript | ## Code Before:
'use strict';
var http = require('http');
var util = require('util');
var PassThrough = require('stream').PassThrough;
// A PassThrough stream that takes a list of valid status codes. The
// supplied status codes will act as a whilelist of allowed HTTP
// response codes. If a HTTP reponse is received ... |
f417066f7f1b7d66cf5c72f28380675bde0cc424 | .travis.yml | .travis.yml | script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.6
- 1.8.7
- 1.9.2
- jruby | script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.6
- 1.8.7
| Remove ruby versions with failing builds from Travis CI. | Remove ruby versions with failing builds from Travis CI.
| YAML | mit | 10io/mocha | yaml | ## Code Before:
script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.6
- 1.8.7
- 1.9.2
- jruby
## Instruction:
Remove ruby versions with failing builds from Travis CI.
## Code After:
script: "rake test"
notifications:
recipients:
- james@floehopper.org
rvm:
- 1.8.6
-... |
89e949f9cd8c582139f17f9aeba14cece13306fb | apps/sitemaps/templates/news_sitemap.jade | apps/sitemaps/templates/news_sitemap.jade | doctype xml
urlset(
xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
xmlns:news='http://www.google.com/schemas/sitemap-news/0.9'
)
for article in articles
url
loc= 'https://www.artsy.net/article/' + article.get('slug')
news:news
news:publication
news:name Artsy
... | doctype xml
urlset(
xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
xmlns:news='http://www.google.com/schemas/sitemap-news/0.9'
)
for article in articles
url
loc= 'https://www.artsy.net/article/' + article.get('slug')
news:news
news:publication
news:name Artsy
... | Update news RSS and sitemap | Update news RSS and sitemap
| Jade | mit | eessex/force,joeyAghion/force,eessex/force,cavvia/force-1,anandaroop/force,joeyAghion/force,izakp/force,dblock/force,erikdstock/force,yuki24/force,mzikherman/force,cavvia/force-1,kanaabe/force,anandaroop/force,artsy/force-public,damassi/force,kanaabe/force,xtina-starr/force,erikdstock/force,kanaabe/force,erikdstock/for... | jade | ## Code Before:
doctype xml
urlset(
xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
xmlns:news='http://www.google.com/schemas/sitemap-news/0.9'
)
for article in articles
url
loc= 'https://www.artsy.net/article/' + article.get('slug')
news:news
news:publication
new... |
19c0262faf475e7fa2e04d6028e8e6143a43adc2 | docker-entrypoint.sh | docker-entrypoint.sh | set -e
NAME='elasticsearch'
if [ "$1" = "$NAME" ]; then
MAX_OPEN_FILES=65535
# Those are just defaults, they can be overriden with -Des.config=...
CONF_DIR=/etc/$NAME
CONF_FILE=$CONF_DIR/elasticsearch.yml
WORK_DIR=/tmp/$NAME
OPTS="--default.config=$CONF_FILE --default.path.home=$ES_HOME --default.path.... | set -e
NAME='elasticsearch'
if [ "$1" = "$NAME" ]; then
# Those are just defaults, they can be overriden with -Des.config=...
CONF_DIR=/etc/$NAME
CONF_FILE=$CONF_DIR/elasticsearch.yml
WORK_DIR=/tmp/$NAME
OPTS="--default.config=$CONF_FILE --default.path.home=$ES_HOME --default.path.logs=$ES_LOGS --default.... | Remove ulimit settings from entrypoint | Remove ulimit settings from entrypoint
Raising ulimits inside the container like this won't work. Setting them from
outside the container will work once https://github.com/docker/docker/pull/9437
is fixed.
| Shell | mit | krallin/docker-elasticsearch | shell | ## Code Before:
set -e
NAME='elasticsearch'
if [ "$1" = "$NAME" ]; then
MAX_OPEN_FILES=65535
# Those are just defaults, they can be overriden with -Des.config=...
CONF_DIR=/etc/$NAME
CONF_FILE=$CONF_DIR/elasticsearch.yml
WORK_DIR=/tmp/$NAME
OPTS="--default.config=$CONF_FILE --default.path.home=$ES_HOME... |
6e7f5e203f89ef7dd866c914eadcce6a2a9c18c1 | CHANGELOG.md | CHANGELOG.md | * Every feature added
* Every bug fixed
| * Fixed issue where plugin would interrupt searching (#4).
## 0.2.0 - "Euclid"
* Basic functionality implemented.
| Update changelog to reflect reality. | Update changelog to reflect reality.
| Markdown | mpl-2.0 | jwir3/atom-over-and-back | markdown | ## Code Before:
* Every feature added
* Every bug fixed
## Instruction:
Update changelog to reflect reality.
## Code After:
* Fixed issue where plugin would interrupt searching (#4).
## 0.2.0 - "Euclid"
* Basic functionality implemented.
|
4eeb008670002889814cffef1f180096032b9d05 | resources/js/validators/customValidator.js | resources/js/validators/customValidator.js | wd.cdv.validators.registerValidator("custom", function(validation, rs){
var validationResult = wd.cdv.validationResult({
name: validation.validationName,
type: validation.validationType
});
var result = validation.validationFunction.call(this,rs,[]);
if (typeof result == "object") {
validatio... | wd.cdv.validators.registerValidator("custom", function(validation, rs){
var validationResult = wd.cdv.validationResult({
name: validation.validationName,
type: validation.validationType
});
var result = validation.validationFunction.call(this,rs,[]);
if (typeof result == "object") {
validatio... | Remove print calls from custom validator | Remove print calls from custom validator
Browsers and server-side CDV seem to have a somewhat
different idea of what 'print' means. Ooops. | JavaScript | mpl-2.0 | pedrofvteixeira/cdv,pedrofvteixeira/cdv,webdetails/cdv,pedrofvteixeira/cdv,webdetails/cdv,webdetails/cdv | javascript | ## Code Before:
wd.cdv.validators.registerValidator("custom", function(validation, rs){
var validationResult = wd.cdv.validationResult({
name: validation.validationName,
type: validation.validationType
});
var result = validation.validationFunction.call(this,rs,[]);
if (typeof result == "object")... |
469a056f49b6f9a2a0cb4a9312b5cae6b1d95a3d | _notes/database/sql/scripting/functions.md | _notes/database/sql/scripting/functions.md | ---
---
## Common
```sql
SELECT COUNT(*) FROM users;
SELECT server, COUNT(*) FROM users GROUP BY server;
SELECT SUM(achievements) FROM users;
SELECT MAX(achievements) FROM users;
SELECT MIN(achievements) FROM users;
SELECT AVG(achievements) FROM users;
SELECT ROUND(AVG(achievements), 2) FROM users;
SELECT LENGTH(nick... | ---
---
## Common
```sql
SELECT COUNT(*) FROM users;
SELECT server, COUNT(*) FROM users GROUP BY server;
SELECT SUM(achievements) FROM users;
SELECT MAX(achievements) FROM users;
SELECT MIN(achievements) FROM users;
SELECT AVG(achievements) FROM users;
SELECT ROUND(AVG(achievements), 2) FROM users;
SELECT LENGTH(nick... | Add SQL note for truncating string | Add SQL note for truncating string
| Markdown | mit | Yutsuten/Yutsuten.github.io,Yutsuten/Yutsuten.github.io,Yutsuten/Yutsuten.github.io | markdown | ## Code Before:
---
---
## Common
```sql
SELECT COUNT(*) FROM users;
SELECT server, COUNT(*) FROM users GROUP BY server;
SELECT SUM(achievements) FROM users;
SELECT MAX(achievements) FROM users;
SELECT MIN(achievements) FROM users;
SELECT AVG(achievements) FROM users;
SELECT ROUND(AVG(achievements), 2) FROM users;
SE... |
e32b440a38e74520de5813e277c105e8e14074d2 | double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/App.java | double-checked-locking/src/main/java/com/iluwatar/doublechecked/locking/App.java | package com.iluwatar.doublechecked.locking;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
*
* In {@link Inventory} we store the items with a given size. However, we do not store
* more items than the inventory size. To address concurrent access problems we
* use double c... | package com.iluwatar.doublechecked.locking;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
*
* Double Checked Locking is a concurrency design pattern used to reduce the overhead
* of acquiring a lock by first testing the locking criterion (the "lock hint") without
* act... | Improve Double Checked Locking Javadoc | Improve Double Checked Locking Javadoc
| Java | mit | inbreak/java-design-patterns,Sumu-Ning/java-design-patterns,janzoner/java-design-patterns,coverxiaoeye/java-design-patterns,colinbut/java-design-patterns,ouyangxiangshao/java-design-patterns,cnswan/java-design-patterns,dlee0113/java-design-patterns,xiaoyanit/java-design-patterns,krishansharma91/java-design-patterns,pra... | java | ## Code Before:
package com.iluwatar.doublechecked.locking;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
*
* In {@link Inventory} we store the items with a given size. However, we do not store
* more items than the inventory size. To address concurrent access problems we... |
8518b03a779ac5acd6a69b0f7d809c55506c0f43 | classes/Mail/MailService.php | classes/Mail/MailService.php | <?php
namespace AppZap\PHPFramework\Mail;
use AppZap\PHPFramework\Configuration\Configuration;
class MailService {
/**
* @param MailMessage $message
*/
public function send(MailMessage $message) {
$transport = $this->createTransport();
$mailer = new \Swift_Mailer($transport);
$mailer->send($mes... | <?php
namespace AppZap\PHPFramework\Mail;
use AppZap\PHPFramework\Configuration\Configuration;
class MailService {
/**
* @param MailMessage $message
*/
public function send(MailMessage $message) {
$transport = $this->createTransport();
$mailer = new \Swift_Mailer($transport);
$mailer->send($mes... | Support 'none' as smtp encryption | Support 'none' as smtp encryption
| PHP | bsd-2-clause | app-zap/PHPFramework | php | ## Code Before:
<?php
namespace AppZap\PHPFramework\Mail;
use AppZap\PHPFramework\Configuration\Configuration;
class MailService {
/**
* @param MailMessage $message
*/
public function send(MailMessage $message) {
$transport = $this->createTransport();
$mailer = new \Swift_Mailer($transport);
$m... |
175c28c7ad28ae0386952f2e7674ca890e8fbde6 | src/org/robockets/stronghold/robot/highgoalshooter/ShootPosition.java | src/org/robockets/stronghold/robot/highgoalshooter/ShootPosition.java | package org.robockets.stronghold.robot.highgoalshooter;
import org.robockets.stronghold.robot.flipper.FireShooter;
import org.robockets.stronghold.robot.hood.MoveHood;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
*/
public class ShootPosition extends CommandGroup {
public ShootPosition() {
... | package org.robockets.stronghold.robot.highgoalshooter;
import org.robockets.stronghold.robot.flipper.FireShooter;
import org.robockets.stronghold.robot.hood.MoveHood;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
*/
public class ShootPosition extends CommandGroup {
public ShootPosition() {
... | Move hood back down after shooting position | Move hood back down after shooting position
| Java | mit | Team4761/2016-Robot-Code | java | ## Code Before:
package org.robockets.stronghold.robot.highgoalshooter;
import org.robockets.stronghold.robot.flipper.FireShooter;
import org.robockets.stronghold.robot.hood.MoveHood;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
*/
public class ShootPosition extends CommandGroup {
public Shoo... |
caf4738f54159e1962b9158ae0820f0c5ade82a6 | metadata/community.fairphone.checkup.yml | metadata/community.fairphone.checkup.yml | Categories:
- System
License: Apache-2.0
WebSite: https://github.com/WeAreFairphone/FP2-Checkup
SourceCode: https://github.com/WeAreFairphone/FP2-Checkup
IssueTracker: https://github.com/WeAreFairphone/FP2-Checkup/issues
AutoName: Checkup
Summary: An app that allows end users to test the features of their device
Des... | Categories:
- System
License: Apache-2.0
WebSite: https://github.com/WeAreFairphone/FP2-Checkup
SourceCode: https://github.com/WeAreFairphone/FP2-Checkup
IssueTracker: https://github.com/WeAreFairphone/FP2-Checkup/issues
AutoName: Fairphone Checkup
Summary: An app that allows end users to test the features of their ... | Set autoname of Fairphone Checkup | Set autoname of Fairphone Checkup
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- System
License: Apache-2.0
WebSite: https://github.com/WeAreFairphone/FP2-Checkup
SourceCode: https://github.com/WeAreFairphone/FP2-Checkup
IssueTracker: https://github.com/WeAreFairphone/FP2-Checkup/issues
AutoName: Checkup
Summary: An app that allows end users to test the features of ... |
aba8ed179c4127f92fe43f6b454c23dd7f21f641 | .travis.yml | .travis.yml | sudo: false
dist: trusty
language: python
matrix:
include:
- python: "3.5"
- python: "3.6"
- python: "3.7"
sudo: required
dist: xenial
addons:
apt:
packages:
- dbus-x11
install:
- pip install jeepney cryptography codecov mypy
before_script:
- git clone https://gitlab.gnome.org/GN... | sudo: false
dist: xenial
language: python
matrix:
include:
- python: "3.5"
- python: "3.6"
- python: "3.7"
install:
- pip install jeepney cryptography codecov mypy
before_script:
- git clone https://gitlab.gnome.org/GNOME/libsecret.git
script:
- dbus-run-session -- coverage run tests/run_tests.py li... | Switch Travis to Xenial for all Python versions | Switch Travis to Xenial for all Python versions
| YAML | bsd-3-clause | mitya57/secretstorage | yaml | ## Code Before:
sudo: false
dist: trusty
language: python
matrix:
include:
- python: "3.5"
- python: "3.6"
- python: "3.7"
sudo: required
dist: xenial
addons:
apt:
packages:
- dbus-x11
install:
- pip install jeepney cryptography codecov mypy
before_script:
- git clone https://git... |
010cdfea8addf7ac91adba3ec65af98ca65aa15b | spec/pages/profile_page.rb | spec/pages/profile_page.rb | class ProfilePage
include Capybara::DSL
end
| class ProfilePage
include Capybara::DSL
include Warden::Test::Helpers
include Rails.application.routes.url_helpers
def initialize(user)
@user = user
login_as @user
end
def locale(lang)
visit edit_user_registration_path(:en)
select lang, from: 'user_language'
fill_in 'user_current_passw... | Add locale switching in Profile page | Add locale switching in Profile page
| Ruby | agpl-3.0 | dimaursu/discite,dimaursu/discite | ruby | ## Code Before:
class ProfilePage
include Capybara::DSL
end
## Instruction:
Add locale switching in Profile page
## Code After:
class ProfilePage
include Capybara::DSL
include Warden::Test::Helpers
include Rails.application.routes.url_helpers
def initialize(user)
@user = user
login_as @user
end... |
81942c486329240d3f233fa84e99e6c70eb85f58 | spec/controllers/admin/representatives_controller_spec.rb | spec/controllers/admin/representatives_controller_spec.rb | require 'spec_helper'
describe Admin::RepresentativesController do
let(:representative) { Representative.make! }
context 'not logged in' do
it 'should not be able to access the controller' do
get :edit, id: representative.to_param
response.should redirect_to(new_user_session_path)
end
end
... | require 'spec_helper'
describe Admin::RepresentativesController do
let(:representative) { Representative.make! }
context 'not logged in' do
it 'should not be able to access the controller' do
get :edit, id: representative.to_param
response.should redirect_to(new_user_session_path)
end
end
... | Fix spec for changed redirect. | Fix spec for changed redirect.
| Ruby | bsd-3-clause | holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site,holderdeord/hdo-site | ruby | ## Code Before:
require 'spec_helper'
describe Admin::RepresentativesController do
let(:representative) { Representative.make! }
context 'not logged in' do
it 'should not be able to access the controller' do
get :edit, id: representative.to_param
response.should redirect_to(new_user_session_path)
... |
783b1e14aa7fd5c34a567a78860470297aa7339f | spec/traffic_jam_configuration_spec.rb | spec/traffic_jam_configuration_spec.rb | require_relative 'spec_helper'
describe TrafficJam do
include RedisHelper
let(:config) { TrafficJam::Configuration.new }
before { config.register(:test, 3, 60) }
describe 'constructor' do
it "should take default options" do
config = TrafficJam::Configuration.new(key_prefix: 'hello')
config.k... | require_relative 'spec_helper'
describe TrafficJam do
include RedisHelper
let(:config) { TrafficJam::Configuration.new }
before { config.register(:test, 3, 60) }
describe 'constructor' do
it "should take default options" do
config = TrafficJam::Configuration.new(key_prefix: 'hello')
assert_e... | Fix a test that didn't have an assertion. | Fix a test that didn't have an assertion.
| Ruby | mit | coinbase/traffic_jam | ruby | ## Code Before:
require_relative 'spec_helper'
describe TrafficJam do
include RedisHelper
let(:config) { TrafficJam::Configuration.new }
before { config.register(:test, 3, 60) }
describe 'constructor' do
it "should take default options" do
config = TrafficJam::Configuration.new(key_prefix: 'hello'... |
d478082c93125212f07a7b73e2d9d04d1b2c1058 | libthumbor/__init__.py | libthumbor/__init__.py |
'''libthumbor is the library used to access thumbor's images in python'''
from pkg_resources import get_distribution
__version__ = get_distribution('libthumbor').version
from libthumbor.crypto import CryptoURL
|
'''libthumbor is the library used to access thumbor's images in python'''
from pkg_resources import get_distribution, DistributionNotFound
__project__ = 'libthumbor'
try:
__version__ = get_distribution(__project__).version
except DistributionNotFound:
# Returns a local version. For tests.
__version__ = ... | Fix verson number in tests | Fix verson number in tests
| Python | mit | APSL/libthumbor,thumbor/libthumbor,DomainGroupOSS/libthumbor | python | ## Code Before:
'''libthumbor is the library used to access thumbor's images in python'''
from pkg_resources import get_distribution
__version__ = get_distribution('libthumbor').version
from libthumbor.crypto import CryptoURL
## Instruction:
Fix verson number in tests
## Code After:
'''libthumbor is the library ... |
7a02305d2d1d081f547ee6761b21d06a77f25c89 | src/CsrfDisablingExtension.php | src/CsrfDisablingExtension.php | <?php
namespace Dkplus\CsrfApiUnprotectionBundle;
use Dkplus\CsrfApiUnprotectionBundle\UnprotectionRule\UnprotectionRule;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\OptionsResolver\O... | <?php
namespace Dkplus\CsrfApiUnprotectionBundle;
use Dkplus\CsrfApiUnprotectionBundle\UnprotectionRule\UnprotectionRule;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\OptionsResolver\O... | Implement new static form extension methods | Implement new static form extension methods
Necessary for Symfony 5.0
| PHP | mit | Dkplus/CsrfApiUnprotectionBundle,Dkplus/CsrfApiUnprotectionBundle | php | ## Code Before:
<?php
namespace Dkplus\CsrfApiUnprotectionBundle;
use Dkplus\CsrfApiUnprotectionBundle\UnprotectionRule\UnprotectionRule;
use Symfony\Component\Form\AbstractTypeExtension;
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\O... |
f29e19e58b2b39259798ca3112f921d3538a653f | scripts/geth-dev/start.sh | scripts/geth-dev/start.sh | geth --datadir /geth/.lpTest init /geth/genesis.json
cp /geth/keys/* /geth/.lpTest/keystore/
geth --datadir /geth/.lpTest --networkid 7777 --nodiscover --rpc --rpcaddr 0.0.0.0 --rpcapi eth,net,web3,personal --mine --targetgaslimit 6700000 --unlock 0,1,2,3 --password /geth/password.txt
| geth --datadir /geth/.livepeer/testnet init /geth/genesis.json
cp /geth/keys/* /geth/.livepeer/testnet/keystore/
geth --datadir /geth/.livepeer/testnet --networkid 7777 --nodiscover --rpc --rpcaddr 0.0.0.0 --rpcapi eth,net,web3,personal --mine --targetgaslimit 6700000 --unlock 0,1,2,3 --password /geth/password.txt
| Change datadir name for geth to .livepeer/testnet | Change datadir name for geth to .livepeer/testnet
| Shell | mit | livepeer/protocol,livepeer/protocol,livepeer/protocol | shell | ## Code Before:
geth --datadir /geth/.lpTest init /geth/genesis.json
cp /geth/keys/* /geth/.lpTest/keystore/
geth --datadir /geth/.lpTest --networkid 7777 --nodiscover --rpc --rpcaddr 0.0.0.0 --rpcapi eth,net,web3,personal --mine --targetgaslimit 6700000 --unlock 0,1,2,3 --password /geth/password.txt
## Instruction:
C... |
3fbbdec51cfd93217705adcae37b1bf22d5661fa | backend/playlist/serializers.py | backend/playlist/serializers.py | from rest_framework import serializers
from .models import Cd, Cdtrack, Show, Playlist, PlaylistEntry
class TrackSerializer(serializers.ModelSerializer):
album = serializers.StringRelatedField(
read_only=True
)
class Meta:
model = Cdtrack
fields = ('trackid', 'url', 'tracknum', 't... | from rest_framework import serializers
from .models import Cd, Cdtrack, Show, Playlist, PlaylistEntry
class TrackSerializer(serializers.ModelSerializer):
album = serializers.StringRelatedField(
read_only=True
)
class Meta:
model = Cdtrack
fields = ('trackid', 'url', 'tracknum', 't... | Add showname to playlist API view. | Add showname to playlist API view.
* Even though it's obsolete now, we need it for old shows.
| Python | mit | ThreeDRadio/playlists,ThreeDRadio/playlists,ThreeDRadio/playlists | python | ## Code Before:
from rest_framework import serializers
from .models import Cd, Cdtrack, Show, Playlist, PlaylistEntry
class TrackSerializer(serializers.ModelSerializer):
album = serializers.StringRelatedField(
read_only=True
)
class Meta:
model = Cdtrack
fields = ('trackid', 'url'... |
0e4e6336d164ce19fa384568abde5c2aa68248d5 | Cargo.toml | Cargo.toml | [package]
name = "fbx_direct"
version = "0.2.2"
authors = ["Takuma Yoshioka <nu11p0.6477@gmail.com>"]
homepage = "https://github.com/l1048576/fbx_direct"
repository = "https://github.com/l1048576/fbx_direct"
readme = "README.adoc"
keywords = ["fbx", "graphics", "3d", "model"]
license = "MIT"
description = "Low-level F... | [package]
name = "fbx_direct"
version = "0.2.2"
authors = ["Takuma Yoshioka <nu11p0.6477@gmail.com>"]
homepage = "https://github.com/l1048576/fbx_direct"
repository = "https://github.com/l1048576/fbx_direct"
readme = "README.adoc"
keywords = ["fbx", "graphics", "3d", "model"]
license = "MIT"
description = "Low-level F... | Add a dependency to `rustc-serialize` | Add a dependency to `rustc-serialize`
to use base64 encoder.
| TOML | apache-2.0 | l1048576/fbx_direct | toml | ## Code Before:
[package]
name = "fbx_direct"
version = "0.2.2"
authors = ["Takuma Yoshioka <nu11p0.6477@gmail.com>"]
homepage = "https://github.com/l1048576/fbx_direct"
repository = "https://github.com/l1048576/fbx_direct"
readme = "README.adoc"
keywords = ["fbx", "graphics", "3d", "model"]
license = "MIT"
descriptio... |
56d51cdb70945dd74878c825bbb4650a4e97e7a6 | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get install zookeeper
services:
- zookeeper
install:
- "pip install coveralls --use-wheel"
- "python setup.py install"
before_script:
- sudo apt-get install redis-server
script:
- coverage run --source=echidna `which trial` echidna
af... | language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get install zookeeper redis-server
services:
- zookeeper
install:
- "pip install coveralls --use-wheel"
- "python setup.py install"
script:
- coverage run --source=echidna `which trial` echidna
after_success:
- coveralls
| Install redis server in correct place | Install redis server in correct place
| YAML | bsd-3-clause | praekelt/echidna,praekelt/echidna,praekelt/echidna,praekelt/echidna | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
before_install:
- sudo apt-get install zookeeper
services:
- zookeeper
install:
- "pip install coveralls --use-wheel"
- "python setup.py install"
before_script:
- sudo apt-get install redis-server
script:
- coverage run --source=echidna `which t... |
f2862f3902d0f6793224dedf5f7564eeda1e3375 | acceptance/dockerImage/build/runCucumber.sh | acceptance/dockerImage/build/runCucumber.sh | if [ "${CAPYBARA_DRIVER}" = "selenium" ] || [ "${CAPYBARA_DRIVER}" = "selenium_chrome" ]; then
/etc/init.d/xvfb start
fi
source /usr/local/rvm/scripts/rvm
CUCUMBER_CMD="cd /capybara; cucumber $*"
#
# Run cucumber with the default profile (which generates a JSON report) and convert the JSON report to
# a nice HTML... | if [ "${CAPYBARA_DRIVER}" = "selenium" ] || [ "${CAPYBARA_DRIVER}" = "selenium_chrome" ]; then
/etc/init.d/xvfb start
fi
# if the common mount is there
if [ -d /common ]; then
# link it under the cucumber env
COMMON='/capybara/features/common'
if [ ! -L ${COMMON} ]; then
ln -s /common ${COMMON... | Add a conditional mount to find the common/data set. | Add a conditional mount to find the common/data set.
| Shell | apache-2.0 | control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced | shell | ## Code Before:
if [ "${CAPYBARA_DRIVER}" = "selenium" ] || [ "${CAPYBARA_DRIVER}" = "selenium_chrome" ]; then
/etc/init.d/xvfb start
fi
source /usr/local/rvm/scripts/rvm
CUCUMBER_CMD="cd /capybara; cucumber $*"
#
# Run cucumber with the default profile (which generates a JSON report) and convert the JSON report ... |
0d315bf101c8d690378ebc52d7f5d802bb01b636 | bootstrap/conf/salt/state/influxdb/init.sls | bootstrap/conf/salt/state/influxdb/init.sls | influxdb:
pkg.installed:
- sources:
- influxdb: http://influxdb.s3.amazonaws.com/influxdb_0.9.2_amd64.deb
service.running:
- require:
- pkg: influxdb
/var/lib/.influxdb:
file.directory:
- user: influxdb
- group: influxdb
- dir_mode: 755
- file_mode: 644
/var/lib/.influxdb/da... | influxdb:
pkg.installed:
- sources:
- influxdb: https://s3.amazonaws.com/influxdb/influxdb-0.9.3-1.x86_64.rpm
service.running:
- require:
- pkg: influxdb
/var/lib/.influxdb:
file.directory:
- user: influxdb
- group: influxdb
- dir_mode: 755
- file_mode: 644
/var/lib/.influxd... | Change InfluxDB package to RPM from Debian. | Change InfluxDB package to RPM from Debian.
| SaltStack | mit | llevar/germline-regenotyper,llevar/germline-regenotyper | saltstack | ## Code Before:
influxdb:
pkg.installed:
- sources:
- influxdb: http://influxdb.s3.amazonaws.com/influxdb_0.9.2_amd64.deb
service.running:
- require:
- pkg: influxdb
/var/lib/.influxdb:
file.directory:
- user: influxdb
- group: influxdb
- dir_mode: 755
- file_mode: 644
/var/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.