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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b93e6034d5c37ce2f6faa632a08a619b5c01b52f | pkgs/development/libraries/libsigsegv/default.nix | pkgs/development/libraries/libsigsegv/default.nix | { fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "libsigsegv-2.11";
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "063swdvq7mbmc1clv0rnh20grwln1zfc2qnm0sa1hivcxyr2wz6x";
};
doCheck = true;
meta = {
homepage = http://www.gnu.org/software/libsigsegv/;
descri... | { stdenv, fetchurl
, buildPlatform, hostPlatform
}:
stdenv.mkDerivation rec {
name = "libsigsegv-2.11";
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "063swdvq7mbmc1clv0rnh20grwln1zfc2qnm0sa1hivcxyr2wz6x";
};
doCheck = hostPlatform == buildPlatform;
meta = {
homepag... | Fix for cross by disabling check | libsigsegv: Fix for cross by disabling check
Check phase is now only disabled *by default* for cross, but this
package was forcing it unconditionally.
| Nix | mit | SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,Symb... | nix | ## Code Before:
{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "libsigsegv-2.11";
src = fetchurl {
url = "mirror://gnu/libsigsegv/${name}.tar.gz";
sha256 = "063swdvq7mbmc1clv0rnh20grwln1zfc2qnm0sa1hivcxyr2wz6x";
};
doCheck = true;
meta = {
homepage = http://www.gnu.org/software/libsigs... |
b73fd9d1e9069e815cdcf8d98fadea63cc7fd50b | applications/drive/src/app/components/uploads/UploadButton.tsx | applications/drive/src/app/components/uploads/UploadButton.tsx | import React from 'react';
import { c } from 'ttag';
import { FloatingButton, SidebarPrimaryButton } from 'react-components';
import { useDriveActiveFolder } from '../Drive/DriveFolderProvider';
import useFileUploadInput from '../../hooks/drive/useFileUploadInput';
interface Props {
floating?: boolean;
}
const ... | import React from 'react';
import { c } from 'ttag';
import { classnames, FloatingButton, SidebarPrimaryButton } from 'react-components';
import { useDriveActiveFolder } from '../Drive/DriveFolderProvider';
import useFileUploadInput from '../../hooks/drive/useFileUploadInput';
import { useDownloadProvider } from '../... | Move fab button when transfer manager is open | Move fab button when transfer manager is open
| TypeScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | typescript | ## Code Before:
import React from 'react';
import { c } from 'ttag';
import { FloatingButton, SidebarPrimaryButton } from 'react-components';
import { useDriveActiveFolder } from '../Drive/DriveFolderProvider';
import useFileUploadInput from '../../hooks/drive/useFileUploadInput';
interface Props {
floating?: bo... |
671742d354f6663c3840ce6058366034ac79483d | app/admin/provided_poi.rb | app/admin/provided_poi.rb | ActiveAdmin.register ProvidedPoi do
menu :label => 'Premiumeintrag', :parent => 'Premium'
belongs_to :provider, :optional => true
belongs_to :poi, :optional => true
index do
column :id
column :wheelchair do |p|
status_tag(p.wheelchair, :class => p.wheelchair)
end
column :poi do |p|
link... | ActiveAdmin.register ProvidedPoi do
menu :label => 'Premiumeintrag', :parent => 'Premium'
belongs_to :provider, :optional => true
belongs_to :poi, :optional => true
filter :provider, as: :select, collection: proc { Provider.all.inject([]){|memo,r| memo << [r.name, r.id]; memo}.sort}
filter :wheelchair, as:... | Speed up Premium list page filters. | Speed up Premium list page filters.
| Ruby | agpl-3.0 | sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap | ruby | ## Code Before:
ActiveAdmin.register ProvidedPoi do
menu :label => 'Premiumeintrag', :parent => 'Premium'
belongs_to :provider, :optional => true
belongs_to :poi, :optional => true
index do
column :id
column :wheelchair do |p|
status_tag(p.wheelchair, :class => p.wheelchair)
end
column :poi ... |
0dc17a1c168e48f51ceaf98e665581843907e214 | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | - What version of Shaka Player are you using?
- Can you reproduce the issue with our latest release version?
- Can you reproduce the issue with the latest code from `master`?
- Are you using the demo app or your own custom app?
- If custom app, can you reproduce the issue using our demo app?
- What did you... | - What version of Shaka Player are you using?
- Can you reproduce the issue with our latest release version?
- Can you reproduce the issue with the latest code from `master`?
- Are you using the demo app or your own custom app?
- If custom app, can you reproduce the issue using our demo app?
- What browser... | Add browser and OS to issue template | Add browser and OS to issue template
Change-Id: Id23426095f2627989a34cda9d8fd8c81ce47aed2
| Markdown | apache-2.0 | tvoli/shaka-player,TobbeEdgeware/shaka-player,brightcove/shaka-player,vimond/shaka-player,indiereign/shaka-player,brightcove/shaka-player,TheModMaker/shaka-player,shaka-project/shaka-player,TobbeEdgeware/shaka-player,russitto/shaka-player,TobbeEdgeware/shaka-player,shaka-project/shaka-player,TheModMaker/shaka-player,Ro... | markdown | ## Code Before:
- What version of Shaka Player are you using?
- Can you reproduce the issue with our latest release version?
- Can you reproduce the issue with the latest code from `master`?
- Are you using the demo app or your own custom app?
- If custom app, can you reproduce the issue using our demo app?
... |
fe9666e7e2c5dc6752286c5481809fde9dc67eec | cookbooks/tilecache/templates/default/ohai.rb.erb | cookbooks/tilecache/templates/default/ohai.rb.erb | Ohai.plugin(:TileCache) do
provides "tilecache"
def tile_siblings
recent = Time.now - 600
times = Hash.new
# Find performance reports for last few minutes
# Add up total time taken to download tile grouped by remote server
# Remove 1 second per successful time report (de-prioritise new servers... | Ohai.plugin(:TileCache) do
provides "tilecache"
def tile_siblings
recent = Time.now - 600
times = Hash.new
# Find performance reports for last few minutes
# Add up total time taken to download tile grouped by remote server
# Remove 1 second per successful time report (de-prioritise new servers... | Adjust performance scoring for tile siblings | Adjust performance scoring for tile siblings
| HTML+ERB | apache-2.0 | tomhughes/openstreetmap-chef,zerebubuth/openstreetmap-chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,zerebubuth/openstreetmap-chef,openstreetmap/chef,zerebubuth/openstreetmap-chef,openstreetmap/chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,tomhughes/openstreetmap-chef,tomhughes/openstre... | html+erb | ## Code Before:
Ohai.plugin(:TileCache) do
provides "tilecache"
def tile_siblings
recent = Time.now - 600
times = Hash.new
# Find performance reports for last few minutes
# Add up total time taken to download tile grouped by remote server
# Remove 1 second per successful time report (de-priori... |
6e67a65974b4d7b97d8db964f9d2cef565736ded | checklistbank-ws/src/test/java/org/gbif/checklistbank/ws/resources/WsAppTest.java | checklistbank-ws/src/test/java/org/gbif/checklistbank/ws/resources/WsAppTest.java | package org.gbif.checklistbank.ws.resources;
import java.security.Permission;
import org.gbif.ws.app.Application;
import org.junit.Test;
import static org.junit.Assert.fail;
public class WsAppTest {
/**
* Test the startup of the webapp.
* We expect a SecurityException raised as the Application stops becau... | package org.gbif.checklistbank.ws.resources;
import java.security.Permission;
import org.gbif.ws.app.Application;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.fail;
public class WsAppTest {
private SecurityManager sm;
@Before
public void init(){
... | Remove custom security manager after test finishes | Remove custom security manager after test finishes
| Java | apache-2.0 | gbif/checklistbank,gbif/checklistbank | java | ## Code Before:
package org.gbif.checklistbank.ws.resources;
import java.security.Permission;
import org.gbif.ws.app.Application;
import org.junit.Test;
import static org.junit.Assert.fail;
public class WsAppTest {
/**
* Test the startup of the webapp.
* We expect a SecurityException raised as the Applica... |
ce4bf6d5fcd45e0a9393448d1445ab26ae56febe | README.mkd | README.mkd |
[tcii]: https://travis-ci.org/nagisa/rust_libloading.svg?branch=master
[tci]: https://travis-ci.org/nagisa/rust_libloading
[acii]: https://ci.appveyor.com/api/projects/status/cnncnu58qcxb1ikf/branch/master?svg=true
[aci]: https://ci.appveyor.com/project/nagisa/rust-libloading
**NOTE** bindings are currently quite bar... |
[tcii]: https://travis-ci.org/nagisa/rust_libloading.svg?branch=master
[tci]: https://travis-ci.org/nagisa/rust_libloading
[acii]: https://ci.appveyor.com/api/projects/status/cnncnu58qcxb1ikf/branch/master?svg=true
[aci]: https://ci.appveyor.com/project/nagisa/rust-libloading
**NOTE** bindings are currently quite bar... | Include a link to the docs | Include a link to the docs | Markdown | isc | tyleo/sharedlib | markdown | ## Code Before:
[tcii]: https://travis-ci.org/nagisa/rust_libloading.svg?branch=master
[tci]: https://travis-ci.org/nagisa/rust_libloading
[acii]: https://ci.appveyor.com/api/projects/status/cnncnu58qcxb1ikf/branch/master?svg=true
[aci]: https://ci.appveyor.com/project/nagisa/rust-libloading
**NOTE** bindings are cur... |
f856cd2696b7016f52cc4bf97714a2222911e347 | background.js | background.js | var services = [],
radios = [],
helperApp;
if(!helperApp) {
connectToHelperApp();
}
chrome.runtime.onMessageExternal.addListener(function (message) {
console.log("message received from app", message);
services = message;
radios = services.map(function(s) {
return window.Radiodan.create('http://... | var services = [],
radios = [],
helperApp;
if(!helperApp) {
connectToHelperApp();
}
chrome.runtime.onMessageExternal.addListener(function (message) {
console.log("message received from app", message);
services = message;
});
function connectToHelperApp() {
chrome.management.getAll(function(results)... | Remove reference to removed radiodan client | Remove reference to removed radiodan client
| JavaScript | apache-2.0 | mediascape/discovery-extension,mediascape/discovery-extension | javascript | ## Code Before:
var services = [],
radios = [],
helperApp;
if(!helperApp) {
connectToHelperApp();
}
chrome.runtime.onMessageExternal.addListener(function (message) {
console.log("message received from app", message);
services = message;
radios = services.map(function(s) {
return window.Radiodan... |
01106fcdf2c10157de2f4b8f122ad55d04bf85a9 | initialize.sh | initialize.sh |
git clone https://github.com/N4SJAMK/teamboard-io io
git clone https://github.com/N4SJAMK/teamboard-api api
git clone https://github.com/N4SJAMK/teamboard-client client
| USER=${1-N4SJAMK}
# Clone our repositories.
git clone https://github.com/$USER/teamboard-io io
git clone https://github.com/$USER/teamboard-api api
git clone https://github.com/$USER/teamboard-client client
# Set 'upstream' to the original repository.
(cd io && git remote add upstream https://github.com/N4... | Rework initialization script to support forking | Rework initialization script to support forking
| Shell | mit | N4SJAMK/teamboard,Paviaani/teamboard | shell | ## Code Before:
git clone https://github.com/N4SJAMK/teamboard-io io
git clone https://github.com/N4SJAMK/teamboard-api api
git clone https://github.com/N4SJAMK/teamboard-client client
## Instruction:
Rework initialization script to support forking
## Code After:
USER=${1-N4SJAMK}
# Clone our repositories.
g... |
2b647332457d369ec56346145be77230bf9ba274 | CONTRIBUTORS.md | CONTRIBUTORS.md |
We'd like to thank the following people for their contributions to the ddcloud provider for Terraform:
* Adam Friedman ([@tintoy](https://github.com/tintoy))
* Anthony Shaw ([@tonybaloney](https://github.com/tonybaloney))
* Kumar Chockalingam [@kumarappanc](https://github.com/kumarappanc)
* William Ninobla [@wninobla... |
We'd like to thank the following people for their contributions to the ddcloud provider for Terraform:
* Adam Friedman ([@tintoy](https://github.com/tintoy))
* Anthony Shaw ([@tonybaloney](https://github.com/tonybaloney))
* Kumar Chockalingam ([@kumarappanc](https://github.com/kumarappanc))
* William Ninobla ([@wnino... | Add our latest contributor :) | Add our latest contributor :)
| Markdown | mit | DimensionDataResearch/dd-cloud-compute-terraform,DimensionDataResearch/dd-cloud-compute-terraform | markdown | ## Code Before:
We'd like to thank the following people for their contributions to the ddcloud provider for Terraform:
* Adam Friedman ([@tintoy](https://github.com/tintoy))
* Anthony Shaw ([@tonybaloney](https://github.com/tonybaloney))
* Kumar Chockalingam [@kumarappanc](https://github.com/kumarappanc)
* William Ni... |
a0f9275912d3dfd9edd4e8d0377f04972c919338 | lino_book/projects/team/try_people_api.py | lino_book/projects/team/try_people_api.py | import requests
from apiclient.discovery import build
from lino.api import rt
user = rt.models.users.User.objects.get(username='luc')
social = user.social_auth.get(provider='google-plus')
print(social.provider)
response = requests.get(
'https://www.googleapis.com/plus/v1/people/me/people/collection',
# 'http... | from apiclient.discovery import build
from oauth2client.client import OAuth2Credentials
from django.conf import settings
from datetime import datetime
import httplib2
from lino.api import rt
user = rt.models.users.User.objects.get(username='8618a3571d8b4237a3e60d25671d8f')
social = user.social_auth.get(provider='goog... | Make the sample work by retrieving all contacts. | Make the sample work by retrieving all contacts.
| Python | unknown | lsaffre/lino_book,khchine5/book,lino-framework/book,lsaffre/lino_book,lino-framework/book,lino-framework/book,lino-framework/book,khchine5/book,khchine5/book,lsaffre/lino_book | python | ## Code Before:
import requests
from apiclient.discovery import build
from lino.api import rt
user = rt.models.users.User.objects.get(username='luc')
social = user.social_auth.get(provider='google-plus')
print(social.provider)
response = requests.get(
'https://www.googleapis.com/plus/v1/people/me/people/collecti... |
f363d997ea8d7545cc603513aaa051a5d333e26a | .gitlab-ci.yml | .gitlab-ci.yml | stages:
- test
- release
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "3"
cache:
key: "$CI_PROJECT_NAME-CI_BUILD_REF_NAME"
paths:
- frontend/node_modules
backend-test:
stage: test
cache:
paths:
- backend/deps
script:
- cd backend; make test
release:
stage: release
script:
-... | stages:
- test
- release
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "3"
cache:
key: "$CI_PROJECT_NAME-CI_BUILD_REF_NAME"
paths:
- frontend/node_modules
before_script:
- cd backend && mix local.rebar --force
- cd backend && mix local.hex --force
- cd backend && mix deps.get
backend-test:
stage... | Use recommended way for backend testing on gitlab ci | Use recommended way for backend testing on gitlab ci
| YAML | apache-2.0 | serverboards/serverboards,serverboards/serverboards,serverboards/serverboards,serverboards/serverboards,serverboards/serverboards | yaml | ## Code Before:
stages:
- test
- release
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "3"
cache:
key: "$CI_PROJECT_NAME-CI_BUILD_REF_NAME"
paths:
- frontend/node_modules
backend-test:
stage: test
cache:
paths:
- backend/deps
script:
- cd backend; make test
release:
stage: release... |
6e1beb3c51e70b33ba9e6d5e01d16998f1ff0585 | python/requirements.txt | python/requirements.txt | ipdb # pdb with ipython integrated
ipython
flake8
pep8
pyflakes
pylint
# virtualenv is included with >= Python 3.4
virtualenv
virtualenvwrapper
pip-tools
|
ipdb # pdb with ipython integrated
ipython
## Linters ##
flake8
pydocstyle
# prospector
## Packaging ##
# virtualenv is included with >= Python 3.4
virtualenv
virtualenvwrapper
pip-tools
| Update Python default packages to install | Update Python default packages to install
| Text | mit | jeffwidman/dotfiles | text | ## Code Before:
ipdb # pdb with ipython integrated
ipython
flake8
pep8
pyflakes
pylint
# virtualenv is included with >= Python 3.4
virtualenv
virtualenvwrapper
pip-tools
## Instruction:
Update Python default packages to install
## Code After:
ipdb # pdb with ipython integrated
ipython
## Linters ##
flake8
pydocstyl... |
7dd91975a8108c727c057488d3ea083ba6864945 | src/EditorFeatures/Text/PublicAPI.Shipped.txt | src/EditorFeatures/Text/PublicAPI.Shipped.txt | Microsoft.CodeAnalysis.Text.Extensions
static Microsoft.CodeAnalysis.Text.Extensions.AsText(this Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot) -> Microsoft.CodeAnalysis.Text.SourceText
static Microsoft.CodeAnalysis.Text.Extensions.AsTextContainer(this Microsoft.VisualStudio.Text.ITextBuffer buffer) -> Microso... | Microsoft.CodeAnalysis.Text.Extensions
static Microsoft.CodeAnalysis.Text.Extensions.AsText(this Microsoft.VisualStudio.Text.ITextSnapshot! textSnapshot) -> Microsoft.CodeAnalysis.Text.SourceText!
static Microsoft.CodeAnalysis.Text.Extensions.AsTextContainer(this Microsoft.VisualStudio.Text.ITextBuffer! buffer) -> Micr... | Enable nullable reference types in Public API | Enable nullable reference types in Public API
| Text | mit | heejaechang/roslyn,KirillOsenkov/roslyn,heejaechang/roslyn,wvdd007/roslyn,mavasani/roslyn,mgoertz-msft/roslyn,tmat/roslyn,AlekseyTs/roslyn,mavasani/roslyn,shyamnamboodiripad/roslyn,eriawan/roslyn,jasonmalinowski/roslyn,diryboy/roslyn,diryboy/roslyn,tannergooding/roslyn,eriawan/roslyn,physhi/roslyn,dotnet/roslyn,jasonma... | text | ## Code Before:
Microsoft.CodeAnalysis.Text.Extensions
static Microsoft.CodeAnalysis.Text.Extensions.AsText(this Microsoft.VisualStudio.Text.ITextSnapshot textSnapshot) -> Microsoft.CodeAnalysis.Text.SourceText
static Microsoft.CodeAnalysis.Text.Extensions.AsTextContainer(this Microsoft.VisualStudio.Text.ITextBuffer bu... |
009b38a00cd88b240c873ba5ab9af722bafbe1e4 | usr.sbin/pkg_manage/Makefile | usr.sbin/pkg_manage/Makefile |
PROG= pkg_manage
SRCS= pkg_main.c pkg_manage.c pkg_ui.c version.c
LDADD+= -ldialog -lncurses -lmytinfo
DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO}
CFLAGS+= -Wall -Wstrict-prototypes -DHELP_PATH=\"${HELPDIR}/\" \
-I${.CURDIR}/../../gnu/lib/libdialog \
-I${.CURDIR}/../../lib/libncurses
HELPDIR = /usr/shar... |
PROG= pkg_manage
SRCS= pkg_main.c pkg_manage.c pkg_ui.c version.c
LDADD+= -ldialog -lncurses -lmytinfo
DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO}
CFLAGS+= -Wall -Wstrict-prototypes -DHELP_PATH=\"${HELPDIR}/\" \
-I${.CURDIR}/../../gnu/lib/libdialog \
-I${.CURDIR}/../../lib/libncurses
HELPDIR = /usr/shar... | Delete a couple of now-extraneous files. Noticed by: ats | Delete a couple of now-extraneous files.
Noticed by: ats
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
PROG= pkg_manage
SRCS= pkg_main.c pkg_manage.c pkg_ui.c version.c
LDADD+= -ldialog -lncurses -lmytinfo
DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO}
CFLAGS+= -Wall -Wstrict-prototypes -DHELP_PATH=\"${HELPDIR}/\" \
-I${.CURDIR}/../../gnu/lib/libdialog \
-I${.CURDIR}/../../lib/libncurses
HEL... |
92618c8dee9361999d897f385043422a51311c70 | dyslexic-bible.user.js | dyslexic-bible.user.js | // ==UserScript==
// @name dyslexic-bible
// @namespace http://tampermonkey.net/
// @version 2
// @description Use a dyslexic-friendly font at bible.com
// @match https://*.bible.com/bible/*
// updateURL https://raw.githubusercontent.com/natematykiewicz/dyslexic-bible/master/dyslexic-bible.u... | // ==UserScript==
// @name dyslexic-bible
// @namespace http://tampermonkey.net/
// @version 3
// @description Use a dyslexic-friendly font at bible.com
// @match https://*.bible.com/bible/*
// updateURL https://raw.githubusercontent.com/natematykiewicz/dyslexic-bible/master/dyslexic-bible.u... | Add gray line to separate off-white from white | Add gray line to separate off-white from white
| JavaScript | mit | natematykiewicz/dyslexic-bible | javascript | ## Code Before:
// ==UserScript==
// @name dyslexic-bible
// @namespace http://tampermonkey.net/
// @version 2
// @description Use a dyslexic-friendly font at bible.com
// @match https://*.bible.com/bible/*
// updateURL https://raw.githubusercontent.com/natematykiewicz/dyslexic-bible/master/... |
6c9a14a3b6ac3c98687b2092f4517287829392b0 | server/server.js | server/server.js | var net = require("net");
var express = require("express");
var bodyParser = require("body-parser");
var config = require('./config');
var app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
// Create a simple server
var server = net.createServer(function (conn) {
co... | var net = require("net");
var express = require("express");
var bodyParser = require("body-parser");
var config = require('./config');
var app;
// Create a simple server
var server = net.createServer(function (conn) {
app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyPars... | Fix socket closed on connection reset bug | Fix socket closed on connection reset bug
| JavaScript | mit | scarescrow/Automate,scarescrow/Automate,scarescrow/Automate | javascript | ## Code Before:
var net = require("net");
var express = require("express");
var bodyParser = require("body-parser");
var config = require('./config');
var app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
// Create a simple server
var server = net.createServer(function ... |
3ab05b3da8659d120f53b78cb95e43f0714f3129 | src/Middleware/MiddlewareAwareInterface.php | src/Middleware/MiddlewareAwareInterface.php | <?php declare(strict_types=1);
namespace League\Route\Middleware;
use Psr\Http\Server\MiddlewareInterface;
interface MiddlewareAwareInterface
{
/**
* Add a middleware to the stack.
*
* @param \Psr\Http\Server\MiddlewareInterface $middleware
*
* @return self
*/
public function mi... | <?php declare(strict_types=1);
namespace League\Route\Middleware;
use Psr\Http\Server\MiddlewareInterface;
interface MiddlewareAwareInterface
{
/**
* Add a middleware to the stack
*
* @param \Psr\Http\Server\MiddlewareInterface $middleware
*
* @return static
*/
public function m... | Clean up middleware aware code docs | Clean up middleware aware code docs
| PHP | mit | thephpleague/route | php | ## Code Before:
<?php declare(strict_types=1);
namespace League\Route\Middleware;
use Psr\Http\Server\MiddlewareInterface;
interface MiddlewareAwareInterface
{
/**
* Add a middleware to the stack.
*
* @param \Psr\Http\Server\MiddlewareInterface $middleware
*
* @return self
*/
pu... |
8f5c5e8ee802420c1c02d1892dfd11d64d8b546d | .github/workflows/test.yml | .github/workflows/test.yml | name: RSpec tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
include:
- docker-image: 'library/ruby:2.5'
- docker-image: 'library/ruby:2.6'
... | name: RSpec tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby:
name: ${{ matrix.docker-image }} (timeout ${{ matrix.timeout }})
runs-on: ubuntu-latest
timeout-minutes: ${{ matrix.timeout }}
strategy:
fail-fast: false
matrix:
include:
... | Use longer timeout on TruffleRuby | Use longer timeout on TruffleRuby
So that it doesn't timeout but fails in a standard way.
| YAML | mit | mikel/mail | yaml | ## Code Before:
name: RSpec tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ruby:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
include:
- docker-image: 'library/ruby:2.5'
- docker-image: 'libra... |
b0a6dc0fef8073901d7ee294f759882dc2b46199 | packages/patchelf_aux.sh | packages/patchelf_aux.sh |
setPatchelfTriggerVars() {
PATCHELF_BLDRVERSION_STD=${PATCHELF_BLDRVERSION_STD:-"0.8"}
PATCHELF_BLDRVERSION_EXP=${PATCHELF_BLDRVERSION_EXP:-"0.8"}
PATCHELF_BUILDS=${PATCHELF_BUILDS:-"ser"}
PATCHELF_DEPS=
}
setPatchelfTriggerVars
######################################################################
#
# Find p... |
setPatchelfTriggerVars() {
PATCHELF_BLDRVERSION_STD=${PATCHELF_BLDRVERSION_STD:-"0.8"}
PATCHELF_BLDRVERSION_EXP=${PATCHELF_BLDRVERSION_EXP:-"0.8"}
if [[ `uname` =~ Linux ]]; then
PATCHELF_BUILDS=${PATCHELF_BUILDS:-"ser"}
fi
PATCHELF_DEPS=
}
setPatchelfTriggerVars
########################################... | Build patchelf on Linux only. | Build patchelf on Linux only.
git-svn-id: 06aac1f7aa6783202dd435920b98a457d633d0b0@2033 a9e16012-fd73-49ee-95cb-036de7809213
| Shell | epl-1.0 | Tech-XCorp/bilder | shell | ## Code Before:
setPatchelfTriggerVars() {
PATCHELF_BLDRVERSION_STD=${PATCHELF_BLDRVERSION_STD:-"0.8"}
PATCHELF_BLDRVERSION_EXP=${PATCHELF_BLDRVERSION_EXP:-"0.8"}
PATCHELF_BUILDS=${PATCHELF_BUILDS:-"ser"}
PATCHELF_DEPS=
}
setPatchelfTriggerVars
#################################################################... |
5806943cc90c47297eddd443d288d2bf528fc2ff | app/views/games/search.html.erb | app/views/games/search.html.erb | <h2>Games</h2>
<table class="game-display-table">
<% until @found_games.empty? %>
<tr class="row">
<% 3.times do %>
<%= render "game", game: @found_games.shift %>
<% end %>
</tr>
<% end %>
</table>
| <h2>Games</h2>
<table class="game-display-table">
<% until @found_games.empty? %>
<tr class="row">
<% 3.times do %>
<% if @found_games.first %>
<%= render "game", game: @found_games.shift %>
<% end %>
<% end %>
</tr>
<% end %>
</table>
| Fix search bug for games | Fix search bug for games
| HTML+ERB | mit | KlimekM/boredgames,KlimekM/boredgames,KlimekM/boredgames | html+erb | ## Code Before:
<h2>Games</h2>
<table class="game-display-table">
<% until @found_games.empty? %>
<tr class="row">
<% 3.times do %>
<%= render "game", game: @found_games.shift %>
<% end %>
</tr>
<% end %>
</table>
## Instruction:
Fix search bug for games
## Code After:... |
9c9233384e5e68fd7fc5e8b0189e440d24224124 | _pages/timeline.md | _pages/timeline.md | ---
permalink: /timeline/
title: "Timeline"
excerpt: "Interactive feature with timeline and map."
layout: single
---
<iframe src="http://timemapper.okfnlabs.org/anon/8nz7rf-early-american-serialized-novels-time-map?embed=1" frameborder="0" style="border: none;" width="100%" height="780;"></iframe> | ---
permalink: /timeline/
title: "Timeline"
excerpt: "Interactive feature with timeline and map."
layout: single
---
Please click to see our [interactive timeline and map](http://timemapper.okfnlabs.org/anon/8nz7rf-early-american-serialized-novels-time-map). | Make TimeMapper an external link since GitHub won't allow http iframe embeds. | Make TimeMapper an external link since GitHub won't allow http iframe embeds.
Apparently GitHub stopped letting iframes with http content work; now
everything rendered should be https. TimeMapper has no plans to make
their servers https, so I’m making this a link. It’s not as elegant or
engaging, but linking out still... | Markdown | mit | EarlyAmericanSerializedNovels/earlyamericanserializednovels.github.io,EarlyAmericanSerializedNovels/earlyamericanserializednovels.github.io,EarlyAmericanSerializedNovels/earlyamericanserializednovels.github.io | markdown | ## Code Before:
---
permalink: /timeline/
title: "Timeline"
excerpt: "Interactive feature with timeline and map."
layout: single
---
<iframe src="http://timemapper.okfnlabs.org/anon/8nz7rf-early-american-serialized-novels-time-map?embed=1" frameborder="0" style="border: none;" width="100%" height="780;"></... |
e7788584fa99ec3c7233a2810b4caefad7f07d6f | README.md | README.md | MMU CaMSys Dashboard
====================
(Google Chrome browser extension)
For Student account only.
CaMSys Dashboard adds a dashboard view feature into CaMSys.
It grabs and places student's frequently viewed information (Attendance, Schedule, Finance, Advisor) onto the dashboard.
The dashboard layout focu... | MMU CaMSys Dashboard
====================
(Google Chrome browser extension)
Link on Chrome Webstore:
https://chrome.google.com/webstore/detail/mmu-camsys-dashboard/lepjdepdjclpgiknnfakgohejcljhphh?utm_source=chrome-app-launcher-info-dialog
For Student account only.
CaMSys Dashboard adds a dashboard view fea... | Add webstore link to readme | Add webstore link to readme
| Markdown | mit | jooeycheng/MMU-CaMSys-Dashboard,jooeycheng/MMU-CaMSys-Dashboard | markdown | ## Code Before:
MMU CaMSys Dashboard
====================
(Google Chrome browser extension)
For Student account only.
CaMSys Dashboard adds a dashboard view feature into CaMSys.
It grabs and places student's frequently viewed information (Attendance, Schedule, Finance, Advisor) onto the dashboard.
The dashboard layo... |
5f2178c699a6df78be9baaba82b8d5215576c594 | README.md | README.md |
Preview jupyter notebooks in quick look.
## Installation
Build qlgenerator using Xcode and then move jupter-notebook-quick-look.qlgenerator to /Library/QuickLook.
Check out also [Jupyter App](www.github.com/jendas1/jupyter-notebook-quicklook-plugin) for opening jupyter notebooks right from Finder! |
Preview jupyter notebooks in quick look.
## Installation
Build qlgenerator using Xcode and then move jupter-notebook-quick-look.qlgenerator to /Library/QuickLook __(Note: Make sure to move it to this system-wide folder NOT the user folder ~/Library/Quicklook ! )__.
## Dependencies
Python 3 with jupyter installed.
... | Make clear where generator should be moved. | Make clear where generator should be moved.
Idea addressed by #3 . | Markdown | unlicense | jendas1/jupyter-notebook-quick-look | markdown | ## Code Before:
Preview jupyter notebooks in quick look.
## Installation
Build qlgenerator using Xcode and then move jupter-notebook-quick-look.qlgenerator to /Library/QuickLook.
Check out also [Jupyter App](www.github.com/jendas1/jupyter-notebook-quicklook-plugin) for opening jupyter notebooks right from Finder!
#... |
84bb2bff339337e62f8c517026ba339197b69386 | info.xml | info.xml | <?xml version="1.0"?>
<extension key="nz.co.fuzion.notificationlog" type="module">
<file>notificationlog</file>
<name>Retry payment processor notifications</name>
<description>Retry notifications from the system log.</description>
<license>AGPL-3.0</license>
<maintainer>
<author>Eileen</author>
<email... | <?xml version="1.0"?>
<extension key="nz.co.fuzion.notificationlog" type="module">
<file>notificationlog</file>
<name>Retry payment processor notifications</name>
<description>Retry notifications from the system log.</description>
<license>AGPL-3.0</license>
<maintainer>
<author>Eileen</author>
<email... | Remove references to older versions | Remove references to older versions | XML | agpl-3.0 | eileenmcnaughton/nz.co.fuzion.notificationlog | xml | ## Code Before:
<?xml version="1.0"?>
<extension key="nz.co.fuzion.notificationlog" type="module">
<file>notificationlog</file>
<name>Retry payment processor notifications</name>
<description>Retry notifications from the system log.</description>
<license>AGPL-3.0</license>
<maintainer>
<author>Eileen</au... |
7f5cb11e0ba71c893b84baae6124c7173ffaf62a | composer.json | composer.json | {
"name": "silverstripe/memberprofiles",
"description": "Member registration and profile management",
"type": "silverstripe-module",
"keywords": ["silverstripe", "member", "profile", "registration"],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Andrew Short",
"email": "andrewjshort@gmail.co... | {
"name": "ajshort/silverstripe-memberprofiles",
"description": "Member registration and profile management",
"type": "silverstripe-module",
"keywords": ["silverstripe", "member", "profile", "registration"],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Andrew Short",
"email": "andrewjshort@... | Rename the Packagist package and add screenshots | Rename the Packagist package and add screenshots | JSON | bsd-3-clause | adrexia/silverstripe-memberprofiles,adrexia/silverstripe-memberprofiles,silverstripe-australia/silverstripe-memberprofiles,silverstripe-australia/silverstripe-memberprofiles | json | ## Code Before:
{
"name": "silverstripe/memberprofiles",
"description": "Member registration and profile management",
"type": "silverstripe-module",
"keywords": ["silverstripe", "member", "profile", "registration"],
"license": "BSD-3-Clause",
"authors": [
{
"name": "Andrew Short",
"email": "andrewjshort@g... |
5b46f3d3bba8dc0932483166fccfb50413c41d6d | lib/lita/adapters/slack.rb | lib/lita/adapters/slack.rb | require 'lita/adapters/slack/rtm_connection'
module Lita
module Adapters
class Slack < Adapter
# Required configuration attributes.
config :token, type: String, required: true
config :proxy, type: String
# Starts the connection.
def run
return if rtm_connection
@rt... | require 'lita/adapters/slack/rtm_connection'
module Lita
module Adapters
class Slack < Adapter
# Required configuration attributes.
config :token, type: String, required: true
config :proxy, type: String
# Starts the connection.
def run
return if rtm_connection
@rt... | Fix user not found bug | Fix user not found bug | Ruby | mit | envoy/lita-slack | ruby | ## Code Before:
require 'lita/adapters/slack/rtm_connection'
module Lita
module Adapters
class Slack < Adapter
# Required configuration attributes.
config :token, type: String, required: true
config :proxy, type: String
# Starts the connection.
def run
return if rtm_connect... |
f803afc3fa14b374cf58540c9db0c24e04cb0638 | README.md | README.md |
All this gem does is something very simple- allow you to trigger select2 dropdown to select the value you want. The original select doesn't with the javascript overrides, so this new helper method does only this thing.
## Installation
Add this line to your application's Gemfile:
gem 'capybara-select2', group: :... |
All this gem does is something very simple- allow you to trigger select2 dropdown to select the value you want. The original select doesn't with the javascript overrides, so this new helper method does only this thing.
## Installation
Add this line to your application's Gemfile:
gem 'capybara-select2', group: :... | Update Readme with info for using select2 as a search field | Update Readme with info for using select2 as a search field | Markdown | mit | xronos-i-am/capybara-select2,finnlabs/capybara-select2,goodwill/capybara-select2,expertgem/capybara-select2 | markdown | ## Code Before:
All this gem does is something very simple- allow you to trigger select2 dropdown to select the value you want. The original select doesn't with the javascript overrides, so this new helper method does only this thing.
## Installation
Add this line to your application's Gemfile:
gem 'capybara-se... |
894bac11748775091ba848e772a1a6e6ed1e2a33 | src/server/src/healthcheck/healthcheck.controller.ts | src/server/src/healthcheck/healthcheck.controller.ts | import { Controller, Get } from "@nestjs/common";
import {
HealthCheck,
HealthCheckResult,
HealthCheckService,
TypeOrmHealthIndicator
} from "@nestjs/terminus";
import TopologyLoadedIndicator from "./topology-loaded.indicator";
@Controller("healthcheck")
export class HealthcheckController {
constructor(
... | import { Controller, Get } from "@nestjs/common";
import {
HealthCheck,
HealthCheckResult,
HealthCheckService,
TypeOrmHealthIndicator
} from "@nestjs/terminus";
import TopologyLoadedIndicator from "./topology-loaded.indicator";
@Controller("healthcheck")
export class HealthcheckController {
constructor(
... | Increase healthcheck DB timeout to 3 seconds | Increase healthcheck DB timeout to 3 seconds
This matches the timeout on the load balancer target group
| TypeScript | apache-2.0 | PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder | typescript | ## Code Before:
import { Controller, Get } from "@nestjs/common";
import {
HealthCheck,
HealthCheckResult,
HealthCheckService,
TypeOrmHealthIndicator
} from "@nestjs/terminus";
import TopologyLoadedIndicator from "./topology-loaded.indicator";
@Controller("healthcheck")
export class HealthcheckController {
... |
40fa24348e271024c24ce73826dc8343f301b2ed | circle.yml | circle.yml | machine:
timezone: Europe/Berlin
environment:
PACKER_VERSION: 0.8.6
dependencies:
pre:
- >
sudo apt-get install -qq wget unzip &&
pushd /usr/bin &&
echo "Downloading packer ${PACKER_VERSION}..." &&
sudo wget --no-verbose https://dl.bintray.com/mitchellh/packer/packer_${PACKER_VER... | machine:
timezone: Europe/Paris
environment:
PACKER_VERSION: 0.8.6
dependencies:
pre:
- >
sudo apt-get install -qq wget unzip &&
pushd /usr/bin &&
echo "Downloading packer ${PACKER_VERSION}..." &&
sudo wget --no-verbose https://dl.bintray.com/mitchellh/packer/packer_${PACKER_VERS... | FIX CircleCI and packer validation | FIX CircleCI and packer validation
Signed-off-by: Nicolas Lamirault <57a11b2dec5b8363280015e1663433805cc2169e@gmail.com>
| YAML | apache-2.0 | portefaix/hyperion,nlamirault/hyperion,portefaix/hyperion-k8s | yaml | ## Code Before:
machine:
timezone: Europe/Berlin
environment:
PACKER_VERSION: 0.8.6
dependencies:
pre:
- >
sudo apt-get install -qq wget unzip &&
pushd /usr/bin &&
echo "Downloading packer ${PACKER_VERSION}..." &&
sudo wget --no-verbose https://dl.bintray.com/mitchellh/packer/pac... |
a6571c801c8811082552aa5ef425c7d11eafa0c9 | doc/project/jigsaw.quick.start.with.tests/test.base/src/test/java/module-info.java | doc/project/jigsaw.quick.start.with.tests/test.base/src/test/java/module-info.java | module test.base {
requires com.greetings;
requires org.astro;
requires org.junit.jupiter;
}
| module test.base {
requires com.greetings;
requires org.astro;
}
| Remove 3rd-party module requires for the time being | Remove 3rd-party module requires for the time being
| Java | mit | sormuras/bach,sormuras/bach | java | ## Code Before:
module test.base {
requires com.greetings;
requires org.astro;
requires org.junit.jupiter;
}
## Instruction:
Remove 3rd-party module requires for the time being
## Code After:
module test.base {
requires com.greetings;
requires org.astro;
}
|
ab244144ace1fa276e8fd4be8018ad839431e6f6 | .travis.yml | .travis.yml | language: php
php:
- 5.4
- 5.5
- hhvm
matrix:
allow_failures:
- php: hhvm
env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.4.*
- SYMFONY_VERSION=dev-master
before_script:
- composer require -n symfony/framework-bundle:${SYMFONY_VERSION}
- composer install -n --dev
script:
- mkdir -p build/l... | language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.7.*
- SYMFONY_VERSION=2.8.*
- SYMFONY_VERSION=dev-master
before_script:
- composer require -n symfony/framework-bundle:${SYMFONY_VERSION}
- composer install -n -... | Test with PHP 5.6 and Symfony 2.x LTS versions | Test with PHP 5.6 and Symfony 2.x LTS versions
| YAML | mit | argentumua/ArgentumTranslationBundle,argentumua/ArgentumTranslationBundle | yaml | ## Code Before:
language: php
php:
- 5.4
- 5.5
- hhvm
matrix:
allow_failures:
- php: hhvm
env:
- SYMFONY_VERSION=2.3.*
- SYMFONY_VERSION=2.4.*
- SYMFONY_VERSION=dev-master
before_script:
- composer require -n symfony/framework-bundle:${SYMFONY_VERSION}
- composer install -n --dev
script:
- ... |
b9f36b59de917e0c9c0220b25356bc27e7aab2c6 | index.js | index.js | var fs = require('fs');
if(Number(process.env.EXIT_ON_CHANGES_ENABLED)) {
console.log("[exit-on-changes] EXIT_ON_CHANGES_ENABLED");
fs.watch('.', {}, function(ev, filename) {
if(/\.(jsx?|es6?)$/.test(filename)) {
console.log("[exit-on-changes] Exiting after:", ev, filename);
process.exit(0);
}
})
}
| // Use chokidar instead of fs.watch because fs.watch doesn't watch recursively
var chokidar = require('chokidar');
if(Number(process.env.EXIT_ON_CHANGES_ENABLED)) {
console.log("[exit-on-changes] EXIT_ON_CHANGES_ENABLED");
var watcher = chokidar.watch('.', {ignoreInitial: true, ignorePermissionErrors: true});
watch... | Use chokidar instead of fs.watch because fs.watch doesn't watch recursively | Use chokidar instead of fs.watch because fs.watch doesn't watch recursively
| JavaScript | isc | ludios/exit-on-changes | javascript | ## Code Before:
var fs = require('fs');
if(Number(process.env.EXIT_ON_CHANGES_ENABLED)) {
console.log("[exit-on-changes] EXIT_ON_CHANGES_ENABLED");
fs.watch('.', {}, function(ev, filename) {
if(/\.(jsx?|es6?)$/.test(filename)) {
console.log("[exit-on-changes] Exiting after:", ev, filename);
process.exit(0);
... |
3efe6d3598a6df2902173508f36f2c3f729206c9 | README.md | README.md |
A Sass library for creating CSS transitions and animations from your friends at ZURB. Used by Foundation for Sites and Foundation for Apps.
## Running this repo
Requires Node.
```
git clone https://github.com/zurb/motion-ui.git
npm install
npm start
``` |
A Sass library for creating CSS transitions and animations from your friends at ZURB. Used by Foundation for Sites and Foundation for Apps.
## Settings
Motion UI's settings are stored in six Sass variables. Refer to the Motion UI documentation to see what each one does.
```scss
$motion-ui-classes: ();
$motion-ui-st... | Add explanations of settings, transitions, and animations to readme | Add explanations of settings, transitions, and animations to readme
| Markdown | mit | 2947721120/motion-ui,zurb/motion-ui,zurb/motion-ui,RedLucas/MotionUI | markdown | ## Code Before:
A Sass library for creating CSS transitions and animations from your friends at ZURB. Used by Foundation for Sites and Foundation for Apps.
## Running this repo
Requires Node.
```
git clone https://github.com/zurb/motion-ui.git
npm install
npm start
```
## Instruction:
Add explanations of settings, ... |
880b00a92ac86bb9a5d30392bafb2c019dab7b74 | test/unit/test_api_objects.py | test/unit/test_api_objects.py | import unittest
from fmcapi import api_objects
class TestApiObjects(unittest.TestCase):
def test_ip_host_required_for_put(self):
self.assertEqual(api_objects.IPHost.REQUIRED_FOR_PUT, ['id', 'name', 'value'])
| import mock
import unittest
from fmcapi import api_objects
class TestApiObjects(unittest.TestCase):
def test_ip_host_required_for_put(self):
self.assertEqual(api_objects.IPHost.REQUIRED_FOR_PUT, ['id', 'name', 'value'])
@mock.patch('fmcapi.api_objects.APIClassTemplate.parse_kwargs')
@mock.patch... | Add unit test to test for bad response on api delete | Add unit test to test for bad response on api delete
| Python | bsd-3-clause | daxm/fmcapi,daxm/fmcapi | python | ## Code Before:
import unittest
from fmcapi import api_objects
class TestApiObjects(unittest.TestCase):
def test_ip_host_required_for_put(self):
self.assertEqual(api_objects.IPHost.REQUIRED_FOR_PUT, ['id', 'name', 'value'])
## Instruction:
Add unit test to test for bad response on api delete
## Code ... |
2f93a98d4052807c2068ee48f42013e4295a26d6 | test/Rewriter/rewrite-typeof.mm | test/Rewriter/rewrite-typeof.mm | // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -o - %s
extern "C" {
extern "C" void *_Block_copy(const void *aBlock);
extern "C" void _Block_release(const void *aBlock);
}
int main() {
__attribute__((__blocks__(byref))) int a = 42;
int save_a = a;
void (^b)(void) = ^{
... | // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
// RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s
extern "C" {
extern "C" void *_Block_copy(const void *aBlock);
extern "C" void _Block_release(const void *aBlock);
}
int main() {
__attribute__((__blocks__(byref)... | Enhance test to check on expected rewritten output. | Enhance test to check on expected rewritten output.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@94368 91177308-0d34-0410-b5e6-96231b3b80d8
| Objective-C++ | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl... | objective-c++ | ## Code Before:
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -o - %s
extern "C" {
extern "C" void *_Block_copy(const void *aBlock);
extern "C" void _Block_release(const void *aBlock);
}
int main() {
__attribute__((__blocks__(byref))) int a = 42;
int save_a = a;
void (^b)(voi... |
b7e125c3b094cc5a97eddf9e1390e23f161e25bd | lib/blog/engine.rb | lib/blog/engine.rb | module Blog
class Engine < ::Rails::Engine
isolate_namespace Blog
initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths['db/migrate'].expanded.each do |expanded_path|
app.config.paths['db/migrate'] << expanded_path
end
end
end
... | module Blog
class Engine < ::Rails::Engine
isolate_namespace Blog
initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths['db/migrate'].expanded.each do |expanded_path|
app.config.paths['db/migrate'] << expanded_path
end
end
end
... | Add lib to autoload paths | Add lib to autoload paths
| Ruby | mit | moneyadviceservice/marketing-blog,moneyadviceservice/marketing-blog,moneyadviceservice/marketing-blog,moneyadviceservice/marketing-blog | ruby | ## Code Before:
module Blog
class Engine < ::Rails::Engine
isolate_namespace Blog
initializer :append_migrations do |app|
unless app.root.to_s.match root.to_s
config.paths['db/migrate'].expanded.each do |expanded_path|
app.config.paths['db/migrate'] << expanded_path
end
... |
adf38e04d6ab3cc29c6efd69306522085c399864 | app/soc/templates/soc/organization/public.html | app/soc/templates/soc/organization/public.html | {% extends "soc/group/public.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | {% extends "soc/group/public.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | Add a link to an org's home page if appropriate | Add a link to an org's home page if appropriate
Patch by: Sverre Rabbelier
| HTML | apache-2.0 | MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging | html | ## Code Before:
{% extends "soc/group/public.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
fc92507b84a04d258f985dc86430a8e663755b94 | push_to_docker.sh | push_to_docker.sh |
VERSION=$(cat version.txt)
docker build -t khan .
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker tag khan:latest tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
docker push tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
|
VERSION=$(cat version.txt)
docker build -t khan .
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker tag khan:latest tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
docker push tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
DOCKERHUB_LATEST=$(python get_latest_tag.py)
if [ "$DOCKERHUB_LATEST" != ... | Validate that latest version is indeed in repository | Validate that latest version is indeed in repository
| Shell | mit | topfreegames/khan,topfreegames/khan,topfreegames/khan | shell | ## Code Before:
VERSION=$(cat version.txt)
docker build -t khan .
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
docker tag khan:latest tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
docker push tfgco/khan:$VERSION.$TRAVIS_BUILD_NUMBER
## Instruction:
Validate that latest version is indeed in ... |
9f685541120f07ac6723b88c8c37f6ef21126a47 | setup.py | setup.py | from setuptools import setup
version = "0.1.0"
setup(name='metric_learn',
version=version,
description='Python implementations of metric learning algorithms',
author='CJ Carey',
author_email='ccarey@cs.umass.edu',
url='http://github.com/all-umass/metric_learn',
license='MIT',
... | from setuptools import setup
version = "0.1.0"
setup(name='metric_learn',
version=version,
description='Python implementations of metric learning algorithms',
author='CJ Carey',
author_email='ccarey@cs.umass.edu',
url='http://github.com/all-umass/metric_learn',
license='MIT',
... | Remove version constraints on numpy/scipy | Remove version constraints on numpy/scipy
| Python | mit | all-umass/metric-learn,terrytangyuan/metric-learn,tigerneil/metric-learn,xuanhan863/metric-learn,Snazz2001/metric-learn,JingheZ/metric-learn | python | ## Code Before:
from setuptools import setup
version = "0.1.0"
setup(name='metric_learn',
version=version,
description='Python implementations of metric learning algorithms',
author='CJ Carey',
author_email='ccarey@cs.umass.edu',
url='http://github.com/all-umass/metric_learn',
licen... |
a92add28b227482845874f3b4b3564d7f1226cfb | README.md | README.md |
DOM functions, methods and objects that are not part of the DOM standard.
## Installation
Can be used in any environment that provides DOM implementation.
### NPM:
$ npm install dom-ext
### Browser:
For browser, you can create custom toolset with help of
[modules-webmake](https://github.com/medikoo/modules-webm... |
DOM functions, methods and objects that are not part of the DOM standard.
## Installation
Can be used in any environment that provides DOM implementation.
### NPM:
$ npm install dom-ext
### Browser:
For browser, you can create custom toolset with help of
[modules-webmake](https://github.com/medikoo/modules-webm... | Update Travis CI badge link | Update Travis CI badge link
| Markdown | mit | medikoo/dom-ext | markdown | ## Code Before:
DOM functions, methods and objects that are not part of the DOM standard.
## Installation
Can be used in any environment that provides DOM implementation.
### NPM:
$ npm install dom-ext
### Browser:
For browser, you can create custom toolset with help of
[modules-webmake](https://github.com/medi... |
39355a9b927be0fb0462edffd119b3bdb071c0fd | app.yaml | app.yaml | runtime: nodejs
env: flexible
threadsafe: true
automatic_scaling:
min_num_instances: 4
max_num_instances: 100
cpu_utilization:
target_utilization: 0.8
| runtime: nodejs
env: flexible
threadsafe: true
automatic_scaling:
min_num_instances: 4
max_num_instances: 100
cpu_utilization:
target_utilization: 0.8
liveness_check:
path: "/_ah/health"
readiness_check:
path: "/_ah/health"
| Configure new split health checks | Configure new split health checks
| YAML | apache-2.0 | ampproject/error-tracker | yaml | ## Code Before:
runtime: nodejs
env: flexible
threadsafe: true
automatic_scaling:
min_num_instances: 4
max_num_instances: 100
cpu_utilization:
target_utilization: 0.8
## Instruction:
Configure new split health checks
## Code After:
runtime: nodejs
env: flexible
threadsafe: true
automatic_scaling:
min_num_... |
a4e8cadf8ce9e38dfe003813d40a2f83e1832eab | .github/workflows/test.yml | .github/workflows/test.yml | name: Test
on: [push, pull_request]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install ninja-build
- na... | name: Test
on: [push, pull_request]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build
run: |
cmake . -B build -DENABLE_TESTS=ON
make -C build
- name: Test
run: ... | Build using make, avoiding apt-get altogether | Build using make, avoiding apt-get altogether
| YAML | unlicense | gilzoide/pega-texto,gilzoide/pega-texto | yaml | ## Code Before:
name: Test
on: [push, pull_request]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install ninja-... |
9149bd2c3a9a443367b31bc99c55b69cb60e920b | IRKit/IRKit/IRHTTPJSONOperation.h | IRKit/IRKit/IRHTTPJSONOperation.h | //
// IRHTTPJSONOperation.h
// IRKit
//
// Created by Masakazu Ohtsuka on 2013/12/02.
//
//
#import "ISHTTPOperation.h"
@interface IRHTTPJSONOperation : ISHTTPOperation
@end
| //
// IRHTTPJSONOperation.h
// IRKit
//
// Created by Masakazu Ohtsuka on 2013/12/02.
//
//
// #import "ISHTTPOperation.h"
@import ISHTTPOperation;
@interface IRHTTPJSONOperation : ISHTTPOperation
@end
| Fix again error: include of non-modular header inside framework module | Fix again error: include of non-modular header inside framework module
| C | mit | irkit/ios-sdk | c | ## Code Before:
//
// IRHTTPJSONOperation.h
// IRKit
//
// Created by Masakazu Ohtsuka on 2013/12/02.
//
//
#import "ISHTTPOperation.h"
@interface IRHTTPJSONOperation : ISHTTPOperation
@end
## Instruction:
Fix again error: include of non-modular header inside framework module
## Code After:
//
// IRHTTPJSONOp... |
fd87d09b03be003dcd13d778c175f796c4fdf7d6 | test_http2_server.py | test_http2_server.py | from echo_client import client
def test_ok():
response = client('GET a_web_page.html HTTP/1.1').split('\r\n')
first_line = response[0]
assert first_line == 'HTTP/1.1 200 OK'
def test_body():
response = client('GET sample.txt HTTP/1.1').split('\r\n')
body = response[4]
assert 'This is a very ... | from echo_client import client
def test_ok():
response = client('GET a_web_page.html HTTP/1.1').split('\r\n')
first_line = response[0]
assert first_line == 'HTTP/1.1 200 OK'
def test_body():
response = client('GET sample.txt HTTP/1.1').split('\r\n')
body = response[4]
assert 'This is a very ... | Change directory test to look for link, rather than just file name | Change directory test to look for link, rather than just file name
| Python | mit | jwarren116/network-tools,jwarren116/network-tools | python | ## Code Before:
from echo_client import client
def test_ok():
response = client('GET a_web_page.html HTTP/1.1').split('\r\n')
first_line = response[0]
assert first_line == 'HTTP/1.1 200 OK'
def test_body():
response = client('GET sample.txt HTTP/1.1').split('\r\n')
body = response[4]
assert ... |
181e7cd8c913a5250b9468a94bd8686e3b914620 | src/components/hptrack.jsx | src/components/hptrack.jsx | import React from 'react';
import HpBlock from './hpblock';
import Button from './button';
import helpers from '../utilities/helpers';
// import style from '../style/hptrack.css';
export default function HpTrack(props) {
const { calculateHp, setSelectedMonster } = props;
const blocks = props.monsters.map((monster,... | import React from 'react';
import HpBlock from './hpblock';
import Button from './button';
import ButtonClose from './button-close';
import helpers from '../utilities/helpers';
import style from '../style/hptrack.css';
export default function HpTrack(props) {
const { calculateHp, deleteMonster, setSelectedMonster } ... | Add delete button and function | Add delete button and function
| JSX | mit | jkrayer/summoner,jkrayer/summoner | jsx | ## Code Before:
import React from 'react';
import HpBlock from './hpblock';
import Button from './button';
import helpers from '../utilities/helpers';
// import style from '../style/hptrack.css';
export default function HpTrack(props) {
const { calculateHp, setSelectedMonster } = props;
const blocks = props.monste... |
7b366cc9e2844b805d0288bb86c0b3e53e554fee | packages/as/ast-monad.yaml | packages/as/ast-monad.yaml | homepage: https://github.com/mouri111/ast-monad#readme
changelog-type: ''
hash: 677616d2b7ebc0787bc947577f5f40c9f0e2f5948eb39ea38682740af7784952
test-bench-deps:
base: -any
ast-monad: -any
maintainer: 8128jp@gmail.com
synopsis: A library for constructing AST by using do-notation
changelog: ''
basic-deps:
base: ! ... | homepage: https://github.com/mouri111/ast-monad#readme
changelog-type: ''
hash: 43f0394c4465cfd294666ff976242093e8b5f4b0e0322055250cf8e26fb53e8c
test-bench-deps:
base: -any
ast-monad: -any
maintainer: 8128jp@gmail.com
synopsis: A library for constructing AST by using do-notation
changelog: ''
basic-deps:
base: ! ... | Update from Hackage at 2018-10-20T22:35:07Z | Update from Hackage at 2018-10-20T22:35:07Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/mouri111/ast-monad#readme
changelog-type: ''
hash: 677616d2b7ebc0787bc947577f5f40c9f0e2f5948eb39ea38682740af7784952
test-bench-deps:
base: -any
ast-monad: -any
maintainer: 8128jp@gmail.com
synopsis: A library for constructing AST by using do-notation
changelog: ''
basic-... |
a2572b792d8f10f231895ede9e2373a370d2be1f | README.md | README.md |
A website for the founders and coders freelance agency
### todo:
Sections:
+ Landing Section (illustration and description?)
+ Contact Section
+ Our work / testimonials
+ Our service (what we can do for you)
+ Team
### Quick start
To get started run:
`git clone https://github.com/foundersandcoders/freelance-webs... |
A website for the founders and coders freelance agency
### Quick start
To get started run:
`git clone https://github.com/foundersandcoders/freelance-website.git && cd freelance-website`
To see the current state of the site simply run:
`open index.html`
#### For Development
##### Setting up
Ensure you have harp... | Remove the todo section, putting it into issues instead, changing a rule | Remove the todo section, putting it into issues instead, changing a rule
| Markdown | mit | fac-freelancers/website,fac-freelancers/website,fac-freelancers/website | markdown | ## Code Before:
A website for the founders and coders freelance agency
### todo:
Sections:
+ Landing Section (illustration and description?)
+ Contact Section
+ Our work / testimonials
+ Our service (what we can do for you)
+ Team
### Quick start
To get started run:
`git clone https://github.com/foundersandcoder... |
56dd0e473548f35e6cd9936c2737c32e195d05bc | .travis.yml | .travis.yml | language: cpp
dist: trusty
before_install:
- sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded -y
- sudo apt-get update -qq
- sudo apt-get install -y gcc-arm-none-eabi
script: ./go.sh setup && ./go.sh build-host && ./go.sh test-host && ./go.sh build-target
| language: cpp
dist: trusty
before_install:
- sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded -y
- sudo apt-get update -qq
- sudo apt-get install -y gcc-arm-none-eabi
install:
- cmake -version
script: ./go.sh setup && ./go.sh build-host && ./go.sh test-host && ./go.sh build-target
| Print CMake version during build to help diagnose issues. | Print CMake version during build to help diagnose issues.
| YAML | mit | charleskorn/stm32f4-project-template,charleskorn/stm32f4-project-template,charleskorn/stm32f4-project-template | yaml | ## Code Before:
language: cpp
dist: trusty
before_install:
- sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded -y
- sudo apt-get update -qq
- sudo apt-get install -y gcc-arm-none-eabi
script: ./go.sh setup && ./go.sh build-host && ./go.sh test-host && ./go.sh build-target
## Instruction:
Print CMake versi... |
9e393952df103184e840c8957a545d121323bd2b | opennms-webapp/src/main/java/org/opennms/web/svclayer/DistributedStatusService.java | opennms-webapp/src/main/java/org/opennms/web/svclayer/DistributedStatusService.java | package org.opennms.web.svclayer;
import java.util.Date;
public interface DistributedStatusService {
public SimpleWebTable createStatusTable(String locationName, String applicationLabel);
public SimpleWebTable createFacilityStatusTable(Date startDate, Date endDate);
}
| package org.opennms.web.svclayer;
import java.util.Date;
import org.springframework.transaction.annotation.Transactional;
@Transactional(readOnly=true)
public interface DistributedStatusService {
public SimpleWebTable createStatusTable(String locationName, String applicationLabel);
public SimpleWebTable... | Make the service layer transactional (and read-only) | Make the service layer transactional (and read-only)
| Java | agpl-3.0 | roskens/opennms-pre-github,aihua/opennms,aihua/opennms,rdkgit/opennms,roskens/opennms-pre-github,aihua/opennms,tdefilip/opennms,aihua/opennms,rdkgit/opennms,roskens/opennms-pre-github,tdefilip/opennms,tdefilip/opennms,roskens/opennms-pre-github,rdkgit/opennms,aihua/opennms,roskens/opennms-pre-github,tdefilip/opennms,ro... | java | ## Code Before:
package org.opennms.web.svclayer;
import java.util.Date;
public interface DistributedStatusService {
public SimpleWebTable createStatusTable(String locationName, String applicationLabel);
public SimpleWebTable createFacilityStatusTable(Date startDate, Date endDate);
}
## Instruction:
Mak... |
90eddb3c7d49a917aaf69542cce39ac2545f4a1f | README.md | README.md | This package contains a django template parser that can be used to find templates
that contain variables that will not be escaped. This package currently has
no knowledge of custom filters, custom tags, and python code (e.g. uses of
mark safe). The code has only been tested against django 1.5 and 1.6(alpha 1).
## Requ... | This package contains a django template parser that can be used to find templates
that contain variables that will not be escaped. This package currently has
no knowledge of custom filters, custom tags, and python code (e.g. uses of
mark safe). The code has only been tested against django versions >= 1.5 and <= 1.7(bet... | Update the the readme 'tested against' django version range information to include 1.7b1. | Update the the readme 'tested against' django version range information to include 1.7b1.
Signed-off-by: David Black <c4b737561a711e07c31fd1e1811f33a5d770e31c@atlassian.com>
| Markdown | bsd-2-clause | dbaxa/django_xss_detection,dbaxa/django_xss_detection | markdown | ## Code Before:
This package contains a django template parser that can be used to find templates
that contain variables that will not be escaped. This package currently has
no knowledge of custom filters, custom tags, and python code (e.g. uses of
mark safe). The code has only been tested against django 1.5 and 1.6(al... |
f7e45f3beffc8271e809ff7a2572258e8e79c0bd | ChangeLog.md | ChangeLog.md |
*
## v1.0.1 (2012-05-22)
*
## v1.0.0 (2012-05-22)
*
## v0.1.4 (2012-05-18)
*
## v0.1.2 (2012-05-17)
*
## v0.1.2 (2012-05-17)
* Like Torchwood, The Colbert Report, and The Cleveland Show, start CloudClient's new life as a spin-off.
|
*
## v1.0.1 (2012-05-22)
* Includes fixes for deployment test harness used by this gem and engineyard gem
## v1.0.0 (2012-05-22)
* First attempt at a real release.
* Provides all the functionality that is needed for engineyard gem to operate.
* Like Torchwood, The Colbert Report, and The Cleveland Show, ... | Improve the changelog for the last few releases | Improve the changelog for the last few releases
| Markdown | mit | jimneath/engineyard-cloud-client,engineyard/engineyard-cloud-client | markdown | ## Code Before:
*
## v1.0.1 (2012-05-22)
*
## v1.0.0 (2012-05-22)
*
## v0.1.4 (2012-05-18)
*
## v0.1.2 (2012-05-17)
*
## v0.1.2 (2012-05-17)
* Like Torchwood, The Colbert Report, and The Cleveland Show, start CloudClient's new life as a spin-off.
## Instruction:
Improve the changelog for the la... |
a9e128d4a60ffc4641f4436a4d5f98a77a191683 | src/components/note_edit/section_add_bar.jsx | src/components/note_edit/section_add_bar.jsx | "use strict";
var React = require('react')
module.exports = React.createClass({
displayName: 'NoteSectionAddBar',
render: function () {
var handles = require('./section_handles.jsx')
return (
<div id="section-add-bar-container">
<div id="citation-edit-bar" style={{ overflow: "auto" }}>
... | "use strict";
var React = require('react')
module.exports = React.createClass({
displayName: 'NoteSectionAddBar',
getInitialState: function () {
return { sticky: false }
},
componentDidMount: function () {
window.addEventListener('scroll', this.handleScroll);
this.handleScroll();
},
componentD... | Make section add bar sticky | Make section add bar sticky
| JSX | agpl-3.0 | editorsnotes/editorsnotes-renderer | jsx | ## Code Before:
"use strict";
var React = require('react')
module.exports = React.createClass({
displayName: 'NoteSectionAddBar',
render: function () {
var handles = require('./section_handles.jsx')
return (
<div id="section-add-bar-container">
<div id="citation-edit-bar" style={{ overflow:... |
1aba7bc4aed9c1cf4937e4b09eddb3e12e48b7de | plugin.xml | plugin.xml | <?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="org.transistorsoft.cordova.background-notification"
version="0.1.0">
<name>CDVBackgroundNotification</name>
<description>Cordova Background Notification Plugin</description>
<license>MIT</lice... | <?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="org.transistorsoft.cordova.background-notification"
version="0.1.0">
<name>CDVBackgroundNotification</name>
<description>Cordova Background Notification Plugin</description>
<license>MIT</lice... | Move jsmodule element into ios container | Move jsmodule element into ios container
| XML | mit | christocracy/cordova-plugin-background-notification | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="org.transistorsoft.cordova.background-notification"
version="0.1.0">
<name>CDVBackgroundNotification</name>
<description>Cordova Background Notification Plugin</description>
<l... |
2d45aeb4653d3255adf66590d49ebe4436179352 | .config/nvim/plug.vim | .config/nvim/plug.vim | " Main plugins
Plug 'w0rp/ale'
Plug 'jiangmiao/auto-pairs'
Plug 'jlanzarotta/bufexplorer'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --bin'}
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
Plug 'preservim/nerdt... | " Main plugins
Plug 'w0rp/ale'
Plug 'jiangmiao/auto-pairs'
Plug 'jlanzarotta/bufexplorer'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --bin'}
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
Plug 'preservim/nerdt... | Add path to show git status | Add path to show git status
| VimL | mit | spapanik/configuration,spapanik/configuration | viml | ## Code Before:
" Main plugins
Plug 'w0rp/ale'
Plug 'jiangmiao/auto-pairs'
Plug 'jlanzarotta/bufexplorer'
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --bin'}
Plug 'autozimu/LanguageClient-neovim', {'branch': 'next', 'do': 'bash install.sh'}
Plug ... |
70f68a2afa83a5c9f199eaef7e4f541f5cf24119 | cookbooks/bcpc_kafka/recipes/zookeeper_server.rb | cookbooks/bcpc_kafka/recipes/zookeeper_server.rb |
include_recipe 'bcpc_kafka::default'
node.default[:bcpc][:hadoop][:kerberos][:enable] = false
include_recipe 'bcpc-hadoop::zookeeper_server'
include_recipe 'bcpc::diamond'
include_recipe 'bcpc_jmxtrans'
|
include_recipe 'bcpc_kafka::default'
# For the time being, this will have to be force_override.
node.force_override[:bcpc][:hadoop][:kerberos][:enable] = false
include_recipe 'bcpc-hadoop::zookeeper_server'
include_recipe 'bcpc::diamond'
include_recipe 'bcpc_jmxtrans'
| Raise kafka_bcpc kerberos override precedence level to force_override | Raise kafka_bcpc kerberos override precedence level to force_override
| Ruby | apache-2.0 | amithkanand/chef-bach,http-418/chef-bach,leochen4891/chef-bach,http-418/chef-bach,leochen4891/chef-bach,kiiranh/chef-bach,pu239ppy/chef-bach,cbaenziger/chef-bach,kiiranh/chef-bach,http-418/chef-bach,amithkanand/chef-bach,pu239ppy/chef-bach,http-418/chef-bach,pu239ppy/chef-bach,NinjaLabib/chef-bach,amithkanand/chef-bach... | ruby | ## Code Before:
include_recipe 'bcpc_kafka::default'
node.default[:bcpc][:hadoop][:kerberos][:enable] = false
include_recipe 'bcpc-hadoop::zookeeper_server'
include_recipe 'bcpc::diamond'
include_recipe 'bcpc_jmxtrans'
## Instruction:
Raise kafka_bcpc kerberos override precedence level to force_override
## Code Af... |
e8814f53010ddd923fddf198d567210ea4a595fb | lib/simple_calendar/week_calendar.rb | lib/simple_calendar/week_calendar.rb | module SimpleCalendar
class WeekCalendar < Calendar
def date_range
@date_range ||= begin
number_of_weeks = options.fetch(:number_of_weeks, 1)
number_of_days = (number_of_weeks * 7) - 1
starting_day = start_date.beginning_o... | module SimpleCalendar
class WeekCalendar < Calendar
def date_range
@date_range ||= begin
number_of_weeks = options.fetch(:number_of_weeks, 1)
number_of_days = (number_of_weeks * 7) - 1
starting_day = start_date.beginning_o... | Fix calculation for previous week in week calendars | Fix calculation for previous week in week calendars
| Ruby | mit | excid3/simple_calendar,TuxmAL/simple_calendar,sdbeng/simple_calendar,timshingyu/simple_calendar,rodrigoargumedo/simple_calendar,rodrigoargumedo/simple_calendar,sdbeng/simple_calendar,sdbeng/simple_calendar,timshingyu/simple_calendar,rodrigoargumedo/simple_calendar,excid3/simple_calendar,excid3/simple_calendar,TuxmAL/si... | ruby | ## Code Before:
module SimpleCalendar
class WeekCalendar < Calendar
def date_range
@date_range ||= begin
number_of_weeks = options.fetch(:number_of_weeks, 1)
number_of_days = (number_of_weeks * 7) - 1
starting_day = start_... |
b28fff45624b0318ab0a8fcaa0b1741090d85dba | lib/spree_komoju/controller_helpers.rb | lib/spree_komoju/controller_helpers.rb | module SpreeKomoju
module ControllerHelpers
def permitted_source_attributes
super.push(permitted_komoju_konbini_attributes)
super.push(permitted_komoju_banktransfer_attributes)
super.push(permitted_komoju_pay_easy_attributes)
super.push(permitted_komoju_web_money_attributes)
super.fl... | module SpreeKomoju
module ControllerHelpers
extend ActiveSupport::Concern
included do
before_action :add_request_env_to_payments, only: :update
end
def permitted_source_attributes
super.push(permitted_komoju_konbini_attributes)
super.push(permitted_komoju_banktransfer_attributes)
... | Include request headers in payments | Include request headers in payments
| Ruby | bsd-3-clause | komoju/spree_komoju,komoju/spree_komoju | ruby | ## Code Before:
module SpreeKomoju
module ControllerHelpers
def permitted_source_attributes
super.push(permitted_komoju_konbini_attributes)
super.push(permitted_komoju_banktransfer_attributes)
super.push(permitted_komoju_pay_easy_attributes)
super.push(permitted_komoju_web_money_attributes... |
9117c9b55ff9993d10c9841a4eac8b95be74716f | core/src/main/java/arez/annotations/package-info.java | core/src/main/java/arez/annotations/package-info.java | /**
* This package contains annotations used by the annotation processor to generate model elements.
*/
package arez.annotations;
| /**
* This package contains annotations used by the annotation processor to generate model elements.
*/
@OmitPattern
package arez.annotations;
import grim.annotations.OmitPattern;
| Make sure package is never output to Javascript | Make sure package is never output to Javascript
| Java | apache-2.0 | realityforge/arez,realityforge/arez,realityforge/arez | java | ## Code Before:
/**
* This package contains annotations used by the annotation processor to generate model elements.
*/
package arez.annotations;
## Instruction:
Make sure package is never output to Javascript
## Code After:
/**
* This package contains annotations used by the annotation processor to generate model... |
b06209f3ae10b40acb5658325da83d3667efb8b9 | .chef/bootstrap/rubygems-trusty.erb | .chef/bootstrap/rubygems-trusty.erb | bash -c '
echo <%= @config[:chef_node_name] %> > /etc/hostname
hostname -F /etc/hostname
echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts
apt-get update
apt-get upgrade -y
mkdir -p /etc/chef
# Setup the validation key.
(
cat <<'EOP'
<%= IO.read(Chef::... | bash -c '
echo <%= @config[:chef_node_name] %> > /etc/hostname
hostname -F /etc/hostname
echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts
apt-get update
apt-get upgrade -y
mkdir -p /etc/chef
# Setup the validation key.
(
cat <<'EOP'
<%= IO.read(Chef::... | Set ssl_verify_mode before the first chef run takes place | Set ssl_verify_mode before the first chef run takes place
| HTML+ERB | mit | rubygems/rubygems-infrastructure,mbrukman/rubygems-infrastructure,rubygems/rubygems-infrastructure,indirect/rubygems-infrastructure,rubygems/rubygems-infrastructure,mbrukman/rubygems-infrastructure,indirect/rubygems-infrastructure,indirect/rubygems-infrastructure,mbrukman/rubygems-infrastructure,mbrukman/rubygems-infra... | html+erb | ## Code Before:
bash -c '
echo <%= @config[:chef_node_name] %> > /etc/hostname
hostname -F /etc/hostname
echo "`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1` `cat /etc/hostname`" >> /etc/hosts
apt-get update
apt-get upgrade -y
mkdir -p /etc/chef
# Setup the validation key.
(
cat <<'EOP'
<%... |
23663f5e177e8f7bb8b04d2da1349038bac7e381 | CONTRIBUTING.md | CONTRIBUTING.md | jpmobile-ipaddressesとjpmobile-terminfoのgemをインストールしていない場合。
- `git clone git@github.com:jpmobile/jpmobile.git`
- `bundle install`
- `cd vendor`
- `git clone git@github.com:jpmobile/jpmobile-ipaddresses.git`
- `git clone git@github.com:jpmobile/jpmobile-terminfo.git`
## テストに必要なgemパッケージ
テストを実行するためには以下のgemパッケージが必要です。
* ra... | jpmobile-ipaddressesとjpmobile-terminfoのgemをインストールしていない場合。
- `git clone git@github.com:jpmobile/jpmobile.git`
- `bundle install`
- `cd vendor`
- `git clone git@github.com:jpmobile/jpmobile-ipaddresses.git`
- `git clone git@github.com:jpmobile/jpmobile-terminfo.git`
## テスト
テストにはSMTP通信を行うものも含まれるため、
[koseki-mocksmtpd](ht... | Add description about smtpd mock in test | Add description about smtpd mock in test
| Markdown | mit | jpmobile/jpmobile,matsu911/jpmobile,asonas/jpmobile,jpmobile/jpmobile,asonas/jpmobile,sunny4381/jpmobile,matsu911/jpmobile,yui-knk/jpmobile,sunny4381/jpmobile,xibbar/jpmobile,yui-knk/jpmobile,xibbar/jpmobile | markdown | ## Code Before:
jpmobile-ipaddressesとjpmobile-terminfoのgemをインストールしていない場合。
- `git clone git@github.com:jpmobile/jpmobile.git`
- `bundle install`
- `cd vendor`
- `git clone git@github.com:jpmobile/jpmobile-ipaddresses.git`
- `git clone git@github.com:jpmobile/jpmobile-terminfo.git`
## テストに必要なgemパッケージ
テストを実行するためには以下のgem... |
350fae506551b9f72244ae41dda8e0cb2a9367ac | docs/notes/README.md | docs/notes/README.md | [Oboe Docs Home](https://github.com/google/oboe/blob/master/docs/README.md)
# Oboe Tech Notes
| [Oboe Docs Home](https://github.com/google/oboe/blob/master/docs/README.md)
# Oboe Tech Notes
* [Disconnected Streams](disconnect.md)
| Add link to disconnected tech note | Add link to disconnected tech note | Markdown | apache-2.0 | google/oboe,google/oboe,google/oboe,google/oboe,google/oboe,google/oboe | markdown | ## Code Before:
[Oboe Docs Home](https://github.com/google/oboe/blob/master/docs/README.md)
# Oboe Tech Notes
## Instruction:
Add link to disconnected tech note
## Code After:
[Oboe Docs Home](https://github.com/google/oboe/blob/master/docs/README.md)
# Oboe Tech Notes
* [Disconnected Streams](disconnect.md)
|
ee6c7caabdfcd0bddd9b92d05cddd8b6be7cbe10 | tests/functional/test_pip_runner_script.py | tests/functional/test_pip_runner_script.py | import os
from pathlib import Path
from pip import __version__
from tests.lib import PipTestEnvironment
def test_runner_work_in_environments_with_no_pip(
script: PipTestEnvironment, pip_src: Path
) -> None:
runner = pip_src / "src" / "pip" / "__pip-runner__.py"
# Ensure there's no pip installed in the e... | import os
from pathlib import Path
from pip import __version__
from tests.lib import PipTestEnvironment
def test_runner_work_in_environments_with_no_pip(
script: PipTestEnvironment, pip_src: Path
) -> None:
runner = pip_src / "src" / "pip" / "__pip-runner__.py"
# Ensure there's no pip installed in the e... | Fix test_runner_work_in_environments_with_no_pip to work under --use-zipapp | Fix test_runner_work_in_environments_with_no_pip to work under --use-zipapp
| Python | mit | pradyunsg/pip,pypa/pip,pfmoore/pip,pfmoore/pip,sbidoul/pip,pradyunsg/pip,sbidoul/pip,pypa/pip | python | ## Code Before:
import os
from pathlib import Path
from pip import __version__
from tests.lib import PipTestEnvironment
def test_runner_work_in_environments_with_no_pip(
script: PipTestEnvironment, pip_src: Path
) -> None:
runner = pip_src / "src" / "pip" / "__pip-runner__.py"
# Ensure there's no pip in... |
8749936957069bedb379a156fed4ee816bae9b9a | qr.dart | qr.dart | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@PluginInstance()
Plugin plugin;
@BotInstance()
BotConnector bot;
@Command("qr", description: "Generate QR Codes", usage: "<input>")
qr(CommandEvent event) => event.transform((input) {
return shortenUrl("https://chart.google... | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@PluginInstance()
Plugin plugin;
@BotInstance()
BotConnector bot;
@Command("qr", description: "Generate QR Codes", usage: "<input>")
qr(CommandEvent event) => event.transform((input) {
return shortenUrl("https://api.qrserver... | Use a different QR Generator API | Use a different QR Generator API | Dart | mit | PolymorphicBot/scripts | dart | ## Code Before:
import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@PluginInstance()
Plugin plugin;
@BotInstance()
BotConnector bot;
@Command("qr", description: "Generate QR Codes", usage: "<input>")
qr(CommandEvent event) => event.transform((input) {
return shortenUrl("http... |
178c25714aaae056c115f1580f19d833486a54ac | datapipe/targets/objects.py | datapipe/targets/objects.py | from ..target import Target
import hashlib
import dill
import joblib
class PyTarget(Target):
def __init__(self, name, obj=None):
self._name = name
self._obj = obj
super(PyTarget, self).__init__()
if not obj is None:
self.set(obj)
def identifier(self):
return... | from ..target import Target
import hashlib
import dill
import joblib
class PyTarget(Target):
def __init__(self, name, obj=None):
self._name = name
self._obj = obj
super(PyTarget, self).__init__()
if not obj is None:
self.set(obj)
def identifier(self):
return... | Make PyTarget object work again | Make PyTarget object work again
We now save a base64 encoded pickled version of the object.
| Python | mit | ibab/datapipe | python | ## Code Before:
from ..target import Target
import hashlib
import dill
import joblib
class PyTarget(Target):
def __init__(self, name, obj=None):
self._name = name
self._obj = obj
super(PyTarget, self).__init__()
if not obj is None:
self.set(obj)
def identifier(self)... |
db2725d56217b4922f0d398c110f07c2276319e6 | packages/telescope-users/lib/server/create_user.js | packages/telescope-users/lib/server/create_user.js | Accounts.onCreateUser(function(options, user){
user = Telescope.callbacks.run("onCreateUser", user, options);
// get facebook profile picture
if (options.profile) {
if(user.services.facebook)
{
options.profile.picture = "http://graph.facebook.com/" + user.services.facebook.id + "/picture... | Accounts.onCreateUser(function(options, user){
user = Telescope.callbacks.run("onCreateUser", user, options);
// get facebook profile picture
if (options.profile) {
if(user.services.facebook)
{
options.profile.picture = "http://graph.facebook.com/" + user.services.facebook.id + "/picture... | Fix undefined telescope on createUser | Fix undefined telescope on createUser
| JavaScript | mit | maxtor3569/Telescope,maxtor3569/Telescope,maxtor3569/Telescope | javascript | ## Code Before:
Accounts.onCreateUser(function(options, user){
user = Telescope.callbacks.run("onCreateUser", user, options);
// get facebook profile picture
if (options.profile) {
if(user.services.facebook)
{
options.profile.picture = "http://graph.facebook.com/" + user.services.faceboo... |
2e67459fc5dc7a6d97969397524ede487fd2bbde | .travis.yml | .travis.yml | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
services:
- mongodb
install:
- "pip install coverage"
- "pip install nose"
- "pip install coveralls"
- "pip install -e ."
script: "python setup.py nosetests --with-coverage --cover-package=depot --cover-erase"
after_success:
cove... | language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
services:
- mongodb
secure: "AOD+7FtWk9oHqLwtbS/aCoKNPsYA/uNsC9N3js7UZO7/5qQAYzvYvWiEiRUAtI620+hsAyTd8hyHZkI7Yk+BFqtdA1XWbDIjYam5WI2euW2ME+FtokxyT3LoLu2fNAabMaNdru0JxSThW+bOurFwshRDEwxvkAgAkgZIMashMVs="
secure: "Ub7LbB1M9Uh1qBXZTyOyP65bgZrn6... | Make the testsuite run on AWS | Make the testsuite run on AWS
| YAML | mit | miraculixx/depot,amol-/depot,eprikazc/depot,miraculixx/depot,rlam3/depot | yaml | ## Code Before:
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
services:
- mongodb
install:
- "pip install coverage"
- "pip install nose"
- "pip install coveralls"
- "pip install -e ."
script: "python setup.py nosetests --with-coverage --cover-package=depot --cover-erase"
after... |
da586b12e5e4220994f5041f65281ca99f6db4b3 | wordpress/wp-content/themes/enigma-child/style.css | wordpress/wp-content/themes/enigma-child/style.css | /*
Theme Name: Ubuntu Slovenija Wordpress Theme
Theme URI: http://ubuntu.si/
Description: Child theme for Ubuntu.si based on the Enigma theme
Author: Andrej Mernik
Author URI: http://andrej.mernik.eu
Template: enigma
Version: 0.0.1
License: GNU General Public License v3 or later
Lic... | /*
Theme Name: Ubuntu Slovenija Wordpress Theme
Theme URI: http://ubuntu.si/
Description: Child theme for Ubuntu.si based on the Enigma theme
Author: Andrej Mernik
Author URI: http://andrej.mernik.eu
Template: enigma
Version: 0.0.1
License: GNU General Public License v3 or later
Lic... | Make navbar smaller, override borders and reset container paddings | Make navbar smaller, override borders and reset container paddings
| CSS | mit | ubuntu-si/ubuntu.si,ubuntu-si/ubuntu.si,ubuntu-si/ubuntu.si,ubuntu-si/ubuntu.si | css | ## Code Before:
/*
Theme Name: Ubuntu Slovenija Wordpress Theme
Theme URI: http://ubuntu.si/
Description: Child theme for Ubuntu.si based on the Enigma theme
Author: Andrej Mernik
Author URI: http://andrej.mernik.eu
Template: enigma
Version: 0.0.1
License: GNU General Public License ... |
882ea5cb70f75d51cc0c8305baf7380a1d7d7954 | setup.py | setup.py |
from setuptools import setup
import i18n
setup(
name='edx-i18n-tools',
version='0.3.3',
description='edX Internationalization Tools',
author='edX',
author_email='oscm@edx.org',
url='https://github.com/edx/i18n-tools',
packages=[
'i18n',
],
install_requires=[
'djang... |
from setuptools import setup
import i18n
setup(
name='edx-i18n-tools',
version=i18n.__version__,
description='edX Internationalization Tools',
author='edX',
author_email='oscm@edx.org',
url='https://github.com/edx/i18n-tools',
packages=[
'i18n',
],
install_requires=[
... | Put back the __version__ technique | Put back the __version__ technique
| Python | apache-2.0 | edx/i18n-tools | python | ## Code Before:
from setuptools import setup
import i18n
setup(
name='edx-i18n-tools',
version='0.3.3',
description='edX Internationalization Tools',
author='edX',
author_email='oscm@edx.org',
url='https://github.com/edx/i18n-tools',
packages=[
'i18n',
],
install_requires=... |
9e5e9a03af8de1009621c099d90abaaf51e0ec42 | src/js/constants/ServiceSchema.js | src/js/constants/ServiceSchema.js | /* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
descriptio... | /* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
descriptio... | Add environment variables to service schema | Add environment variables to service schema
| JavaScript | apache-2.0 | dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui,dcos/dcos-ui | javascript | ## Code Before:
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import General from './service-schema/General';
import Optional from './service-schema/Optional';
let ServiceSchema = {
type: 'object',
properties: {
General: General,
'Container Settings': {
... |
74ea9561e18c0acd336d1080195fb2a54d2f5772 | jenkins-validate.sh | jenkins-validate.sh |
set -e
export PR_BRANCH_BASE=$(git show-branch --sha1-name --current --merge-base origin/$ghprbTargetBranch)
echo "$PR_BRANCH_BASE..$ghprbActualCommit"
if git diff --name-only "$PR_BRANCH_BASE..$ghprbActualCommit" | grep "^docs/" ;then
echo "testing docs changes"
echo "===================="
else
echo "no docs ... |
set -e
# Clear out old results
rm *junit.xml
export PR_BRANCH_BASE=$(git show-branch --sha1-name --current --merge-base origin/$ghprbTargetBranch)
echo "$PR_BRANCH_BASE..$ghprbActualCommit"
if git diff --name-only "$PR_BRANCH_BASE..$ghprbActualCommit" | grep "^docs/" ;then
echo "testing docs changes"
echo "====... | Clear out old junit XML reports before we start the job | Clear out old junit XML reports before we start the job
Signed-off-by: Sven Dowideit <6f6969dc7db01e7204496bfb27e43d63ec4b2eb3@home.org.au>
| Shell | apache-2.0 | mikedougherty/docs-base,sfsmithcha/docs-base,thaJeztah/docs-base,sanscontext/docs-base,mikedougherty/docs-base,moxiegirl/docs-base,thaJeztah/docs-base,moxiegirl/docs-base,sfsmithcha/docs-base,sanscontext/docs-base,moxiegirl/docs-base,mikedougherty/docs-base,SvenDowideit/docs-base,sanscontext/docs-base,SvenDowideit/docs... | shell | ## Code Before:
set -e
export PR_BRANCH_BASE=$(git show-branch --sha1-name --current --merge-base origin/$ghprbTargetBranch)
echo "$PR_BRANCH_BASE..$ghprbActualCommit"
if git diff --name-only "$PR_BRANCH_BASE..$ghprbActualCommit" | grep "^docs/" ;then
echo "testing docs changes"
echo "===================="
else ... |
bb2e4110bdd28a0c4c3f3cf0f9dcd27cb3f82f62 | camp.rb | camp.rb | class Camp < Formula
homepage "https://github.com/tegesoft/camp"
url "https://github.com/tegesoft/camp.git", :tag => "0.8.0"
version "0.8.0"
patch :DATA
option "with-doc", "Build with doxygen documentation"
option :cxx11
depends_on "cmake" => :build
depends_on "doxygen" => :build if build.with? "doc"... | class Camp < Formula
homepage "https://github.com/tegesoft/camp"
url "https://github.com/drbenmorgan/camp.git", :branch => "cmake-support"
version "0.8.0"
option "with-doc", "Build with doxygen documentation"
option :cxx11
depends_on "cmake" => :build
depends_on "doxygen" => :build if build.with? "doc"
... | Move CAMP formula to drbenmorgan fork | Move CAMP formula to drbenmorgan fork
To provide better CMake support for camp clients, migrate to use
drbenmorgan fork of CAMP with improved CMake support. These fixes
have been submitted upstream, so use of the primary repo can resume
when/if these fixes are accepted.
| Ruby | mit | drbenmorgan/homebrew-supernemo | ruby | ## Code Before:
class Camp < Formula
homepage "https://github.com/tegesoft/camp"
url "https://github.com/tegesoft/camp.git", :tag => "0.8.0"
version "0.8.0"
patch :DATA
option "with-doc", "Build with doxygen documentation"
option :cxx11
depends_on "cmake" => :build
depends_on "doxygen" => :build if b... |
112aec851eb4c6f85ee4c365f663adc2bc80cb0b | dangerfile.js | dangerfile.js | import { message, danger } from "danger"
message(":tada:, this worked @" + danger.github.pr.user.login)
| import { message, danger } from "danger";
import prettier from 'prettier';
const srcDir = `${__dirname}/src/**/*.js`;
const options = {
singleQuote: true,
printWidth: 100
};
if (prettier.check(srcDir, options)) {
message(':tada: Your code is formatted correctly');
} else {
warn('You haven\'t formated the code... | Check if src dir has been formatted | Check if src dir has been formatted
| JavaScript | mit | ldabiralai/simulado | javascript | ## Code Before:
import { message, danger } from "danger"
message(":tada:, this worked @" + danger.github.pr.user.login)
## Instruction:
Check if src dir has been formatted
## Code After:
import { message, danger } from "danger";
import prettier from 'prettier';
const srcDir = `${__dirname}/src/**/*.js`;
const option... |
33f775f59cc6d567951ac7cb9e99b1a615a2105b | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
git:
depth: 100
sudo: false
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
cache:
directorie... | language: java
jdk:
- oraclejdk8
git:
depth: 100
sudo: false
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
script: mvn -B -q c... | Add script config for Travis | Add script config for Travis
| YAML | apache-2.0 | HubSpot/NioSmtpClient,HubSpot/NioSmtpClient | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
git:
depth: 100
sudo: false
before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
cac... |
d072832fc455c1c614147731aafde6c5786c72b8 | chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/setup_test_links.sh | chrome/test/chromeos/autotest/files/client/deps/pyauto_dep/setup_test_links.sh |
ln -f -s /opt/google/chrome/chrome $(dirname $0)/chrome
[ -L $(dirname $0)/locales ] || ln -f -s /opt/google/chrome/locales \
$(dirname $0)/locales
[ -L $(dirname $0)/resources ] || ln -f -s /opt/google/chrome/resources \
$(dirname $0)/resources
ln -f -s /opt/google/chrome/*.pak $(dirname $0)/
|
ln -f -s /opt/google/chrome/chrome $(dirname $0)/chrome
[ -L $(dirname $0)/locales ] || ln -f -s /opt/google/chrome/locales \
$(dirname $0)/locales
[ -L $(dirname $0)/resources ] || ln -f -s /opt/google/chrome/resources \
$(dirname $0)/resources
ln -f -s /opt/google/chrome/*.pak $(dirname $0)/
ln -f -s /opt/go... | Add libffmpegsumo.so to Chrome OS PyAuto staged binaries. | Add libffmpegsumo.so to Chrome OS PyAuto staged binaries.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10705007
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@144617 0039d316-1c4b-4281-b951-d872f2087c98
| Shell | bsd-3-clause | ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,Just-D/chromium-1,dednal/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromi... | shell | ## Code Before:
ln -f -s /opt/google/chrome/chrome $(dirname $0)/chrome
[ -L $(dirname $0)/locales ] || ln -f -s /opt/google/chrome/locales \
$(dirname $0)/locales
[ -L $(dirname $0)/resources ] || ln -f -s /opt/google/chrome/resources \
$(dirname $0)/resources
ln -f -s /opt/google/chrome/*.pak $(dirname $0)/
... |
f0b087efb06da36b557948b0f9fe99596f440164 | railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb | railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb |
require "rails/generators/rails/resource/resource_generator"
module Rails
module Generators
class ScaffoldGenerator < ResourceGenerator # :nodoc:
remove_hook_for :resource_controller
remove_class_option :actions
class_option :api, type: :boolean
class_option :resource_route, type: :bool... |
require "rails/generators/rails/resource/resource_generator"
module Rails
module Generators
class ScaffoldGenerator < ResourceGenerator # :nodoc:
remove_hook_for :resource_controller
remove_class_option :actions
class_option :api, type: :boolean,
desc: "Generate API-only controller an... | Clarify description of --api option | Clarify description of --api option
"Indicates when to generate api" doesn't make sense:
```
$ bin/rails g scaffold | grep api
[--api], [--no-api] # Indicates when to generate api
```
Co-authored-by: Jonathan Hefner <3692bfa45759a67d83aedf0045f6cb635a966abf@hefner.pro>
| Ruby | mit | yahonda/rails,georgeclaghorn/rails,esparta/rails,georgeclaghorn/rails,rails/rails,MSP-Greg/rails,rails/rails,esparta/rails,esparta/rails,MSP-Greg/rails,rails/rails,georgeclaghorn/rails,georgeclaghorn/rails,MSP-Greg/rails,MSP-Greg/rails,yahonda/rails,yahonda/rails,esparta/rails,rails/rails,yahonda/rails | ruby | ## Code Before:
require "rails/generators/rails/resource/resource_generator"
module Rails
module Generators
class ScaffoldGenerator < ResourceGenerator # :nodoc:
remove_hook_for :resource_controller
remove_class_option :actions
class_option :api, type: :boolean
class_option :resource_ro... |
2bcb69a3e54074906355bb4a7c8fe2bd19ba62d4 | ccnd/subr.mk | ccnd/subr.mk | $(CSRC) $(HSRC) $(SCRIPTSRC):
test -f $(SRCDIR)/$@ && ln -s $(SRCDIR)/$@
$(DUPDIR):
test -d $(SRCDIR)/$(DUPDIR) && mkdir $(DUPDIR) && cp -p $(SRCDIR)/$(DUPDIR)/* $(DUPDIR)
$(OBJDIR)/Makefile: Makefile
test -d $(OBJDIR) || mkdir $(OBJDIR)
test -f $(OBJDIR)/Makefile && mv $(OBJDIR)/Makefile $(OBJDIR)/Makefile~ ||:
... | $(CSRC) $(HSRC) $(SCRIPTSRC):
test -f $(SRCDIR)/$@ && ln -s $(SRCDIR)/$@
$(DUPDIR):
test -d $(SRCDIR)/$(DUPDIR) && mkdir $(DUPDIR) && cp -p $(SRCDIR)/$(DUPDIR)/* $(DUPDIR)
$(OBJDIR)/Makefile: Makefile
test -d $(OBJDIR) || mkdir $(OBJDIR)
test -f $(OBJDIR)/Makefile && mv $(OBJDIR)/Makefile $(OBJDIR)/Makefile~ ||:
... | Use a shell for loop instead of xargs to accomplish the desired goal of successfully doing nothing with no input. It turns out that the POSIX xargs always executes its command at least once. | Use a shell for loop instead of xargs to accomplish the desired goal of successfully doing nothing with no input. It turns out that the POSIX xargs always executes its command at least once.
| Makefile | lgpl-2.1 | svartika/ccnx,svartika/ccnx,svartika/ccnx,cawka/ndnx,cawka/ndnx,ebollens/ccnmp,cawka/ndnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,svartika/ccnx | makefile | ## Code Before:
$(CSRC) $(HSRC) $(SCRIPTSRC):
test -f $(SRCDIR)/$@ && ln -s $(SRCDIR)/$@
$(DUPDIR):
test -d $(SRCDIR)/$(DUPDIR) && mkdir $(DUPDIR) && cp -p $(SRCDIR)/$(DUPDIR)/* $(DUPDIR)
$(OBJDIR)/Makefile: Makefile
test -d $(OBJDIR) || mkdir $(OBJDIR)
test -f $(OBJDIR)/Makefile && mv $(OBJDIR)/Makefile $(OBJDIR... |
522ffda4b2bd823d253d242a0581a16eeec08242 | .travis.yml | .travis.yml | sudo: false
language: node_js
node_js:
- "4.1"
script:
- make dist
- make deploy
| sudo: false
language: node_js
node_js:
- "4.1"
script:
- make dist
| Stop using Travis CI for deploys | Stop using Travis CI for deploys
| YAML | mit | hsluv/hsluv,hsluv/hsluv | yaml | ## Code Before:
sudo: false
language: node_js
node_js:
- "4.1"
script:
- make dist
- make deploy
## Instruction:
Stop using Travis CI for deploys
## Code After:
sudo: false
language: node_js
node_js:
- "4.1"
script:
- make dist
|
3874342b08c355251fdb4310c95a18f10bca183e | end2end-test-examples/echo-client/src/main/resources/logging.properties | end2end-test-examples/echo-client/src/main/resources/logging.properties | handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
io.netty.handler.codec.http2.Http2FrameLogger.level = FINE
.level = FINE
io.grpc.netty.NettyClientHandler = ALL
io.grpc.netty.NettyServerHandler = ALL
| handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
io.netty.handler.codec.http2.Http2FrameLogger.level = FINE
.level = FINE
io.grpc.netty.NettyClientHandler = ALL
io.grpc.netty.NettyServerHandler = ALL
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
j... | Add nanoseconds to the logs timestamps | Add nanoseconds to the logs timestamps
| INI | apache-2.0 | GoogleCloudPlatform/grpc-gcp-java,GoogleCloudPlatform/grpc-gcp-java | ini | ## Code Before:
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
io.netty.handler.codec.http2.Http2FrameLogger.level = FINE
.level = FINE
io.grpc.netty.NettyClientHandler = ALL
io.grpc.netty.NettyServerHandler = ALL
## Instruction:
Add nanoseconds to the logs timestamps
## Code... |
df675e85e47a4ca27d6753e3af366c2c09c8534a | src/chunks/applyLight.glsl | src/chunks/applyLight.glsl | /**
* Calculates the intensity of light on a surface.
*
* @method applyLight
* @private
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
vec3 ambientColor = u_AmbientLight * material;
vec3 normal = normalize(v_Normal);
vec3 eyeVector = normalize(v_EyeVector);
vec3 spe... | /**
* Calculates the intensity of light on a surface.
*
* @method applyLight
* @private
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
vec3 ambientColor = u_AmbientLight * material;
vec3 normal = normalize(v_Normal);
vec3 eyeVector = normalize(v_EyeVector);
vec3 dif... | Add ability to change the strength and color of glossiness | Feat: Add ability to change the strength and color of glossiness
| GLSL | mit | prepare/engine,infamous/famous-engine,andreaslangsays/engine,alexanderGugel/engine,artichox/engine,sonwh98/engine,steveblue/engine,tbossert/engine,yummy222/engine,codesdk/engine,Morgantheplant/engine,Bizboard/engine,huanghjb/engine,tbossert/engine,infamous/famous-engine,redwoodfavorite/engine,andreaslangsays/engine,art... | glsl | ## Code Before:
/**
* Calculates the intensity of light on a surface.
*
* @method applyLight
* @private
*
*/
vec3 applyLight(in vec3 material) {
int numLights = int(u_NumLights);
vec3 ambientColor = u_AmbientLight * material;
vec3 normal = normalize(v_Normal);
vec3 eyeVector = normalize(v_EyeVecto... |
cdebb488e4c45b142acab487c6178ec383fdf730 | templates/default/jobs/scala/integrate/community-build.xml.erb | templates/default/jobs/scala/integrate/community-build.xml.erb | <?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "community-builds",
repoRef: @branch,
cleanWorkspace: false,
description: "Community Build",
nodeRestriction: "public",
maxConcurrentPerNode: 1,
buildTimeoutM... | <?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "community-builds",
repoRef: @branch,
description: "Community Build",
nodeRestriction: "public",
maxConcurrentPerNode: 1,
buildTimeoutMinutes: 400,
jvmVersion: ... | Revert "Don't clean workspace for community build" | Revert "Don't clean workspace for community build"
This reverts commit c59b38e055ab7444e19e511dcc79cf2d4362b21a.
We kept running out of disk space, and, besides,
the most important caching goes to ~jenkins/.dbuild,
so that we don't have to rebuild projects as long
as they can be found there (with the right hash).
| HTML+ERB | bsd-3-clause | adriaanm/scala-jenkins-infra,lrytz/scala-jenkins-infra,retronym/scala-jenkins-infra,adriaanm/scala-jenkins-infra,scala/scala-jenkins-infra,retronym/scala-jenkins-infra,adriaanm/scala-jenkins-infra,lrytz/scala-jenkins-infra,scala/scala-jenkins-infra,lrytz/scala-jenkins-infra,retronym/scala-jenkins-infra | html+erb | ## Code Before:
<?xml version='1.0' encoding='UTF-8'?>
<project>
<%= githubProject(
repoUser: @user,
repoName: "community-builds",
repoRef: @branch,
cleanWorkspace: false,
description: "Community Build",
nodeRestriction: "public",
maxConcurrentPerNode: 1,... |
1b67f9f29960d711b6a87daafd081e9d5a2dce1e | IO/MPIImage/CMakeLists.txt | IO/MPIImage/CMakeLists.txt | find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
set(Module_SRCS
vtkPNrrdReader.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(
${vtk-module}ObjectFactory
WRAP_EXCLUDE
)
# Now to generate our object factory.
set( vtk_module_overrides
Nrrd... | find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
add_definitionS("-DMPICH_IGNORE_CXX_SEEK")
set(Module_SRCS
vtkPNrrdReader.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(
${vtk-module}ObjectFactory
WRAP_EXCLUDE
)
# Now to generate our objec... | Add -DMPICH_IGNORE_CXX_SEEK for vtkIOMPIImage module | Add -DMPICH_IGNORE_CXX_SEEK for vtkIOMPIImage module
Change-Id: I5a69c8788419a245faf1e7983089ee57f3872e71
| Text | bsd-3-clause | sumedhasingla/VTK,johnkit/vtk-dev,johnkit/vtk-dev,sumedhasingla/VTK,gram526/VTK,jmerkow/VTK,ashray/VTK-EVM,aashish24/VTK-old,biddisco/VTK,jmerkow/VTK,mspark93/VTK,SimVascular/VTK,sumedhasingla/VTK,candy7393/VTK,mspark93/VTK,candy7393/VTK,msmolens/VTK,gram526/VTK,SimVascular/VTK,msmolens/VTK,jmerkow/VTK,berendkleinhanev... | text | ## Code Before:
find_package(MPI REQUIRED)
include_directories(${MPI_INCLUDE_PATH})
set(Module_SRCS
vtkPNrrdReader.cxx
${CMAKE_CURRENT_BINARY_DIR}/${vtk-module}ObjectFactory.cxx
)
set_source_files_properties(
${vtk-module}ObjectFactory
WRAP_EXCLUDE
)
# Now to generate our object factory.
set( vtk_module_... |
e1ae33997f3b25921f112212dd5df896279c51eb | app/views/accounts/index.html.erb | app/views/accounts/index.html.erb | <h2>Konten</h2>
<table class="list">
<%= render 'list_header' %>
<%= render @accounts %>
<%= render 'list_footer' %>
</table>
| <div class="contextual">
<%= link_to "Neues Konto", new_account_path, :class => "icon icon-add" %>
</div>
<h2>Konten</h2>
<table class="list">
<%= render 'list_header' %>
<%= render @accounts %>
<%= render 'list_footer' %>
</table>
| Add context link to new account to account index. | Add context link to new account to account index.
| HTML+ERB | agpl-3.0 | silvermind/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,hauledev/bookyt,gaapt/bookyt,gaapt/bookyt,wtag/bookyt,xuewenfei/bookyt,huerlisi/bookyt,xuewenfei/bookyt,gaapt/bookyt,huerlisi/bookyt,wtag/bookyt,hauledev/bookyt,silvermind/bookyt,silvermind/bookyt,wtag/bookyt,huerlisi/bookyt,hauledev/bookyt,xuewenfei/book... | html+erb | ## Code Before:
<h2>Konten</h2>
<table class="list">
<%= render 'list_header' %>
<%= render @accounts %>
<%= render 'list_footer' %>
</table>
## Instruction:
Add context link to new account to account index.
## Code After:
<div class="contextual">
<%= link_to "Neues Konto", new_account_path, :class => "icon... |
3cb29bcca5830d6d356a470ac6a944265894deca | components/input/__examples__/inactiveInputs.jsx | components/input/__examples__/inactiveInputs.jsx | import React from 'react';
import IconSettings from '~/components/icon-settings';
import Input from '~/components/input'; // `~` is replaced with design-system-react at runtime
class Example extends React.Component {
static displayName = 'InactiveInputExamples';
render() {
return (
<IconSettings iconPath="/as... | import React from 'react';
import IconSettings from '~/components/icon-settings';
import Input from '~/components/input'; // `~` is replaced with design-system-react at runtime
class Example extends React.Component {
static displayName = 'InactiveInputExamples';
render() {
return (
<IconSettings iconPath="/as... | Remove static input example from doc site | Remove static input example from doc site
| JSX | bsd-3-clause | salesforce/design-system-react,salesforce/design-system-react,salesforce/design-system-react | jsx | ## Code Before:
import React from 'react';
import IconSettings from '~/components/icon-settings';
import Input from '~/components/input'; // `~` is replaced with design-system-react at runtime
class Example extends React.Component {
static displayName = 'InactiveInputExamples';
render() {
return (
<IconSettin... |
6a330523ad683b7883cefa3878c7690fcb5dbd75 | TalkingToYouBot.py | TalkingToYouBot.py | from telegram import Updater
import json
import os
def getToken():
token = []
if not os.path.exists(file_path):
token.append(input('Insert Token here: '))
with open('token.json', 'w') as f:
json.dump(token, f)
else:
with open("token.json") as f:
token = json... | from telegram import Updater
import json
import os
def getToken():
token = []
if not os.path.exists(file_path):
token.append(input('Insert Token here: '))
with open('token.json', 'w') as f:
json.dump(token, f)
else:
with open("token.json") as f:
token = json... | Add simple Echo function and Bot initialisation | Add simple Echo function and Bot initialisation
| Python | mit | h4llow3En/IAmTalkingToYouBot | python | ## Code Before:
from telegram import Updater
import json
import os
def getToken():
token = []
if not os.path.exists(file_path):
token.append(input('Insert Token here: '))
with open('token.json', 'w') as f:
json.dump(token, f)
else:
with open("token.json") as f:
... |
5fb08a980e0312f66968bacde46bfcbe51c43d83 | install/venvinstall.sh | install/venvinstall.sh | pyvenv-3.4 myvenv
source myvenv/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
| python3 -m venv myvenv
source myvenv/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
| Update virtual environment creation script | Update virtual environment creation script
| Shell | mit | pajlada/tyggbot,pajlada/tyggbot,pajlada/tyggbot,pajlada/pajbot,pajlada/pajbot,pajlada/pajbot,pajlada/pajbot,pajlada/tyggbot | shell | ## Code Before:
pyvenv-3.4 myvenv
source myvenv/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
## Instruction:
Update virtual environment creation script
## Code After:
python3 -m venv myvenv
source myvenv/bin/activate
pip install pip --upgrade
pip install -r requirements.txt
|
077d895aed82a98d9dfeeae5b736ab0a74061495 | lib/fakefs/kernel.rb | lib/fakefs/kernel.rb | module FakeFS
# Kernel Module
module Kernel
@captives = { original: {}, hijacked: {} }
class << self
attr_accessor :captives
end
def self.hijack!
captives[:hijacked].each do |name, prc|
::Kernel.send(:define_method, name.to_sym, &prc)
end
end
def self.unhijack!
... | module FakeFS
# Kernel Module
module Kernel
@captives = { original: {}, hijacked: {} }
class << self
attr_accessor :captives
end
def self.hijack!
captives[:hijacked].each do |name, prc|
::Kernel.send(:remove_method, name.to_sym)
::Kernel.send(:define_method, name.to_sym... | Remove methods before re-defining them | Remove methods before re-defining them
This prevents ruby from dumping a ton of "method redefined" warnings to the console. | Ruby | mit | marxarelli/fakefs,1234-/fakefs,fakefs/fakefs,deployable/fakefs,defunkt/fakefs,bquorning/fakefs | ruby | ## Code Before:
module FakeFS
# Kernel Module
module Kernel
@captives = { original: {}, hijacked: {} }
class << self
attr_accessor :captives
end
def self.hijack!
captives[:hijacked].each do |name, prc|
::Kernel.send(:define_method, name.to_sym, &prc)
end
end
def ... |
50e9824115bbefeb59319b4f20622b162c22063f | db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb | db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb | class RemoveRedundantPipelineStages < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
redundant_stages_ids = <<~SQL
SELECT id FROM ci_stages WHERE (pipeline_id, name) IN (
SELECT pipeline_id, name FROM ci_stages
GROUP BY pipeline_id, name HAV... | class RemoveRedundantPipelineStages < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
redundant_stages_ids = <<~SQL
SELECT id FROM ci_stages WHERE (pipeline_id, name) IN (
SELECT pipeline_id, name FROM ci_stages
GROUP BY pipeline_id, name HAV... | Fix migration removing duplicate stages on MySQL again | Fix migration removing duplicate stages on MySQL again
| Ruby | mit | axilleas/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,iiet/iiet-git,dreampet/gitlab,dreampet/gitlab,mmkassem/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,s... | ruby | ## Code Before:
class RemoveRedundantPipelineStages < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
redundant_stages_ids = <<~SQL
SELECT id FROM ci_stages WHERE (pipeline_id, name) IN (
SELECT pipeline_id, name FROM ci_stages
GROUP BY pipel... |
16d0f3f0ca4ce59f08e598b6f9f25bb6dc8e1713 | benchmark/benchmark.py | benchmark/benchmark.py | import time
import sys
from utils import format_duration
if sys.platform == "win32":
default_timer = time.clock
else:
default_timer = time.time
class Benchmark():
def __init__(self, func, name="", repeat=5):
self.func = func
self.repeat = repeat
self.name = name
self.verb... | import time
import sys
from utils import format_duration
if sys.platform == "win32":
default_timer = time.clock
else:
default_timer = time.time
class Benchmark():
def __init__(self, func, name="", repeat=5):
self.func = func
self.repeat = repeat
self.name = name
self.verb... | Fix bad console output formatting | Fix bad console output formatting
| Python | mit | jameshy/libtree,conceptsandtraining/libtree | python | ## Code Before:
import time
import sys
from utils import format_duration
if sys.platform == "win32":
default_timer = time.clock
else:
default_timer = time.time
class Benchmark():
def __init__(self, func, name="", repeat=5):
self.func = func
self.repeat = repeat
self.name = name
... |
515c24e2d10167c12035a501f2d3a645b70b1e58 | test/test_dump_render_tree.dart | test/test_dump_render_tree.dart | library test_dump_render_tree;
import 'dart:io';
import 'package:unittest/unittest.dart';
void main() {
testRun();
}
void testCore(Configuration config) {
configure(config);
groupSep = ' - ';
testRun();
}
void testRun() {
final browserTests = ['test/tests_browser.html'];
group('DumpRenderTree', () {
... | library test_dump_render_tree;
import 'dart:io';
import 'package:unittest/unittest.dart';
void main() {
testRun();
}
void testCore(Configuration config) {
unittestConfiguration = config;
groupSep = ' - ';
testRun();
}
void testRun() {
final browserTests = ['test/tests_browser.html'];
group('DumpRenderT... | Update unit test configuration setting. | Update unit test configuration setting.
| Dart | mit | dartist/stats.dart,dartist/stats.dart | dart | ## Code Before:
library test_dump_render_tree;
import 'dart:io';
import 'package:unittest/unittest.dart';
void main() {
testRun();
}
void testCore(Configuration config) {
configure(config);
groupSep = ' - ';
testRun();
}
void testRun() {
final browserTests = ['test/tests_browser.html'];
group('DumpRend... |
e806fd2d1dd84d30c2ec0f51f130b139986fc460 | stdlib/public/Reflection/CMakeLists.txt | stdlib/public/Reflection/CMakeLists.txt | add_swift_library(swiftReflection IS_STDLIB IS_HOST
Demangle.cpp
Remangle.cpp
TypeRef.cpp
INSTALL_IN_COMPONENT dev
COMPONENT_DEPENDS Support)
| add_swift_library(swiftReflection IS_STDLIB IS_HOST
Demangle.cpp
Remangle.cpp
TypeRef.cpp
INSTALL_IN_COMPONENT dev)
| Remove accidental CMake change to stdlib/public/Reflection | Remove accidental CMake change to stdlib/public/Reflection
| Text | apache-2.0 | brentdax/swift,ken0nek/swift,milseman/swift,aschwaighofer/swift,CodaFi/swift,therealbnut/swift,zisko/swift,xwu/swift,xwu/swift,uasys/swift,jtbandes/swift,gmilos/swift,jckarter/swift,practicalswift/swift,zisko/swift,danielmartin/swift,jtbandes/swift,huonw/swift,roambotics/swift,milseman/swift,dreamsxin/swift,harlanhaski... | text | ## Code Before:
add_swift_library(swiftReflection IS_STDLIB IS_HOST
Demangle.cpp
Remangle.cpp
TypeRef.cpp
INSTALL_IN_COMPONENT dev
COMPONENT_DEPENDS Support)
## Instruction:
Remove accidental CMake change to stdlib/public/Reflection
## Code After:
add_swift_library(swiftReflection IS_STDLIB IS_HOST
Demang... |
ecf3a6281a81ca8eb790bb77515627e0431ec095 | doc.go | doc.go | // Copyright 2014 Vic Demuzere
//
// Use of this source code is governed by the MIT license.
// Package irc allows your application to speak the IRC protocol.
//
// The Message and Prefix structs provide translation to and from raw IRC messages:
//
// // Parse the IRC-encoded data and store the result in a new stru... | // Copyright 2014 Vic Demuzere
//
// Use of this source code is governed by the MIT license.
// Package irc allows your application to speak the IRC protocol.
//
// The Message and Prefix structs provide translation to and from raw IRC messages:
//
// // Parse the IRC-encoded data and store the result in a new stru... | Add Go 1.4 import comment | Add Go 1.4 import comment
| Go | mit | sorcix/irc,belak/sorcix-irc,Kimau/irc,MorpheusXAUT/irc | go | ## Code Before:
// Copyright 2014 Vic Demuzere
//
// Use of this source code is governed by the MIT license.
// Package irc allows your application to speak the IRC protocol.
//
// The Message and Prefix structs provide translation to and from raw IRC messages:
//
// // Parse the IRC-encoded data and store the resu... |
23b0dbe8f17fdc5ae079da32dc3de20c58435920 | app/views/blocks/_show.html.erb | app/views/blocks/_show.html.erb | <% begin %>
<% classes = [] %>
<% classes << block.model_name.singular.dasherize %>
<% classes << 'block' %>
<% classes << (block.first? ? 'block--first' : '') %>
<% classes << (block.last? ? 'block--last' : '') %>
<% classes << "block-category--#{block.class.kind.category.to_s.parameterize}" %>
<% classe... | <% begin %>
<% classes = [] %>
<% classes << block.model_name.singular.dasherize %>
<% classes << 'block' %>
<% classes << (block.first? ? 'block--first' : '') %>
<% classes << (block.last? ? 'block--last' : '') %>
<% classes << "block-category--#{block.class.kind.category.to_s.parameterize}" %>
<% classe... | Allow defining a css_styles method on blocks | Allow defining a css_styles method on blocks
| HTML+ERB | mit | dylanfisher/forest,dylanfisher/forest,dylanfisher/forest | html+erb | ## Code Before:
<% begin %>
<% classes = [] %>
<% classes << block.model_name.singular.dasherize %>
<% classes << 'block' %>
<% classes << (block.first? ? 'block--first' : '') %>
<% classes << (block.last? ? 'block--last' : '') %>
<% classes << "block-category--#{block.class.kind.category.to_s.parameterize}... |
ec886703ac80b1a5fef912123dd3a64411aab320 | bin/index.js | bin/index.js | 'use strict';
// foreign modules
const meow = require('meow');
// local modules
const error = require('../lib/error.js');
const logger = require('../lib/utils/logger.js');
const main = require('../index.js');
// this module
const cli = meow({
help: main.help,
version: true
}, {
boolean: [
'only',
'p... | 'use strict';
// foreign modules
const meow = require('meow');
// local modules
const error = require('../lib/error.js');
const logger = require('../lib/utils/logger.js');
const main = require('../index.js');
// this module
const cli = meow({
help: main.help,
version: true
}, {
flags: {
only: {type: 'bo... | Update meow options to be in line with v4.0.0 | Update meow options to be in line with v4.0.0
| JavaScript | bsd-3-clause | blinkmobile/bmp-cli | javascript | ## Code Before:
'use strict';
// foreign modules
const meow = require('meow');
// local modules
const error = require('../lib/error.js');
const logger = require('../lib/utils/logger.js');
const main = require('../index.js');
// this module
const cli = meow({
help: main.help,
version: true
}, {
boolean: [
... |
82a344deca1808eae00e4551b114a15fbc8f549f | gxa/src/main/webapp/resources/css/foundation/theme-atlas.css | gxa/src/main/webapp/resources/css/foundation/theme-atlas.css | .menu .active > a,
.tag,
.tabs-title > a:hover,
.button,
.button.primary {
background-color: #3497c5;
}
.tabs-title > a {
font-size: 0.9rem;
}
.tabs-title > a:hover {
background: aliceblue;
color: #0a0a0a;
}
.tabs-title > a:focus,
.tabs-title > a[aria-selected='true'] {
color: #0a0a0a;
backgrou... | .menu .active > a,
.tag,
.tabs-title > a:hover,
.button,
.button.primary {
background-color: #3497c5;
}
.tabs-title > a {
font-size: 0.9rem;
color: #3e3e3e;
}
.tabs-title > a:hover {
background: aliceblue;
color: #0a0a0a;
}
.tabs-title > a:focus,
.tabs-title > a[aria-selected='true'] {
color: #... | Add tabs-title > a color set to dark | Add tabs-title > a color set to dark
| CSS | apache-2.0 | gxa/atlas,gxa/atlas,gxa/atlas,gxa/atlas,gxa/atlas | css | ## Code Before:
.menu .active > a,
.tag,
.tabs-title > a:hover,
.button,
.button.primary {
background-color: #3497c5;
}
.tabs-title > a {
font-size: 0.9rem;
}
.tabs-title > a:hover {
background: aliceblue;
color: #0a0a0a;
}
.tabs-title > a:focus,
.tabs-title > a[aria-selected='true'] {
color: #0a0a... |
a6c3b1bb3b06c7ef5ad5f6c22f315c461f6baa18 | test/rework-at2x.js | test/rework-at2x.js |
var rework = require('rework')
, inline = require('../')
, fs = require('fs')
, assert = require('assert')
, read = fs.readFileSync;
function fixture(name) {
return read('test/fixtures/' + name + '.css', 'utf8').trim();
}
describe('.at2x()', function(){
it('should add device-pixel-ratio rules', function(... |
var rework = require('rework')
, at2x = require('../')
, fs = require('fs')
, assert = require('assert')
, read = fs.readFileSync;
function fixture(name) {
return read('test/fixtures/' + name + '.css', 'utf8').trim();
}
describe('.at2x()', function(){
it('should add device-pixel-ratio rules', function(){... | Fix testing the wrong module | Fix testing the wrong module
| JavaScript | mit | reworkcss/rework-plugin-at2x,oss-practice/rework-plugin-at2x | javascript | ## Code Before:
var rework = require('rework')
, inline = require('../')
, fs = require('fs')
, assert = require('assert')
, read = fs.readFileSync;
function fixture(name) {
return read('test/fixtures/' + name + '.css', 'utf8').trim();
}
describe('.at2x()', function(){
it('should add device-pixel-ratio r... |
22c56941d054e083b1d406b1440efd8c0ecc5f11 | tests/test_oai_harvester.py | tests/test_oai_harvester.py | from __future__ import unicode_literals
import httpretty
from scrapi.base import OAIHarvester
from scrapi.linter import RawDocument
from .utils import TEST_OAI_DOC
class TestHarvester(OAIHarvester):
base_url = ''
long_name = 'Test'
short_name = 'test'
url = 'test'
property_list = ['type', 'sour... | from __future__ import unicode_literals
import httpretty
from scrapi.base import OAIHarvester
from scrapi.linter import RawDocument
from .utils import TEST_OAI_DOC
class TestHarvester(OAIHarvester):
base_url = ''
long_name = 'Test'
short_name = 'test'
url = 'test'
property_list = ['type', 'sour... | Add dates to test OAI harvester | Add dates to test OAI harvester
| Python | apache-2.0 | erinspace/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,icereval/scrapi,fabianvf/scrapi,mehanig/scrapi,alexgarciac/scrapi,CenterForOpenScience/scrapi,mehanig/scrapi,felliott/scrapi,jeffreyliu3230/scrapi,ostwald/scrapi,erinspace/scrapi,fabianvf/scrapi | python | ## Code Before:
from __future__ import unicode_literals
import httpretty
from scrapi.base import OAIHarvester
from scrapi.linter import RawDocument
from .utils import TEST_OAI_DOC
class TestHarvester(OAIHarvester):
base_url = ''
long_name = 'Test'
short_name = 'test'
url = 'test'
property_list ... |
30844d85d9f157674788ce69ed87001bc8496d2a | app/templates/questions/new.hbs | app/templates/questions/new.hbs | <div class="recipient-lead-in"><span class="emph">Question for:</span></div>
<div class="content-person-image">
{{cdn-avatar-from imageUrl=selectedPerson.photo_url height=30 width=30 class="official-image avatar-image"}}
</div>
<div class="content-person-info">
<span class="content-person-name">{{selectedPerson.ful... | <div class="recipient-lead-in"><span class="emph">Question for:</span></div>
<div class="content-person-image">
{{cdn-avatar-from imageUrl=selectedPerson.photo_url height=30 width=30 class="official-image avatar-image"}}
</div>
<div class="content-person-info">
<span class="content-person-name">{{selectedPerson.ful... | Add placeholder for email, refine email tip | Add placeholder for email, refine email tip
| Handlebars | mit | opengovernment/address-widget,opengovernment/person-widget,opengovernment/person-widget,opengovernment/address-widget | handlebars | ## Code Before:
<div class="recipient-lead-in"><span class="emph">Question for:</span></div>
<div class="content-person-image">
{{cdn-avatar-from imageUrl=selectedPerson.photo_url height=30 width=30 class="official-image avatar-image"}}
</div>
<div class="content-person-info">
<span class="content-person-name">{{se... |
9023270a205fdf80866e89cbaedabdd4976dd7fc | lib/memory_profiler.rb | lib/memory_profiler.rb | require "memory_profiler/version"
require "memory_profiler/helpers"
require "memory_profiler/polychrome"
require "memory_profiler/monochrome"
require "memory_profiler/top_n"
require "memory_profiler/stat"
require "memory_profiler/stat_hash"
require "memory_profiler/results"
require "memory_profiler/reporter"
module Me... | require "memory_profiler/version"
require "memory_profiler/helpers"
require "memory_profiler/polychrome"
require "memory_profiler/monochrome"
require "memory_profiler/top_n"
require "memory_profiler/stat"
require "memory_profiler/stat_hash"
require "memory_profiler/results"
require "memory_profiler/reporter"
module Me... | Remove excessive setting of default of :top option | Remove excessive setting of default of :top option
This is already done in `MemoryProfiler::Reporter`, so doing this here
is unecessary.
| Ruby | mit | SamSaffron/memory_profiler,dgynn/memory_profiler | ruby | ## Code Before:
require "memory_profiler/version"
require "memory_profiler/helpers"
require "memory_profiler/polychrome"
require "memory_profiler/monochrome"
require "memory_profiler/top_n"
require "memory_profiler/stat"
require "memory_profiler/stat_hash"
require "memory_profiler/results"
require "memory_profiler/repo... |
255ea761b4f33b5d34aa67cb8d42d4c5313dec2a | roles/imicrobe.wordpress/tasks/main.yml | roles/imicrobe.wordpress/tasks/main.yml | ---
- name: Install unzip for Ansible unarchive command
yum:
name: unzip
state: latest
- name: Download wordpress
unarchive:
src: https://wordpress.org/latest.zip
dest: /usr/local/imicrobe/
remote_src: True
- name: Copy wp-config.php
copy:
src: files/wp-config.php
dest: /usr/local/im... | ---
- name: Install unzip for Ansible unarchive command
yum:
name: unzip
state: latest
- name: Download wordpress
unarchive:
src: https://wordpress.org/latest.zip
dest: /home/imicrobe/imicrobe/
remote_src: True
become_user: imicrobe
- name: Copy wp-config.php
copy:
src: files/wp-config... | Install wordpress in the imicrobe home directory | Install wordpress in the imicrobe home directory
| YAML | mit | hurwitzlab/imicrobe-vm,hurwitzlab/imicrobe-vm,hurwitzlab/imicrobe-vm | yaml | ## Code Before:
---
- name: Install unzip for Ansible unarchive command
yum:
name: unzip
state: latest
- name: Download wordpress
unarchive:
src: https://wordpress.org/latest.zip
dest: /usr/local/imicrobe/
remote_src: True
- name: Copy wp-config.php
copy:
src: files/wp-config.php
des... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.