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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b32b9457161ae0c9605d9b9984860ffc1a137e00 | .travis.yml | .travis.yml | language: java
jdk: oraclejdk7
before_install:
# Install base Android SDK and components
- sudo apt-get install -qq libstdc++6:i386 lib32z1
- export COMPONENTS=build-tools-19.0.1,android-19,sysimg-19,extra-android-support,extra-google-google_play_services,extra-google-gcm,build-tools-19.1.0,extra-google-m2r... | language: java
jdk: oraclejdk7
before_install:
# Install base Android SDK and components
- sudo apt-get install -qq libstdc++6:i386 lib32z1
- export COMPONENTS=build-tools-19.0.1,android-19,sysimg-19,extra-android-support,extra-google-google_play_services,extra-google-gcm,build-tools-19.1.0,extra-google-m2r... | Add dummy username and password for sonatype | Add dummy username and password for sonatype
| YAML | apache-2.0 | zaiminc/DecorateCalendarView,rameshvoltella/DecorateCalendarView | yaml | ## Code Before:
language: java
jdk: oraclejdk7
before_install:
# Install base Android SDK and components
- sudo apt-get install -qq libstdc++6:i386 lib32z1
- export COMPONENTS=build-tools-19.0.1,android-19,sysimg-19,extra-android-support,extra-google-google_play_services,extra-google-gcm,build-tools-19.1.0,... |
ea60c9fece7e8d98ca13cb73ecd9897addd02549 | FindLibJpegTurbo.cmake | FindLibJpegTurbo.cmake |
include(LibFindMacros)
# Use pkg-config to get hints about paths
libfind_pkg_check_modules(LibJpegTurbo_PKGCONF LibJpegTurbo)
# Include dir
find_path(LibJpegTurbo_INCLUDE_DIR
NAMES turbojpeg.h
PATHS ${LibJpegTurbo_PKGCONF_INCLUDE_DIRS} /opt/libjpeg-turbo/include
)
# Finally the library itself
find_library(LibJp... |
include(LibFindMacros)
# Use pkg-config to get hints about paths
libfind_pkg_check_modules(LibJpegTurbo_PKGCONF LibJpegTurbo)
# Include dir
find_path(LibJpegTurbo_INCLUDE_DIR
NAMES turbojpeg.h
PATHS ${LibJpegTurbo_PKGCONF_INCLUDE_DIRS} /opt/libjpeg-turbo/include
)
# Finally the library itself
find_library(LibJp... | Fix LibJpegTurbo finder to ignore static library, needed on Ubuntu 13.10 | Fix LibJpegTurbo finder to ignore static library, needed on Ubuntu 13.10
| CMake | bsd-3-clause | shuaibarshad/KAUST-CMake,jafyvilla/CMake,biddisco/CMake,rballester/vmmlib,biddisco/CMake,tribal-tec/vmmlib,ptoharia/CMake,shuaibarshad/KAUST-CMake,biddisco/CMake,rballester/vmmlib,ptoharia/CMake,biddisco/CMake,jafyvilla/CMake,shurikasa/CMake,hernando/vmmlib,hernando/vmmlib,ptoharia/CMake,shurikasa/CMake,shurikasa/CMake... | cmake | ## Code Before:
include(LibFindMacros)
# Use pkg-config to get hints about paths
libfind_pkg_check_modules(LibJpegTurbo_PKGCONF LibJpegTurbo)
# Include dir
find_path(LibJpegTurbo_INCLUDE_DIR
NAMES turbojpeg.h
PATHS ${LibJpegTurbo_PKGCONF_INCLUDE_DIRS} /opt/libjpeg-turbo/include
)
# Finally the library itself
fi... |
0fcd5580df993a2af31aa155160504ef5249b69e | README.md | README.md | teleop_twist_joy
================
Simple joystick teleop for twist robots
| teleop_twist_joy [](https://travis-ci.org/ros-teleop/teleop_twist_joy)
================
Simple joystick teleop for twist robots
| Build status badge for Travis. | Build status badge for Travis.
| Markdown | bsd-3-clause | tonybaltovski-forks/teleop_twist_joy,tonybaltovski-forks/teleop_twist_joy | markdown | ## Code Before:
teleop_twist_joy
================
Simple joystick teleop for twist robots
## Instruction:
Build status badge for Travis.
## Code After:
teleop_twist_joy [](https://travis-ci.org/ros-teleop/teleop_twist_joy)
====... |
26c424c5ccf41bd6d3a497b95984fbcb377d6796 | .github/workflows/ci.yml | .github/workflows/ci.yml | name: "Tests"
on:
push:
branches:
- master
pull_request:
branches:
- "*"
env:
CI: "true"
jobs:
main:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1]
... | name: "Tests"
on:
push:
branches:
- master
pull_request:
branches:
- "*"
env:
CI: "true"
jobs:
main:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0, 6.1]
... | Include Ruby 3.0 in CI | Include Ruby 3.0 in CI
| YAML | mit | codegram/date_validator | yaml | ## Code Before:
name: "Tests"
on:
push:
branches:
- master
pull_request:
branches:
- "*"
env:
CI: "true"
jobs:
main:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.2, 2.3, 2.4, 2.5, 2.6, 2.7]
activemodel: [3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2,... |
996f73df90a6429549d24eaff119a79de78e56e1 | package.json | package.json | {
"name": "cantina-redis",
"description": "Create redis-backed models and interact with redis server",
"version": "0.2.2",
"private": true,
"homepage": "cantina.github.com",
"repository": {
"url": ""
},
"main": "./lib",
"scripts": {
"test": "make test"
},
"dependencies": {
"cantina-uti... | {
"name": "cantina-redis",
"description": "Create redis-backed models and interact with redis server",
"version": "0.2.2",
"private": true,
"homepage": "cantina.github.com",
"repository": {
"url": ""
},
"main": "./lib",
"scripts": {
"test": "make test"
},
"dependencies": {
"cantina-uti... | Use npm version of haredis | Use npm version of haredis
| JSON | apache-2.0 | cantina/cantina-redis | json | ## Code Before:
{
"name": "cantina-redis",
"description": "Create redis-backed models and interact with redis server",
"version": "0.2.2",
"private": true,
"homepage": "cantina.github.com",
"repository": {
"url": ""
},
"main": "./lib",
"scripts": {
"test": "make test"
},
"dependencies": {
... |
e1acfae3fd7c743eb404321bd301c15fea9e6a88 | package.json | package.json | {
"name": "aster-umd",
"version": "0.1.2",
"description": "Wrap code to UMD with aster.",
"author": "Ingvar Stepanyan <me@rreverser.com> (https://github.com/RReverser)",
"repository": "asterjs/aster-umd",
"license": "MIT",
"keywords": [
"aster-plugin",
"ast",
"javascript",
"transform",
... | {
"name": "aster-umd",
"version": "0.1.3",
"description": "Wrap code to UMD with aster.",
"author": "Ingvar Stepanyan <me@rreverser.com> (https://github.com/RReverser)",
"repository": "asterjs/aster-umd",
"license": "MIT",
"keywords": [
"aster-plugin",
"ast",
"javascript",
"transform",
... | Move estemplate to primary deps. | Move estemplate to primary deps.
| JSON | mit | asterjs/aster-umd | json | ## Code Before:
{
"name": "aster-umd",
"version": "0.1.2",
"description": "Wrap code to UMD with aster.",
"author": "Ingvar Stepanyan <me@rreverser.com> (https://github.com/RReverser)",
"repository": "asterjs/aster-umd",
"license": "MIT",
"keywords": [
"aster-plugin",
"ast",
"javascript",
... |
67830a4214f33ee1e9c94fdfc5dd27747563579e | src/app/api/Actions.js | src/app/api/Actions.js | import {
REQUESTING,
RECEIVE_TOP_RATED,
RECEIVE_NOW_SHOWING,
RECEIVE_POPULAR
} from "./ActionTypes"
export function request() {
return {
type: REQUESTING
}
}
export function receivedNowShowing(data) {
return {
type: RECEIVE_NOW_SHOWING,
data
}
}
export function receivedPopular(data) {
return {
type:... | import {
REQUESTING,
RECEIVE_TOP_RATED,
RECEIVE_NOW_SHOWING,
RECEIVE_POPULAR
} from "./ActionTypes"
export function request() {
return {
type: REQUESTING
}
}
export function receivedNowShowing(data) {
return {
type: RECEIVE_NOW_SHOWING,
data
}
}
export function receivedPopular(data) {
return {
type:... | Use proper action type for different movies | Use proper action type for different movies
| JavaScript | mit | Guru107/test_app | javascript | ## Code Before:
import {
REQUESTING,
RECEIVE_TOP_RATED,
RECEIVE_NOW_SHOWING,
RECEIVE_POPULAR
} from "./ActionTypes"
export function request() {
return {
type: REQUESTING
}
}
export function receivedNowShowing(data) {
return {
type: RECEIVE_NOW_SHOWING,
data
}
}
export function receivedPopular(data) {
... |
3f17def59779608c455f00c1fcea3ceaf23fd60e | test/fixture.sh | test/fixture.sh | TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp
# Recreate tmp folder
rm -rf "$TMP"
mkdir -p "$TMP"
cd "$TMP"
# Create repository and master branch
git init
# Make fixture
git commit -m "Dummy" --allow-empty
git checkout -b feature_one 2> /dev/null
git commit -m "Dummy" --allow-empty
git checkout -b featur... | TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp
# Recreate tmp folder
rm -rf "$TMP"
mkdir -p "$TMP"
cd "$TMP"
# Create repository and master branch
git init
# Make fixture
git commit -m "Dummy" --allow-empty
git checkout -b feature_one 2> /dev/null
git commit -m "Dummy" --allow-empty
git checkout -b featur... | Set default configuration before running tests | Set default configuration before running tests
| Shell | mit | san650/git-switch,san650/git-switch | shell | ## Code Before:
TMP=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/tmp
# Recreate tmp folder
rm -rf "$TMP"
mkdir -p "$TMP"
cd "$TMP"
# Create repository and master branch
git init
# Make fixture
git commit -m "Dummy" --allow-empty
git checkout -b feature_one 2> /dev/null
git commit -m "Dummy" --allow-empty
git ch... |
8b27e324d5444d2330a3fb946462733565fdda21 | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: r
pandoc_version: 2.0.2
install:
- sudo apt-get install poppler-utils
- tlmgr install xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro mdframed needspace fvextra footmisc footnotebackref
before_script:
- cd examples
script:
... | sudo: required
dist: trusty
language: r
pandoc_version: 2.0.2
install:
- sudo apt-get install poppler-utils
- tlmgr install xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro mdframed needspace fvextra footmisc footnotebackref background
before_script:
- cd exampl... | Install missing package `background` for the Travis build of the example `page-background`. | Install missing package `background` for the Travis build of the example `page-background`.
| YAML | bsd-3-clause | Wandmalfarbe/pandoc-latex-template | yaml | ## Code Before:
sudo: required
dist: trusty
language: r
pandoc_version: 2.0.2
install:
- sudo apt-get install poppler-utils
- tlmgr install xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro mdframed needspace fvextra footmisc footnotebackref
before_script:
- cd e... |
9e89db1f44830b916fd8d74ef8b8703dc6c7cc10 | testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/ejb/timer/jboss-ejb3.xml | testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/ejb/timer/jboss-ejb3.xml | <?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:timer="urn:timer-service:2.0"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javae... | <?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:t="urn:timer-service:2.0"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee ht... | Update DistributedTimerTestCase to enable distributed timer management via deployment descriptor. | Update DistributedTimerTestCase to enable distributed timer management via deployment descriptor.
| XML | lgpl-2.1 | iweiss/wildfly,jstourac/wildfly,rhusar/wildfly,pferraro/wildfly,pferraro/wildfly,jstourac/wildfly,rhusar/wildfly,wildfly/wildfly,wildfly/wildfly,rhusar/wildfly,pferraro/wildfly,rhusar/wildfly,pferraro/wildfly,jstourac/wildfly,iweiss/wildfly,wildfly/wildfly,iweiss/wildfly,wildfly/wildfly,jstourac/wildfly,iweiss/wildfly | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:timer="urn:timer-service:2.0"
xsi:schemaLocation="http://www.jboss.... |
b391d555363039d891fe80f551f9740f0c843907 | docs/src/www/index.html | docs/src/www/index.html | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Material UI</title>
<meta name="description" content="Google's material design UI components built with React.">
<meta name="viewport" content="width=device-width, initial-s... | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Material UI</title>
<meta name="description" content="Google's material design UI components built with React.">
<meta name="viewport" content="width=device-width, initial-s... | Remove original mui's google analytics from docs | Remove original mui's google analytics from docs
| HTML | mit | sarink/material-ui-with-sass,sarink/material-ui-with-sass,pschlette/material-ui-with-sass,pschlette/material-ui-with-sass | html | ## Code Before:
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Material UI</title>
<meta name="description" content="Google's material design UI components built with React.">
<meta name="viewport" content="width=device-... |
a2ea625c5abeab9dd9b1f9349b42c56d1dae357a | index.js | index.js | 'use strict';
/**
* Require modules.
*/
var isObject = require('is-object');
/**
* Pick values from object except the given keys.
*
* @param {object} obj
* @param {array|string}
*
* @return {object}
*/
module.exports = function except(obj, keys) {
if (!isObject(obj)) {
throw new Error('`obj` should b... | 'use strict';
/**
* Require modules.
*/
var isObject = require('is-object');
/**
* Pick values from object except the given keys.
*
* @param {object} obj
* @param {array|string}
*
* @return {object}
*/
module.exports = function except(obj, keys) {
if (!isObject(obj)) {
throw new Error('`obj` should b... | Fix deleting of empty obj | Fix deleting of empty obj
| JavaScript | mit | frozzare/object-except,tomekwi/object-except | javascript | ## Code Before:
'use strict';
/**
* Require modules.
*/
var isObject = require('is-object');
/**
* Pick values from object except the given keys.
*
* @param {object} obj
* @param {array|string}
*
* @return {object}
*/
module.exports = function except(obj, keys) {
if (!isObject(obj)) {
throw new Error... |
907c1ce7493b34caeeca9818bede7e2e691975ba | app/controllers/catalog_controller.rb | app/controllers/catalog_controller.rb | class CatalogController < ApplicationController
include Blacklight::Catalog
configure_blacklight do |config|
config.show.oembed_field = :oembed_url_ssm
config.show.partials.insert(1, :oembed)
config.view.gallery.partials = [:index_header, :index]
config.view.masonry.partials = [:index]
config.v... | class CatalogController < ApplicationController
include Blacklight::Catalog
configure_blacklight do |config|
config.show.oembed_field = :oembed_url_ssm
config.show.partials.insert(1, :oembed)
config.view.gallery.partials = [:index_header, :index]
config.view.masonry.partials = [:index]
config.v... | Add catalog configuration to display title/creator | Add catalog configuration to display title/creator
| Ruby | apache-2.0 | pulibrary/pomegranate,pulibrary/pomegranate,pulibrary/pomegranate,pulibrary/pomegranate | ruby | ## Code Before:
class CatalogController < ApplicationController
include Blacklight::Catalog
configure_blacklight do |config|
config.show.oembed_field = :oembed_url_ssm
config.show.partials.insert(1, :oembed)
config.view.gallery.partials = [:index_header, :index]
config.view.masonry.partials = [:ind... |
a102abfef802ff52882fef7dae3ed3551e7c2686 | bin/server.js | bin/server.js | import Koa from 'koa'
import bodyParser from 'koa-bodyparser'
import convert from 'koa-convert'
import logger from 'koa-logger'
import mongoose from 'mongoose'
import session from 'koa-generic-session'
import passport from 'koa-passport'
import mount from 'koa-mount'
import serve from 'koa-static'
import config from '... | import Koa from 'koa'
import bodyParser from 'koa-bodyparser'
import convert from 'koa-convert'
import logger from 'koa-logger'
import mongoose from 'mongoose'
import session from 'koa-generic-session'
import passport from 'koa-passport'
import mount from 'koa-mount'
import serve from 'koa-static'
import config from '... | Change router import to module init | Change router import to module init
| JavaScript | mit | adrianObel/koa2-api-boilerplate | javascript | ## Code Before:
import Koa from 'koa'
import bodyParser from 'koa-bodyparser'
import convert from 'koa-convert'
import logger from 'koa-logger'
import mongoose from 'mongoose'
import session from 'koa-generic-session'
import passport from 'koa-passport'
import mount from 'koa-mount'
import serve from 'koa-static'
impo... |
5faa944b0d6b197ea693a7d06db586dc4d0a517f | Readme.md | Readme.md |
[](https://buildkite.com/new)
This repository is an example on how to test a [Node.js](https://nodejs.org/) project using [Buildkite](https://buildkite.com/) and [Docker](https://docker.com/). It uses the standard [Node.js Docker image](https://hub.docker.com/_/nod... |
[](https://buildkite.com/new)
This repository is an example on how to test a [Node.js](https://nodejs.org/) project using [Buildkite](https://buildkite.com/) and [Docker](https://docker.com/). It uses the standard [Node.js Docker image](https://hub.docker.com/_/nod... | Update README to remove docker build output | Update README to remove docker build output
| Markdown | mit | buildkite/nodejs-docker-example | markdown | ## Code Before:
[](https://buildkite.com/new)
This repository is an example on how to test a [Node.js](https://nodejs.org/) project using [Buildkite](https://buildkite.com/) and [Docker](https://docker.com/). It uses the standard [Node.js Docker image](https://hub.... |
8b17f71c8939bef1718068535c34f2839f64422d | test/SIL/Serialization/vtable_deserialization.swift | test/SIL/Serialization/vtable_deserialization.swift | // RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend %S/Inputs/vtable_deserialization_input.swift -o %t/Swift.swiftmodule -emit-module -parse-as-library -parse-stdlib -module-link-name swiftCore -module-name Swift -sil-serialize-all
// RUN: %target-swift-frontend %s -emit-sil -O -I %t -o - | FileCheck %... | // RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend %S/Inputs/vtable_deserialization_input.swift -o %t/Swift.swiftmodule -emit-module -parse-as-library -parse-stdlib -module-link-name swiftCore -module-name Swift -sil-serialize-all
// RUN: %target-swift-frontend %s -emit-sil -O -I %t -o - | FileCheck %... | Update another test to remove specifics unrelated to the test. | Update another test to remove specifics unrelated to the test.
Swift SVN r31380
| Swift | apache-2.0 | gribozavr/swift,kentya6/swift,jopamer/swift,kperryua/swift,kentya6/swift,practicalswift/swift,arvedviehweger/swift,codestergit/swift,cbrentharris/swift,LeoShimonaka/swift,tinysun212/swift-windows,tardieu/swift,brentdax/swift,return/swift,danielmartin/swift,sschiau/swift,harlanhaskins/swift,therealbnut/swift,allevato/sw... | swift | ## Code Before:
// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend %S/Inputs/vtable_deserialization_input.swift -o %t/Swift.swiftmodule -emit-module -parse-as-library -parse-stdlib -module-link-name swiftCore -module-name Swift -sil-serialize-all
// RUN: %target-swift-frontend %s -emit-sil -O -I %t -o... |
67c4d2d57252f4234675a4e6d2502c635c89952f | README.md | README.md |
Simple Physics Simulations for Dart. Springs, friction, gravity, etc.
| [](https://travis-ci.org/domokit/newton)
[](https://coveralls.io/r/domokit/newton?branch=master)
Simple Physics Simulations for Dart. Springs, friction, gravity, e... | Add build status and coverage badges | Add build status and coverage badges | Markdown | bsd-3-clause | HansMuller/newton,HansMuller/newton | markdown | ## Code Before:
Simple Physics Simulations for Dart. Springs, friction, gravity, etc.
## Instruction:
Add build status and coverage badges
## Code After:
[](https://travis-ci.org/domokit/newton)
[%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi
# don't put duplicate lines or lines starting with a space in the history.
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=10000
SAVEHIST=10000
case "$OSTYPE" in
linux*)
shop... | if [[ -n $SSH_CONNECTION ]]; then
export PS1='%m:%3~$(git_info_for_prompt)%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi
# don't put duplicate lines or lines starting with a space in the history.
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=10000
SAVEHIST=10000
case "$OSTYPE" in
linux*)
shop... | Set EDITOR to code on codespaces | Set EDITOR to code on codespaces
| Shell | mit | smashwilson/dotfiles,smashwilson/dotfiles | shell | ## Code Before:
if [[ -n $SSH_CONNECTION ]]; then
export PS1='%m:%3~$(git_info_for_prompt)%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi
# don't put duplicate lines or lines starting with a space in the history.
HISTCONTROL=ignoreboth
shopt -s histappend
HISTSIZE=10000
SAVEHIST=10000
case "$OSTYPE" in
... |
a0794070e548a33a09cde61fe6db0181d8fc022b | spec/unit/generators/install_generator_spec.rb | spec/unit/generators/install_generator_spec.rb |
require 'spec_helper'
require 'generators/loaf/install_generator'
RSpec.describe Loaf::Generators::InstallGenerator, type: :generator do
destination File.expand_path("../../../tmp", __FILE__)
before { prepare_destination }
it "copies loaf locales to the host application" do
run_generator
locale = file... |
require 'fileutils'
require 'generators/loaf/install_generator'
RSpec.describe Loaf::Generators::InstallGenerator, type: :generator do
destination File.expand_path("../../../tmp", __FILE__)
before { prepare_destination }
it "copies loaf locales to the host application" do
run_generator
locale = file("... | Change to clean up files | Change to clean up files
| Ruby | mit | piotrmurach/loaf,piotrmurach/loaf,piotrmurach/loaf,peter-murach/loaf,peter-murach/loaf,piotrmurach/loaf | ruby | ## Code Before:
require 'spec_helper'
require 'generators/loaf/install_generator'
RSpec.describe Loaf::Generators::InstallGenerator, type: :generator do
destination File.expand_path("../../../tmp", __FILE__)
before { prepare_destination }
it "copies loaf locales to the host application" do
run_generator
... |
e56f13e9eee899f65c933b5e9fb436ab38de2783 | vim/plugin/plugin_settings/language_client_neovim.vim | vim/plugin/plugin_settings/language_client_neovim.vim | if has('nvim')
"FUNCTIONS {{{
" }}}
" SETTINGS {{{
let g:LanguageClient_autoStart = 1
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'typescript': ['javascript-typescript-stdio'],
... | if has('nvim')
"FUNCTIONS {{{
" }}}
" SETTINGS {{{
let g:LanguageClient_autoStart = 1
let g:LanguageClient_rootMarkers = {
\ 'go': ['.git', 'go.mod'],
\ }
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ 'javascript': ['jav... | Use bingo for go language server | vim: Use bingo for go language server
Supports go modules
| VimL | mit | jdlehman/dotfiles,jdlehman/dotfiles | viml | ## Code Before:
if has('nvim')
"FUNCTIONS {{{
" }}}
" SETTINGS {{{
let g:LanguageClient_autoStart = 1
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'typescript': ['javascript-typescr... |
7509425aa4c9ba1a10ab12dd09b7802eecc814da | .travis.yml | .travis.yml | env:
- DISPLAY=:99.0
before_install:
- "sudo pip install -r requirements.txt"
- "npm install -g npm && npm install"
before_script:
- "rm src/ol/renderer/webgl/*shader.js"
- "sh -e /etc/init.d/xvfb start"
script: "make ci"
after_success:
- "make test-coverage"
- "cat coverage/lcov.info | ./node_modules... | language: python
sudo: false
env:
- DISPLAY=:99.0
before_install:
- "pip install -r requirements.txt"
- "npm install -g npm && npm install"
before_script:
- "rm src/ol/renderer/webgl/*shader.js"
- "sh -e /etc/init.d/xvfb start"
script: "make ci"
after_success:
- "make test-coverage"
- "cat coverage/lc... | Install Python dependencies without sudo | Install Python dependencies without sudo
| YAML | bsd-2-clause | alexbrault/ol3,ahocevar/ol3,adube/ol3,planetlabs/ol3,antonio83moura/ol3,freylis/ol3,ahocevar/openlayers,gingerik/ol3,NOAA-ORR-ERD/ol3,kjelderg/ol3,tschaub/ol3,openlayers/openlayers,Distem/ol3,thhomas/ol3,epointal/ol3,CandoImage/ol3,alvinlindstam/ol3,klokantech/ol3raster,stweil/ol3,das-peter/ol3,aisaacs/ol3,epointal/ol3... | yaml | ## Code Before:
env:
- DISPLAY=:99.0
before_install:
- "sudo pip install -r requirements.txt"
- "npm install -g npm && npm install"
before_script:
- "rm src/ol/renderer/webgl/*shader.js"
- "sh -e /etc/init.d/xvfb start"
script: "make ci"
after_success:
- "make test-coverage"
- "cat coverage/lcov.info ... |
bc4486063325fc18bee00ba3ee8ba4e5e2323bee | doc/tools/make_cookbook.py | doc/tools/make_cookbook.py | import sys
import os
body = r"""
.. raw:: html
[<a href="{code}">source code</a>]
.. literalinclude:: {code}
:language: python
:linenos:
"""
def recipe_to_rst(recipe):
"""
Convert a .py recipe to a .rst entry for sphinx
"""
sys.stderr.write("Converting {} to rst ...".format(recipe))
... | import sys
import os
body = r"""
**Download** source code: :download:`{recipe}<{code}>`
.. literalinclude:: {code}
:language: python
"""
def recipe_to_rst(recipe):
"""
Convert a .py recipe to a .rst entry for sphinx
"""
sys.stderr.write("Converting {} to rst ...".format(recipe))
recipe_file ... | Remove line numbers from recipe code | Remove line numbers from recipe code
The larger font made the numbers not match the code.
Added better link text to download the recipe.
| Python | bsd-3-clause | santis19/fatiando,rafaelmds/fatiando,drandykass/fatiando,eusoubrasileiro/fatiando,eusoubrasileiro/fatiando,eusoubrasileiro/fatiando_seismic,fatiando/fatiando,eusoubrasileiro/fatiando_seismic,victortxa/fatiando,fatiando/fatiando,rafaelmds/fatiando,victortxa/fatiando,cmeessen/fatiando,santis19/fatiando,mtb-za/fatiando,eu... | python | ## Code Before:
import sys
import os
body = r"""
.. raw:: html
[<a href="{code}">source code</a>]
.. literalinclude:: {code}
:language: python
:linenos:
"""
def recipe_to_rst(recipe):
"""
Convert a .py recipe to a .rst entry for sphinx
"""
sys.stderr.write("Converting {} to rst ...".form... |
47d950b882c01820db7fe99431526487d88622db | tasks.py | tasks.py | import os
from invocations.docs import docs, www, sites, watch_docs
from invocations.testing import test, coverage, integration, watch_tests
from invocations.packaging import vendorize, release
from invoke import Collection
from invoke.util import LOG_FORMAT
ns = Collection(
test, coverage, integration, vendori... | import os
from invocations.docs import docs, www, sites, watch_docs
from invocations.testing import test, coverage, integration, watch_tests
from invocations.packaging import vendorize, release
from invoke import Collection
from invoke.util import LOG_FORMAT
ns = Collection(
test, coverage, integration, vendori... | Check setup.py desc when packaging | Check setup.py desc when packaging
| Python | bsd-2-clause | pyinvoke/invoke,pyinvoke/invoke,mkusz/invoke,mkusz/invoke | python | ## Code Before:
import os
from invocations.docs import docs, www, sites, watch_docs
from invocations.testing import test, coverage, integration, watch_tests
from invocations.packaging import vendorize, release
from invoke import Collection
from invoke.util import LOG_FORMAT
ns = Collection(
test, coverage, inte... |
5067851bdfaa2189e7da1daef46d003414d0f6dc | ISSUE_TEMPLATE.md | ISSUE_TEMPLATE.md |
...
#### Steps to replicate
Either clone and modify https://gist.github.com/pitr/9a518e840db58f435911
**OR**
Provide example config and message
#### Expected Behavior or What you need to ask
...
#### Using Fluentd and ES plugin versions
* OS version
* Bare Metal or within Docker or Kubernetes or others?
* Flue... | (check apply)
- [ ] read [the contribution guideline](CONTRIBUTING.md)
#### Problem
...
#### Steps to replicate
Either clone and modify https://gist.github.com/pitr/9a518e840db58f435911
**OR**
Provide example config and message
#### Expected Behavior or What you need to ask
...
#### Using Fluentd and ES plugin... | Add checkbox to confirm read to guideline | Add checkbox to confirm read to guideline
| Markdown | apache-2.0 | uken/fluent-plugin-elasticsearch | markdown | ## Code Before:
...
#### Steps to replicate
Either clone and modify https://gist.github.com/pitr/9a518e840db58f435911
**OR**
Provide example config and message
#### Expected Behavior or What you need to ask
...
#### Using Fluentd and ES plugin versions
* OS version
* Bare Metal or within Docker or Kubernetes o... |
e337dc55aa5420506c1351d7000e903afdb4d4ef | account_analytic_invoice_line_menu/__openerp__.py | account_analytic_invoice_line_menu/__openerp__.py | {
"name": "Account Analytic Invoice Line Menu",
"version": "8.0.1.0.0",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "http://www.avanzosc.es",
"contributors": [
"Ana Juaristi <anajuaristi@avanzosc.es>",
"Alfredo de la Fuente <alfredodelafuente@avanzosc.es>",
],
"... | {
"name": "Account Analytic Invoice Line Menu",
"version": "8.0.1.0.0",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "http://www.avanzosc.es",
"contributors": [
"Ana Juaristi <anajuaristi@avanzosc.es>",
"Alfredo de la Fuente <alfredodelafuente@avanzosc.es>",
],
"... | Put dependency to "account_analytic_analysis" module. | [FIX] account_analytic_invoice_line_menu: Put dependency to "account_analytic_analysis" module.
| Python | agpl-3.0 | esthermm/odoo-addons,Daniel-CA/odoo-addons,mikelarre/hr-addons,Daniel-CA/odoo-addons,esthermm/odoo-addons,Daniel-CA/odoo-addons,esthermm/odoo-addons | python | ## Code Before:
{
"name": "Account Analytic Invoice Line Menu",
"version": "8.0.1.0.0",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "http://www.avanzosc.es",
"contributors": [
"Ana Juaristi <anajuaristi@avanzosc.es>",
"Alfredo de la Fuente <alfredodelafuente@avanzosc.es... |
9f970f2def42e8aacff84fc85575a1f6655848f8 | js/locales/bootstrap-datetimepicker.kr.js | js/locales/bootstrap-datetimepicker.kr.js | /**
* Korean translation for bootstrap-datetimepicker
* Gu Youn <http://github.com/guyoun>
*/
;(function($){
$.fn.datetimepicker.dates['kr'] = {
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"],
daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"],
daysMin: ["일", "월", "화", "수", "목", "금", "토", "일"... | /**
* Korean translation for bootstrap-datetimepicker
* Gu Youn <http://github.com/guyoun>
* Baekjoon Choi <http://github.com/Baekjoon>
*/
;(function($){
$.fn.datetimepicker.dates['kr'] = {
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"],
daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"],
da... | Add Korean translation "today, meridiem" | Add Korean translation "today, meridiem"
| JavaScript | apache-2.0 | rento41/bootstrap-datetimepicker,XanderDwyl/bootstrap-datetimepicker-1,foxythemes/bootstrap-datetimepicker,davidpatters0n/bootstrap-datetimepicker,rento41/bootstrap-datetimepicker,lincome/bootstrap-datetimepicker-1,cnbin/bootstrap-datetimepicker,jperkelens/bootstrap-datetimepicker,XanderDwyl/bootstrap-datetimepicker-1,... | javascript | ## Code Before:
/**
* Korean translation for bootstrap-datetimepicker
* Gu Youn <http://github.com/guyoun>
*/
;(function($){
$.fn.datetimepicker.dates['kr'] = {
days: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"],
daysShort: ["일", "월", "화", "수", "목", "금", "토", "일"],
daysMin: ["일", "월", "화", "수", "목... |
40596254df52690d948df67ca80efcf89def098a | app/components/wallet/WalletSendForm.scss | app/components/wallet/WalletSendForm.scss | @import '../../themes/mixins/loading-spinner';
@import '../../themes/mixins/error-message';
.component {
padding: 20px;
}
.submitButtonSpinning {
width: 100%;
@include loading-spinner("../../assets/images/spinner-light.svg");
}
.submitButton {
width: 65%;
margin: 0 auto;
display: block !important;
}
.er... | @import '../../themes/mixins/loading-spinner';
@import '../../themes/mixins/error-message';
.component {
padding: 20px;
}
.submitButtonSpinning, .submitButton {
display: block !important;
margin: 0 auto;
width: 360px;
}
.submitButtonSpinning {
@include loading-spinner("../../assets/images/spinner-light.svg... | Introduce fix for too large button on wallet send screen | [DAEF-132] Introduce fix for too large button on wallet send screen
| SCSS | apache-2.0 | input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus | scss | ## Code Before:
@import '../../themes/mixins/loading-spinner';
@import '../../themes/mixins/error-message';
.component {
padding: 20px;
}
.submitButtonSpinning {
width: 100%;
@include loading-spinner("../../assets/images/spinner-light.svg");
}
.submitButton {
width: 65%;
margin: 0 auto;
display: block !i... |
f068060c09130842b0f8080824e3be5de9090105 | packages/li/ListTree.yaml | packages/li/ListTree.yaml | homepage: http://github.com/yairchu/generator/tree
changelog-type: ''
hash: e4fcac1bf2880b1fdde46395e927c4b590db8626348547fa8e7745e93bf926df
test-bench-deps: {}
maintainer: yairchu@gmail.com
synopsis: Trees and monadic trees expressed as monadic lists where the underlying
monad is a list
changelog: ''
basic-deps:
L... | homepage: http://github.com/yairchu/generator/tree
changelog-type: ''
hash: a4d4f0b740f6bc5b90ee833f9fe8af06ceeba3f91c4aa7370f87c398691c937d
test-bench-deps: {}
maintainer: yairchu@gmail.com
synopsis: Trees and monadic trees expressed as monadic lists where the underlying
monad is a list
changelog: ''
basic-deps:
L... | Update from Hackage at 2015-08-13T12:18:44+0000 | Update from Hackage at 2015-08-13T12:18:44+0000
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/yairchu/generator/tree
changelog-type: ''
hash: e4fcac1bf2880b1fdde46395e927c4b590db8626348547fa8e7745e93bf926df
test-bench-deps: {}
maintainer: yairchu@gmail.com
synopsis: Trees and monadic trees expressed as monadic lists where the underlying
monad is a list
changelog: ''... |
5f9aa50d7cdd1b449a51b2e4b37b10efa3c6949f | api/IntegrityCheck/ProcessCheck.php | api/IntegrityCheck/ProcessCheck.php | <?php
/*
* This file is part of Contao Manager.
*
* (c) Contao Association
*
* @license LGPL-3.0-or-later
*/
namespace Contao\ManagerApi\IntegrityCheck;
use Crell\ApiProblem\ApiProblem;
class ProcessCheck extends AbstractIntegrityCheck
{
public function run()
{
if (function_exists('proc_open')... | <?php
/*
* This file is part of Contao Manager.
*
* (c) Contao Association
*
* @license LGPL-3.0-or-later
*/
namespace Contao\ManagerApi\IntegrityCheck;
use Crell\ApiProblem\ApiProblem;
class ProcessCheck extends AbstractIntegrityCheck
{
public function run()
{
if (function_exists('proc_open')... | Check for all required proc_ methods | Check for all required proc_ methods
fixes #386
| PHP | mit | contao/package-manager | php | ## Code Before:
<?php
/*
* This file is part of Contao Manager.
*
* (c) Contao Association
*
* @license LGPL-3.0-or-later
*/
namespace Contao\ManagerApi\IntegrityCheck;
use Crell\ApiProblem\ApiProblem;
class ProcessCheck extends AbstractIntegrityCheck
{
public function run()
{
if (function_exi... |
827b6d6b766cc1c55bd2256ee6c33f12302584dc | config/locales/en.yml | config/locales/en.yml |
en:
jobcomposer:
# Site specific
options_account_help: "Account is an optional field. If not set, the account may be auto-set by the subit filter."
# General translations
tr:
options_account_title: "Account"
options_array_help: "Job arrays are optional."
options_array_help_with_c... |
en:
jobcomposer:
# Site specific translations
options_account_help: "Account is an optional field. If not set, the account may be auto-set by the submit filter."
# General translations
options_account_title: "Account"
options_array_help: "Job arrays are optional."
options_array_help_with_cl... | Fix speeling error and begin removing tr namespace | Fix speeling error and begin removing tr namespace
| YAML | mit | OSC/ood-myjobs,OSC/ood-myjobs,OSC/ood-myjobs,OSC/ood-myjobs | yaml | ## Code Before:
en:
jobcomposer:
# Site specific
options_account_help: "Account is an optional field. If not set, the account may be auto-set by the subit filter."
# General translations
tr:
options_account_title: "Account"
options_array_help: "Job arrays are optional."
options_a... |
fcf70985ccc27c6d9a097f98876b3ce061bcc5af | javascript/gallery.js | javascript/gallery.js | (function($) {
$(document).ready(function() {
var ad_galleries = $('.ad-gallery').adGallery();
});
})(jQuery)
| (function($) {
$(document).ready(function() {
var ad_galleries = $('.ad-gallery').adGallery({ loader_image: 'gallery/images/loader.gif' });
});
})(jQuery)
| Add default url for loading gif | Add default url for loading gif
| JavaScript | bsd-3-clause | ntd/silverstripe-gallery | javascript | ## Code Before:
(function($) {
$(document).ready(function() {
var ad_galleries = $('.ad-gallery').adGallery();
});
})(jQuery)
## Instruction:
Add default url for loading gif
## Code After:
(function($) {
$(document).ready(function() {
var ad_galleries = $('.ad-gallery').adGallery({ loader_image: 'galle... |
727c3e2feacfd796eedb4c7cf52891fd8e3ae208 | circle.yml | circle.yml | machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8.1.3
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn run ci
notify:
webhooks:
# A list of hook hashes, containing the url field
#... | machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8.1.3
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn run ci
notify:
webhooks:
# A list of hook hashes, containing the url field
#... | Delete development branch and set Circle CI to monitor master branch | Delete development branch and set Circle CI to monitor master branch
| YAML | mit | abdulhaq-e/ngrx-json-api,abdulhaq-e/ngrx-json-api | yaml | ## Code Before:
machine:
environment:
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 8.1.3
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
test:
override:
- yarn run ci
notify:
webhooks:
# A list of hook hashes, containing the... |
8371cb2067092ce673287b51fed98480e8c6b2e4 | _posts/2016-01-02-pranshu.md | _posts/2016-01-02-pranshu.md | ---
layout: post
officer: true
name: Pranshu Bansal
position: Community Liaison
hometown: Auckland, New Zealand
alma_mater: University of Tennessee at Knoxville
advisor: William Kaiser
header-img: "img/officers/Pranshu.png"
active: true
email:
department: Electrical Engineering
---
#Bio... | ---
layout: post
officer: true
name: Pranshu Bansal
position: Community Liaison
hometown: Auckland, New Zealand
alma_mater: University of Tennessee at Knoxville
advisor: William Kaiser
header-img: "img/officers/Pranshu.png"
active: true
year: 2016
email:
department: Electrical Engineerin... | Add year for officer classification | Add year for officer classification | Markdown | apache-2.0 | egsaatucla/egsaatucla.github.io,egsaatucla/egsaatucla.github.io,egsaatucla/egsaatucla.github.io,egsaatucla/egsaatucla.github.io | markdown | ## Code Before:
---
layout: post
officer: true
name: Pranshu Bansal
position: Community Liaison
hometown: Auckland, New Zealand
alma_mater: University of Tennessee at Knoxville
advisor: William Kaiser
header-img: "img/officers/Pranshu.png"
active: true
email:
department: Electrical Engin... |
5a47ca87858bb08fcaac4a38322dc04eaf74cac2 | src/foremast/utils/get_sns_topic_arn.py | src/foremast/utils/get_sns_topic_arn.py | """SNS Topic functions."""
import logging
import boto3
from ..exceptions import SNSTopicNotFound
LOG = logging.getLogger(__name__)
def get_sns_topic_arn(topic_name, account, region):
"""Get SNS topic ARN.
Args:
topic_name (str): Name of the topic to lookup.
account (str): Environment, e.g.... | """SNS Topic functions."""
import logging
import boto3
from ..exceptions import SNSTopicNotFound
LOG = logging.getLogger(__name__)
def get_sns_topic_arn(topic_name, account, region):
"""Get SNS topic ARN.
Args:
topic_name (str): Name of the topic to lookup.
account (str): Environment, e.g.... | Return ARN directly if topic name appears to be an ARN | Return ARN directly if topic name appears to be an ARN
| Python | apache-2.0 | gogoair/foremast,gogoair/foremast | python | ## Code Before:
"""SNS Topic functions."""
import logging
import boto3
from ..exceptions import SNSTopicNotFound
LOG = logging.getLogger(__name__)
def get_sns_topic_arn(topic_name, account, region):
"""Get SNS topic ARN.
Args:
topic_name (str): Name of the topic to lookup.
account (str): E... |
3f6e8b5b1c2415b2ddc21fa431d04cf4b20bf627 | tenets/codelingo/code-review-comments/do-not-discard-errors/codelingo.yaml | tenets/codelingo/code-review-comments/do-not-discard-errors/codelingo.yaml | tenets:
- name: do-not-discard-errors
flows:
codelingo/docs:
title: Do Not Discard Errors
body: |
Do not discard errors using _ variables. If a function returns an error,
check it to make sure the function succeeded. Handle the error, return it, or,
in truly e... | tenets:
- name: do-not-discard-errors
flows:
codelingo/docs:
title: Do Not Discard Errors
body: |
Do not discard errors using _ variables. If a function returns an error, check it to make sure the function succeeded. Handle the error, return it, or, in truly exceptional situations,... | Add explanatory comment and fix review comment. | Add explanatory comment and fix review comment.
| YAML | agpl-3.0 | lingo-reviews/lingo,lingo-reviews/lingo | yaml | ## Code Before:
tenets:
- name: do-not-discard-errors
flows:
codelingo/docs:
title: Do Not Discard Errors
body: |
Do not discard errors using _ variables. If a function returns an error,
check it to make sure the function succeeded. Handle the error, return it, or,
... |
087e6658abe603df4978264a6351c039fd17b60f | src/mmw/js/src/core/templates/layerPickerLayer.html | src/mmw/js/src/core/templates/layerPickerLayer.html | <div class="layerpicker-layer">
<button
class="{{layerClass}}"
{% if isDisabled %} disabled {% endif %}
>
{{ layerDisplay }}
</button>
{% if not isDisabled and legendMapping %}
<a
tabindex="-1"
role="button"
data-html="true"
... | <div class="layerpicker-layer">
<button
class="{{layerClass}}"
{% if isDisabled %}title="This layer is unavailable at this location" disabled {% endif %}
>
{{ layerDisplay }}
</button>
{% if not isDisabled and legendMapping %}
<a
tabindex="-1"
role... | Add a tooltip for inactive layers | Add a tooltip for inactive layers
| HTML | apache-2.0 | WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed,WikiWatershed/model-my-watershed | html | ## Code Before:
<div class="layerpicker-layer">
<button
class="{{layerClass}}"
{% if isDisabled %} disabled {% endif %}
>
{{ layerDisplay }}
</button>
{% if not isDisabled and legendMapping %}
<a
tabindex="-1"
role="button"
data-html="t... |
ee130df5b48d1e4196bb9159de64e279656cdfcf | byceps/blueprints/snippet/views.py | byceps/blueprints/snippet/views.py |
from flask import abort, g
from ...services.snippet import mountpoint_service
from ...util.framework.blueprint import create_blueprint
from .templating import render_snippet_as_page, render_snippet_as_partial
blueprint = create_blueprint('snippet', __name__)
blueprint.add_app_template_global(render_snippet_as_par... |
from flask import abort, g, url_for
from ...services.snippet import mountpoint_service
from ...util.framework.blueprint import create_blueprint
from .templating import render_snippet_as_page, render_snippet_as_partial
blueprint = create_blueprint('snippet', __name__)
blueprint.add_app_template_global(render_snipp... | Introduce global template function `url_for_snippet` | Introduce global template function `url_for_snippet`
Use it to ease the transition to a multisite-capable snippet URL rule system.
| Python | bsd-3-clause | m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps | python | ## Code Before:
from flask import abort, g
from ...services.snippet import mountpoint_service
from ...util.framework.blueprint import create_blueprint
from .templating import render_snippet_as_page, render_snippet_as_partial
blueprint = create_blueprint('snippet', __name__)
blueprint.add_app_template_global(rende... |
26e4dd753b020e51ca031b8b422df0fa798afe5e | killswitch2/killswitch2.cpp | killswitch2/killswitch2.cpp |
/*
_____ ___ ___
RESET -| U |- VCC
(Mode) ADC3 -| AT13A |- ADC1 (Depth)
(Speed) ADC2 -| |- OC0B (PWM Output)
GND -|_______|- PB0 (Button)
*/
int main()
{
while(1)
{
cli();
}
}
|
/*
_____ ___ ___
RESET -| U |- VCC
(Mode) ADC3 -| AT13A |- ADC1 (Depth)
(Speed) ADC2 -| |- OC0B (PWM Output)
GND -|_______|- PB0 (Button)
*/
enum {
ADC_DEPTH = 1,
ADC_SPEED = 2,
ADC_MODE = 3,
};
int main()
{
while(1)
{
... | Add enum definitions for ADC's. | Add enum definitions for ADC's. | C++ | mit | sergey-raevskiy/modfx,sergey-raevskiy/modfx | c++ | ## Code Before:
/*
_____ ___ ___
RESET -| U |- VCC
(Mode) ADC3 -| AT13A |- ADC1 (Depth)
(Speed) ADC2 -| |- OC0B (PWM Output)
GND -|_______|- PB0 (Button)
*/
int main()
{
while(1)
{
cli();
}
}
## Instruction:
Add enum definitions for ADC's.
... |
81e961f3f78a4fd270ec31dbcfcc0ba5eaeffa45 | web/static/js/components/remote_retro.jsx | web/static/js/components/remote_retro.jsx | import React, { Component, PropTypes } from "react"
import { Presence } from "phoenix"
import * as AppPropTypes from "../prop_types"
import Room from "./room"
const isFacilitator = currentPresence => {
if (currentPresence) {
return currentPresence.user.is_facilitator
}
return false
}
class RemoteRetro ext... | import React, { Component, PropTypes } from "react"
import { Presence } from "phoenix"
import * as AppPropTypes from "../prop_types"
import Room from "./room"
const isFacilitator = currentPresence => {
if (currentPresence) {
return currentPresence.user.is_facilitator
}
return false
}
class RemoteRetro ext... | Add handlers for retroChannel.js client's 'join' responses | Add handlers for retroChannel.js client's 'join' responses
| JSX | mit | samdec11/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro | jsx | ## Code Before:
import React, { Component, PropTypes } from "react"
import { Presence } from "phoenix"
import * as AppPropTypes from "../prop_types"
import Room from "./room"
const isFacilitator = currentPresence => {
if (currentPresence) {
return currentPresence.user.is_facilitator
}
return false
}
class... |
f4db38a3effa7ef49c79b55b064d9b3033c63d33 | busstops/templates/search/indexes/busstops/service_text.txt | busstops/templates/search/indexes/busstops/service_text.txt | {% for operator in object.operator.all %}
{{ operator }}
{% endfor %}
{{ object }}
{% for stop in object.stops.all %}
{{ stop }}
{% endfor %}
| {% for operator in object.operator.all %}
{{ operator }}
{% endfor %}
{{ object }}
{% for stop in object.stops.all %}
{{ stop.get_qualified_name }}
{% endfor %}
| Use more complete stop names in service text | Use more complete stop names in service text
| Text | mpl-2.0 | stev-0/bustimes.org.uk,jclgoodwin/bustimes.org.uk,stev-0/bustimes.org.uk,stev-0/bustimes.org.uk,jclgoodwin/bustimes.org.uk,jclgoodwin/bustimes.org.uk,jclgoodwin/bustimes.org.uk,stev-0/bustimes.org.uk,stev-0/bustimes.org.uk | text | ## Code Before:
{% for operator in object.operator.all %}
{{ operator }}
{% endfor %}
{{ object }}
{% for stop in object.stops.all %}
{{ stop }}
{% endfor %}
## Instruction:
Use more complete stop names in service text
## Code After:
{% for operator in object.operator.all %}
{{ operator }}
{% endfor %}
{{... |
35c643aef0cb6b194e62cd5f2fcf7df98bf46870 | django_lightweight_queue/management/commands/queue_deduplicate.py | django_lightweight_queue/management/commands/queue_deduplicate.py | from django.core.management.base import BaseCommand, CommandError
from ...utils import get_backend
class Command(BaseCommand):
help = "Command to deduplicate tasks in a redis-backed queue"
def add_arguments(self, parser):
parser.add_argument(
'queue',
action='store',
... | from django.core.management.base import BaseCommand, CommandError
from ...utils import get_backend
class Command(BaseCommand):
help = "Command to deduplicate tasks in a redis-backed queue"
def add_arguments(self, parser):
parser.add_argument(
'queue',
action='store',
... | Improve output when no deduplication happened | Improve output when no deduplication happened
| Python | bsd-3-clause | thread/django-lightweight-queue,thread/django-lightweight-queue | python | ## Code Before:
from django.core.management.base import BaseCommand, CommandError
from ...utils import get_backend
class Command(BaseCommand):
help = "Command to deduplicate tasks in a redis-backed queue"
def add_arguments(self, parser):
parser.add_argument(
'queue',
action='... |
7e3a08fc575ad5963b04a6b6f60fe9bcf4984b6b | lib/tasks/data_migrations/backfill_service_upload_educator_ids.rake | lib/tasks/data_migrations/backfill_service_upload_educator_ids.rake | namespace :data_migration do
desc "Backfill all service upload IDs"
task backfill_service_upload_ids: :environment do
puts "Updating service upload records..."; puts;
ActiveRecord::Base.transaction do
ServiceUpload.all.each do |service_upload|
service_upload.uploaded_by_educator_id = ENV.fetc... | namespace :data_migration do
desc "Backfill all service upload IDs"
task backfill_service_upload_ids: :environment do
raise "Need an Uri ID!" unless ENV['URI_ID']
puts "Updating service upload records..."; puts;
ActiveRecord::Base.transaction do
ServiceUpload.all.each do |service_upload|
... | Add a missing ID guard up front | Add a missing ID guard up front
| Ruby | mit | studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights,studentinsights/studentinsights | ruby | ## Code Before:
namespace :data_migration do
desc "Backfill all service upload IDs"
task backfill_service_upload_ids: :environment do
puts "Updating service upload records..."; puts;
ActiveRecord::Base.transaction do
ServiceUpload.all.each do |service_upload|
service_upload.uploaded_by_educat... |
795d87333e81d47b4bfa6d809db539ba7a70898a | src/stdlib/Array.js | src/stdlib/Array.js | 'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../values/ArrayValue');
class ArrayObject extends EasyObjectValue {
*call(thiz, args, s) {
if ( args.length === 1 && args[0].jsTypeName === 'number' ) {
l... | 'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../values/ArrayValue');
const CompletionRecord = require('../CompletionRecord');
class ArrayObject extends EasyObjectValue {
*call(thiz, args, s) {
if ( args... | Throw on non-int array lenghts | Throw on non-int array lenghts
| JavaScript | mit | codecombat/esper.js,codecombat/esper.js,codecombat/esper.js | javascript | ## Code Before:
'use strict';
const EasyObjectValue = require('../values/EasyObjectValue');
const ObjectValue = require('../values/ObjectValue');
const ArrayValue = require('../values/ArrayValue');
class ArrayObject extends EasyObjectValue {
*call(thiz, args, s) {
if ( args.length === 1 && args[0].jsTypeName === '... |
9044b16f400d21710db8f5d5ca4c1591e5b904eb | recipes/restinstance/meta.yaml | recipes/restinstance/meta.yaml | {% set name = "RESTinstance" %}
{% set version = "1.0.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: c241e44e51c7a793c7c5ca0476caac2b703cc78da8041ab05ded965ce49bc187
build:
noarch: py... | {% set name = "RESTinstance" %}
{% set version = "1.0.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: c241e44e51c7a793c7c5ca0476caac2b703cc78da8041ab05ded965ce49bc187
build:
noarch: py... | Add extra arguments to pip | Add extra arguments to pip
| YAML | bsd-3-clause | ocefpaf/staged-recipes,stuertz/staged-recipes,mariusvniekerk/staged-recipes,igortg/staged-recipes,SylvainCorlay/staged-recipes,goanpeca/staged-recipes,patricksnape/staged-recipes,scopatz/staged-recipes,ReimarBauer/staged-recipes,jakirkham/staged-recipes,goanpeca/staged-recipes,jochym/staged-recipes,SylvainCorlay/staged... | yaml | ## Code Before:
{% set name = "RESTinstance" %}
{% set version = "1.0.2" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: c241e44e51c7a793c7c5ca0476caac2b703cc78da8041ab05ded965ce49bc187
bui... |
fb5705e8b3d834575c47fe0d070c06bf4d02cd11 | gremlin-core/src/main/java/com/tinkerpop/gremlin/structure/io/graphson/GraphSONObjectMapper.java | gremlin-core/src/main/java/com/tinkerpop/gremlin/structure/io/graphson/GraphSONObjectMapper.java | package com.tinkerpop.gremlin.structure.io.graphson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import java.util.Optional... | package com.tinkerpop.gremlin.structure.io.graphson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import java.util.Optional... | Configure dynamic serializer loader for GraphSON | Configure dynamic serializer loader for GraphSON
| Java | apache-2.0 | apache/tinkerpop,pluradj/incubator-tinkerpop,apache/incubator-tinkerpop,krlohnes/tinkerpop,n-tran/incubator-tinkerpop,jorgebay/tinkerpop,robertdale/tinkerpop,gdelafosse/incubator-tinkerpop,RussellSpitzer/incubator-tinkerpop,robertdale/tinkerpop,vtslab/incubator-tinkerpop,Lab41/tinkerpop3,edgarRd/incubator-tinkerpop,krl... | java | ## Code Before:
package com.tinkerpop.gremlin.structure.io.graphson;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider;
import ja... |
9de141b52631556237ad5fd37686180cc5cf6bb4 | load_sch.sh | load_sch.sh |
for n in sch_fifo_qsize sch_pi2 sch_pie_qsize; do (
echo
echo "---- BUILDING AND LOADING: $n ----"
echo
cd $n
make
sudo make unload
sudo make load
); done
|
cd "$(dirname $(readlink -f $BASH_SOURCE))"
for n in sch_fifo_qsize sch_pi2 sch_pie_qsize; do (
echo
echo "---- BUILDING AND LOADING: $n ----"
echo
cd $n
make
sudo make unload
sudo make load
); done
| Update script that load schedulers | Update script that load schedulers
| Shell | mit | henrist/aqmt,henrist/aqmt,henrist/aqmt,henrist/aqmt | shell | ## Code Before:
for n in sch_fifo_qsize sch_pi2 sch_pie_qsize; do (
echo
echo "---- BUILDING AND LOADING: $n ----"
echo
cd $n
make
sudo make unload
sudo make load
); done
## Instruction:
Update script that load schedulers
## Code After:
cd "$(dirname $(readlink -f $BASH_SOURCE))"
for n ... |
1e6a424e2669441e6910d3a2803bc139df16dd51 | new_validity.py | new_validity.py | import pandas as pd
import numpy as np
import operator
from sys import argv
import os
def extract( file_name ):
with open(file_name) as f:
for i,line in enumerate(f,1):
if "SCN" in line:
return i
def main(lta_name):
os.system('ltahdr -i'+ lta_name + '> lta_file.txt')
di... | import pandas as pd
import numpy as np
import operator
from sys import argv
import os
def extract( file_name ):
with open(file_name) as f:
for i,line in enumerate(f,1):
if "SCN" in line:
return i
def main():
lta_file = str(argv[1])
calibrator_list = ['3C48', '3C147', '... | Add scratch file for testing new validity | Add scratch file for testing new validity
| Python | mit | NCRA-TIFR/gadpu,NCRA-TIFR/gadpu | python | ## Code Before:
import pandas as pd
import numpy as np
import operator
from sys import argv
import os
def extract( file_name ):
with open(file_name) as f:
for i,line in enumerate(f,1):
if "SCN" in line:
return i
def main(lta_name):
os.system('ltahdr -i'+ lta_name + '> lta_f... |
cd6d6bf924c540ee044165cef8f953d3d0616416 | README.md | README.md | photon-core
===========
On the fly photo processing | photon-core
===========
On the fly photo processing
See it in use in an example at https://github.com/1000Memories/photon-example
| Update readme a teensy bit | Update readme a teensy bit
| Markdown | apache-2.0 | 1000Memories/photon-core,michaelmior/photon-core,jordan-thoms/photon-notable | markdown | ## Code Before:
photon-core
===========
On the fly photo processing
## Instruction:
Update readme a teensy bit
## Code After:
photon-core
===========
On the fly photo processing
See it in use in an example at https://github.com/1000Memories/photon-example
|
21a48235ec6b5ec6d3c6a717b345cc20172d2923 | peco-anyenv.sh | peco-anyenv.sh | function _switch_env() {
if [[ $fooenv == "" || $language_name == "" ]]; then
return 0
fi
versions=`$fooenv versions | peco`
if [[ $versions == "" ]]; then
return 0
fi
if [[ $versions == \** ]]; then
version_name=`echo $versions | cut -d' ' -f1`
else
version_name=`echo $versions | awk '{... | function _switch_env() {
if [[ $fooenv == "" || $language_name == "" ]]; then
return 0
fi
versions=`$fooenv versions | peco`
if [[ $versions == "" ]]; then
return 0
fi
if [[ $versions == \** ]]; then
version_name=`echo $versions | awk '{ print $2 }'`
else
version_name=`echo $versions | a... | Fix the issue that global option is not working | Fix the issue that global option is not working
| Shell | mit | giginet/peco-anyenv | shell | ## Code Before:
function _switch_env() {
if [[ $fooenv == "" || $language_name == "" ]]; then
return 0
fi
versions=`$fooenv versions | peco`
if [[ $versions == "" ]]; then
return 0
fi
if [[ $versions == \** ]]; then
version_name=`echo $versions | cut -d' ' -f1`
else
version_name=`echo $v... |
105a8942a27bd3aa333c305e122a5699b161f6f5 | src/Nam/Commander/CommandHandler.php | src/Nam/Commander/CommandHandler.php | <?php
namespace Nam\Commander;
/**
* Class RegisterUserCommandHandler
*
* @author Nam Hoang Luu <nam@mbearvn.com>
* @package Mbibi\Core\Commands
*
*/
interface CommandHandler
{
/**
* @param BaseCommand $command
*
* @throws InvalidCommandException
* @return mixed
*/
public func... | <?php
namespace Nam\Commander;
use Nam\Commander\Exceptions\InvalidCommandException;
/**
* Class RegisterUserCommandHandler
*
* @author Nam Hoang Luu <nam@mbearvn.com>
* @package Mbibi\Core\Commands
*
*/
interface CommandHandler
{
/**
* @param BaseCommand $command
*
* @throws InvalidComman... | Fix error class InvalidCommandException does exists | Fix error class InvalidCommandException does exists
| PHP | mit | luuhoangnam/commander | php | ## Code Before:
<?php
namespace Nam\Commander;
/**
* Class RegisterUserCommandHandler
*
* @author Nam Hoang Luu <nam@mbearvn.com>
* @package Mbibi\Core\Commands
*
*/
interface CommandHandler
{
/**
* @param BaseCommand $command
*
* @throws InvalidCommandException
* @return mixed
*/... |
2b120d9d73154353f30e29f5e1e9e615e6101d5b | app/Resources/views/common/widget/tabs/base.html.twig | app/Resources/views/common/widget/tabs/base.html.twig | <ul class="tabs tabs-transparent">
<li class="tab"><a class="active" href="#test1">Test 1</a></li>
<li class="tab"><a href="#test2">Test 2</a></li>
<li class="tab"><a href="#test3">Test 3</a></li>
</ul>
| {% if page.tabs is defined %}
<ul class="tabs tabs-transparent">
<li class="tab"><a class="active" href="#test1">Test 1</a></li>
<li class="tab"><a href="#test2">Test 2</a></li>
<li class="tab"><a href="#test3">Test 3</a></li>
</ul>
{% endif %} | Fix (tabs): tabs are no longer always displayed | Fix (tabs): tabs are no longer always displayed
| Twig | mit | PierreSylvain/nao,PierreSylvain/nao,PierreSylvain/nao | twig | ## Code Before:
<ul class="tabs tabs-transparent">
<li class="tab"><a class="active" href="#test1">Test 1</a></li>
<li class="tab"><a href="#test2">Test 2</a></li>
<li class="tab"><a href="#test3">Test 3</a></li>
</ul>
## Instruction:
Fix (tabs): tabs are no longer always displayed
## Code After:
{% if pa... |
0372f4aeadbf7676f225765523f4a1dbd15d160b | python-tool/_ptool.yaml | python-tool/_ptool.yaml | description: Simple Python tool with virtual environment
template-values:
py_copyright: |
##################################################
# Copyright (C) 2017, All rights reserved.
##################################################
template-globals:
module_name: "{{ project_name | replace(\"_\", \"... | description: Simple Python tool with virtual environment
template-values:
py_copyright: |
##################################################
# Copyright (C) 2017, All rights reserved.
##################################################
template-globals:
module_name: "{{ project_name | replace(\"_\", \"... | Remove references to env and virtualenv | Remove references to env and virtualenv
| YAML | mit | rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates,rcook/ptool-templates | yaml | ## Code Before:
description: Simple Python tool with virtual environment
template-values:
py_copyright: |
##################################################
# Copyright (C) 2017, All rights reserved.
##################################################
template-globals:
module_name: "{{ project_name | r... |
f304c05df6c6ee2d67dadf09131de03134016347 | index.html | index.html | <html>
<head>
<title>Om / Sente Example</title>
<style>
path {
stroke: steelblue;
stroke-width: 2;
fill: none;
}
line {
stroke:black;
}
text {
font-family: A... | <html>
<head>
<title>Om / Sente Example</title>
<style>
#d3-node path {
stroke: steelblue;
stroke-width: 2;
fill: none;
}
#d3-node line {
stroke:black;
}
#d3-node text {
... | Clean up CSS to only apply to raw D3 graph. NVD3 has its own nicer styling. | Clean up CSS to only apply to raw D3 graph. NVD3 has its own nicer styling.
| HTML | epl-1.0 | seancorfield/om-sente | html | ## Code Before:
<html>
<head>
<title>Om / Sente Example</title>
<style>
path {
stroke: steelblue;
stroke-width: 2;
fill: none;
}
line {
stroke:black;
}
text {
... |
36eb880bdbb7b8d7ece7c99f9c045536a31b17b2 | packages/qu/QuickCheck-GenT.yaml | packages/qu/QuickCheck-GenT.yaml | homepage: https://github.com/nikita-volkov/QuickCheck-GenT
changelog-type: ''
hash: da6e8e3be163322ef3dd3aa95b4ff8dd60a659069c0222b19cc62a56dd6fbf53
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: A GenT monad transformer for QuickCheck library.
changelog: ''
basic-deps:
base: ! '>=4... | homepage: https://github.com/nikita-volkov/QuickCheck-GenT
changelog-type: ''
hash: d11b7b4a3f7648895eff66376a00f763821ee955ce42a37fb918213a8eae88d6
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: A GenT monad transformer for QuickCheck library.
changelog: ''
basic-deps:
base: ! '>=4... | Update from Hackage at 2016-04-19T06:21:19+0000 | Update from Hackage at 2016-04-19T06:21:19+0000
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/nikita-volkov/QuickCheck-GenT
changelog-type: ''
hash: da6e8e3be163322ef3dd3aa95b4ff8dd60a659069c0222b19cc62a56dd6fbf53
test-bench-deps: {}
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
synopsis: A GenT monad transformer for QuickCheck library.
changelog: ''
basic-deps... |
fab8812cc1bb9db0683e7d0b0182a63ee1159874 | conformance/failure_list_python.txt | conformance/failure_list_python.txt | Recommended.JsonInput.DoubleFieldInfinityNotQuoted
Recommended.JsonInput.DoubleFieldNanNotQuoted
Recommended.JsonInput.DoubleFieldNegativeInfinityNotQuoted
Recommended.JsonInput.FloatFieldInfinityNotQuoted
Recommended.JsonInput.FloatFieldNanNotQuoted
Recommended.JsonInput.FloatFieldNegativeInfinityNotQuoted
Required.Js... | Recommended.JsonInput.DoubleFieldInfinityNotQuoted
Recommended.JsonInput.DoubleFieldNanNotQuoted
Recommended.JsonInput.DoubleFieldNegativeInfinityNotQuoted
Recommended.JsonInput.FloatFieldInfinityNotQuoted
Recommended.JsonInput.FloatFieldNanNotQuoted
Recommended.JsonInput.FloatFieldNegativeInfinityNotQuoted
Required.Js... | Update python conformance failure list. | Update python conformance failure list.
| Text | bsd-3-clause | google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf,google/protobuf | text | ## Code Before:
Recommended.JsonInput.DoubleFieldInfinityNotQuoted
Recommended.JsonInput.DoubleFieldNanNotQuoted
Recommended.JsonInput.DoubleFieldNegativeInfinityNotQuoted
Recommended.JsonInput.FloatFieldInfinityNotQuoted
Recommended.JsonInput.FloatFieldNanNotQuoted
Recommended.JsonInput.FloatFieldNegativeInfinityNotQu... |
a6a8f6102d570a752118d7a1753c54c7be2a5035 | languages/tcl/t/cmd_continue.t | languages/tcl/t/cmd_continue.t |
source lib/test_more.tcl
plan 2
eval_is {
set result ""
for {set a 0} {$a < 10} {incr a} {
if {$a > 5} { continue }
set result [append result $a]
}
list $a $result
} {10 012345} {continue from for}
eval_is {
set result ""
set a 0
while {$a <= 10} {
incr a
if {$a < 5} { continue }
set result [ap... |
source lib/test_more.tcl
plan 3
eval_is {
set result ""
for {set a 0} {$a < 10} {incr a} {
if {$a > 5} { continue }
set result [append result $a]
}
list $a $result
} {10 012345} {continue from for}
eval_is {
set result ""
set a 0
while {$a <= 10} {
incr a
if {$a < 5} { continue }
set result [ap... | Add a failing [continue] test | [tcl]: Add a failing [continue] test
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@14372 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| Perl | artistic-2.0 | ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot,ashgti/parrot | perl | ## Code Before:
source lib/test_more.tcl
plan 2
eval_is {
set result ""
for {set a 0} {$a < 10} {incr a} {
if {$a > 5} { continue }
set result [append result $a]
}
list $a $result
} {10 012345} {continue from for}
eval_is {
set result ""
set a 0
while {$a <= 10} {
incr a
if {$a < 5} { continue }
... |
3067aa2d3c4beb1a2aca4ff59d7d2b88d33c8b84 | app/components/gh-content-view-container.js | app/components/gh-content-view-container.js | import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'section',
classNames: ['gh-view', 'content-view-container'],
previewIsHidden: false,
resizeService: Ember.inject.service(),
calculatePreviewIsHidden: function () {
if (this.$('.content-preview').length) {
... | import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'section',
classNames: ['gh-view', 'content-view-container'],
previewIsHidden: false,
resizeService: Ember.inject.service(),
_resizeListener: null,
calculatePreviewIsHidden: function () {
if (this.$('.conten... | Fix teardown of resize handler in content management screen | Fix teardown of resize handler in content management screen
refs #5659 ([comment](https://github.com/TryGhost/Ghost/issues/5659#issuecomment-137114898))
- cleans up resize handler on willDestroy hook of gh-content-view-container
| JavaScript | mit | TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,dbalders/Ghost-Admin,kevinansfield/Ghost-Admin,acburdine/Ghost-Admin,airycanon/Ghost-Admin,JohnONolan/Ghost-Admin,TryGhost/Ghost-Admin,JohnONolan/Ghost-Admin,acburdine/Ghost-Admin,dbalders/Ghost-Admin,airycanon/Ghost-Admin | javascript | ## Code Before:
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'section',
classNames: ['gh-view', 'content-view-container'],
previewIsHidden: false,
resizeService: Ember.inject.service(),
calculatePreviewIsHidden: function () {
if (this.$('.content-preview').... |
1152aad1cae4887605d1aef0ed64db474fdfa376 | now.json | now.json | {
"version": 2,
"name": "monorepo",
"public": true,
"static": {
"cleanUrls": false,
"trailingSlash": true
},
"github": {
"silent": true
},
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "built-storybooks" }
}
],
"build": ... | {
"version": 2,
"name": "monorepo",
"public": true,
"static": {
"cleanUrls": false,
"trailingSlash": true
},
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "built-storybooks" }
}
],
"build": {
"env": {
"DOTENV_DISPLAY_W... | REMOVE the silent property to see if that makes it ok again.. | REMOVE the silent property to see if that makes it ok again..
| JSON | mit | storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook | json | ## Code Before:
{
"version": 2,
"name": "monorepo",
"public": true,
"static": {
"cleanUrls": false,
"trailingSlash": true
},
"github": {
"silent": true
},
"builds": [
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": "built-storybooks" }
}
... |
da007b0590fb4540bc1c8b5d32a140ef57ccf720 | lib/IntersectionParams.js | lib/IntersectionParams.js | /**
*
* IntersectionParams.js
*
* copyright 2002, Kevin Lindsey
*
*/
/**
* IntersectionParams
*
* @param {String} name
* @param {Array<Point2D} params
* @returns {IntersectionParams}
*/
function IntersectionParams(name, params) {
this.init(name, params);
}
/**
* init
*
* @param {String} n... | /**
*
* IntersectionParams.js
*
* copyright 2002, Kevin Lindsey
*
*/
/**
* IntersectionParams
*
* @param {String} name
* @param {Array<Point2D} params
* @returns {IntersectionParams}
*/
function IntersectionParams(name, params) {
this.init(name, params);
}
!function () {
IntersectionParams... | Make IntersectionPrams standard type strings available as constants. | Make IntersectionPrams standard type strings available as constants.
| JavaScript | bsd-3-clause | Quazistax/kld-intersections,effektif/svg-intersections | javascript | ## Code Before:
/**
*
* IntersectionParams.js
*
* copyright 2002, Kevin Lindsey
*
*/
/**
* IntersectionParams
*
* @param {String} name
* @param {Array<Point2D} params
* @returns {IntersectionParams}
*/
function IntersectionParams(name, params) {
this.init(name, params);
}
/**
* init
*
* @... |
a1d7ef685cfa55e06607485c51e8e82970ca5efe | moduleroot/spec/default_facts.yml | moduleroot/spec/default_facts.yml | ---
concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
selinux_config_mode: "disabled"
| ---
concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
| Remove selinux_config_mode from default facts | Remove selinux_config_mode from default facts
This fact doesn't always exist on systems and having it as a default
fact is masking strict variable issues.
| YAML | apache-2.0 | voxpupuli/modulesync_config,dhoppe/modulesync_config,voxpupuli/modulesync_config,dhoppe/modulesync_config,voxpupuli/modulesync_config,dhoppe/modulesync_config,puppet-community/modulesync_config,dhoppe/modulesync_config,voxpupuli/modulesync_config | yaml | ## Code Before:
---
concat_basedir: "/tmp"
ipaddress: "172.16.254.254"
is_pe: false
macaddress: "AA:AA:AA:AA:AA:AA"
selinux_config_mode: "disabled"
## Instruction:
Remove selinux_config_mode from default facts
This fact doesn't always exist on systems and having it as a default
fact is masking strict variable issues.... |
c7de36450cd250d94b302bfefec2ecaff8dd810c | build/InstallMono.sh | build/InstallMono.sh | OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
wget -O mono.pkg https://download.mono-project.com/archive/5.18.0/macos-10-universal/MonoFramework-MDK-5.18.0.240.macos10.xamarin.universal.pkg
sudo installer -pkg mono.pkg -target /
export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin
elif [ "$OS" =... | OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
wget -O mono.pkg https://download.mono-project.com/archive/6.10.0/macos-10-universal/MonoFramework-MDK-6.10.0.macos10.xamarin.universal.pkg
sudo installer -pkg mono.pkg -target /
export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bin
elif [ "$OS" == "L... | Update the version of Mono used for builds (CI) | Update the version of Mono used for builds (CI)
Signed-off-by: Dimitar Dobrev <ca751a5c976abad79158718440750fc638d19ebc@protonmail.com>
| Shell | mit | ddobrev/CppSharp,mono/CppSharp,mono/CppSharp,ddobrev/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,zillemarco/CppSharp,mono/CppSharp,zillemarco/CppSharp,ddobrev/CppSharp,ddobrev/CppSharp,zillemarco/CppSharp,mono/CppSharp,mono/CppSharp,mono/CppSharp | shell | ## Code Before:
OS=$(uname -s)
if [ "$OS" == "Darwin" ]; then
wget -O mono.pkg https://download.mono-project.com/archive/5.18.0/macos-10-universal/MonoFramework-MDK-5.18.0.240.macos10.xamarin.universal.pkg
sudo installer -pkg mono.pkg -target /
export PATH=$PATH:/Library/Frameworks/Mono.framework/Versions/Current/bi... |
ae2838cefc084725eabc5bf68c33dc6709bbf2b3 | package.json | package.json | {
"name": "byte-buffer",
"title": "ByteBuffer",
"version": "1.0.2",
"description": "Wrapper for JavaScript's ArrayBuffer/DataView",
"main": "lib/byte-buffer.js",
"files": [
"dist",
"lib",
"LICENSE.md"
],
"scripts": {
"test": "mocha spec"
},
"repository": "timkurvers/byte-buffer",
"... | {
"name": "byte-buffer",
"title": "ByteBuffer",
"version": "1.0.2",
"description": "Wrapper for JavaScript's ArrayBuffer/DataView",
"main": "lib/byte-buffer.js",
"files": [
"dist",
"lib",
"LICENSE.md"
],
"scripts": {
"test": "mocha spec"
},
"repository": "timkurvers/byte-buffer",
"... | Declare attr-accessor as runtime dependency | Declare attr-accessor as runtime dependency
| JSON | mit | timkurvers/byte-buffer | json | ## Code Before:
{
"name": "byte-buffer",
"title": "ByteBuffer",
"version": "1.0.2",
"description": "Wrapper for JavaScript's ArrayBuffer/DataView",
"main": "lib/byte-buffer.js",
"files": [
"dist",
"lib",
"LICENSE.md"
],
"scripts": {
"test": "mocha spec"
},
"repository": "timkurvers/b... |
27bdc6c42ae599a18755387c19d9ea478f182ab1 | app/javascript/app/styles/themes/tag/quantification-tag.scss | app/javascript/app/styles/themes/tag/quantification-tag.scss | @import '~styles/layout.scss';
.tag {
border: none;
box-shadow: none;
padding: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: $font-size-sm;
color: $dark-gray;
flex-grow: 0;
}
.dot {
display: inline-block;
width: 20px;
height: 10px;
bord... | @import '~styles/layout.scss';
.tag {
border: none;
box-shadow: none;
padding: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: $font-size-sm;
color: $dark-gray;
flex-grow: 0;
}
.dot {
display: inline-block;
width: 20px;
height: 10px;
bord... | Change opacity to tag dot | Change opacity to tag dot
| SCSS | mit | Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch | scss | ## Code Before:
@import '~styles/layout.scss';
.tag {
border: none;
box-shadow: none;
padding: 0;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-size: $font-size-sm;
color: $dark-gray;
flex-grow: 0;
}
.dot {
display: inline-block;
width: 20px;
heig... |
7408d194933848f5b986b23bb1d6e1bdafbe3786 | jenkins_jobs.groovy | jenkins_jobs.groovy | // Jenkins build jobs for babel-standalone
job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
// Required s... | // Jenkins build jobs for babel-standalone
job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
// Required s... | Add GitHub Issue Notifier for automatic updates | Add GitHub Issue Notifier for automatic updates | Groovy | mit | Daniel15/babel-standalone | groovy | ## Code Before:
// Jenkins build jobs for babel-standalone
job('babel-standalone-update') {
description 'Updates babel-standalone to the latest version of Babel'
label 'powershell'
scm {
git {
branch 'master'
remote {
github 'babel/babel-standalone', 'ssh'
}
extensions {
... |
85a3cb1792666301ff317b02a9c260306562801d | lib/name_checker/availability.rb | lib/name_checker/availability.rb | module NameChecker
# Container class to represent the availability of a word on
# a specific service.
#
# Availability.new('twitter', false)
#
class Availability
attr_reader :status, :service
def initialize(service, status_input)
@service = service.to_s
@status = parse_status(status_i... | require "json"
module NameChecker
# Container class to represent the availability of a word on
# a specific service.
#
# Availability.new('twitter', false)
#
class Availability
attr_reader :status, :service
def initialize(service, status_input)
@service = service.to_s
@status = parse... | Add to_hash and to_json to Availability | Add to_hash and to_json to Availability
| Ruby | mit | dtuite/name_checker | ruby | ## Code Before:
module NameChecker
# Container class to represent the availability of a word on
# a specific service.
#
# Availability.new('twitter', false)
#
class Availability
attr_reader :status, :service
def initialize(service, status_input)
@service = service.to_s
@status = parse... |
198c7546bcbde902383e09c4e92bfe63901433bf | src/Oro/Bundle/EmailBundle/Resources/views/Email/Datagrid/Property/contacts.html.twig | src/Oro/Bundle/EmailBundle/Resources/views/Email/Datagrid/Property/contacts.html.twig | {% import 'OroEmailBundle::macros.html.twig' as EA %}
{% set folders = record.getValue('folders') %}
{% set thread = record.getValue('thread') %}
{% if thread is not null %}
{% set recipients = oro_get_email_thread_recipients(thread) %}
{% else %}
{% set recipients = record.getValue('recipients') %}
{% endif ... | {% import 'OroEmailBundle::macros.html.twig' as EA %}
{% set folders = record.getValue('folders') %}
{% set thread = record.getValue('thread') %}
{% if thread is not null %}
{% set recipients = oro_get_email_thread_recipients(thread) %}
{% else %}
{% set recipients = record.getValue('recipients') %}
{% endif ... | Prepare data for my emails grid | CRM-2893: Prepare data for my emails grid
| Twig | mit | ramunasd/platform,orocrm/platform,geoffroycochard/platform,Djamy/platform,2ndkauboy/platform,morontt/platform,northdakota/platform,hugeval/platform,hugeval/platform,trustify/oroplatform,2ndkauboy/platform,morontt/platform,Djamy/platform,ramunasd/platform,hugeval/platform,orocrm/platform,geoffroycochard/platform,trustif... | twig | ## Code Before:
{% import 'OroEmailBundle::macros.html.twig' as EA %}
{% set folders = record.getValue('folders') %}
{% set thread = record.getValue('thread') %}
{% if thread is not null %}
{% set recipients = oro_get_email_thread_recipients(thread) %}
{% else %}
{% set recipients = record.getValue('recipient... |
533194b5b8e044bca2aaeccff4d550731922b3b8 | genome_designer/conf/demo_settings.py | genome_designer/conf/demo_settings.py |
# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
'main.views.home_view',
'main.views.project_list_view',
'main.views.project_view',
'main.views.tab_root_analyze',
'main.views.reference_genome_list_view',
'main.views.reference_genome_view',
'main.views.sample_list_view',
'main.... |
# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
'main.views.home_view',
'main.views.project_list_view',
'main.views.project_view',
'main.views.tab_root_analyze',
'main.views.reference_genome_list_view',
'main.views.reference_genome_view',
'main.views.sample_list_view',
'main.... | Add login and logout to allowed views in DEMO_MODE. | Add login and logout to allowed views in DEMO_MODE.
| Python | mit | woodymit/millstone,churchlab/millstone,churchlab/millstone,woodymit/millstone_accidental_source,woodymit/millstone,woodymit/millstone,woodymit/millstone,woodymit/millstone_accidental_source,churchlab/millstone,woodymit/millstone_accidental_source,churchlab/millstone,woodymit/millstone_accidental_source | python | ## Code Before:
# Views that are visible in demo mode.
DEMO_SAFE_VIEWS = [
'main.views.home_view',
'main.views.project_list_view',
'main.views.project_view',
'main.views.tab_root_analyze',
'main.views.reference_genome_list_view',
'main.views.reference_genome_view',
'main.views.sample_list_v... |
54430c93c9e3c000a2846161ab382d8ca62be9bb | src/CacheInterface.php | src/CacheInterface.php | <?php
/**
* @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,
* Confidential and Proprietary. Any dissemination outside of Quicken Loans
* is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
/**
* @param string $key
*
* @return m... | <?php
/**
* @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,
* Confidential and Proprietary. Any dissemination outside of Quicken Loans
* is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
const VERSION = '3.0.0';
/**
* @param strin... | Add version const to cache interface | Add version const to cache interface
| PHP | mit | quickenloans-mcp/mcp-cache | php | ## Code Before:
<?php
/**
* @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,
* Confidential and Proprietary. Any dissemination outside of Quicken Loans
* is strictly prohibited.
*/
namespace MCP\Cache;
/**
* @api
*/
interface CacheInterface
{
/**
* @param string $key
*
... |
ba4f188168c11f61f8db79a00a166fe0a1c6a378 | tests/test_stmt.rs | tests/test_stmt.rs | mod macros;
use syn::Stmt;
#[test]
fn test_raw_operator() {
let stmt = syn::parse_str::<Stmt>("let _ = &raw const x;").unwrap();
snapshot!(stmt, @r###"
Local(Local {
pat: Pat::Wild,
init: Some(Verbatim(`& raw const x`)),
})
"###);
}
#[test]
fn test_raw_variable() {
let stmt =... | mod macros;
use proc_macro2::{Delimiter, Group, Ident, Span, TokenStream, TokenTree};
use std::iter::FromIterator;
use syn::Stmt;
#[test]
fn test_raw_operator() {
let stmt = syn::parse_str::<Stmt>("let _ = &raw const x;").unwrap();
snapshot!(stmt, @r###"
Local(Local {
pat: Pat::Wild,
init... | Add none-group statement parsing test | Add none-group statement parsing test
| Rust | apache-2.0 | dtolnay/syn | rust | ## Code Before:
mod macros;
use syn::Stmt;
#[test]
fn test_raw_operator() {
let stmt = syn::parse_str::<Stmt>("let _ = &raw const x;").unwrap();
snapshot!(stmt, @r###"
Local(Local {
pat: Pat::Wild,
init: Some(Verbatim(`& raw const x`)),
})
"###);
}
#[test]
fn test_raw_variable() ... |
d013cd7a44e715eeff60e9cc9a76e862dd961da6 | scripts/run_celery.sh | scripts/run_celery.sh | set +x
if [ -z "$VIRTUAL_ENV" ] && [ -d venv ]; then
echo 'activate venv for celery'
source ./venv/bin/activate
fi
celery -A run_celery.celery worker --loglevel=INFO --concurrency=4
| set +x
if [ -z "$VIRTUAL_ENV" ] && [ -d venv ]; then
echo 'activate venv for celery'
source ./venv/bin/activate
nooutput=' >&- 2>&- <&- &'
fi
eval "celery -A run_celery.celery worker --loglevel=INFO --concurrency=1"$nooutput
| Stop celery output on remote server | Stop celery output on remote server
| Shell | mit | NewAcropolis/api,NewAcropolis/api,NewAcropolis/api | shell | ## Code Before:
set +x
if [ -z "$VIRTUAL_ENV" ] && [ -d venv ]; then
echo 'activate venv for celery'
source ./venv/bin/activate
fi
celery -A run_celery.celery worker --loglevel=INFO --concurrency=4
## Instruction:
Stop celery output on remote server
## Code After:
set +x
if [ -z "$VIRTUAL_ENV" ] && [ -d venv ]... |
e2b399baac4eac06c3ac9e01de11ca2aad1de329 | operations/experimental/enable-oci-phase-1.yml | operations/experimental/enable-oci-phase-1.yml | ---
- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/diego?/temporary_oci_buildpack_mode
value: &temporary_oci_buildpack_mode oci-phase-1
- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/diego?/temporary_oci_buildpack... | ---
- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/diego?/temporary_oci_buildpack_mode
value: &temporary_oci_buildpack_mode oci-phase-1
- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/diego?/temporary_oci_buildpack... | Add rep two-layer layering mode to oci phase 1 opsfile | Add rep two-layer layering mode to oci phase 1 opsfile
[finishes #158949942](https://www.pivotaltracker.com/story/show/158949942)
| YAML | apache-2.0 | cloudfoundry/cf-deployment,cloudfoundry/cf-deployment | yaml | ## Code Before:
---
- type: replace
path: /instance_groups/name=api/jobs/name=cloud_controller_ng/properties/cc/diego?/temporary_oci_buildpack_mode
value: &temporary_oci_buildpack_mode oci-phase-1
- type: replace
path: /instance_groups/name=cc-worker/jobs/name=cloud_controller_worker/properties/cc/diego?/tempora... |
5962a5ce17d1408695229dffce42fa9fa79a7922 | PULL_REQUEST_TEMPLATE.md | PULL_REQUEST_TEMPLATE.md | Hey there! So you want to contribute to FirebaseUI? Before you file this pull request, follow these steps:
* Have you read [the contribution guidelines](CONTRIBUTING.md)
* Has this been discussed in an issue? If so make sure to mention the issue number here. If not, go file an issue about this to make sure this i... | Hey there! So you want to contribute to FirebaseUI? Before you file this pull request, follow these steps:
* Read [the contribution guidelines](CONTRIBUTING.md).
* If this has been discussed in an issue, make sure to mention the issue number here. If not, go file an issue about this to make sure this is a desirab... | Make pull request template imperative | Make pull request template imperative
| Markdown | apache-2.0 | firebase/FirebaseUI-iOS,firebase/FirebaseUI-iOS,firebase/FirebaseUI-iOS,firebase/FirebaseUI-iOS | markdown | ## Code Before:
Hey there! So you want to contribute to FirebaseUI? Before you file this pull request, follow these steps:
* Have you read [the contribution guidelines](CONTRIBUTING.md)
* Has this been discussed in an issue? If so make sure to mention the issue number here. If not, go file an issue about this to ... |
64d2c15ffcc4134706289d4d2812b14d83ace6b7 | recipes/steam_controller_udev_rules.rb | recipes/steam_controller_udev_rules.rb |
template '/etc/udev/rules.d/99-steam-controller-uinput.rules' do
source 'steam/steam-controller-perms.rules.erb'
mode 0444
notifies :run, 'execute[udev-reload-uinput-driver]', :immediately
end
execute 'udev-reload-uinput-driver' do
action :nothing
command 'udevadm control --reload; modprobe -r uinput; modpr... |
template '/etc/udev/rules.d/99-steam-controller-uinput.rules' do
source 'steam/steam-controller-perms.rules.erb'
variables({group: node[:desktop][:user][:group]})
mode 0444
notifies :run, 'execute[udev-reload-uinput-driver]', :immediately
end
execute 'udev-reload-uinput-driver' do
action :nothing
command ... | Correct permissions for x360 gamepad emulation by steam controllers | Correct permissions for x360 gamepad emulation by steam controllers
| Ruby | apache-2.0 | http-418/chef-desktop,http-418/chef-desktop,http-418/chef-desktop,http-418/chef-desktop | ruby | ## Code Before:
template '/etc/udev/rules.d/99-steam-controller-uinput.rules' do
source 'steam/steam-controller-perms.rules.erb'
mode 0444
notifies :run, 'execute[udev-reload-uinput-driver]', :immediately
end
execute 'udev-reload-uinput-driver' do
action :nothing
command 'udevadm control --reload; modprobe ... |
3c901a198f6396a0c48a0766618b9971e795530f | board/views.py | board/views.py | from django.core.urlresolvers import reverse
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView
from board.forms import PostCreateForm
from board.mixins import BoardMixin, UserLoggingMixin
from board.models import Board, Po... | from django.core.urlresolvers import reverse
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView
from board.forms import PostCreateForm
from board.mixins import BoardMixin, UserLoggingMixin
from board.models import Board, Po... | Add filtering and ordering to PostListView | Add filtering and ordering to PostListView
| Python | mit | devunt/hydrocarbon,devunt/hydrocarbon,devunt/hydrocarbon | python | ## Code Before:
from django.core.urlresolvers import reverse
from django.views.generic.detail import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView
from board.forms import PostCreateForm
from board.mixins import BoardMixin, UserLoggingMixin
from board.models ... |
e9af8f85f2d39e08b3a068f07ecdb22962680c74 | buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/FunctionalTestPlugin.kt | buildSrc/src/main/kotlin/com/bmuschko/gradle/docker/FunctionalTestPlugin.kt | package com.bmuschko.gradle.docker
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.GroovySourceSet
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
class FunctionalTestPlugin : Plugin<Project> {
overri... | package com.bmuschko.gradle.docker
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.GroovySourceSet
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
class FunctionalTestPlugin : Plugin<Project> {
overri... | Add test setup output to compile classpath | Add test setup output to compile classpath
| Kotlin | apache-2.0 | bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin,bmuschko/gradle-docker-plugin | kotlin | ## Code Before:
package com.bmuschko.gradle.docker
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.GroovySourceSet
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
class FunctionalTestPlugin : Plugin<Proje... |
c2851c6b6ec2be65e9c09b31d64915049b62311a | otto/main.go | otto/main.go | package main
import (
"fmt"
"flag"
"io/ioutil"
"os"
"github.com/robertkrimen/otto"
)
func main() {
flag.Parse()
var script []byte
var err error
filename := flag.Arg(0)
if filename == "" || filename == "-" {
script, err = ioutil.ReadAll(os.Stdin)
if err != nil {
fmt.Printf("Can't read stdin: %v\n", er... | package main
import (
"fmt"
"flag"
"io/ioutil"
"os"
"github.com/robertkrimen/otto"
"github.com/robertkrimen/otto/underscore"
)
var underscoreFlag *bool = flag.Bool("underscore", true, "Load underscore into the runtime environment")
func main() {
flag.Parse()
var script []byte
var err error
filename := flag... | Add underscore to the commandline | Add underscore to the commandline
| Go | apache-2.0 | lsk-kun/lantern,kelvine/lantern,kangwl/lantern,WaybackMachine/lantern,Denniskevin/lantern,ubuntuvim/lantern,ywzw2013/lantern,tyrchen/lantern,fangshili/lantern,Batterfii/lantern,velocity-toolkit/otto,gregoriusxu/lantern,WaybackMachine/lantern,Jonavin/lantern,newbiecoming/lantern,dmitris/otto,lsk-kun/lantern,dqw18037/lan... | go | ## Code Before:
package main
import (
"fmt"
"flag"
"io/ioutil"
"os"
"github.com/robertkrimen/otto"
)
func main() {
flag.Parse()
var script []byte
var err error
filename := flag.Arg(0)
if filename == "" || filename == "-" {
script, err = ioutil.ReadAll(os.Stdin)
if err != nil {
fmt.Printf("Can't read ... |
aedeb33a2f4a934a9d7f7ecc21390011d839468e | app/views/admin/pages/new.blade.php | app/views/admin/pages/new.blade.php | @extends('layouts.admin')
@section('title'){{ $title }}@endsection
@section('content')
{{ Form::model($page, ['url' => $url, 'method' => $method]) }}
<label class="checkbox pull-right">
{{ Form::checkbox('is_visible') }} Visible (Published)
</label>
{{ Form::label('title', 'Page Title') }}
{{ Form::text('title',... | @extends('layouts.admin')
@section('title'){{ $title }}@endsection
@section('content')
{{ Form::model($page, ['url' => $url, 'method' => $method]) }}
<label class="checkbox pull-right">
{{ Form::checkbox('is_visible') }} Visible (Published)
</label>
{{ Form::label('title', 'Page Title') }}
{{ Form::text('title',... | Add a missing Form::close() method | Add a missing Form::close() method
| PHP | bsd-2-clause | chipotle/quill,chipotle/quill,chipotle/quill,chipotle/quill | php | ## Code Before:
@extends('layouts.admin')
@section('title'){{ $title }}@endsection
@section('content')
{{ Form::model($page, ['url' => $url, 'method' => $method]) }}
<label class="checkbox pull-right">
{{ Form::checkbox('is_visible') }} Visible (Published)
</label>
{{ Form::label('title', 'Page Title') }}
{{ For... |
482e7f1f071414fbc79f3c20ae50c33ccfaff468 | composer.json | composer.json | {
"name": "bradfeehan/desk-php",
"description": "PHP client for Desk.com v2 API based on Guzzle",
"keywords": ["desk", "desk.com", "assistly", "assistly.com", "api", "guzzle"],
"license": "MIT",
"authors": [
{ "name": "Brad Feehan", "email": "git@bradfeehan.com" }
],
"require": {
... | {
"name": "bradfeehan/desk-php",
"description": "PHP client for Desk.com v2 API based on Guzzle",
"keywords": ["desk", "desk.com", "assistly", "assistly.com", "api", "guzzle"],
"license": "MIT",
"authors": [
{ "name": "Brad Feehan", "email": "git@bradfeehan.com" }
],
"require": {
... | Add modular service description as a dependency | Add modular service description as a dependency
| JSON | mit | quizlet/desk-php,quizlet/desk-php,4ernovm/desk-php,bradfeehan/desk-php,bradfeehan/desk-php,4ernovm/desk-php | json | ## Code Before:
{
"name": "bradfeehan/desk-php",
"description": "PHP client for Desk.com v2 API based on Guzzle",
"keywords": ["desk", "desk.com", "assistly", "assistly.com", "api", "guzzle"],
"license": "MIT",
"authors": [
{ "name": "Brad Feehan", "email": "git@bradfeehan.com" }
],
... |
6610648c75dc90800655a3502d4cd24fb47ac406 | timpani/webserver/webserver.py | timpani/webserver/webserver.py | import flask
import os.path
import datetime
import urllib.parse
from .. import database
from .. import configmanager
from . import controllers
FILE_LOCATION = os.path.abspath(os.path.dirname(__file__))
STATIC_PATH = os.path.abspath(os.path.join(FILE_LOCATION, "../../static"))
CONFIG_PATH = os.path.abspath(os.path.join... | import flask
import os.path
import datetime
import urllib.parse
from .. import database
from .. import configmanager
from . import controllers
FILE_LOCATION = os.path.abspath(os.path.dirname(__file__))
STATIC_PATH = os.path.abspath(os.path.join(FILE_LOCATION, "../../static"))
CONFIG_PATH = os.path.abspath(os.path.join... | Remove session cookie print in teardown | Remove session cookie print in teardown
| Python | mit | ollien/Timpani,ollien/Timpani,ollien/Timpani | python | ## Code Before:
import flask
import os.path
import datetime
import urllib.parse
from .. import database
from .. import configmanager
from . import controllers
FILE_LOCATION = os.path.abspath(os.path.dirname(__file__))
STATIC_PATH = os.path.abspath(os.path.join(FILE_LOCATION, "../../static"))
CONFIG_PATH = os.path.absp... |
2684c4f204e7ae2d548df31b4db168fb14b32069 | catalog/Rails_Plugins/rails_file_uploads.yml | catalog/Rails_Plugins/rails_file_uploads.yml | name: Rails File Uploads
description:
projects:
- attached
- carrierwave
- dragonfly
- fileclip
- fileuploader-rails
- imagery
- jquery.fileupload-rails
- paperclip
- papermill
- refile
- simple-image-uploader
- technoweenie/attachment_fu
| name: Rails File Uploads
description:
projects:
- attached
- carrierwave
- dragonfly
- fileclip
- fileuploader-rails
- imagery
- jquery.fileupload-rails
- paperclip
- papermill
- refile
- shrine
- simple-image-uploader
- technoweenie/attachment_fu
| Add shrine gem to "Rails File Uploads" category | Add shrine gem to "Rails File Uploads" category
Shrine is a file upload toolkit for ruby projects, and should probably be included in this category.
Ruby Toolbox Page: https://www.ruby-toolbox.com/projects/shrine
Github Repo: https://github.com/janko-m/shrine | YAML | mit | rubytoolbox/catalog | yaml | ## Code Before:
name: Rails File Uploads
description:
projects:
- attached
- carrierwave
- dragonfly
- fileclip
- fileuploader-rails
- imagery
- jquery.fileupload-rails
- paperclip
- papermill
- refile
- simple-image-uploader
- technoweenie/attachment_fu
## Instruction:
Add shrine gem to "Rail... |
b417a10231b602bbec890ccc1325f59c7fb6ba9e | README.md | README.md | shoreman
========
A shell implementation of the Procfile format.
## Install
Install as a standalone.
```
curl https://raw.github.com/hecticjeff/shoreman/master/shoreman.sh -sLo ~/bin/shoreman && \
chmod 755 ~/bin/shoreman
```
To have an always up-to-date, bleeding edge, possibly broken
version available, you can u... | shoreman
========
A shell implementation of the Procfile format.
## Install
Install as a standalone.
```
curl https://raw.github.com/hecticjeff/shoreman/master/shoreman.sh -sLo ~/bin/shoreman && \
chmod 755 ~/bin/shoreman
```
To have an always up-to-date, bleeding edge, possibly broken
version available, you can u... | Add description to usage section | Add description to usage section
| Markdown | mit | jmrenouard/shoreman,shamrin/shoreman,jtoy/experimenter,bf4/shoreman,chrismytton/shoreman | markdown | ## Code Before:
shoreman
========
A shell implementation of the Procfile format.
## Install
Install as a standalone.
```
curl https://raw.github.com/hecticjeff/shoreman/master/shoreman.sh -sLo ~/bin/shoreman && \
chmod 755 ~/bin/shoreman
```
To have an always up-to-date, bleeding edge, possibly broken
version avai... |
57bbc958d6c93e7ba33b805f6a897461689d6de6 | .travis.yml | .travis.yml | language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
env:
- FORCE_TEST_VCS=bzr
- FORCE_TEST_VCS=git
- FORCE_TEST_VCS=hg
- FORCE_TEST_VCS=svn
install:
- pip install co... | language: python
sudo: false
cache: pip
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
env:
- FORCE_TEST_VCS=bzr
- FORCE_TEST_VCS=git
- FORCE_TEST_VCS=hg
- FORCE_TEST_VCS=svn
install:
- pip... | Enable pip cache in Travis CI | Enable pip cache in Travis CI
Reduce load on PyPI servers and slightly speed up builds.
For more information, see:
https://docs.travis-ci.com/user/caching/#pip-cache
| YAML | mit | mgedmin/check-manifest | yaml | ## Code Before:
language: python
sudo: false
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy
- pypy3
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
env:
- FORCE_TEST_VCS=bzr
- FORCE_TEST_VCS=git
- FORCE_TEST_VCS=hg
- FORCE_TEST_VCS=svn
install:
... |
1ddfb2b2acf44403b629062d1555e40453879acb | app/assets/javascripts/resque_poll/poller.coffee | app/assets/javascripts/resque_poll/poller.coffee | class ResquePoller
@INTERVAL: 2000
constructor: (opts) ->
@$elem = opts.elem
@url = opts.url
@intervalID = setInterval(@_poll, opts.interval || ResquePoller.INTERVAL)
# private
_poll: => $.getJSON @url, (resp) => @_handleResponse(resp)
_handleResponse: (resp) ->
return if resp.... | class ResquePoller
@INTERVAL: 2000
constructor: (opts) ->
@$elem = opts.elem
@url = opts.url
@intervalID = setInterval(@_poll, opts.interval || ResquePoller.INTERVAL)
# private
_poll: => $.getJSON @url, (resp) => @_handleResponse(resp)
_handleResponse: (resp) ->
return if resp.... | Check for working status as well as queued | Check for working status as well as queued
| CoffeeScript | mit | lumoslabs/resque-poll,lumoslabs/resque-poll,lumoslabs/resque-poll | coffeescript | ## Code Before:
class ResquePoller
@INTERVAL: 2000
constructor: (opts) ->
@$elem = opts.elem
@url = opts.url
@intervalID = setInterval(@_poll, opts.interval || ResquePoller.INTERVAL)
# private
_poll: => $.getJSON @url, (resp) => @_handleResponse(resp)
_handleResponse: (resp) ->
... |
952e720807da0326537df4bf5faedbdfe19f1372 | circle.yml | circle.yml | machine:
services:
- docker
environment:
IMAGE_NAME: centurylink/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- ... | machine:
services:
- docker
environment:
IMAGE_NAME: rosscado/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
commands:
- doc... | Change image name to push to rosscado/watchtower | Change image name to push to rosscado/watchtower
The circle.yml version on this branch will automatically trigger a Circle CI build and push the resulting Docker image to the DockerHub repo rosscado/watchtower. This is a temporary DockerHub repo for the rosscado/watchtower GitHub repo, and can be used to pull or test ... | YAML | apache-2.0 | talmai/rpi-watchtower,v2tec/watchtower,ubergesundheit/watchtower,CenturyLinkLabs/watchtower,v2tec/watchtower,talmai/rpi-watchtower | yaml | ## Code Before:
machine:
services:
- docker
environment:
IMAGE_NAME: centurylink/watchtower
dependencies:
override:
- docker pull centurylink/golang-builder:latest
test:
override:
- docker run -v $(pwd):/src centurylink/golang-builder:latest --test
deployment:
hub:
branch: master
co... |
4944b93ff3a4e3e3d34f911af9edd0ef8cab1d40 | example/reference/private/config/databases/default.php | example/reference/private/config/databases/default.php | <?php
$database = [
'adapter' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'username' => 'excession',
'password' => 'excession',
'dbname' => 'excession',
'charset' => 'utf8mb4',
'options' => [
PDO::ATTR_EMULATE_PREPARES => false, // Use native prepared statements
... | <?php
$database = [
'adapter' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'username' => 'root',
'password' => '',
'dbname' => 'freischutz_example',
'charset' => 'utf8mb4',
'options' => [
PDO::ATTR_EMULATE_PREPARES => false, // Use native prepared statements
... | Revert reference database definition to c61cdbcd | Revert reference database definition to c61cdbcd
| PHP | bsd-3-clause | tdely/freischutz,tdely/freischutz,tdely/freischutz | php | ## Code Before:
<?php
$database = [
'adapter' => 'mysql',
'host' => '127.0.0.1',
'port' => 3306,
'username' => 'excession',
'password' => 'excession',
'dbname' => 'excession',
'charset' => 'utf8mb4',
'options' => [
PDO::ATTR_EMULATE_PREPARES => false, // Use native prepa... |
f3dec5e5bd09d16ebac1812b1988a8b102e98cc7 | packages/xcodes/src/Validator/XmlErrorCodeProvider.php | packages/xcodes/src/Validator/XmlErrorCodeProvider.php | <?php
declare(strict_types=1);
namespace Greenter\Validator;
use DOMDocument;
use DOMXPath;
/**
* Class XmlErrorCodeProvider.
*/
class XmlErrorCodeProvider implements ErrorCodeProviderInterface
{
private $xmlErrorFile;
/**
* XmlErrorCodeProvider constructor.
*/
public function __construct()... | <?php
declare(strict_types=1);
namespace Greenter\Validator;
use DOMDocument;
use DOMElement;
use DOMXPath;
/**
* Class XmlErrorCodeProvider.
*/
class XmlErrorCodeProvider implements ErrorCodeProviderInterface
{
private $xmlErrorFile;
/**
* XmlErrorCodeProvider constructor.
*/
public functi... | Fix PHPStan level 5 in xcodes package | Fix PHPStan level 5 in xcodes package
| PHP | mit | giansalex/greenter,giansalex/greenter | php | ## Code Before:
<?php
declare(strict_types=1);
namespace Greenter\Validator;
use DOMDocument;
use DOMXPath;
/**
* Class XmlErrorCodeProvider.
*/
class XmlErrorCodeProvider implements ErrorCodeProviderInterface
{
private $xmlErrorFile;
/**
* XmlErrorCodeProvider constructor.
*/
public functi... |
004ac870f12d0f357d863ae1dd22f08198fa2178 | src/main/components/App.vue | src/main/components/App.vue | <template lang="jade">
.App(v-bind:class="'is--animation-ready'")
header.App-header
router-view
footer.App-footer
</template>
<script>
import { mixin as sizeClassHelper } from 'tools/size-class-helper';
export default {
name: 'App',
mixins: [sizeClassHelper],
created: function () {}
};
</script>
<style lan... | <template lang="jade">
.App(v-bind:class="'is--animation-ready'")
header.App-header
router-view
footer.App-footer
</template>
<script>
import { mixin as sizeClassHelper } from 'tools/size-class-helper';
export default {
name: 'App',
mixins: [sizeClassHelper],
created: function () {}
};
</script>
<style lan... | Add right padding to navbar logo | Add right padding to navbar logo
| Vue | mit | xebia-studio/visMaVie-v2,xebia-studio/visMaVie-v2 | vue | ## Code Before:
<template lang="jade">
.App(v-bind:class="'is--animation-ready'")
header.App-header
router-view
footer.App-footer
</template>
<script>
import { mixin as sizeClassHelper } from 'tools/size-class-helper';
export default {
name: 'App',
mixins: [sizeClassHelper],
created: function () {}
};
</scr... |
dbe6499c140ce4b93cba9f054ae451071753f4fc | ansible_role/playbooks/operator.yml | ansible_role/playbooks/operator.yml | ---
- name: automation-broker-operator
hosts: localhost
become: false
gather_facts: false
connection: local
vars:
state: present
broker_name: "{{ meta.name }}"
broker_namespace: "{{ meta.namespace }}"
broker_image: "{{ lookup('env', 'IMAGE') }}"
tasks:
- name: Validation
assert:
... | ---
- name: automation-broker-operator
hosts: localhost
become: false
gather_facts: false
connection: local
vars:
state: present
broker_name: "{{ meta.name }}"
broker_namespace: "{{ meta.namespace }}"
broker_image: "{{ lookup('env', 'IMAGE') }}"
tasks:
- name: Validation
assert:
... | Check for truthy since these values are always defined | Check for truthy since these values are always defined
| YAML | apache-2.0 | johnkim76/ansible-service-broker,johnkim76/ansible-service-broker,eriknelson/ansible-service-broker,eriknelson/ansible-service-broker,eriknelson/ansible-service-broker,johnkim76/ansible-service-broker | yaml | ## Code Before:
---
- name: automation-broker-operator
hosts: localhost
become: false
gather_facts: false
connection: local
vars:
state: present
broker_name: "{{ meta.name }}"
broker_namespace: "{{ meta.namespace }}"
broker_image: "{{ lookup('env', 'IMAGE') }}"
tasks:
- name: Validation... |
c80c550968ec88a94ecb0f294ed76f9347a8fc94 | CONTRIBUTING.md | CONTRIBUTING.md |
Prometheus uses GitHub to manage reviews of pull requests.
* If you have a trivial fix or improvement, go ahead and create a pull request,
addressing (with `@...`) the maintainer of this repository (see
[MAINTAINERS.md](MAINTAINERS.md)) in the description of the pull request.
* If you plan to do something more i... |
Prometheus uses GitHub to manage reviews of pull requests.
* If you have a trivial fix or improvement, go ahead and create a pull request.
* If you plan to do something more involved, first discuss your ideas
on our [mailing list](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers).
This wi... | Remove suggestion to @ the maintainers | Remove suggestion to @ the maintainers
We're subscribed to the repo already so there's no need. | Markdown | apache-2.0 | prometheus/client_ruby | markdown | ## Code Before:
Prometheus uses GitHub to manage reviews of pull requests.
* If you have a trivial fix or improvement, go ahead and create a pull request,
addressing (with `@...`) the maintainer of this repository (see
[MAINTAINERS.md](MAINTAINERS.md)) in the description of the pull request.
* If you plan to do ... |
401d912bbb7ca92c261f95945a19734a52c0116a | src/Oro/Bundle/ChartBundle/DependencyInjection/OroChartExtension.php | src/Oro/Bundle/ChartBundle/DependencyInjection/OroChartExtension.php | <?php
namespace Oro\Bundle\ChartBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Oro\Component\Config\Loader\CumulativeConfigLoader;
use Oro\Component\Config\Lo... | <?php
namespace Oro\Bundle\ChartBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Config\FileLocator;
use Oro\Component\Config\Loader\Cumulativ... | Add chart configuration - add missed loading of services.yml | BAP-3230: Add chart configuration
- add missed loading of services.yml
| PHP | mit | geoffroycochard/platform,morontt/platform,mszajner/platform,hugeval/platform,ramunasd/platform,orocrm/platform,northdakota/platform,Djamy/platform,trustify/oroplatform,2ndkauboy/platform,northdakota/platform,2ndkauboy/platform,northdakota/platform,orocrm/platform,Djamy/platform,trustify/oroplatform,ramunasd/platform,or... | php | ## Code Before:
<?php
namespace Oro\Bundle\ChartBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Oro\Component\Config\Loader\CumulativeConfigLoader;
use Oro\Com... |
dbdaa87d2741feeaecc41825839050b6622da0a5 | .github/workflows/build.yml | .github/workflows/build.yml | name: Build
on:
push:
branches: [master]
pull_request:
release:
types: [created]
jobs:
tests:
runs-on: ubuntu-latest
name: Build and test
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
composer-flags: [ "" ]
include:
- php: 7.2
... | name: Build
on:
push:
branches: [master]
pull_request:
release:
types: [created]
jobs:
tests:
runs-on: ubuntu-latest
name: Build and test
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
composer-flags: [ "" ]
include:
- php: 7.2
... | Fix issue with outcome addressing | Fix issue with outcome addressing
| YAML | mit | phpspec/prophecy | yaml | ## Code Before:
name: Build
on:
push:
branches: [master]
pull_request:
release:
types: [created]
jobs:
tests:
runs-on: ubuntu-latest
name: Build and test
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
composer-flags: [ "" ]
include:
... |
2d184a79bbd6001c1c0c53fbe0af2cce79586ef8 | www/js/controllers/accounts.js | www/js/controllers/accounts.js | var app = angular.module('controller.accounts', ['ionic']);
app.controller('AccountsCtrl', function($scope, $state, $window, RequestService, AccountsService, LoadingService) {
LoadingService.show();
RequestService
.request("GET", '/accounts?all=true', true)
.then(function(data) {
... | var app = angular.module('controller.accounts', ['ionic']);
app.controller('AccountsCtrl', function($scope, $state, $window, RequestService, AccountsService, LoadingService) {
LoadingService.show();
RequestService
.request("GET", '/accounts?all=true', true)
.then(function(data) {
... | Set tokenpro back to true on logout | Set tokenpro back to true on logout
| JavaScript | mit | it114/trevor,it114/trevor,it114/trevor,ekonstantinidis/trevor,ekonstantinidis/trevor | javascript | ## Code Before:
var app = angular.module('controller.accounts', ['ionic']);
app.controller('AccountsCtrl', function($scope, $state, $window, RequestService, AccountsService, LoadingService) {
LoadingService.show();
RequestService
.request("GET", '/accounts?all=true', true)
.then(function(data... |
5e1ea27b1334f74dee4f7d3f3823f80037da3690 | serrano/cors.py | serrano/cors.py | from warnings import warn
from django.conf import settings
def patch_response(request, response, methods):
if getattr(settings, 'SERRANO_CORS_ENABLED', False):
if hasattr(settings, 'SERRANO_CORS_ORIGIN'):
warn('SERRANO_CORS_ORIGIN has been deprecated in favor '
'of SERRANO_COR... | from warnings import warn
from django.conf import settings
def patch_response(request, response, methods):
if getattr(settings, 'SERRANO_CORS_ENABLED', False):
if hasattr(settings, 'SERRANO_CORS_ORIGIN'):
warn('SERRANO_CORS_ORIGIN has been deprecated in favor '
'of SERRANO_COR... | Remove truth assertion on origin | Remove truth assertion on origin
This is a remnant from testing in the SERRANO_CORS_ORIGIN string. Now
that the `in` applies to a list, this assertion is no longer needed.
| Python | bsd-2-clause | chop-dbhi/serrano,rv816/serrano_night,chop-dbhi/serrano,rv816/serrano_night | python | ## Code Before:
from warnings import warn
from django.conf import settings
def patch_response(request, response, methods):
if getattr(settings, 'SERRANO_CORS_ENABLED', False):
if hasattr(settings, 'SERRANO_CORS_ORIGIN'):
warn('SERRANO_CORS_ORIGIN has been deprecated in favor '
... |
a9df846b58aecc33a384a0c479aa91d9d33eaf67 | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode7.2
script: Support/Scripts/objc-build-scripts/cibuild
| language: objective-c
osx_image: xcode7.2
script: Support/Scripts/objc-build-scripts/cibuild
env:
global:
- FRAMEWORK_NAME=MagicalRecord
before_install:
- brew update
- brew install carthage
before_script:
# bootstrap the dependencies for the project
# you can remove if you don't have dependencies
- car... | Configure TravisCI to build a carthage archive | Configure TravisCI to build a carthage archive
| YAML | mit | simoncoulton/MagicalRecord,simoncoulton/MagicalRecord,spex-app/MagicalRecord,spex-app/MagicalRecord,yiplee/MagicalRecord,pronebird/MagicalRecord,spex-app/MagicalRecord,pronebird/MagicalRecord,yiplee/MagicalRecord | yaml | ## Code Before:
language: objective-c
osx_image: xcode7.2
script: Support/Scripts/objc-build-scripts/cibuild
## Instruction:
Configure TravisCI to build a carthage archive
## Code After:
language: objective-c
osx_image: xcode7.2
script: Support/Scripts/objc-build-scripts/cibuild
env:
global:
- FRAMEWORK_NAME=Ma... |
a272ea6c9e77c6fe9f7c26cf76650959bf79d2c4 | src/edu/mines/jtk/util/Localize_ch.properties | src/edu/mines/jtk/util/Localize_ch.properties | second=miao
seconds=miao
minute=fen
minutes=fen
hour=xiao shi
hours=xiao shi
day=tian
days=tian
| second=秒
seconds=秒
minute=分
minutes=分
hour=小时
hours=小时
day=天
days=天
| Use characters instead of pinyin. | Use characters instead of pinyin.
| INI | apache-2.0 | chrisengelsma/jtk,ctrueden/jtk,voltnor/jtk,ctrueden/jtk,askogvold/jtk,chrisengelsma/jtk,voltnor/jtk,ctrueden/jtk,dhale/jtk,askogvold/jtk,dhale/jtk,askogvold/jtk,MinesJTK/jtk,MinesJTK/jtk,voltnor/jtk,askogvold/jtk,voltnor/jtk,dhale/jtk,MinesJTK/jtk,chrisengelsma/jtk,ctrueden/jtk | ini | ## Code Before:
second=miao
seconds=miao
minute=fen
minutes=fen
hour=xiao shi
hours=xiao shi
day=tian
days=tian
## Instruction:
Use characters instead of pinyin.
## Code After:
second=秒
seconds=秒
minute=分
minutes=分
hour=小时
hours=小时
day=天
days=天
|
2526810e85439919eac2105c96fd9f139a07c882 | py.Dockerfile | py.Dockerfile | ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get -y update \
&& apt-get install --no-install-recommends -y \
unzip \
libglu1-mesa-dev \
libgl1-mesa-dev \
libosmesa6-dev \
xvfb \
patchelf \
ffmpeg cmake \
&& apt-get autoremove -y... | ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get -y update \
&& apt-get install --no-install-recommends -y \
unzip \
libglu1-mesa-dev \
libgl1-mesa-dev \
libosmesa6-dev \
xvfb \
patchelf \
ffmpeg cmake \
&& apt-get autoremove -y... | Rename to gymnasium in Dockerfile | Rename to gymnasium in Dockerfile
| unknown | mit | Farama-Foundation/Gymnasium,Farama-Foundation/Gymnasium | unknown | ## Code Before:
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get -y update \
&& apt-get install --no-install-recommends -y \
unzip \
libglu1-mesa-dev \
libgl1-mesa-dev \
libosmesa6-dev \
xvfb \
patchelf \
ffmpeg cmake \
&& apt-g... |
3260ffd5c91d2f3e91c15e28534b0c61fe2346ba | lib/services/ec2.js | lib/services/ec2.js | var AWS = require('../core');
AWS.util.update(AWS.EC2.prototype, {
/**
* @api private
*/
setupRequestListeners: function setupRequestListeners(request) {
request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR);
request.addListener('extractError', this.extractError);
},
/**... | var AWS = require('../core');
AWS.util.update(AWS.EC2.prototype, {
/**
* @api private
*/
setupRequestListeners: function setupRequestListeners(request) {
request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR);
request.addListener('extractError', this.extractError);
if (re... | Implement copySnapshot customization to add PresignedUrl | Implement copySnapshot customization to add PresignedUrl
| JavaScript | apache-2.0 | chrisradek/aws-sdk-js,jmswhll/aws-sdk-js,misfitdavidl/aws-sdk-js,Blufe/aws-sdk-js,mohamed-kamal/aws-sdk-js,grimurjonsson/aws-sdk-js,mapbox/aws-sdk-js,aws/aws-sdk-js,jeskew/aws-sdk-js,prestomation/aws-sdk-js,grimurjonsson/aws-sdk-js,jeskew/aws-sdk-js,mohamed-kamal/aws-sdk-js,prestomation/aws-sdk-js,AdityaManohar/aws-sdk... | javascript | ## Code Before:
var AWS = require('../core');
AWS.util.update(AWS.EC2.prototype, {
/**
* @api private
*/
setupRequestListeners: function setupRequestListeners(request) {
request.removeListener('extractError', AWS.EventListeners.Query.EXTRACT_ERROR);
request.addListener('extractError', this.extractErr... |
17f407d27c61e9e510597921aaf156fc38d4591c | src/app/components/players/player/player.tpl.html | src/app/components/players/player/player.tpl.html | <li class="sq-player" ng-init="pModel = playerCtrl.playerModel.model; player = playerCtrl.player"
ng-class="{
'active': player.isActive,
'current': player.isCurrent
}">
<span>{{player.name}}</span>
<img ng-src="{{player.img}}"/>
<div class="sq-player-cards" ng-show="playerCtrl.gameModel.isGameStarted">
<div ... | <div class="sq-player" ng-init="pModel = playerCtrl.playerModel.model; player = playerCtrl.player"
ng-class="{
'active': player.isActive,
'current': player.isCurrent
}">
<div class="row">
<div class="col-sm-3">
<img ng-src="{{player.img}}"/>
<div>{{player.name}}</div>
</div>
<div class="col-sm-9">
... | Fix HTML layout of each player | Fix HTML layout of each player
| HTML | unlicense | ejwaibel/squarrels,ejwaibel/squarrels | html | ## Code Before:
<li class="sq-player" ng-init="pModel = playerCtrl.playerModel.model; player = playerCtrl.player"
ng-class="{
'active': player.isActive,
'current': player.isCurrent
}">
<span>{{player.name}}</span>
<img ng-src="{{player.img}}"/>
<div class="sq-player-cards" ng-show="playerCtrl.gameModel.isGameS... |
897357ded128cb0dd9f8b8169220bff702aa1fad | livereload-script-tag-injector.js | livereload-script-tag-injector.js | const injectLivereload = () => {
const script = document.createElement("script")
script.setAttribute("src", "http://localhost:35729/livereload.js")
document.head.appendChild(script)
}
const removeLivereload = () => {
const elems = document.querySelectorAll("script[src='http://localhost:35729/livereload.js']")
... | const injectLivereload = () => {
const script = document.createElement("script")
script.setAttribute("src", "http://localhost:35729/livereload.js")
document.head.appendChild(script)
}
browser.runtime.onMessage.addListener(msg => {
switch (msg.command) {
case "inject":
injectLivereload();
break;... | Remove livereload script tag removing | Remove livereload script tag removing
Removing the script tags does not remove the code from running, so this
has no value.
| JavaScript | mit | orva/livereloaded,orva/livereloaded | javascript | ## Code Before:
const injectLivereload = () => {
const script = document.createElement("script")
script.setAttribute("src", "http://localhost:35729/livereload.js")
document.head.appendChild(script)
}
const removeLivereload = () => {
const elems = document.querySelectorAll("script[src='http://localhost:35729/li... |
09d593d0ec01f1831d042cfb36ca5fa972b42d99 | roles/db/tasks/main.yml | roles/db/tasks/main.yml | ---
- name: Add the PostgreSQL public GPG key to the apt repo
apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc
state=present
- name: Add PostgreSQL to the sources list
apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release }}-pgdg main'
... | ---
- name: Ensure locale is available
locale_gen: name=en_US.UTF-8
- name: Add the PostgreSQL public GPG key to the apt repo
apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc
state=present
- name: Add PostgreSQL to the sources list
apt_repository: repo='deb http://apt.postgresql.org/p... | Make sure db locale is available on the machine before setting this. | Make sure db locale is available on the machine before setting this.
| YAML | mit | jcalazan/ansible-django-stack,DavidCain/mitoc-ansible,jcalazan/ansible-django-stack,DavidCain/mitoc-ansible,DavidCain/mitoc-ansible,YPCrumble/ansible-django-stack,YPCrumble/ansible-django-stack,YPCrumble/ansible-django-stack,jcalazan/ansible-django-stack | yaml | ## Code Before:
---
- name: Add the PostgreSQL public GPG key to the apt repo
apt_key: url=https://www.postgresql.org/media/keys/ACCC4CF8.asc
state=present
- name: Add PostgreSQL to the sources list
apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ {{ ansible_distribution_release }}-pg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.