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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
13a61a73f41a8e275d17c164e1b300677d1ed8c7 | clone_and_start.sh | clone_and_start.sh | set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY" ]
then
echo '+++ GIT_SSH_KEY provided'
echo "$GIT_SSH_KEY"
echo "$GIT_SSH_KEY" > git_ssh_key
chmod 600 git_ssh_key
export GIT_SSH_COMMAND... | set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY_BASE64" ]
then
echo '+++ GIT_SSH_KEY_BASE64 provided'
echo "$GIT_SSH_KEY_BASE64" > git_ssh_key.b64
base64 -d git_ssh_key.b64 > g... | Switch to base64 encoding of SSH key | Switch to base64 encoding of SSH key
| Shell | mit | henkel/docker-node-from-git | shell | ## Code Before:
set -e
GIT_BRANCH=${GIT_BRANCH:-master}
echo '+++ Welcome to node-from-git'
echo '+++ GIT_URL ' $GIT_URL
echo '+++ GIT_BRANCH ' $GIT_BRANCH
if [ ! -z "$GIT_SSH_KEY" ]
then
echo '+++ GIT_SSH_KEY provided'
echo "$GIT_SSH_KEY"
echo "$GIT_SSH_KEY" > git_ssh_key
chmod 600 git_ssh_key
export... |
13940eb3a3de8783f04921d27b641876c2266176 | test-requirements.txt | test-requirements.txt | bandit>=1.1.0 # Apache-2.0
| bandit>=1.1.0 # Apache-2.0
doc8 # Apache-2.0
| Add missing dependency for testing | Add missing dependency for testing
| Text | apache-2.0 | Pansanel/cloudkeeper-os | text | ## Code Before:
bandit>=1.1.0 # Apache-2.0
## Instruction:
Add missing dependency for testing
## Code After:
bandit>=1.1.0 # Apache-2.0
doc8 # Apache-2.0
|
e94e8e51fac43b54db0debc2afaecea009f0cccd | .travis.yml | .travis.yml | language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev"
- "nightly"
install:
- pip install coveralls
os:
- linux
script: coverage run --source=socman test_socman.py
after_success: coveralls
| language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev"
- "nightly"
os:
- linux
- osx
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew install python3; fi
- if [[ "$TRAVIS_OS_NAME" == "linux"]]; pip install coveralls; fi
script: if [[ "$TRAVIS_OS_NAME" == "linux" ]]; th... | Support Python 3.5 on TravisCI under OSX | Support Python 3.5 on TravisCI under OSX
* Add conditional install of Python3 on OSX using homebrew
* Make coveralls commands conditional and run on Linux only
| YAML | mit | NullInfinity/socman,NullInfinity/society-event-manager | yaml | ## Code Before:
language: python
python:
- "3.3"
- "3.4"
- "3.5"
- "3.5-dev"
- "nightly"
install:
- pip install coveralls
os:
- linux
script: coverage run --source=socman test_socman.py
after_success: coveralls
## Instruction:
Support Python 3.5 on TravisCI under OSX
* Add conditional install of Python3... |
8ebe058ed57fa9c6b0ea53b975ea688ad565e488 | app/views/error/e404.volt | app/views/error/e404.volt | {% extends "templates/main.volt" %}
{% block content %}
<div class="text-center">
<h1>Page not found!</h1>
</div>
{% endblock %}
| {% extends "templates/main.volt" %}
{% block content %}
<div class="text-center">
<div class="page-header">
<h1>Page not found!</h1>
<h2>Have a picture of a cat instead.</h2>
</div>
{{ image('//thecatapi.com/api/images/get?format=src&results_per_page=1&size=med&type=jpg') }}
</div>
{% endblock %}
| Add random cats on 404 pages | Add random cats on 404 pages
| Volt | agpl-3.0 | FoxDev/Phaste,FoxDev/Phaste | volt | ## Code Before:
{% extends "templates/main.volt" %}
{% block content %}
<div class="text-center">
<h1>Page not found!</h1>
</div>
{% endblock %}
## Instruction:
Add random cats on 404 pages
## Code After:
{% extends "templates/main.volt" %}
{% block content %}
<div class="text-center">
<div class="page-header"... |
dc50a4c58f65d94a6143827effd98a1ceb6efcff | .travis.yml | .travis.yml | dist: bionic
language: minimal
services:
- docker
addons:
apt:
packages:
- docker-ce
script:
- make docker-build
deploy:
- provider: script
script: make docker-push
- provider: heroku
app: ifconfig-co
api_key:
secure: IQG/ls5Zu0yua5Ynn5EL9JCPjo1/WcmS0z7BSaXWdgW+JIWFm7oF5z54bUZH... | dist: bionic
language: minimal
services:
- docker
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Op... | Use another way to get latest docker on Travis | Use another way to get latest docker on Travis
| YAML | bsd-3-clause | martinp/ifconfigd,martinp/ifconfigd,martinp/ifconfig,martinp/ifconfig,martinp/ipd,martinp/ipd | yaml | ## Code Before:
dist: bionic
language: minimal
services:
- docker
addons:
apt:
packages:
- docker-ce
script:
- make docker-build
deploy:
- provider: script
script: make docker-push
- provider: heroku
app: ifconfig-co
api_key:
secure: IQG/ls5Zu0yua5Ynn5EL9JCPjo1/WcmS0z7BSaXWdgW+... |
5156f22f1df85ecf87aca0721d75f63e5195c77a | script/compile.sh | script/compile.sh |
hash coffee 2>&- || { echo >&2 "error: Coffee is required but it's not installed (http://jashkenas.github.com/coffee-script/)."; exit 1; }
PATH="$PATH:/usr/local/bin/"
coffee -o "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Resources/" HTML/*.coffee
|
PATH="$PATH:/usr/local/bin/"
hash coffee 2>&- || { echo >&2 "error: Coffee is required but it's not installed (http://jashkenas.github.com/coffee-script/)."; exit 1; }
coffee -o "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Resources/" HTML/*.coffee
| Check for coffee AFTER the path is alerted | Check for coffee AFTER the path is alerted | Shell | mit | execjosh/atom,dijs/atom,sillvan/atom,bj7/atom,john-kelly/atom,bryonwinger/atom,yomybaby/atom,me6iaton/atom,mnquintana/atom,hagb4rd/atom,AlisaKiatkongkumthon/atom,yomybaby/atom,qiujuer/atom,AlexxNica/atom,yangchenghu/atom,lovesnow/atom,jjz/atom,amine7536/atom,omarhuanca/atom,hellendag/atom,Jandersolutions/atom,folpindo/... | shell | ## Code Before:
hash coffee 2>&- || { echo >&2 "error: Coffee is required but it's not installed (http://jashkenas.github.com/coffee-script/)."; exit 1; }
PATH="$PATH:/usr/local/bin/"
coffee -o "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Resources/" HTML/*.coffee
## Instruction:
Check for coffee AFTER the path is ale... |
9dc0fb696e96830851c68a4a5f3e81d1abb1a2d1 | test/blake2_test.rb | test/blake2_test.rb | require 'test_helper'
class Blake2Test < MiniTest::Test
def setup
out_len = 32
key = Blake2::Key.from_string('foo bar baz') # or `Key.none`, or `Key.from_hex("0xDEADBEAF")`
@digestor = Blake2.new(out_len, key)
@input = 'hello world'
@expected = '95670379036532875f58bf23fbcb549675b656bd63... | require 'test_helper'
class Blake2Test < MiniTest::Test
def setup
out_len = 32
key = Blake2::Key.from_string('foo bar baz')
@digestor = Blake2.new(out_len, key)
@input = 'hello world'
@expected = '95670379036532875f58bf23fbcb549675b656bd639a6124a614ccd8a980b180'
end
def test_to_hex
... | Fix an existing test that was not being run due to incorrect test name and broken assertion. | Fix an existing test that was not being run due to incorrect test name and broken assertion.
| Ruby | mit | franckverrot/blake2,franckverrot/blake2,franckverrot/blake2 | ruby | ## Code Before:
require 'test_helper'
class Blake2Test < MiniTest::Test
def setup
out_len = 32
key = Blake2::Key.from_string('foo bar baz') # or `Key.none`, or `Key.from_hex("0xDEADBEAF")`
@digestor = Blake2.new(out_len, key)
@input = 'hello world'
@expected = '95670379036532875f58bf23fb... |
eac4b7d63613ff4ce64f37cdebf6095f06f70ec8 | app/index.jsx | app/index.jsx | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import './scss/main.scss';
import App from './components/App';
import configureStore from './store/configureStore';
import { load } from './modules/monod';
const appEl... | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import './scss/main.scss';
import App from './components/App';
import configureStore from './store/configureStore';
import { load } from './modules/monod';
const appEl... | Disable offline mode in dev | Disable offline mode in dev
| JSX | mit | PaulDebus/monod,PaulDebus/monod,TailorDev/monod,TailorDev/monod,PaulDebus/monod,TailorDev/monod | jsx | ## Code Before:
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import './scss/main.scss';
import App from './components/App';
import configureStore from './store/configureStore';
import { load } from './modules/mono... |
837875711a8724784e401ee5ef2fecad006a0ca6 | src/test/compile-fail/estr-subtyping.rs | src/test/compile-fail/estr-subtyping.rs | fn wants_box(x: @str) { }
fn wants_uniq(x: ~str) { }
fn wants_three(x: str/3) { }
fn has_box(x: @str) {
wants_box(x);
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found @
wants_three(x); //~ ERROR str storage differs: expected 3 but found @
}
fn has_uniq(x: ~str) {
wants_box(x); //~ ERROR ... | fn wants_box(x: @str) { }
fn wants_uniq(x: ~str) { }
fn wants_slice(x: &str) { }
fn has_box(x: @str) {
wants_box(x);
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found @
wants_slice(x);
}
fn has_uniq(x: ~str) {
wants_box(x); //~ ERROR str storage differs: expected @ but found ~
wants_un... | Remove obsolete fixed-length string test | Remove obsolete fixed-length string test
| Rust | apache-2.0 | vhbit/rust,SiegeLord/rust,michaelballantyne/rust-gpu,kimroen/rust,AerialX/rust-rt-minimal,rohitjoshi/rust,cllns/rust,stepancheg/rust-ide-rust,j16r/rust,sarojaba/rust-doc-korean,pczarn/rust,erickt/rust,Ryman/rust,0x73/rust,dinfuehr/rust,KokaKiwi/rust,aepsil0n/rust,arthurprs/rand,l0kod/rust,rprichard/rust,mdinger/rust,mi... | rust | ## Code Before:
fn wants_box(x: @str) { }
fn wants_uniq(x: ~str) { }
fn wants_three(x: str/3) { }
fn has_box(x: @str) {
wants_box(x);
wants_uniq(x); //~ ERROR str storage differs: expected ~ but found @
wants_three(x); //~ ERROR str storage differs: expected 3 but found @
}
fn has_uniq(x: ~str) {
wants_bo... |
87b3e7a93cc9f26d362789e520053e9469d4fec1 | nixos/modules/tasks/cpu-freq.nix | nixos/modules/tasks/cpu-freq.nix | { config, lib, pkgs, ... }:
with lib;
let
cpupower = config.boot.kernelPackages.cpupower;
cfg = config.powerManagement;
in
{
###### interface
options = {
powerManagement.cpuFreqGovernor = mkOption {
type = types.nullOr types.str;
default = null;
example = "ondemand";
description... | { config, lib, pkgs, ... }:
with lib;
let
cpupower = config.boot.kernelPackages.cpupower;
cfg = config.powerManagement;
in
{
###### interface
options = {
powerManagement.cpuFreqGovernor = mkOption {
type = types.nullOr types.str;
default = null;
example = "ondemand";
description... | Remove non-cpufreq_* modules since they are loaded by udev. | Remove non-cpufreq_* modules since they are loaded by udev.
| Nix | mit | SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkg... | nix | ## Code Before:
{ config, lib, pkgs, ... }:
with lib;
let
cpupower = config.boot.kernelPackages.cpupower;
cfg = config.powerManagement;
in
{
###### interface
options = {
powerManagement.cpuFreqGovernor = mkOption {
type = types.nullOr types.str;
default = null;
example = "ondemand";
... |
4ea5738000034046e03398da8aa28a577cbbb7f4 | .travis.yml | .travis.yml | language: ruby
cache: bundler
node_js:
- "0.10"
rvm:
- 2.1.5
before_script:
- npm install -g bower
- bower install
| language: ruby
cache: bundler
node_js:
- "0.10"
rvm:
- 2.1.5
before_script:
- npm install -g bower
- bower install
deploy:
provider: heroku
app: ggp-pension-guidance
api_key:
secure: bASAlGbdIIHSLR2gErxLUtDcgtJaFFbSxrmeAzyIvkYw947iWIXmQtqODFCLTrg3v202PoW5rI47fjWVr47GdjxIVJctQAbYJo3qNBXNU8Xdv+aU1EXH+22... | Configure Travis to deploy to Heroku | Configure Travis to deploy to Heroku | YAML | mit | guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance | yaml | ## Code Before:
language: ruby
cache: bundler
node_js:
- "0.10"
rvm:
- 2.1.5
before_script:
- npm install -g bower
- bower install
## Instruction:
Configure Travis to deploy to Heroku
## Code After:
language: ruby
cache: bundler
node_js:
- "0.10"
rvm:
- 2.1.5
before_script:
- npm install -g bower
- bow... |
05e972cec46d6a26dfe1c599fe5c6493d235f95f | circle.yml | circle.yml | machine:
ruby:
version:
2.2.2
test:
override:
- echo "test running"
dependencies:
pre:
- docker pull wkoszek/me
- docker run -ti -v `pwd`:/me -w /me wkoszek/me
# - make bootstrap
# - make b
# - bundle exec middleman sitemap_ping
# In case image_optim_pack doesn't work, one can u... | machine:
ruby:
version:
2.2.2
services:
- docker
test:
override:
- echo "test running"
dependencies:
pre:
- docker pull wkoszek/me
- docker run -ti -v `pwd`:/me -w /me wkoszek/me
# - make bootstrap
# - make b
# - bundle exec middleman sitemap_ping
# In case image_optim_pac... | Tag Circle.yml as needing docker. | Tag Circle.yml as needing docker.
| YAML | bsd-2-clause | wkoszek/me,wkoszek/me,wkoszek/me | yaml | ## Code Before:
machine:
ruby:
version:
2.2.2
test:
override:
- echo "test running"
dependencies:
pre:
- docker pull wkoszek/me
- docker run -ti -v `pwd`:/me -w /me wkoszek/me
# - make bootstrap
# - make b
# - bundle exec middleman sitemap_ping
# In case image_optim_pack doesn't... |
82c91b86dbf71e4e9c6de07e1c266ca5f7651ae3 | sonatype.sbt | sonatype.sbt | sonatypeProfileName := "com.trueaccord"
pomExtra in Global := {
<url>https://github.com/trueaccord/lenses</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com:trueaccord/len... | sonatypeProfileName := "com.trueaccord"
pomExtra in Global := {
<url>https://github.com/trueaccord/lenses</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://github.com/scalap... | Fix / update SCM meta-data in POM | Fix / update SCM meta-data in POM
The "connection" URL was missing the generic "git" username, but it
should be a read-only / anonymous clone URL anyway, so just use the
HTTPS URl GitHub provides for this case. The "developerConnection" URL
is only updated to the new project name on GitHub. Finally, the
browsable "url... | Scala | apache-2.0 | dotty-staging/ScalaPB,scalapb/ScalaPB,scalapb/ScalaPB,trueaccord/ScalaPB,scalapb/ScalaPB,scalapb/ScalaPB | scala | ## Code Before:
sonatypeProfileName := "com.trueaccord"
pomExtra in Global := {
<url>https://github.com/trueaccord/lenses</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.co... |
5107b538547f5c42a7ad4e6938dc6dbf73878cbe | src/Http/Middleware/ShareSelectedDominion.php | src/Http/Middleware/ShareSelectedDominion.php | <?php
namespace OpenDominion\Http\Middleware;
use Closure;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use OpenDominion\Services\Dominion\SelectorService;
class ShareSelectedDominion
{
/** @var SelectorService */
protected $dominionSelectorService;
/**
* ShareSelectedDominion construct... | <?php
namespace OpenDominion\Http\Middleware;
use Bugsnag;
use Closure;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use OpenDominion\Services\Dominion\SelectorService;
class ShareSelectedDominion
{
/** @var SelectorService */
protected $dominionSelectorService;
/**
* ShareSelectedDomin... | Add dominion state metadata to Bugsnag | Add dominion state metadata to Bugsnag
| PHP | agpl-3.0 | WaveHack/OpenDominion,WaveHack/OpenDominion,WaveHack/OpenDominion | php | ## Code Before:
<?php
namespace OpenDominion\Http\Middleware;
use Closure;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use OpenDominion\Services\Dominion\SelectorService;
class ShareSelectedDominion
{
/** @var SelectorService */
protected $dominionSelectorService;
/**
* ShareSelectedDo... |
b339c25068e849dbbf769f22893125b15325eb66 | figgypy/utils.py | figgypy/utils.py | import os
def env_or_default(var, default=None):
"""Get environment variable or provide default.
Args:
var (str): environment variable to search for
default (optional(str)): default to return
"""
if var in os.environ:
return os.environ[var]
return default
| from __future__ import unicode_literals
from future.utils import bytes_to_native_str as n
from base64 import b64encode
import os
import boto3
def env_or_default(var, default=None):
"""Get environment variable or provide default.
Args:
var (str): environment variable to search for
default (o... | Add new helper function to encrypt for KMS | Add new helper function to encrypt for KMS
| Python | mit | theherk/figgypy | python | ## Code Before:
import os
def env_or_default(var, default=None):
"""Get environment variable or provide default.
Args:
var (str): environment variable to search for
default (optional(str)): default to return
"""
if var in os.environ:
return os.environ[var]
return default
... |
ca3a72af54a2efc0b93b8d7987e4c1511e155cd0 | manifest.json | manifest.json | {
"name": "GitHub Differ",
"version": "1.0",
"manifest_version": 2,
"description": "Allow you to request diffs between arbitrary commits in some branch.",
"content_scripts": [
{
"matches": [
"https://*.github.com/*/commits",
"https://*.github.com/*/pull/*",
"https://*.g... | {
"name": "GitHub Differ",
"version": "1.0",
"manifest_version": 2,
"description": "Allow you to request diffs between arbitrary commits in some branch.",
"content_scripts": [
{
"matches": [
"https://*/*/commits",
"https://*/*/pull/*",
"https://*/*/commits/*",
... | Use a * to support hostnames like github.example.com. The matcher syntax isn't flexible enough to accomodate a more refined match. | Use a * to support hostnames like github.example.com. The matcher syntax isn't flexible enough to accomodate a more refined match.
| JSON | mit | frankshearar/github-differ | json | ## Code Before:
{
"name": "GitHub Differ",
"version": "1.0",
"manifest_version": 2,
"description": "Allow you to request diffs between arbitrary commits in some branch.",
"content_scripts": [
{
"matches": [
"https://*.github.com/*/commits",
"https://*.github.com/*/pull/*",
... |
c1369c6ffe7e19f0cc0b16fbf844bfec74fdb9fb | features/rails.feature | features/rails.feature | Feature: Rails
Background:
Given a new Rails app
And I add figaro as a dependency
And I bundle
And I create "lib/tasks/hello.rake" with:
"""
task :hello => :environment do
puts ["Hello", ENV["HELLO"]].compact.join(", ") << "!"
end
"""
Scenario: Has no application.yml... | Feature: Rails
Background:
Given a new Rails app
And I add figaro as a dependency
And I bundle
And I create "lib/tasks/hello.rake" with:
"""
task :hello => :environment do
puts ["Hello", ENV["HELLO"]].compact.join(", ") << "!"
end
"""
Scenario: Has no application.yml... | Split the blank configuration file assertion into to its own scenario | Split the blank configuration file assertion into to its own scenario
| Cucumber | mit | SeriousM/figaro,danimashu/figaro,omalab/figaro,Mario245/figaro,mumer92/figaro,laserlemon/figaro,cantonyselim/figaro,z2s8/figaro,NYULibraries/figs,7091lapS/figaro,vgvinay2/figaro,fny/figaro | cucumber | ## Code Before:
Feature: Rails
Background:
Given a new Rails app
And I add figaro as a dependency
And I bundle
And I create "lib/tasks/hello.rake" with:
"""
task :hello => :environment do
puts ["Hello", ENV["HELLO"]].compact.join(", ") << "!"
end
"""
Scenario: Has no... |
3f6c9bff6c30791a0c7188733658aaf879ab86a1 | tests/full_semantic_errors.c | tests/full_semantic_errors.c |
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_arr... |
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_arr... | Add illegal member access and undefined function name error. | Add illegal member access and undefined function name error.
| C | mit | RyanWangGit/scc | c | ## Code Before:
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
... |
bbbfecb4d4988238c12dc1d7c8b6be54729ffe47 | app/controllers/admin/cabinet_ministers_controller.rb | app/controllers/admin/cabinet_ministers_controller.rb | class Admin::CabinetMinistersController < Admin::BaseController
before_action :enforce_permissions!
def show
@cabinet_minister_roles = MinisterialRole.includes(:translations).where(cabinet_member: true).order(:seniority)
@also_attends_cabinet_roles = MinisterialRole.includes(:translations).also_attends_cab... | class Admin::CabinetMinistersController < Admin::BaseController
before_action :enforce_permissions!
def show
@cabinet_minister_roles = MinisterialRole.includes(:translations).where(cabinet_member: true).order(:seniority)
@also_attends_cabinet_roles = MinisterialRole.includes(:translations).also_attends_cab... | Update the ministerial ordering without involving the Publishing API | Update the ministerial ordering without involving the Publishing API
Or any of the other hooks on the model. This data currently only
affects Whitehall and pages rendered by Whitehall Frontend, so we
don't need to involve the Publishing API.
Currently, it can take ~40 seconds to update every organisation, which
means... | Ruby | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | ruby | ## Code Before:
class Admin::CabinetMinistersController < Admin::BaseController
before_action :enforce_permissions!
def show
@cabinet_minister_roles = MinisterialRole.includes(:translations).where(cabinet_member: true).order(:seniority)
@also_attends_cabinet_roles = MinisterialRole.includes(:translations).... |
a406fe603ff9348c90b04638786fe214fcc09167 | spec/javascripts/foobar_spec.js.coffee | spec/javascripts/foobar_spec.js.coffee | describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
describe "wanted failure", ->
it 'fails', -> expect(1 + 1).toEqual(42);
| describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
| Remove failing test since Travis works. | Remove failing test since Travis works.
| CoffeeScript | agpl-3.0 | sjockers/teikei,sjockers/teikei,teikei/teikei,teikei/teikei,sjockers/teikei,teikei/teikei | coffeescript | ## Code Before:
describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
describe "wanted failure", ->
it 'fails', -> expect(1 + 1).toEqual(42);
## Instruction:
Remove failing test since Travis works.
## Code After:
describe "foobar", ->
it 'works', -> expect(1 + 1).toEqual(2);
|
ce1dc7e9785d33676edf0d44a83456eae7af0831 | README.md | README.md | Dependency Injection with Ninject
=================================
This is a simple lunch presentation to demonstrate some common scenarios of using
dependency injection with Ninject.
Exercise 1
----------
Tightly coupled code, no IoC used.
Exercise 2
----------
Added in manual dependency injection.
Exercise 3
--... | Dependency Injection with Ninject
=================================
NOTE
----
This presentation is probably out of date but may still be useful for basic examples.
This is a simple lunch presentation to demonstrate some common scenarios of using
dependency injection with Ninject.
Exercise 1
----------
Tightly coupl... | Add out of date warning | Add out of date warning | Markdown | mit | paulzerkel/di-ninject,paulzerkel/di-ninject,paulzerkel/di-ninject | markdown | ## Code Before:
Dependency Injection with Ninject
=================================
This is a simple lunch presentation to demonstrate some common scenarios of using
dependency injection with Ninject.
Exercise 1
----------
Tightly coupled code, no IoC used.
Exercise 2
----------
Added in manual dependency injection... |
21f8ce57cfc5d3607669aa51938fb36e8a5cffb1 | src/lang/ctorApply.js | src/lang/ctorApply.js | define(function () {
function F(){}
/**
* Do fn.apply on a constructor.
*/
function ctorApply(ctor, args) {
F.prototype = ctor.prototype;
var instance = new F();
ctor.apply(instance, args);
return instance;
}
return ctorApply;
});
| define(function () {
var bind = Function.protype.bind;
/**
* Do fn.apply on a constructor.
*/
function ctorApply(ctor, args) {
var bound = bind.bind(ctor, undefined).apply(undefined, args);
return new bound();
}
return ctorApply;
});
| Use Function.prototype.bind to support ES6 classes | Use Function.prototype.bind to support ES6 classes
By using `bind` it will work both with old style functions as classes
and the new proper classes in ES2015. | JavaScript | mit | mout/mout,mout/mout | javascript | ## Code Before:
define(function () {
function F(){}
/**
* Do fn.apply on a constructor.
*/
function ctorApply(ctor, args) {
F.prototype = ctor.prototype;
var instance = new F();
ctor.apply(instance, args);
return instance;
}
return ctorApply;
});
## Ins... |
c542c1c3fb870c2052114615f9669f9617f16e50 | src/main/resources/hudson/plugins/git/UserRemoteConfig/config.groovy | src/main/resources/hudson/plugins/git/UserRemoteConfig/config.groovy | package hudson.plugins.git.UserRemoteConfig
f = namespace(lib.FormTagLib)
c = namespace(lib.CredentialsTagLib)
f.entry(title:_("Repository URL"), field:"url") {
f.textbox(checkMethod: "post")
}
f.entry(title:_("Credentials"), field:"credentialsId") {
c.select(onchange="""{
var self = this.targetE... | package hudson.plugins.git.UserRemoteConfig
f = namespace(lib.FormTagLib)
c = namespace(lib.CredentialsTagLib)
f.entry(title:_("Repository URL"), field:"url") {
f.textbox(checkMethod: "post")
}
f.entry(title:_("Credentials"), field:"credentialsId") {
c.select(onchange="""{
var self = this.targetE... | Remove wasted space on Repository URL field | Remove wasted space on Repository URL field
The repeatable delete button in the groovy form should be consistent
with the repeatable delete button used in jelly files. No need to add
the extra div and waste vertical space.
The "show-if-not-only" class does not seem to have any affect on the
shipping version of the p... | Groovy | mit | jenkinsci/git-plugin,MarkEWaite/git-plugin,MarkEWaite/git-plugin,jenkinsci/git-plugin,jenkinsci/git-plugin,jenkinsci/git-plugin,MarkEWaite/git-plugin,MarkEWaite/git-plugin | groovy | ## Code Before:
package hudson.plugins.git.UserRemoteConfig
f = namespace(lib.FormTagLib)
c = namespace(lib.CredentialsTagLib)
f.entry(title:_("Repository URL"), field:"url") {
f.textbox(checkMethod: "post")
}
f.entry(title:_("Credentials"), field:"credentialsId") {
c.select(onchange="""{
var sel... |
747580ae4a2ff7e65398e815eef60b45fe87491a | storage/dump.go | storage/dump.go | // Copyright 2016 The OPA Authors. All rights reserved.
// Use of this source code is governed by an Apache2
// license that can be found in the LICENSE file.
package storage
import (
"encoding/json"
"io"
)
// Dump writes the content of the DataStore ds to the io.Writer w.
func Dump(ds *DataStore, w io.Writer) er... | // Copyright 2016 The OPA Authors. All rights reserved.
// Use of this source code is governed by an Apache2
// license that can be found in the LICENSE file.
package storage
import (
"encoding/json"
"io"
)
// Dump writes the content of the DataStore ds to the io.Writer w.
func Dump(ds *DataStore, w io.Writer) er... | Add Load utility alongside Dump | Add Load utility alongside Dump
| Go | apache-2.0 | timothyhinrichs/opa,open-policy-agent/opa,Eva-xiaohui-luo/opa,tsandall/opa,open-policy-agent/opa,tsandall/opa,timothyhinrichs/opa,tsandall/opa,timothyhinrichs/opa,tsandall/opa,Eva-xiaohui-luo/opa,open-policy-agent/opa,tsandall/opa,tsandall/opa,timothyhinrichs/opa,open-policy-agent/opa,open-policy-agent/opa,Eva-xiaohui-... | go | ## Code Before:
// Copyright 2016 The OPA Authors. All rights reserved.
// Use of this source code is governed by an Apache2
// license that can be found in the LICENSE file.
package storage
import (
"encoding/json"
"io"
)
// Dump writes the content of the DataStore ds to the io.Writer w.
func Dump(ds *DataStore,... |
ed7e1858aa13a59806314581ef6706b15253708b | buildscripts/goqueryset.sh | buildscripts/goqueryset.sh | find ./.. -type f -name 'autogenerated_*' | xargs sed -i '' -e 's/.*\/\/ ===== BEGIN of all query sets.*/\/\/ notest\'$'\n&/'
| find ./.. -type f -name 'autogenerated_*' | xargs sed -i.bak -e 's/.*\/\/ ===== BEGIN of all query sets.*/\/\/ notest\'$'\n&/'
find ./.. -type f -name '*.bak' -delete
| Fix sed so it works for both mac and gnu sed | Fix sed so it works for both mac and gnu sed
| Shell | apache-2.0 | checkr/flagr,checkr/flagr,checkr/flagr,checkr/flagr | shell | ## Code Before:
find ./.. -type f -name 'autogenerated_*' | xargs sed -i '' -e 's/.*\/\/ ===== BEGIN of all query sets.*/\/\/ notest\'$'\n&/'
## Instruction:
Fix sed so it works for both mac and gnu sed
## Code After:
find ./.. -type f -name 'autogenerated_*' | xargs sed -i.bak -e 's/.*\/\/ ===== BEGIN of all query s... |
8433c05de983e7e1b5e1f07d8347883a7c6cd504 | install-quiver.sh | install-quiver.sh |
command_exists() {
command -v "$@" > /dev/null 2>&1
}
do_install() {
# Since we cannot currently use DigitalOcean's Docker slug, install Docker
# if necessary. We also run a few other dependency checks to help those
# running on unsupported systems. Note that git is *not* present by default
# on DigitalOce... |
command_exists() {
command -v "$@" > /dev/null 2>&1
}
do_install() {
# Since we cannot currently use DigitalOcean's Docker slug, install Docker
# if necessary. We also run a few other dependency checks to help those
# running on unsupported systems. Note that git is *not* present by default
# on DigitalOce... | Write Quiver logs from docker container to syslogs | Write Quiver logs from docker container to syslogs
| Shell | apache-2.0 | uProxy/uproxy,uProxy/uproxy,uProxy/uproxy,uProxy/uproxy,uProxy/uproxy | shell | ## Code Before:
command_exists() {
command -v "$@" > /dev/null 2>&1
}
do_install() {
# Since we cannot currently use DigitalOcean's Docker slug, install Docker
# if necessary. We also run a few other dependency checks to help those
# running on unsupported systems. Note that git is *not* present by default
... |
a2b0e86a21ec793de77bb19b6520b6b4ce6ada7f | app/helpers/nav_helper.rb | app/helpers/nav_helper.rb | module NavHelper
def nav_menu_collapsed?
cookies[:collapsed_nav] == 'true'
end
def nav_sidebar_class
if nav_menu_collapsed?
"sidebar-collapsed"
else
"sidebar-expanded"
end
end
def page_sidebar_class
if nav_menu_collapsed?
"page-sidebar-collapsed"
else
"page-si... | module NavHelper
def nav_menu_collapsed?
cookies[:collapsed_nav] == 'true'
end
def nav_sidebar_class
if nav_menu_collapsed?
"sidebar-collapsed"
else
"sidebar-expanded"
end
end
def page_sidebar_class
if nav_menu_collapsed?
"page-sidebar-collapsed"
else
"page-si... | Add missing class to builds page | Add missing class to builds page
| Ruby | mit | jirutka/gitlabhq,SVArago/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,allysonbarros/gitlabhq,dwrensha/gitlabhq,htve/GitlabForChinese,ttasanen/gitlabhq,icedwater/gitlabhq,SVArago/gitlabhq,dreampet/gitlab,iiet/iiet-git,t-zuehlsdorff/gitlabhq,darkrasid/gitlabhq,martijnvermaat/gitlabhq,Soullivaneuh/gitlabhq,stoplightio/gitlabh... | ruby | ## Code Before:
module NavHelper
def nav_menu_collapsed?
cookies[:collapsed_nav] == 'true'
end
def nav_sidebar_class
if nav_menu_collapsed?
"sidebar-collapsed"
else
"sidebar-expanded"
end
end
def page_sidebar_class
if nav_menu_collapsed?
"page-sidebar-collapsed"
els... |
e35673d7debe16222c1667131e51969c093e225c | .devcontainer/devcontainer.json | .devcontainer/devcontainer.json | {
"name": "Rust",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"lldb.executable": "/usr/bin/lldb",
"files.watcherExclude": {
... | {
"name": "Rust",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"lldb.executable": "/usr/bin/lldb",
"files.watcherExclude": {
... | Add VS Code C++ tools | Add VS Code C++ tools
| JSON | apache-2.0 | dtolnay/cxx,dtolnay/cxx,dtolnay/cxx,dtolnay/cxx | json | ## Code Before:
{
"name": "Rust",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"lldb.executable": "/usr/bin/lldb",
"files.watcherExcl... |
ab8a5851e3f4aa4f91f98eb5fb01156c50f1aa6e | README.md | README.md | cpm-glfw
========
CPM module for GLFW.
| cpm-glfw
========
[](https://travis-ci.org/iauns/cpm-glfw)
CPM module for GLFW. See: http://www.glfw.org
Usage
-----
```c++
#include <GLFW/glfw3.h>
```
See a quick guide on getting started with glfw:
http://www.glfw.org/docs/latest/quick.html .
| Add travis banner and update documentation. | Add travis banner and update documentation.
| Markdown | mit | iauns/cpm-glfw,iauns/cpm-glfw | markdown | ## Code Before:
cpm-glfw
========
CPM module for GLFW.
## Instruction:
Add travis banner and update documentation.
## Code After:
cpm-glfw
========
[](https://travis-ci.org/iauns/cpm-glfw)
CPM module for GLFW. See: http://www.glfw.org
Usage
-----
```c++
#i... |
bcd1bca16b3414e8c37d0f8a5028971c0b1e06b7 | cms_lab_data/templates/cms_lab_data/datafile_list.html | cms_lab_data/templates/cms_lab_data/datafile_list.html | {% extends "base.html" %}
{% block content %}
{% include 'cms_lab_data/_searchable-data-file-list.html' with list_var='listVar'|add:'Main' list_id='search-list-'|add:'main' search_id='search-'|add:'main' filter_id='filter-'|add:'main' search_filter_id='search-filter-'|add:'main' label='Data Files' %}
{% endblock ... | {% extends "base.html" %}
{% block content %}
<div class="container-fluid">
{% include 'cms_lab_data/_searchable-data-file-list.html' with list_var='listVar'|add:'Main' list_id='search-list-'|add:'main' search_id='search-'|add:'main' filter_id='filter-'|add:'main' search_filter_id='search-filter-'|add:'main' l... | Fix left/right margins of main data file list | Fix left/right margins of main data file list
| HTML | bsd-3-clause | mfcovington/djangocms-lab-data,mfcovington/djangocms-lab-data,mfcovington/djangocms-lab-data | html | ## Code Before:
{% extends "base.html" %}
{% block content %}
{% include 'cms_lab_data/_searchable-data-file-list.html' with list_var='listVar'|add:'Main' list_id='search-list-'|add:'main' search_id='search-'|add:'main' filter_id='filter-'|add:'main' search_filter_id='search-filter-'|add:'main' label='Data Files' ... |
2a89a3e7b73459c855a5d5bcf1dc52c375b0617b | roles/dev-tools/tasks/main.yml | roles/dev-tools/tasks/main.yml | - name: be sure there's a bin folder into the home folder
command: mkdir ~/bin creates=~/bin
- name: be sure delete-merged script is updated
get_url: url=https://gist.github.com/renanivo/4990090/raw/7b3d5ab9e396a0ab7b23f288da79eb41798c67ef/delete-merged.sh
dest=~/bin/delete-merged
- name: be sure delet... | - name: be sure there's a bin folder into the home folder
command: mkdir ~/bin creates=~/bin
- name: be sure delete-merged script is updated
get_url: url=https://gist.github.com/renanivo/4990090/raw/7b3d5ab9e396a0ab7b23f288da79eb41798c67ef/delete-merged.sh
dest=~/bin/delete-merged
- name: be sure delet... | Remove "with" from dev tools | Remove "with" from dev tools
As with a fresh install, there is no pip3
| YAML | mit | renanivo/playbooks | yaml | ## Code Before:
- name: be sure there's a bin folder into the home folder
command: mkdir ~/bin creates=~/bin
- name: be sure delete-merged script is updated
get_url: url=https://gist.github.com/renanivo/4990090/raw/7b3d5ab9e396a0ab7b23f288da79eb41798c67ef/delete-merged.sh
dest=~/bin/delete-merged
- nam... |
57ee73d54fc4f7b9c687557dd423c75c635be714 | requirements.txt | requirements.txt | bunch==1.0.1
inflection==0.3.1
numpy==1.9.2
nibabel==2.0.1
scipy==0.16.0
sympy==0.7.5
matplotlib==1.4.0
nipy==0.3.0
dipy==0.9.2
traits==4.5.0
networkx==1.8.1
openpyxl==2.2.3
six==1.9.0
qiutil==2.2.8
qidicom==2.3.7
qixnat==4.1.4
qiprofile-rest-client==5.6.3
git+git://github.com/moloney/dcmstack.git#egg=dcmstack
git+git:... | bunch
inflection
numpy
nibabel
scipy
sympy
matplotlib
nipy
dipy
traits
networkx
openpyx
six==1.9.0
qiutil==2.2.8
qidicom==2.3.7
qixnat==4.1.4
qiprofile-rest-client==5.6.3
git+git://github.com/moloney/dcmstack.git#egg=dcmstack
git+git://github.com/FredLoney/nipype.git#egg=nipype-master
| Remove all non-qi* dependency versions. | Remove all non-qi* dependency versions.
| Text | bsd-2-clause | ohsu-qin/qipipe | text | ## Code Before:
bunch==1.0.1
inflection==0.3.1
numpy==1.9.2
nibabel==2.0.1
scipy==0.16.0
sympy==0.7.5
matplotlib==1.4.0
nipy==0.3.0
dipy==0.9.2
traits==4.5.0
networkx==1.8.1
openpyxl==2.2.3
six==1.9.0
qiutil==2.2.8
qidicom==2.3.7
qixnat==4.1.4
qiprofile-rest-client==5.6.3
git+git://github.com/moloney/dcmstack.git#egg=d... |
f53d1e28db751b97cbec28aa14ad9385de001301 | _website.json | _website.json | {
"IndexDocument": {
"Suffix": "index.html"
},
"ErrorDocument": {
"Key": "404.html"
},
"RoutingRules": [{
"Condition": {
"KeyPrefixEquals": "docker-integration/google-cloud/"
},
"Redirect": {
"HostName": "documentation.codeship.com",
"ReplaceKeyPrefixWith": "docker/contin... | {
"IndexDocument": {
"Suffix": "index.html"
},
"ErrorDocument": {
"Key": "404/index.html"
},
"RoutingRules": [{
"Condition": {
"KeyPrefixEquals": "docker-integration/google-cloud/"
},
"Redirect": {
"HostName": "documentation.codeship.com",
"ReplaceKeyPrefixWith": "docker/... | Add Browser Testing redirect and fix custom error pages | Add Browser Testing redirect and fix custom error pages
| JSON | mit | codeship/documentation,mlocher/documentation,mlocher/documentation,mlocher/documentation,codeship/documentation,codeship/documentation,codeship/documentation,mlocher/documentation | json | ## Code Before:
{
"IndexDocument": {
"Suffix": "index.html"
},
"ErrorDocument": {
"Key": "404.html"
},
"RoutingRules": [{
"Condition": {
"KeyPrefixEquals": "docker-integration/google-cloud/"
},
"Redirect": {
"HostName": "documentation.codeship.com",
"ReplaceKeyPrefixWith"... |
56b2c1ce200986f331d6803d1b1aa90d8411a2ab | spec/controllers/featured_works_controller_spec.rb | spec/controllers/featured_works_controller_spec.rb | require 'spec_helper'
describe FeaturedWorksController do
describe "#create" do
before do
sign_in FactoryGirl.create(:normal_user)
expect(controller).to receive(:authorize!).with(:create, FeaturedWork).and_return(true)
end
context "when there are no featured works" do
it "should create... | require 'spec_helper'
describe FeaturedWorksController do
describe "#create" do
before do
sign_in FactoryGirl.create(:user)
expect(controller).to receive(:authorize!).with(:create, FeaturedWork).and_return(true)
end
context "when there are no featured works" do
it "should create one" d... | Fix tests that broke as a result of a merge | Fix tests that broke as a result of a merge
| Ruby | apache-2.0 | samvera/hyrax,samvera/hyrax,samvera/hyrax,samvera/hyrax | ruby | ## Code Before:
require 'spec_helper'
describe FeaturedWorksController do
describe "#create" do
before do
sign_in FactoryGirl.create(:normal_user)
expect(controller).to receive(:authorize!).with(:create, FeaturedWork).and_return(true)
end
context "when there are no featured works" do
i... |
9a452cc082d137bba5fd84c621ee41aa306df6fb | src/Http/Middleware/NotificationMiddleware.php | src/Http/Middleware/NotificationMiddleware.php | <?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
use Krucas\Notification\Middleware\NotificationMiddleware as Middleware;
class NotificationMiddleware extends Middleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
*... | <?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
use Illuminate\Support\ViewErrorBag;
use Krucas\Notification\Middleware\NotificationMiddleware as Middleware;
class NotificationMiddleware extends Middleware
{
/**
* Handle an incoming request.
*
* @param \Il... | Handle error bags as well as single messaged errors | Handle error bags as well as single messaged errors
| PHP | mit | rinvex/cortex-foundation | php | ## Code Before:
<?php
declare(strict_types=1);
namespace Cortex\Foundation\Http\Middleware;
use Closure;
use Krucas\Notification\Middleware\NotificationMiddleware as Middleware;
class NotificationMiddleware extends Middleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request... |
bdca4d4b6b04ad011a25fd913ec4c7ed2ed04b1d | react/components/Onboarding/components/UI/CTAButton/index.js | react/components/Onboarding/components/UI/CTAButton/index.js | import theme from 'react/styles/theme';
import GenericButton from 'react/components/UI/GenericButton';
import styled from 'styled-components';
const CTAButton = styled(GenericButton).attrs({
f: 6,
})`
margin-top: ${theme.space[6]}
`;
export default CTAButton;
| import GenericButton from 'react/components/UI/GenericButton';
import styled from 'styled-components';
const CTAButton = styled(GenericButton).attrs({
f: 6
})`
margin-top: ${x => x.theme.space[6]}
`;
export default CTAButton;
| Use theme propeties in CTAButton styled component | Use theme propeties in CTAButton styled component
| JavaScript | mit | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | javascript | ## Code Before:
import theme from 'react/styles/theme';
import GenericButton from 'react/components/UI/GenericButton';
import styled from 'styled-components';
const CTAButton = styled(GenericButton).attrs({
f: 6,
})`
margin-top: ${theme.space[6]}
`;
export default CTAButton;
## Instruction:
Use theme propeties i... |
aaaa55f77758249fee22d0aebf4badf25a2133da | .travis.yml | .travis.yml | language: node_js
node_js:
- "node"
- "iojs"
- "7"
- "6"
- "5"
- "4"
install: npm install -g jasmine-node
script: make test
| language: node_js
node_js:
- "node"
- "8"
- "7"
install: npm install -g jasmine-node
script: make test
| Remove support for node <7 | :green_heart: Remove support for node <7
| YAML | bsd-3-clause | daaang/awful-mess | yaml | ## Code Before:
language: node_js
node_js:
- "node"
- "iojs"
- "7"
- "6"
- "5"
- "4"
install: npm install -g jasmine-node
script: make test
## Instruction:
:green_heart: Remove support for node <7
## Code After:
language: node_js
node_js:
- "node"
- "8"
- "7"
install: npm install -g jasmine-node
script: make test
|
afd0267fd55dd08cc5c5aabd998afecd7500fe0a | circle.yml | circle.yml | general:
branches:
ignore:
- gh-pages
machine:
node:
version: 5
test:
pre:
- sudo apt-get update && sudo apt-get install --only-upgrade google-chrome-stable
override:
- npm run build
- git checkout dist
- npm test
deployment:
doc:
branch: master
commands:
- ./build/... | general:
branches:
ignore:
- gh-pages
machine:
node:
version: 5
test:
override:
- npm run build
- git checkout dist
- npm test
deployment:
doc:
branch: master
commands:
- ./build/gh-pages.sh
| Remove chrome install chrome before launching | Remove chrome install chrome before launching
| YAML | mit | posva/vue-mdl,posva/vue-mdl,posva/vue-mdl | yaml | ## Code Before:
general:
branches:
ignore:
- gh-pages
machine:
node:
version: 5
test:
pre:
- sudo apt-get update && sudo apt-get install --only-upgrade google-chrome-stable
override:
- npm run build
- git checkout dist
- npm test
deployment:
doc:
branch: master
commands:
... |
5be03b41f9ad52e58c240a760303ad1c2366a8ef | public/index.html | public/index.html | <!doctype html>
<html lang='en'>
<head>
<meta charset='utf8'/>
<meta name='description' content='A single-page offline-first responsive web application to monitor energy usage at one’s home.'/>
<meta name='mobile-web-app-capable' content='yes'/>
<meta name='msapplication-navbutton-color' content='#301... | <!doctype html>
<html lang='en'>
<head>
<meta charset='utf8'/>
<meta name='description' content='A single-page offline-first responsive web application to monitor energy usage at one’s home.'/>
<meta name='mobile-web-app-capable' content='yes'/>
<meta name='msapplication-navbutton-color' content='#301... | Stop zoom when focussing input on iOS | Stop zoom when focussing input on iOS
| HTML | mit | cimm/blathy,cimm/blathy | html | ## Code Before:
<!doctype html>
<html lang='en'>
<head>
<meta charset='utf8'/>
<meta name='description' content='A single-page offline-first responsive web application to monitor energy usage at one’s home.'/>
<meta name='mobile-web-app-capable' content='yes'/>
<meta name='msapplication-navbutton-colo... |
b772d5caf937f0d92c8c16f23eda245e47a5e5f7 | .travis.yml | .travis.yml | language: node_js
node_js:
- '12'
- '10'
- '8'
- '6'
- '4'
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@3 && cat coverage/lcov.info | coveralls"
notifications:
email: a@alexandresaiz.com
| language: node_js
node_js:
- '13'
- '12'
- '10'
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@3 && cat coverage/lcov.info | coveralls"
notifications:
email: a@alexandresaiz.com
| Drop support for Node.js < 10 | [major] Drop support for Node.js < 10
| YAML | mit | microapps/Nodify-Shopify,MONEI/Shopify-api-node,MONEI/Shopify-api-node | yaml | ## Code Before:
language: node_js
node_js:
- '12'
- '10'
- '8'
- '6'
- '4'
script:
- "npm run test-travis"
after_script:
- "npm install coveralls@3 && cat coverage/lcov.info | coveralls"
notifications:
email: a@alexandresaiz.com
## Instruction:
[major] Drop support for Node.js < 10
## Code After:
lang... |
ae256a45bfd8f676939afd96f7f3a209ce1e3aac | .eslintrc.js | .eslintrc.js | module.exports = {
parser: 'babel-eslint',
plugins: [
'flowtype',
// Although we don't have any React or JSX in this project, we need to have
// this plugin and some of the rules from this plugin enabled here so that
// our tests work. We should probably look into a way of doing this so that
/... | module.exports = {
parser: 'babel-eslint',
plugins: [
'flowtype',
// Although we don't have any React or JSX in this project, we need to have
// this plugin and some of the rules from this plugin enabled here so that
// our tests work. We should probably look into a way of doing this so that
/... | Enable new flowtype eslint rules | Enable new flowtype eslint rules
There have been some new rules added since we started using this plugin.
It looks like we are already following them, so no additional cleanup is
needed.
| JavaScript | mit | trotzig/import-js,trotzig/import-js,trotzig/import-js,Galooshi/import-js | javascript | ## Code Before:
module.exports = {
parser: 'babel-eslint',
plugins: [
'flowtype',
// Although we don't have any React or JSX in this project, we need to have
// this plugin and some of the rules from this plugin enabled here so that
// our tests work. We should probably look into a way of doing th... |
6901dcb69b2991b3ad25e82a80f3bc4d2ab11527 | docs/index.md | docs/index.md | ---
title: Data Set Publishing Language, Version 2.0
author: Natarajan Krishnaswami
---
# DSPL 2.0
This is the project website for the DSPL 2.0 specification, samples, and related tools.
## Spec
The draft specification is here: [dspl2-spec.html](dspl2-spec.html).
## Related tools
There are no tools at this time.
#... | ---
title: Data Set Publishing Language, Version 2.0
author: Natarajan Krishnaswami
---
# DSPL 2.0
This is the project website for the DSPL 2.0 specification, samples, and related tools.
## Spec
The draft specification is here: [dspl2-spec.html](dspl2-spec.html).
## Related tools
There are no tools at this time.
#... | Fix stale comment on DSPL 2 samples | Fix stale comment on DSPL 2 samples
| Markdown | bsd-3-clause | google/dspl,google/dspl,google/dspl | markdown | ## Code Before:
---
title: Data Set Publishing Language, Version 2.0
author: Natarajan Krishnaswami
---
# DSPL 2.0
This is the project website for the DSPL 2.0 specification, samples, and related tools.
## Spec
The draft specification is here: [dspl2-spec.html](dspl2-spec.html).
## Related tools
There are no tools ... |
316587cb1f5b2f546c38c72a6130eebc60786392 | util/before.sh | util/before.sh | [[ $(hostname) =~ greatwhite ]] && exit
# ensure that these directories are available to us
export PATH=".:$HOME/bin:/usr/local/bin:$PATH"
# set XDG Base Directories appropriately
export XDG_CONFIG_HOME="$HOME/.config"
| [[ $(hostname) =~ greatwhite ]] && exit
# ensure that these directories are available to us
export PATH=".:$HOME/bin:/usr/local/bin:$PATH"
# set XDG Base Directories appropriately
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
| Initialize some XDG environment vars | shell: Initialize some XDG environment vars
| Shell | mit | jez/dotfiles,jez/dotfiles,jez/dotfiles | shell | ## Code Before:
[[ $(hostname) =~ greatwhite ]] && exit
# ensure that these directories are available to us
export PATH=".:$HOME/bin:/usr/local/bin:$PATH"
# set XDG Base Directories appropriately
export XDG_CONFIG_HOME="$HOME/.config"
## Instruction:
shell: Initialize some XDG environment vars
## Code After:
[[ $(h... |
5efadd6674002f8c9f4cb75fbf832f386eb88849 | lib/jekyll/converters/markdown/kramdown_parser.rb | lib/jekyll/converters/markdown/kramdown_parser.rb | module Jekyll
module Converters
class Markdown
class KramdownParser
def initialize(config)
require 'kramdown'
@config = config
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem insta... | module Jekyll
module Converters
class Markdown
class KramdownParser
def initialize(config)
require 'kramdown'
@config = config
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ [sudo] gem insta... | Support missing kramdown coderay option | Support missing kramdown coderay option
| Ruby | mit | AtekiRyu/jekyll,princeofdarkness76/jekyll,LeuisKen/jekyllcn,fengsmith/jekyll,fengsmith/jekyll,doubleday/jekyll,Tiger66639/jekyll,yhironaka/yhironaka.github.io,jekyll/jekyll,alex-kovac/jekyll,liukaijv/jekyll,fabulousu/jekyll,thejameskyle/jekyll,mnuessler/jekyll,xiongjungit/jekyll,FlyingWHR/jekyll,teju111/jekyll,leichunx... | ruby | ## Code Before:
module Jekyll
module Converters
class Markdown
class KramdownParser
def initialize(config)
require 'kramdown'
@config = config
rescue LoadError
STDERR.puts 'You are missing a library required for Markdown. Please run:'
STDERR.puts ' $ ... |
a45942894ace282883da3afa10f6739d30943764 | dewbrick/majesticapi.py | dewbrick/majesticapi.py | import argparse
import json
import os
import requests
BASE_URL = "https://api.majestic.com/api/json"
BASE_PARAMS = {'app_api_key': os.environ.get('THEAPIKEY')}
def get(cmd, params):
querydict = {'cmd': cmd}
querydict.update(BASE_PARAMS)
querydict.update(params)
response = requests.get(BASE_URL, para... | import argparse
import json
import os
import requests
BASE_URL = "https://api.majestic.com/api/json"
BASE_PARAMS = {'app_api_key': os.environ.get('THEAPIKEY')}
def get(cmd, params):
querydict = {'cmd': cmd}
querydict.update(BASE_PARAMS)
querydict.update(params)
response = requests.get(BASE_URL, para... | Handle multiple sites in single request. | Handle multiple sites in single request.
| Python | apache-2.0 | ohmygourd/dewbrick,ohmygourd/dewbrick,ohmygourd/dewbrick | python | ## Code Before:
import argparse
import json
import os
import requests
BASE_URL = "https://api.majestic.com/api/json"
BASE_PARAMS = {'app_api_key': os.environ.get('THEAPIKEY')}
def get(cmd, params):
querydict = {'cmd': cmd}
querydict.update(BASE_PARAMS)
querydict.update(params)
response = requests.ge... |
65b6bddcb4793755a5c759cc28455374a57145ff | metadata/net.eneiluj.moneybuster.yml | metadata/net.eneiluj.moneybuster.yml | Categories:
- Money
License: GPL-3.0-or-later
AuthorName: Julien Veyssier
WebSite: https://gitlab.com/eneiluj/moneybuster/wikis/home
SourceCode: https://gitlab.com/eneiluj/moneybuster
IssueTracker: https://gitlab.com/eneiluj/moneybuster/issues
Changelog: https://gitlab.com/eneiluj/moneybuster/blob/HEAD/CHANGELOG.md
D... | Categories:
- Money
License: GPL-3.0-or-later
AuthorName: Julien Veyssier
WebSite: https://gitlab.com/eneiluj/moneybuster/wikis/home
SourceCode: https://gitlab.com/eneiluj/moneybuster
IssueTracker: https://gitlab.com/eneiluj/moneybuster/issues
Changelog: https://gitlab.com/eneiluj/moneybuster/blob/HEAD/CHANGELOG.md
D... | Update MoneyBuster to 0.0.5 (5) | Update MoneyBuster to 0.0.5 (5)
| YAML | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Money
License: GPL-3.0-or-later
AuthorName: Julien Veyssier
WebSite: https://gitlab.com/eneiluj/moneybuster/wikis/home
SourceCode: https://gitlab.com/eneiluj/moneybuster
IssueTracker: https://gitlab.com/eneiluj/moneybuster/issues
Changelog: https://gitlab.com/eneiluj/moneybuster/blob/HEA... |
b69084b93d1e5e7af40824417c77842babca011d | README.md | README.md |
[](https://travis-ci.org/soasme/retries)
A dead simple way to retry your method.
Through source code:
git clone git://github.com/soasme/retries.git
cd retries
python setup.py install
Usage:
from retry import retry
@retry(e... |
[](https://travis-ci.org/soasme/retries)
A dead simple way to retry your method.
Through pip:
pip install retries
Through source code:
git clone git://github.com/soasme/retries.git
cd retries
python setup.py install
Usage:
... | Add pip way in readme | Add pip way in readme
| Markdown | mit | soasme/retries | markdown | ## Code Before:
[](https://travis-ci.org/soasme/retries)
A dead simple way to retry your method.
Through source code:
git clone git://github.com/soasme/retries.git
cd retries
python setup.py install
Usage:
from retry import ret... |
221bb27796036b348c5cf0fd06a0d57984b3591c | tests/integ/test_basic.py | tests/integ/test_basic.py | """Basic scenarios, symmetric tests"""
import pytest
from bloop import (
BaseModel,
Column,
GlobalSecondaryIndex,
Integer,
MissingObjects,
)
from .models import User
def test_crud(engine):
engine.bind(User)
user = User(email="user@domain.com", username="user", profile="first")
engine... | """Basic scenarios, symmetric tests"""
import pytest
from bloop import (
BaseModel,
Column,
GlobalSecondaryIndex,
Integer,
MissingObjects,
)
from .models import User
def test_crud(engine):
engine.bind(User)
user = User(email="user@domain.com", username="user", profile="first")
engine... | Rename integration test model names for debugging in console | Rename integration test model names for debugging in console
| Python | mit | numberoverzero/bloop,numberoverzero/bloop | python | ## Code Before:
"""Basic scenarios, symmetric tests"""
import pytest
from bloop import (
BaseModel,
Column,
GlobalSecondaryIndex,
Integer,
MissingObjects,
)
from .models import User
def test_crud(engine):
engine.bind(User)
user = User(email="user@domain.com", username="user", profile="fi... |
ee2187a4cb52acbedf89c3381459b33297371f6e | core/api/views/endpoints.py | core/api/views/endpoints.py | from flask import Module, jsonify
from flask.views import MethodView
from core.api.decorators import jsonp
api = Module(
__name__,
url_prefix='/api'
)
def jsonify_status_code(*args, **kw):
response = jsonify(*args, **kw)
response.status_code = kw['code']
return response
@api.route('/')
def ind... | from flask import Module, jsonify, request
from flask.views import MethodView
from core.api.decorators import jsonp
api = Module(
__name__,
url_prefix='/api'
)
def jsonify_status_code(*args, **kw):
response = jsonify(*args, **kw)
response.status_code = kw['code']
return response
@api.route('/'... | Add new Flask MethodView called CreateUnikernel | Add new Flask MethodView called CreateUnikernel
| Python | apache-2.0 | adyasha/dune,onyb/dune,adyasha/dune,adyasha/dune | python | ## Code Before:
from flask import Module, jsonify
from flask.views import MethodView
from core.api.decorators import jsonp
api = Module(
__name__,
url_prefix='/api'
)
def jsonify_status_code(*args, **kw):
response = jsonify(*args, **kw)
response.status_code = kw['code']
return response
@api.ro... |
c96037b019d7347ea9c69b4eb1768550b18bc48c | .travis.yml | .travis.yml | language: node_js
node_js:
- "8"
install:
- npm install -g typescript
- npm install
before_script:
- node -v
- npm -v
- tsc -v
stages:
- test
- build
jobs:
include:
- stage: test
script: npm run lint && npm run prettier:check && npm run report
- stage: build
script: npm run bui... | language: node_js
node_js:
- "8"
cache:
directories:
- node_modules
install:
- npm install -g typescript
- npm install
before_script:
- node -v
- npm -v
- tsc -v
stages:
- stylecheck
- test
- build
jobs:
include:
- stage: stylecheck
script: npm run lint && npm run prettier:chec... | Move code style validation into its own stage. Cache the node_modules directory to speed up runs. | Move code style validation into its own stage. Cache the node_modules directory to speed up runs.
| YAML | mit | locnguyen/typescript-node-starter,locnguyen/typescript-node-starter | yaml | ## Code Before:
language: node_js
node_js:
- "8"
install:
- npm install -g typescript
- npm install
before_script:
- node -v
- npm -v
- tsc -v
stages:
- test
- build
jobs:
include:
- stage: test
script: npm run lint && npm run prettier:check && npm run report
- stage: build
scr... |
ba0c74993be4b4d699b69ad572124b2de80dcad4 | src/resources/views/show.blade.php | src/resources/views/show.blade.php | @extends('layouts.app')
@section('page-title')
{!! $t[$type.'_title'] or trans('eliurkis::crud.'.$type.'_title') !!}
@stop
@section('content')
<div id="form-manage" class="row">
@foreach ($fields as $name => $field)
<div class="{{ $formColsClasses[0] }} fieldtype_{{ $field['type'] }} field... | @extends('layouts.app')
@section('page-title')
{!! $t[$type.'_title'] or trans('eliurkis::crud.'.$type.'_title') !!}
@stop
@section('content')
<div id="form-manage" class="row form-horizontal">
@foreach ($fields as $name => $field)
<div class="{{ $formColsClasses[0] }} fieldtype_{{ $field[... | Add form-horizontal class for the view section | Add form-horizontal class for the view section
| PHP | mit | eliurkis/crud,eliurkis/crud | php | ## Code Before:
@extends('layouts.app')
@section('page-title')
{!! $t[$type.'_title'] or trans('eliurkis::crud.'.$type.'_title') !!}
@stop
@section('content')
<div id="form-manage" class="row">
@foreach ($fields as $name => $field)
<div class="{{ $formColsClasses[0] }} fieldtype_{{ $field[... |
1cdcb9d69d6279aa7619f9f9c33a6d5f75880bc3 | cypress/integration/simple_spec.js | cypress/integration/simple_spec.js | describe('Get a forecast for a city', function() {
it('Visits the weather chart site', function() {
cy.visit('http://localhost:8080')
})
}) | describe('Get a forecast for a city', () => {
it('Visits the weather chart site', () => {
cy.visit('http://localhost:8080')
})
it('Finds the search bar', () => {
cy.get('input').should('be.visible')
})
it('Displays a weather chart when user searches for a city', () => {
cy.... | Add integration tests for weather chart and search functionality | Add integration tests for weather chart and search functionality
| JavaScript | mit | CaseyKelly/react-redux-weather-charts,CaseyKelly/react-redux-weather-charts | javascript | ## Code Before:
describe('Get a forecast for a city', function() {
it('Visits the weather chart site', function() {
cy.visit('http://localhost:8080')
})
})
## Instruction:
Add integration tests for weather chart and search functionality
## Code After:
describe('Get a forecast for a city', () => {
i... |
91ed5ee69eeda6ed495657dd406d3dacf8e09811 | .github/workflows/release.yml | .github/workflows/release.yml | name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Get yarn cache ... | name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Get yarn cache ... | Revert "chore: make git config of user local" | Revert "chore: make git config of user local"
This reverts commit 8ae8412f9d1b503f573d1a635ff39d7685d6d761.
| YAML | mit | xing/hops,xing/hops,xing/hops | yaml | ## Code Before:
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name:... |
aa726e2e7368c874982a370093ac52ff79469964 | week-12.md | week-12.md | ---
topic: "Media queries & position"
desc: "Use media queries and position together to make responsive banners & layouts."
video_tutorials:
- title: "Screen sizes cheat sheet"
url: screen-sizes-cheat-sheet
highlight: true
- title: "Media queries layout"
url: media-queries-layout
group_activities:
-... | ---
topic: "Media queries & position"
desc: "Use media queries and position together to make responsive banners & layouts."
video_tutorials:
- title: "Screen sizes cheat sheet"
url: screen-sizes-cheat-sheet
highlight: true
- title: "Media queries layout"
url: media-queries-layout
group_activities:
-... | Move the plan a week earlier | Move the plan a week earlier
| Markdown | unlicense | acgd-webdev-1/syllabus,acgd-webdev-1/curriculum | markdown | ## Code Before:
---
topic: "Media queries & position"
desc: "Use media queries and position together to make responsive banners & layouts."
video_tutorials:
- title: "Screen sizes cheat sheet"
url: screen-sizes-cheat-sheet
highlight: true
- title: "Media queries layout"
url: media-queries-layout
group... |
1c76a7bad8b7ad73da4e9cb9b0c9e2bb621d6a26 | tools/run_tests/build_php.sh | tools/run_tests/build_php.sh |
set -ex
# change to grpc repo root
cd $(dirname $0)/../..
export GRPC_DIR=`pwd`
# make the libraries
make -j shared_c
# build php
cd src/php
cd ext/grpc
phpize
cd ../..
ext/grpc/configure
#cd ext/grpc
make
|
set -ex
# change to grpc repo root
cd $(dirname $0)/../..
export GRPC_DIR=`pwd`
# make the libraries
make -j shared_c
# build php
cd src/php
cd ext/grpc
phpize
./configure
#cd ext/grpc
make
| Build in the correct directory | Build in the correct directory
| Shell | bsd-3-clause | iMilind/grpc,meisterpeeps/grpc,soltanmm/grpc,zhimingxie/grpc,zhimingxie/grpc,perumaalgoog/grpc,msmania/grpc,jcanizales/grpc,ppietrasa/grpc,msmania/grpc,ncteisen/grpc,kskalski/grpc,tempbottle/grpc,Crevil/grpc,dklempner/grpc,JoeWoo/grpc,cgvarela/grpc,geffzhang/grpc,muxi/grpc,yinsu/grpc,pszemus/grpc,wangyikai/grpc,thunder... | shell | ## Code Before:
set -ex
# change to grpc repo root
cd $(dirname $0)/../..
export GRPC_DIR=`pwd`
# make the libraries
make -j shared_c
# build php
cd src/php
cd ext/grpc
phpize
cd ../..
ext/grpc/configure
#cd ext/grpc
make
## Instruction:
Build in the correct directory
## Code After:
set -ex
# change to grpc ... |
bb4229d9a6854c8fab0b87df534b87db14f79ee7 | source/manual/run-application.html.md | source/manual/run-application.html.md | ---
owner_slack: "#2ndline"
title: Run an application in the VM
section: Development VM
layout: manual_layout
parent: "/manual.html"
last_reviewed_on: 2017-09-27
review_in: 6 months
---
You can use [bowler](https://github.com/JordanHatch/bowler) to run an
application, it will also run all dependent services and applic... | ---
owner_slack: "#2ndline"
title: Run an application in the VM
section: Development VM
layout: manual_layout
parent: "/manual.html"
last_reviewed_on: 2017-09-27
review_in: 6 months
---
You can use [bowler](https://github.com/JordanHatch/bowler) to run an
application, it will also run all dependent services and applic... | Fix broken links to Pinfile and Procfile | Fix broken links to Pinfile and Procfile
| Markdown | mit | alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs,alphagov/govuk-developer-docs | markdown | ## Code Before:
---
owner_slack: "#2ndline"
title: Run an application in the VM
section: Development VM
layout: manual_layout
parent: "/manual.html"
last_reviewed_on: 2017-09-27
review_in: 6 months
---
You can use [bowler](https://github.com/JordanHatch/bowler) to run an
application, it will also run all dependent ser... |
ccf1146f38eb39261be51a6a1803a96cf96fee08 | Readme.md | Readme.md | A CouchDB Client for PHP 5.3 with event system.
Inspired by [Doctrine/MongoDB](https://github.com/Doctrine/mongodb)
[](http://travis-ci.org/Baachi/CouchDB)
## Credits ##
* Markus Bachmann <markus.bachmann@bachi.biz>
* [All contributors] (https://gith... | A CouchDB Client for >=PHP 5.3 with event system.
Inspired by [Doctrine/MongoDB](https://github.com/Doctrine/mongodb) and [Doctrine/CouchDB](https://github.com/Doctrine/couchdb-odm)
[](http://travis-ci.org/Baachi/CouchDB)
## Installation ##
__GitHub:_... | Add Install section to readme | Add Install section to readme
| Markdown | mit | Baachi/CouchDB | markdown | ## Code Before:
A CouchDB Client for PHP 5.3 with event system.
Inspired by [Doctrine/MongoDB](https://github.com/Doctrine/mongodb)
[](http://travis-ci.org/Baachi/CouchDB)
## Credits ##
* Markus Bachmann <markus.bachmann@bachi.biz>
* [All contributor... |
de8aabe0e855ae4f037ac4a72932edfbc04e4263 | package.js | package.js | Package.describe({
git: 'https://github.com/zimme/meteor-collection-softremovable.git',
name: 'zimme:collection-softremovable',
summary: 'Add soft remove to collections',
version: '1.0.5-rc.4'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'underscore',
'c... | Package.describe({
git: 'https://github.com/zimme/meteor-collection-softremovable.git',
name: 'zimme:collection-softremovable',
summary: 'Add soft remove to collections',
version: '1.0.5-rc.4'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'check',
'coffeescript',
'unders... | Change ordering of dependencies (OCD) | Change ordering of dependencies (OCD)
| JavaScript | mit | zimme/meteor-collection-softremovable | javascript | ## Code Before:
Package.describe({
git: 'https://github.com/zimme/meteor-collection-softremovable.git',
name: 'zimme:collection-softremovable',
summary: 'Add soft remove to collections',
version: '1.0.5-rc.4'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'und... |
d8fe6d020ff8513dd4465cbd33f5478d8ed448e2 | _config/legacy.yml | _config/legacy.yml | ---
Name: cmslegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
SiteTree: 'SilverStripe\CMS\Model\SiteTree'
| ---
Name: cmslegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
SiteTree: 'SilverStripe\CMS\Model\SiteTree'
RedirectorPage: SilverStripe\CMS\Model\RedirectorPage
VirtualPage: SilverStripe\CMS\Model\VirtualPage
| FIX Remap redirector and virtual page class names during build | FIX Remap redirector and virtual page class names during build
| YAML | bsd-3-clause | silverstripe/silverstripe-cms,jonom/silverstripe-cms,silverstripe/silverstripe-cms,jonom/silverstripe-cms | yaml | ## Code Before:
---
Name: cmslegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_remapping:
SiteTree: 'SilverStripe\CMS\Model\SiteTree'
## Instruction:
FIX Remap redirector and virtual page class names during build
## Code After:
---
Name: cmslegacy
---
SilverStripe\ORM\DatabaseAdmin:
classname_value_r... |
fe854afd83199b142bd0160168c4684db9465866 | models/post/columns.yaml | models/post/columns.yaml |
columns:
title:
label: Title
searchable: true
author:
label: Author
relation: user
select: @login
searchable: true
categories:
label: Categories
relation: categories
select: @name
searchable: true
created_at:
label: Created
type: date
updated_at:
label... |
columns:
title:
label: Title
searchable: true
# author:
# label: Author
# relation: user
# select: @login
# searchable: true
categories:
label: Categories
relation: categories
select: @name
searchable: true
created_at:
label: Created
type: date
updated_at:... | Comment out author column (not used) | Comment out author column (not used)
| YAML | mit | vojtasvoboda/blog-plugin,rainlab/blog-plugin,vojtasvoboda/blog-plugin,rainlab/blog-plugin,rainlab/blog-plugin,vojtasvoboda/blog-plugin | yaml | ## Code Before:
columns:
title:
label: Title
searchable: true
author:
label: Author
relation: user
select: @login
searchable: true
categories:
label: Categories
relation: categories
select: @name
searchable: true
created_at:
label: Created
type: date
updat... |
d1fd5786133269e3a5ca24a35a78ccc55807b97f | lib/toy_robot/model/robot.rb | lib/toy_robot/model/robot.rb |
class Robot
# The x position on the table
attr_accessor:x
# The y position on the table
attr_accessor:y
# The direction the robot is facing
attr_accessor:face
# Initialize the robot with x and y position and direction facing.
def initialize(x, y, face)
@x = x
@y = y
@face = face
end
en... |
class Robot
# The x position on the table
attr_accessor:x
# The y position on the table
attr_accessor:y
# The direction the robot is facing
attr_accessor:face
# Initialize the robot with x and y position and direction the robos is facing.
# = Parameters
# - +x+:: the x position on the table
# - +... | Check for invalid table x and y | Check for invalid table x and y
| Ruby | mit | leechinkong/ToyRobotProject | ruby | ## Code Before:
class Robot
# The x position on the table
attr_accessor:x
# The y position on the table
attr_accessor:y
# The direction the robot is facing
attr_accessor:face
# Initialize the robot with x and y position and direction facing.
def initialize(x, y, face)
@x = x
@y = y
@face ... |
d519550f137842e8ae17c27a59a67d45f46a1fa4 | templates/partials/dates.html | templates/partials/dates.html | <h3><a name="dates">Upcoming Dates</a></h3>
<ul class="media-list">
{% for workshop in workshops %}
{% if workshop.show %}
<li class="media">
<div class="pull-left date-container">
<div class="date">
<p>{{workshop.date.strftime('%d')}}<span>{{workshop.date.strftime('%b')}}</span></p>
</div... | <h3><a name="dates">Upcoming Dates</a></h3>
<ul class="media-list">
{% for workshop in workshops %}
{% if workshop.show %}
<li class="media">
<div class="pull-left date-container">
<div class="date">
<p>{{workshop.date.strftime('%d')}}<span>{{workshop.date.strftime('%b')}}</span></p>
</div... | Add link to the mailing list | Add link to the mailing list
| HTML | mit | yei/start-something-website,yei/start-something-website | html | ## Code Before:
<h3><a name="dates">Upcoming Dates</a></h3>
<ul class="media-list">
{% for workshop in workshops %}
{% if workshop.show %}
<li class="media">
<div class="pull-left date-container">
<div class="date">
<p>{{workshop.date.strftime('%d')}}<span>{{workshop.date.strftime('%b')}}</span>... |
3b5b26510f4fdada36f3c110113313d98affb287 | features/lazy_encoders.feature | features/lazy_encoders.feature | Feature: Lazy XML-RPC encoders
As a client of a shoddy xml-rpc encoder,
I want to be able to read their requests and responses correctly,
so that I can communicate with them.
Scenario: Implicit <string> types in <values>
Given the following method response:
"""
<methodResponse><params><param><value>987l... | Feature: Lazy XML-RPC encoders
As a client of a shoddy xml-rpc encoder,
I want to be able to read their requests and responses correctly,
so that I can communicate with them.
Scenario: Implicit <string> types in <values>
Given the following method response:
"""
<methodResponse><params><param><value>987lkj... | Fix missing closing tag on lazy-encoders.feature | Fix missing closing tag on lazy-encoders.feature
It didn't break anything, but definitely doesn't look good.
| Cucumber | mit | antifuchs/cxml-rpc,antifuchs/cxml-rpc | cucumber | ## Code Before:
Feature: Lazy XML-RPC encoders
As a client of a shoddy xml-rpc encoder,
I want to be able to read their requests and responses correctly,
so that I can communicate with them.
Scenario: Implicit <string> types in <values>
Given the following method response:
"""
<methodResponse><params><p... |
3e97051bcebc6e7e902ab664acbce121a3c8f619 | app/views/events/_event.html.haml | app/views/events/_event.html.haml | - if event.proper?
.event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
.event-item-timestamp
#{time_ago_with_tooltip(event.created_at)}
- if event.created_project?
= cache [event, current_user] do
= render "events/event/created_project", event: event
- else
= ... | - if event.proper?
.event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
.event-item-timestamp
#{time_ago_with_tooltip(event.created_at)}
- if event.created_project?
= cache [event, current_user] do
= image_tag avatar_icon(event.author_email, 24), class: "avatar s24", alt... | Fix missing avatar in event feed when created project | Fix missing avatar in event feed when created project
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
| Haml | mit | H3Chief/gitlabhq,flashbuckets/gitlabhq,iiet/iiet-git,Exeia/gitlabhq,bozaro/gitlabhq,initiummedia/gitlabhq,screenpages/gitlabhq,Devin001/gitlabhq,MauriceMohlek/gitlabhq,yatish27/gitlabhq,k4zzk/gitlabhq,sonalkr132/gitlabhq,vjustov/gitlabhq,MauriceMohlek/gitlabhq,kitech/gitlabhq,Devin001/gitlabhq,ferdinandrosario/gitlabhq... | haml | ## Code Before:
- if event.proper?
.event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
.event-item-timestamp
#{time_ago_with_tooltip(event.created_at)}
- if event.created_project?
= cache [event, current_user] do
= render "events/event/created_project", event: event
... |
5df65bc90a4c206fd5e35930ed5995077b94db91 | scuole/static_src/scss/main.scss | scuole/static_src/scss/main.scss | // Variables and mixins
@import 'variables';
@import 'mixins';
// Reset and overrides
@import 'reset';
@import 'overrides';
// Third-party libraries
@import 'node_modules/sass-mq/mq';
// Base CSS
@import 'grid';
@import 'type';
@import 'tables';
@import 'buttons';
@import 'cards';
@import 'fonts';
@import 'animation... | // Variables and mixins
@import 'variables';
@import 'mixins';
// Reset and overrides
@import 'reset';
@import 'overrides';
// Third-party libraries
@import 'node_modules/sass-mq/mq';
// Base CSS
@import 'grid';
@import 'type';
@import 'tables';
@import 'buttons';
@import 'cards';
@import 'fonts';
@import 'animation... | Remove unused stats import, add about | Remove unused stats import, add about
| SCSS | mit | texastribune/scuole,texastribune/scuole,texastribune/scuole,texastribune/scuole | scss | ## Code Before:
// Variables and mixins
@import 'variables';
@import 'mixins';
// Reset and overrides
@import 'reset';
@import 'overrides';
// Third-party libraries
@import 'node_modules/sass-mq/mq';
// Base CSS
@import 'grid';
@import 'type';
@import 'tables';
@import 'buttons';
@import 'cards';
@import 'fonts';
@i... |
0d543aafbd5f88b4f820218b18bdb8c7c9e61398 | app/assets/javascripts/spree/money.js | app/assets/javascripts/spree/money.js | Spree.Money = {}
Spree.Money.format = function(amount) {
// Round up to 2 decimal places.
amount = parseFloat(amount).toFixed(2)
if (Spree.Money.Settings.symbol_position == "before") {
return Spree.Money.Settings.symbol + amount;
} else {
return amount + ' ' + Spree.Money.Settings.symbol;
}
} | Spree.Money = {}
Spree.Money.Settings = {}
// Some default settings for money formatting in case API request fails
Spree.Money.Settings.symbol_position = "before"
Spree.Money.Settings.symbol = "$"
Spree.Money.format = function(amount) {
// Round up to 2 decimal places.
amount = parseFloat(amount).toFixed(2)
if (... | Set some defaults for Spree.Money in case API request fails for whatever reason | Set some defaults for Spree.Money in case API request fails for whatever reason
| JavaScript | bsd-3-clause | njaw/spree,njaw/spree,njaw/spree | javascript | ## Code Before:
Spree.Money = {}
Spree.Money.format = function(amount) {
// Round up to 2 decimal places.
amount = parseFloat(amount).toFixed(2)
if (Spree.Money.Settings.symbol_position == "before") {
return Spree.Money.Settings.symbol + amount;
} else {
return amount + ' ' + Spree.Money.Settings.symbo... |
029009e1886ad889e485733a76d56770981c526d | build.rs | build.rs | extern crate cmake;
fn add_squirrel_defines(cmake_cfg: &mut cmake::Config) {
cmake_cfg.define("INSTALL_LIB_DIR", ".");
if cfg!(feature = "use_double") {
cmake_cfg.define("SQUSEDOUBLE", "");
}
if cfg!(feature = "use_unicode") {
cmake_cfg.define("SQUNICODE", "");
}
}
fn expo... | extern crate cmake;
fn add_squirrel_defines(cmake_cfg: &mut cmake::Config) {
cmake_cfg.define("INSTALL_LIB_DIR", ".");
if cfg!(feature = "use_double") {
cmake_cfg.define("SQUSEDOUBLE", "");
}
if cfg!(feature = "use_unicode") {
cmake_cfg.define("SQUNICODE", "");
}
}
fn expo... | Fix stdc++ linkage on linux | Fix stdc++ linkage on linux
| Rust | mit | devcen13/squirrel | rust | ## Code Before:
extern crate cmake;
fn add_squirrel_defines(cmake_cfg: &mut cmake::Config) {
cmake_cfg.define("INSTALL_LIB_DIR", ".");
if cfg!(feature = "use_double") {
cmake_cfg.define("SQUSEDOUBLE", "");
}
if cfg!(feature = "use_unicode") {
cmake_cfg.define("SQUNICODE", "");
}
}
fn ... |
7ceb3eacc02ac21c066066f00cd67d2cf2b3cefc | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.4.0
- 2.3.3
- 2.2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
| language: ruby
rvm:
- 2.5
- 2.4
- 2.3
- 2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
| Build against the most recent versions of Ruby | Build against the most recent versions of Ruby
| YAML | mit | interagent/pliny,interagent/pliny,interagent/pliny | yaml | ## Code Before:
language: ruby
rvm:
- 2.4.0
- 2.3.3
- 2.2.2
env:
- SINATRA_MAJOR=1
- SINATRA_MAJOR=2
addons:
postgresql: '9.3'
before_install:
- gem update --system
before_script:
- createdb pliny-gem-test
sudo: false
cache: bundler
notifications:
email: false
script: bundle exec rake
## Instruction:... |
0aa1fef740e13e1b5d3f58cd0b6fee92f0e25f3a | spec/integration_spec.rb | spec/integration_spec.rb | require 'spec_helper'
require 'db_helper'
class Post < ShardHandler::Model
end
describe ShardHandler do
before(:all) do
DbHelper.setup_shards
DbHelper.connect_to_shard('shard1')
DbHelper.connection.execute <<-SQL
INSERT INTO posts (title) VALUES ('post from shard1')
SQL
DbHelper.connect_to... | require 'spec_helper'
require 'db_helper'
class Post < ShardHandler::Model
end
describe ShardHandler do
before(:all) do
DbHelper.setup_shards
DbHelper.connect_to_shard('shard1')
DbHelper.connection.execute <<-SQL
INSERT INTO posts (title) VALUES ('post from shard1')
SQL
DbHelper.connect_to... | Use described_class to fix a rubocop offense | Use described_class to fix a rubocop offense
| Ruby | mit | locaweb/shard_handler,locaweb/shard_handler | ruby | ## Code Before:
require 'spec_helper'
require 'db_helper'
class Post < ShardHandler::Model
end
describe ShardHandler do
before(:all) do
DbHelper.setup_shards
DbHelper.connect_to_shard('shard1')
DbHelper.connection.execute <<-SQL
INSERT INTO posts (title) VALUES ('post from shard1')
SQL
DbH... |
d9bb4d6f4d5c3ffde7973fe12f43f8733ac4ad5d | ci/tasks/test-unit.ps1 | ci/tasks/test-unit.ps1 | trap {
write-error $_
exit 1
}
$env:GOPATH = Join-Path -Path $PWD "gopath"
$env:PATH = $env:GOPATH + "/bin;C:/go/bin;" + $env:PATH
cd $env:GOPATH/src/github.com/cloudfoundry/bosh-agent
if ((Get-Command "go.exe" -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Installing Go 1.6.3!"
Invoke-WebRequest ht... | trap {
write-error $_
exit 1
}
$env:GOPATH = Join-Path -Path $PWD "gopath"
$env:PATH = $env:GOPATH + "/bin;C:/go/bin;" + $env:PATH
cd $env:GOPATH/src/github.com/cloudfoundry/bosh-agent
if ((Get-Command "go.exe" -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Installing Go 1.6.3!"
Invoke-WebRequest ht... | Handle errors for windows unit test | Handle errors for windows unit test
Signed-off-by: Sunjay Bhatia <df2d57be7987a471915f625a5499155bc16d4200@pivotal.io>
| PowerShell | apache-2.0 | cloudfoundry/bosh-agent,gu-bin/bosh-agent,mattcui/bosh-agent,gu-bin/bosh-agent,mattcui/bosh-agent,gu-bin/bosh-agent,mattcui/bosh-agent,cloudfoundry/bosh-agent | powershell | ## Code Before:
trap {
write-error $_
exit 1
}
$env:GOPATH = Join-Path -Path $PWD "gopath"
$env:PATH = $env:GOPATH + "/bin;C:/go/bin;" + $env:PATH
cd $env:GOPATH/src/github.com/cloudfoundry/bosh-agent
if ((Get-Command "go.exe" -ErrorAction SilentlyContinue) -eq $null)
{
Write-Host "Installing Go 1.6.3!"
Invo... |
cfe63f81f1edbe004b7dc4031fc96e34598aec89 | python_scripts/pip_installs.sh | python_scripts/pip_installs.sh |
sudo pip install pysolr
sudo pip install dateutils
|
sudo pip install pysolr[tomcat]==3.0.6
sudo pip install dateutils
sudo pip install --upgrade lxml
| Fix pysolr library version error. | Fix pysolr library version error.
| Shell | agpl-3.0 | AchyuthIIIT/mediacloud,berkmancenter/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,berkmancenter/mediacloud,AchyuthIIIT/mediacloud,berkmancenter... | shell | ## Code Before:
sudo pip install pysolr
sudo pip install dateutils
## Instruction:
Fix pysolr library version error.
## Code After:
sudo pip install pysolr[tomcat]==3.0.6
sudo pip install dateutils
sudo pip install --upgrade lxml
|
042a9a9ca4e0a4efacdc9d80306867de22bd2a28 | app/client/views/settings/users/groups/edit.html | app/client/views/settings/users/groups/edit.html | <template name="editUserGroups">
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
<i class="fa fa-user"></i>
<!--{{_ "editUserGroups-header" }}-->
Edit user group(... | <template name="editUserGroups">
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
<i class="fa fa-user"></i>
<!--{{_ "editUserGroups-header" }}-->
Edit user group(... | Add selected property to group options | Add selected property to group options
| HTML | agpl-3.0 | GeriLife/wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing | html | ## Code Before:
<template name="editUserGroups">
<div class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">
<i class="fa fa-user"></i>
<!--{{_ "editUserGroups-header" }}-->
... |
227cc2f041837e3b322f2136b3e0e317d7fbf0e3 | PostgreSQL_Jupyter/README.md | PostgreSQL_Jupyter/README.md |
|Notebook|Short description|
|[**PostgreSQL histograms**](PostgreSQL_histograms.ipynb)|Example notebook of how to generate frequency histograms using PostgreSQL|
|
|Notebook|Short description|
| -------------------------- | -------------------------|
|[**PostgreSQL histograms**](PostgreSQL_histograms.ipynb)|Example notebook of how to generate frequency histograms using PostgreSQL|
| Add example notebook on how to generate histograms with PostgreSQL | Add example notebook on how to generate histograms with PostgreSQL
| Markdown | apache-2.0 | LucaCanali/Miscellaneous | markdown | ## Code Before:
|Notebook|Short description|
|[**PostgreSQL histograms**](PostgreSQL_histograms.ipynb)|Example notebook of how to generate frequency histograms using PostgreSQL|
## Instruction:
Add example notebook on how to generate histograms with PostgreSQL
## Code After:
|Notebook|Short description|
| -------... |
be8b6e9b3cd81a22d85046c769e0d267b41004e3 | MoMMI/types.py | MoMMI/types.py | class SnowflakeID(int):
"""
Represents a Discord Snowflake ID.
"""
pass
| from typing import Union
class SnowflakeID(int):
"""
Represents a Discord Snowflake ID.
"""
pass
MIdentifier = Union[SnowflakeID, str]
| Add string and snowflake identifier union. | Add string and snowflake identifier union.
| Python | mit | PJB3005/MoMMI,PJB3005/MoMMI,PJB3005/MoMMI | python | ## Code Before:
class SnowflakeID(int):
"""
Represents a Discord Snowflake ID.
"""
pass
## Instruction:
Add string and snowflake identifier union.
## Code After:
from typing import Union
class SnowflakeID(int):
"""
Represents a Discord Snowflake ID.
"""
pass
MIdentifier = Union[Snow... |
fa194a8ca1c470d729f247e551373e5701226e03 | packages/web-client/app/utils/wallet-providers.ts | packages/web-client/app/utils/wallet-providers.ts | import metamaskLogo from '@cardstack/web-client/images/logos/metamask-logo.svg';
import walletConnectLogo from '@cardstack/web-client/images/logos/wallet-connect-logo.svg';
export interface WalletProvider {
id: string;
name: string;
logo: string;
}
const walletProviders: WalletProvider[] = [
{
id: 'metama... | import metamaskLogo from '@cardstack/web-client/images/logos/metamask-logo.svg';
import walletConnectLogo from '@cardstack/web-client/images/logos/wallet-connect-logo.svg';
export type WalletProviderId = 'metamask' | 'wallet-connect';
export interface WalletProvider {
id: WalletProviderId;
name: string;
logo: st... | Make WalletProvider id typing stricter | Make WalletProvider id typing stricter
| TypeScript | mit | cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack | typescript | ## Code Before:
import metamaskLogo from '@cardstack/web-client/images/logos/metamask-logo.svg';
import walletConnectLogo from '@cardstack/web-client/images/logos/wallet-connect-logo.svg';
export interface WalletProvider {
id: string;
name: string;
logo: string;
}
const walletProviders: WalletProvider[] = [
{... |
2290aa903ddc22b991e4c8d848380405e5a1d1a1 | app/src/main/java/net/squanchy/eventdetails/widget/EventDetailsCoordinatorLayout.java | app/src/main/java/net/squanchy/eventdetails/widget/EventDetailsCoordinatorLayout.java | package net.squanchy.eventdetails.widget;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.util.AttributeSet;
import net.squanchy.R;
import net.squanchy.schedule.domain.view.Event;
public class EventDetai... | package net.squanchy.eventdetails.widget;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.util.AttributeSet;
import net.squanchy.R;
import net.squanchy.schedule.domain.view.Event;
public class EventDetai... | Swap FAB icon based on favorite status | Swap FAB icon based on favorite status
| Java | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android | java | ## Code Before:
package net.squanchy.eventdetails.widget;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.util.AttributeSet;
import net.squanchy.R;
import net.squanchy.schedule.domain.view.Event;
public ... |
fe00a7e17416674dd92a04bf45cd4933a0dfb88d | tabexpansion/PsakeTabExpansion.ps1 | tabexpansion/PsakeTabExpansion.ps1 | $global:psakeSwitches = '-docs', '-task', '-properties', '-parameters'
function script:psakeSwitches($filter) {
$psakeSwitches | where { $_ -like "$filter*" }
}
function script:psakeDocs($filter) {
psake -docs | out-string -Stream |% { if ($_ -match "^[^ ]*") { $matches[0]} } |? { $_ -ne "Name" -and $_ -ne... | $global:psakeSwitches = @('-docs', '-task', '-properties', '-parameters')
function script:psakeSwitches($filter) {
$psakeSwitches | where { $_ -like "$filter*" }
}
function script:psakeDocs($filter, $file) {
if ($file -eq $null -or $file -eq '') { $file = 'default.ps1' }
psake $file -docs | out-string... | Update tab support to handle task calling without the -task switch | Update tab support to handle task calling without the -task switch
| PowerShell | mit | psake/psake | powershell | ## Code Before:
$global:psakeSwitches = '-docs', '-task', '-properties', '-parameters'
function script:psakeSwitches($filter) {
$psakeSwitches | where { $_ -like "$filter*" }
}
function script:psakeDocs($filter) {
psake -docs | out-string -Stream |% { if ($_ -match "^[^ ]*") { $matches[0]} } |? { $_ -ne "Name" -a... |
299b9a3d9b17693491549cb7aa22e8f41cbe8274 | ckanext/nhm/theme/templates/home/snippets/featured/base.html | ckanext/nhm/theme/templates/home/snippets/featured/base.html | {% set url=h.url_for(controller='package', action='read', id=id) %}
<div class="span4 box">
<a class="media-image" href="{{ url }}">
{% block image %}{% endblock %}
</a>
<div class="module-content">
<section class="featured media-overlay">
<h5><a href="{{ url }}">{{ title }}</a></h5>
... | {% set url = url | default(h.url_for(controller='package', action='read', id=id)) %}
<div class="span4 box">
<a class="media-image" href="{{ url }}">
{% block image %}{% endblock %}
</a>
<div class="module-content">
<section class="featured media-overlay">
<h5><a href="{{ url }}">{{ t... | Allow child pages to set the url | Allow child pages to set the url
| HTML | mit | NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm,NaturalHistoryMuseum/ckanext-nhm | html | ## Code Before:
{% set url=h.url_for(controller='package', action='read', id=id) %}
<div class="span4 box">
<a class="media-image" href="{{ url }}">
{% block image %}{% endblock %}
</a>
<div class="module-content">
<section class="featured media-overlay">
<h5><a href="{{ url }}">{{ ti... |
f9cb4b9f8c7da5391700fc038e07d5bc4331af28 | cmake/ThirdPartySMV.cmake | cmake/ThirdPartySMV.cmake | OPTION(THIRDPARTY_BUILD_SMV "Build LibSMV" OFF)
IF (THIRDPARTY_BUILD_SMV)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
libsmvf1.0
PREFIX ${TPSRC}
URL ${TPURL}/libsmvf1.0.tar.gz
URL_MD5 "40cad0538acebd4aa83136ef9319150e"
DOWNLOAD_DIR ${TPSRC}
CONFIGURE_COMMAND ${... | OPTION(THIRDPARTY_BUILD_SMV "Build LibSMV" OFF)
IF (THIRDPARTY_BUILD_SMV)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
libsmvf1.0
PREFIX ${TPSRC}
URL ${TPURL}/libsmvf1.0.tar.gz
URL_MD5 "40cad0538acebd4aa83136ef9319150e"
DOWNLOAD_DIR ${TPSRC}
CONFIGURE_COMMAND ${... | Fix LibSMV being searched when NEKTAR_USE_SMV is OFF | Fix LibSMV being searched when NEKTAR_USE_SMV is OFF
| CMake | mit | certik/nektar,certik/nektar,certik/nektar | cmake | ## Code Before:
OPTION(THIRDPARTY_BUILD_SMV "Build LibSMV" OFF)
IF (THIRDPARTY_BUILD_SMV)
INCLUDE(ExternalProject)
EXTERNALPROJECT_ADD(
libsmvf1.0
PREFIX ${TPSRC}
URL ${TPURL}/libsmvf1.0.tar.gz
URL_MD5 "40cad0538acebd4aa83136ef9319150e"
DOWNLOAD_DIR ${TPSRC}
CONF... |
f33d769d790b237483e1c33ceae5e74bb1f31acd | src/main/resources/data/integrateddynamics/recipes/mechanical_squeezer/convenience/minecraft_dye_white_bone.json | src/main/resources/data/integrateddynamics/recipes/mechanical_squeezer/convenience/minecraft_dye_white_bone.json | {
"type": "integrateddynamics:squeezer",
"item": {
"item": "minecraft:bone"
},
"result": {
"items": [
{
"item": {
"item": "minecraft:white_dye",
"count": 6
}
},
{
"item": {
"item": "minecraft:white_dye",
"count": 2
... | {
"type": "integrateddynamics:mechanical_squeezer",
"item": {
"item": "minecraft:bone"
},
"result": {
"items": [
{
"item": {
"item": "minecraft:white_dye",
"count": 6
}
},
{
"item": {
"item": "minecraft:white_dye",
"count"... | Fix missing bone to dye recipe in Mechanical Squeezer | Fix missing bone to dye recipe in Mechanical Squeezer
Closes #1060
| JSON | mit | CyclopsMC/IntegratedDynamics | json | ## Code Before:
{
"type": "integrateddynamics:squeezer",
"item": {
"item": "minecraft:bone"
},
"result": {
"items": [
{
"item": {
"item": "minecraft:white_dye",
"count": 6
}
},
{
"item": {
"item": "minecraft:white_dye",
"c... |
935f3ecd0add5dd06dd5c5e1693fbc8e6b6701b8 | web/lib/coffeescripts/layout.coffee | web/lib/coffeescripts/layout.coffee | class Layout
constructor: (@fn) ->
this.resize()
this.listen()
setTimeout (=> this.resize()), 250
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(n... | class Layout
constructor: (@fn) ->
this.resize()
this.listen()
setTimeout (=> this.resize()), 250
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
node = $(n... | Include margin in width and height calculations. | Include margin in width and height calculations.
| CoffeeScript | mit | negativecode/vines,AliEn707/vines,Zauberstuhl/vines,diaspora/vines,Zauberstuhl/diaspora-vines,artofhuman/vines,negativecode/vines,artofhuman/vines,artofhuman/vines,AliEn707/vines,Zauberstuhl/vines,AliEn707/vines,diaspora/vines,Zauberstuhl/diaspora-vines | coffeescript | ## Code Before:
class Layout
constructor: (@fn) ->
this.resize()
this.listen()
setTimeout (=> this.resize()), 250
resize: ->
this.fill '.x-fill', 'outerWidth', 'width'
this.fill '.y-fill', 'outerHeight', 'height'
this.fn()
fill: (selector, get, set) ->
$(selector).each (ix, node) =>
... |
d19debb5c16674d78f976d9fa0915b944731c878 | Cargo.toml | Cargo.toml | [package]
name = "bcnotif"
version = "0.9.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[features]
print-feed-data = []
[dependencies]
failure = "0.1"
chrono = "0.4"
csv = "1.0.0-beta.5"
select = "0.4"
reqwest = "0.8"
yaml-rust = "0.4"
[target.'cfg(any(unix, macos))'.dependencies]
notif... | [package]
name = "bcnotif"
version = "0.9.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[profile.release]
lto = true
[features]
print-feed-data = []
[dependencies]
failure = "0.1"
chrono = "0.4"
csv = "1.0.0-beta.5"
select = "0.4"
reqwest = "0.8"
yaml-rust = "0.4"
[target.'cfg(any(unix... | Enable LTO for release build for increased performance and smaller binary size | Enable LTO for release build for increased performance and smaller binary size
| TOML | agpl-3.0 | Acizza/bcnotif | toml | ## Code Before:
[package]
name = "bcnotif"
version = "0.9.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[features]
print-feed-data = []
[dependencies]
failure = "0.1"
chrono = "0.4"
csv = "1.0.0-beta.5"
select = "0.4"
reqwest = "0.8"
yaml-rust = "0.4"
[target.'cfg(any(unix, macos))'.dep... |
fa05d9d0ba10afd7964b061496b2a4d88d5b3e6f | lib/pdfjs-rails-engine/engine.rb | lib/pdfjs-rails-engine/engine.rb | module PdfjsRailsEngine
class Engine < ::Rails::Engine
isolate_namespace PdfjsRailsEngine
initializer 'pdfjs-rails-engine.assets.precompile', group: :all do |app|
app.config.assets.precompile += %w(
pdf.js-gh-pages/web/viewer.css
pdf.js-gh-pages/web/l10n.js
pdf.js-gh-pages/web/v... | module PdfjsRailsEngine
class Engine < ::Rails::Engine
isolate_namespace PdfjsRailsEngine
initializer 'pdfjs-rails-engine.assets.precompile', group: :all do |app|
app.config.assets.precompile += %w(
pdf.js-gh-pages/web/viewer.css
pdf.js-gh-pages/web/l10n.js
pdf.js-gh-pages/web/v... | Update path to static assets | Update path to static assets
| Ruby | mit | eduvo/pdfjs-rails-engine,eduvo/pdfjs-rails-engine,eduvo/pdfjs-rails-engine,eduvo/pdfjs-rails-engine | ruby | ## Code Before:
module PdfjsRailsEngine
class Engine < ::Rails::Engine
isolate_namespace PdfjsRailsEngine
initializer 'pdfjs-rails-engine.assets.precompile', group: :all do |app|
app.config.assets.precompile += %w(
pdf.js-gh-pages/web/viewer.css
pdf.js-gh-pages/web/l10n.js
pdf.j... |
967f22210dca8f79ce3894ae954393c256c04771 | components/locale-provider/it_IT.tsx | components/locale-provider/it_IT.tsx | import Pagination from 'rc-pagination/lib/locale/it_IT';
import DatePicker from '../date-picker/locale/it_IT';
import TimePicker from '../time-picker/locale/it_IT';
import Calendar from '../calendar/locale/it_IT';
export default {
locale: 'it',
Pagination,
DatePicker,
TimePicker,
Calendar,
Table: {
fil... | import Pagination from 'rc-pagination/lib/locale/it_IT';
import DatePicker from '../date-picker/locale/it_IT';
import TimePicker from '../time-picker/locale/it_IT';
import Calendar from '../calendar/locale/it_IT';
export default {
locale: 'it',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
pl... | Add Italian localization of Icon, Text and global components | Add Italian localization of Icon, Text and global components
| TypeScript | mit | ant-design/ant-design,icaife/ant-design,icaife/ant-design,elevensky/ant-design,elevensky/ant-design,zheeeng/ant-design,elevensky/ant-design,icaife/ant-design,icaife/ant-design,ant-design/ant-design,elevensky/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,zheeeng/ant-design,ant-design/ant-design | typescript | ## Code Before:
import Pagination from 'rc-pagination/lib/locale/it_IT';
import DatePicker from '../date-picker/locale/it_IT';
import TimePicker from '../time-picker/locale/it_IT';
import Calendar from '../calendar/locale/it_IT';
export default {
locale: 'it',
Pagination,
DatePicker,
TimePicker,
Calendar,
... |
0ef6ba0a73bf62b38f1d5f5ca1c77f7ce68edf6e | example/testimonial_layout.html | example/testimonial_layout.html | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example plugin Testimonial.js</title>
<link rel="stylesheet" href="css/style.css">
<script src="../js/testimonial.js"></script>
</head>
<body>
<div class="main-container">
<div class="testimonial_slider">
<div class="main_containe... | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example plugin Testimonial.js</title>
<link rel="stylesheet" href="../css/style.css">
<script src="../js/testimonial.js"></script>
</head>
<body>
<div class="main-container">
<div class="testimonial_slider">
<div class="main_conta... | Fix example testimonial layout file | Fix example testimonial layout file
| HTML | mit | AlekseyLeshko/testimonial.js,AlekseyLeshko/testimonial.js | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example plugin Testimonial.js</title>
<link rel="stylesheet" href="css/style.css">
<script src="../js/testimonial.js"></script>
</head>
<body>
<div class="main-container">
<div class="testimonial_slider">
<div clas... |
2c03171b75b6bb4f3a77d3b46ee8fd1e5b022077 | template_engine/jinja2_filters.py | template_engine/jinja2_filters.py | from email import utils
import re
import time
import urllib
def digits(s):
if not s:
return ''
return re.sub('[^0-9]', '', s)
def floatformat(num, num_decimals):
return "%.{}f".format(num_decimals) % num
def strftime(datetime, formatstr):
"""
Uses Python's strftime with some tweaks
... | from email import utils
import re
import time
import urllib
def digits(s):
if not s:
return ''
if type(s) is int:
return s
return re.sub('[^0-9]', '', s)
def floatformat(num, num_decimals):
return "%.{}f".format(num_decimals) % num
def strftime(datetime, formatstr):
"""
Use... | Fix type error if input is int | Fix type error if input is int
| Python | mit | bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,jaredhasenklein/the-blue-alliance,synth3tk/the-blue-alliance,verycumbersome/the-blue-alliance,synth3tk/the-blue-alliance,the-blue-alliance/the-blue-alliance,bdaroz/the-blue-alliance,jaredhasenklein/the-blue-alliance,tsteward/the-blue-alliance,phil-lopreiato/t... | python | ## Code Before:
from email import utils
import re
import time
import urllib
def digits(s):
if not s:
return ''
return re.sub('[^0-9]', '', s)
def floatformat(num, num_decimals):
return "%.{}f".format(num_decimals) % num
def strftime(datetime, formatstr):
"""
Uses Python's strftime with... |
0411c5d629fd83069401edd9243b6ab92a9f8cf8 | councilmatic_core/templates/partials/component_bill_type_table.html | councilmatic_core/templates/partials/component_bill_type_table.html | <table class="table">
<thead>
<tr>
<th>Legislation Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for leg_type in LEGISLATION_TYPE_DESCRIPTIONS %}
<tr>
<td class='nowrap'>
<i class="fa fa-fw fa-{{leg_type.fa_icon}}"></... | <table class="table">
<thead>
<tr>
<th>Legislation Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for leg_type in LEGISLATION_TYPE_DESCRIPTIONS %}
<tr>
<td class='nowrap'>
<i class="fa fa-fw fa-{{leg_type.fa_icon}}"></... | Change link to leg search on about page | Change link to leg search on about page
| HTML | mit | datamade/django-councilmatic,datamade/django-councilmatic,datamade/django-councilmatic,datamade/django-councilmatic | html | ## Code Before:
<table class="table">
<thead>
<tr>
<th>Legislation Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for leg_type in LEGISLATION_TYPE_DESCRIPTIONS %}
<tr>
<td class='nowrap'>
<i class="fa fa-fw fa-{{leg_ty... |
0ce4e4a4d016a671fafd162852530e7c768b9a6c | dir.c | dir.c |
static char *dircat(char *d1, char *d2)
{
char *new = malloc(strlen(d1) + strlen(d2) + 2);
sprintf(new, "%s/%s", d1, d2);
return new;
}
void dirwalk(char *name, void (*func)(char *, void *), void *ctx)
{
DIR *dir = opendir(name);
struct dirent *d;
func(name, ctx);
readdir(dir); readdir(d... |
static char *dircat(char *d1, char *d2)
{
char *new = malloc(strlen(d1) + strlen(d2) + 2);
sprintf(new, "%s/%s", d1, d2);
return new;
}
void dirwalk(char *name, void (*func)(char *, void *), void *ctx)
{
DIR *dir = opendir(name);
struct dirent *d;
func(name, ctx);
while ((d = readdir(dir... | Fix bug with . and .. | Fix bug with . and ..
| C | mit | akojo/quickfind | c | ## Code Before:
static char *dircat(char *d1, char *d2)
{
char *new = malloc(strlen(d1) + strlen(d2) + 2);
sprintf(new, "%s/%s", d1, d2);
return new;
}
void dirwalk(char *name, void (*func)(char *, void *), void *ctx)
{
DIR *dir = opendir(name);
struct dirent *d;
func(name, ctx);
readdir... |
abad6df8e2a691d8471de16113a1e8e2645f3e35 | semanticdb/scalac/library/src/main/scala-2.13.0-/scala/meta/internal/semanticdb/scalac/SemanticdbReporter.scala | semanticdb/scalac/library/src/main/scala-2.13.0-/scala/meta/internal/semanticdb/scalac/SemanticdbReporter.scala | package scala.meta.internal.semanticdb.scalac
import scala.reflect.internal.util.Position
import scala.tools.nsc.reporters.{Reporter, StoreReporter}
class SemanticdbReporter(underlying: Reporter) extends StoreReporter {
override protected def info0(
pos: Position,
msg: String,
severity: Severity,
... | package scala.meta.internal.semanticdb.scalac
import scala.reflect.internal.util.Position
import scala.tools.nsc.reporters.{Reporter, StoreReporter}
class SemanticdbReporter(underlying: Reporter) extends StoreReporter {
override protected def info0(
pos: Position,
msg: String,
severity: Severity,
... | Fix compile error reporting when using smenaticdb plugin | Fix compile error reporting when using smenaticdb plugin
| Scala | bsd-3-clause | scalameta/scalameta,scalameta/scalameta,scalameta/scalameta,scalameta/scalameta,scalameta/scalameta | scala | ## Code Before:
package scala.meta.internal.semanticdb.scalac
import scala.reflect.internal.util.Position
import scala.tools.nsc.reporters.{Reporter, StoreReporter}
class SemanticdbReporter(underlying: Reporter) extends StoreReporter {
override protected def info0(
pos: Position,
msg: String,
seve... |
4b7200af56061ed58a75b2e7457581a718242bbf | README.md | README.md | Elasticsearch Jenkins plugin
============================
Reports Jenkins build information to Elasticsearch on build completion.
Information reported includes:
* Name of the build.
* Start time of the build.
* Duration of the build.
* Result of the build: success, failed, aborted etc.
* System properties.
* Environm... | Elasticsearch Jenkins plugin
============================
Reports Jenkins build information to Elasticsearch on build completion.
Information reported includes:
* Name of the build.
* Start time of the build.
* Duration of the build.
* Result of the build: success, failed, aborted etc.
* System properties.
* Environm... | Clarify index mapping in readme | Clarify index mapping in readme
| Markdown | mit | speedledger/elasticsearch-jenkins | markdown | ## Code Before:
Elasticsearch Jenkins plugin
============================
Reports Jenkins build information to Elasticsearch on build completion.
Information reported includes:
* Name of the build.
* Start time of the build.
* Duration of the build.
* Result of the build: success, failed, aborted etc.
* System proper... |
e1a2dbc3987c56277acc0a351608011748fb7f5f | masters/master.chromium.git/slaves.cfg | masters/master.chromium.git/slaves.cfg |
slaves = [
{
'master': 'ChromiumGIT',
'builder': 'Linux Builder x64 (git)',
'hostname': 'vm74-m1',
},
{
'master': 'ChromiumGIT',
'builder': 'Linux Tests x64 (git)',
'hostname': 'vm75-m1',
},
{
'master': 'ChromiumGIT',
'builder': 'Mac Builder (git)',
'hostname': 'vm643-m1',... |
slaves = [
{
'master': 'ChromiumGIT',
'builder': 'Linux Builder x64 (git)',
'hostname': 'vm437-m1',
'os': 'linux',
'version': 'lucid',
'bits': '64',
},
{
'master': 'ChromiumGIT',
'builder': 'Linux Tests x64 (git)',
'hostname': 'vm420-m1',
'os': 'linux',
'version': 'luc... | Move some chromium.git bots to a new server since those vms need to be rebuilt. | Move some chromium.git bots to a new server since those vms need to be rebuilt.
Review URL: https://chromiumcodereview.appspot.com/10779036
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@147117 0039d316-1c4b-4281-b951-d872f2087c98
| INI | bsd-3-clause | eunchong/build,eunchong/build,eunchong/build,eunchong/build | ini | ## Code Before:
slaves = [
{
'master': 'ChromiumGIT',
'builder': 'Linux Builder x64 (git)',
'hostname': 'vm74-m1',
},
{
'master': 'ChromiumGIT',
'builder': 'Linux Tests x64 (git)',
'hostname': 'vm75-m1',
},
{
'master': 'ChromiumGIT',
'builder': 'Mac Builder (git)',
'hostna... |
9d5bff5ae4284fd7113c3c09f6c6bedc4d266d99 | src/store.js | src/store.js | import stableStringify from 'json-stable-stringify';
function defaultGetId(item) {
return item.id;
}
function defaultCollectionKey(options) {
if (!options) {
return '';
}
return stableStringify(options);
}
function defaultItemKey(id) {
return id;
}
export default function generateStore({
getId = de... | import stableStringify from 'json-stable-stringify';
function defaultGetId(item) {
return item.id;
}
function defaultCollectionKey(options = {}) {
return stableStringify(options);
}
function defaultItemKey(id) {
return id;
}
export default function generateStore({
getId = defaultGetId,
collectionKey = def... | Correct default handling of collection key | Correct default handling of collection key
| JavaScript | mit | taion/flux-resource-core | javascript | ## Code Before:
import stableStringify from 'json-stable-stringify';
function defaultGetId(item) {
return item.id;
}
function defaultCollectionKey(options) {
if (!options) {
return '';
}
return stableStringify(options);
}
function defaultItemKey(id) {
return id;
}
export default function generateStor... |
b87c361f399d735af3e9be9f9471bcd451521b16 | src/main/resources/view/Extensions.css | src/main/resources/view/Extensions.css |
.error {
-fx-background-color: red;
}
.tag-selector {
-fx-border-width: 1;
-fx-border-color: white;
-fx-border-radius: 3;
-fx-background-radius: 3;
}
.tooltip-text {
-fx-text-fill: white;
}
|
.error {
-fx-background-color: red;
}
.list-cell:empty {
/* Empty cells will not have alternating colours */
-fx-background: white;
}
.tag-selector {
-fx-border-width: 1;
-fx-border-color: white;
-fx-border-radius: 3;
-fx-background-radius: 3;
}
.tooltip-text {
-fx-text-fill: white;
... | Remove alternating coloring for blank PersonCard cells | Remove alternating coloring for blank PersonCard cells
Blank PersonCard are still created in the panel even though they have
no content. Normal formatting such as alternate row colors still apply
to these blank personcards. This can be easily observed by
increasing the window size and performing a search that only ret... | CSS | mit | VeryLazyBoy/addressbook-level4,damithc/addressbook-level4,CS2103R-Eugene-Peh/addressbook-level4,VeryLazyBoy/addressbook-level4,damithc/addressbook-level4,damithc/addressbook-level4,CS2103R-Eugene-Peh/addressbook-level4,VeryLazyBoy/addressbook-level4,CS2103R-Eugene-Peh/addressbook-level4,se-edu/addressbook-level3 | css | ## Code Before:
.error {
-fx-background-color: red;
}
.tag-selector {
-fx-border-width: 1;
-fx-border-color: white;
-fx-border-radius: 3;
-fx-background-radius: 3;
}
.tooltip-text {
-fx-text-fill: white;
}
## Instruction:
Remove alternating coloring for blank PersonCard cells
Blank PersonC... |
b1c043ce798873bba09fdec04c24306194ead5cd | README.md | README.md | [](https://nodei.co/npm/nodei/)
# nodei
[![Dependency Status][david-badge]][david]
`nodei` executes script files and exports global declarations into the REPL.
Supports REPL commands.
The goal is to foster experimentation and rapid prototyping of JavaScript snippets.
[david]:... | [](https://nodei.co/npm/nodei/)
# nodei
[![Dependency Status][david-badge]][david]
`nodei` executes script files and exports global declarations into the REPL.
Supports REPL commands.
The goal is to foster experimentation and rapid prototyping of JavaScript snippets.
[david]:... | Add note about built-in .load | Add note about built-in .load
| Markdown | mit | eush77/nodei | markdown | ## Code Before:
[](https://nodei.co/npm/nodei/)
# nodei
[![Dependency Status][david-badge]][david]
`nodei` executes script files and exports global declarations into the REPL.
Supports REPL commands.
The goal is to foster experimentation and rapid prototyping of JavaScript sni... |
11eeb3af7f412a061cbbc9d41fbcfa3e490a9ba3 | reference/accessibility/navigation/index.html | reference/accessibility/navigation/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Accessible Navigation</title>
<link rel="stylesheet" href="navigation.css" />
</head>
<body>
<p>Choose an animal from the below menu. You can use TAB to visit each menu item.</p>
<ul>
<li tabindex="0">Platypus</li>
... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Accessible Navigation</title>
<link rel="stylesheet" href="navigation.css" />
</head>
<body>
<p>Choose an animal from the below menu. You can use TAB to visit each menu item.</p>
<div class="nav-wrapper">
<ul class="nav">
... | Update HTML for navigation example. | Update HTML for navigation example. | HTML | mit | rhythmagency/rhythmagency.github.io,rhythmagency/rhythmagency.github.io | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Accessible Navigation</title>
<link rel="stylesheet" href="navigation.css" />
</head>
<body>
<p>Choose an animal from the below menu. You can use TAB to visit each menu item.</p>
<ul>
<li tabindex="0">Platy... |
fcf52a1d427d2e89031480f747374860f64c45ff | constant_listener/pyspeechTest.py | constant_listener/pyspeechTest.py | from pyspeech import best_speech_result
import unittest
from pyaudio import PyAudio
import Queue
class PyspeechTest(unittest.TestCase):
def setUp(self):
self.p = PyAudio()
def test_google_stt(self):
good_morning = open('example_wavs/good_morning.wav', 'rb')
output = best_speech_result(self.p, good_mor... | from pyspeech import best_speech_result
import unittest
from pyaudio import PyAudio
import Queue
class PyspeechTest(unittest.TestCase):
def setUp(self):
self.p = PyAudio()
def test_google_stt(self):
good_morning = open('example_wavs/good_morning.wav', 'rb')
output = best_speech_result(self.p, good_mor... | Add tests for Wit STT | Add tests for Wit STT
| Python | mit | MattWis/constant_listener | python | ## Code Before:
from pyspeech import best_speech_result
import unittest
from pyaudio import PyAudio
import Queue
class PyspeechTest(unittest.TestCase):
def setUp(self):
self.p = PyAudio()
def test_google_stt(self):
good_morning = open('example_wavs/good_morning.wav', 'rb')
output = best_speech_result(... |
b74dc57e87747007fd910505952c7c5bb2ca7136 | src/policy/templates/Policy.js | src/policy/templates/Policy.js | 'use strict'
const Policy = require('trails-policy')
/**
* @module <%= name %>Policy
* @description <%= answers.desc %>
*/
module.exports = class <%= name %>Policy extends Policy {
}
| 'use strict'
/**
* @module <%= name %>Policy
* @description <%= answers.desc %>
*/
module.exports = class <%= name %>Policy {
}
| Remove extends class for policies | Remove extends class for policies
| JavaScript | mit | tnunes/generator-trails,jaumard/generator-trails,konstantinzolotarev/generator-trails | javascript | ## Code Before:
'use strict'
const Policy = require('trails-policy')
/**
* @module <%= name %>Policy
* @description <%= answers.desc %>
*/
module.exports = class <%= name %>Policy extends Policy {
}
## Instruction:
Remove extends class for policies
## Code After:
'use strict'
/**
* @module <%= name %>Policy
... |
4c01fdc7e9fcc1dd111cd073a7357132302a9655 | app/clipss/var/clipboard.rb | app/clipss/var/clipboard.rb | module Clipss
module Var
# Clipboard
class Clipboard
extend Var
private_class_method :new
@os = Clipss::Os.get
if @os == :Linux
if system('which xclip >/dev/null 2>&1')
@check = true
elsif system('which xsel >/dev/null 2>&1')
@check = true
... | module Clipss
module Var
# Clipboard
class Clipboard
extend Var
private_class_method :new
@os = Clipss::Os.get
@check = case @os
when :Windows then true
when :Mac then true
when :Linux
if system('which xclip >/dev/null 2>&1')
true
e... | Fix Don't work clipbord sync on (Win|Mac) | Fix Don't work clipbord sync on (Win|Mac)
| Ruby | apache-2.0 | mukaer/clipss,mukaer/clipss | ruby | ## Code Before:
module Clipss
module Var
# Clipboard
class Clipboard
extend Var
private_class_method :new
@os = Clipss::Os.get
if @os == :Linux
if system('which xclip >/dev/null 2>&1')
@check = true
elsif system('which xsel >/dev/null 2>&1')
@... |
b943b12cd11b653631cef2650cc555968e96e27c | scripts/run-pr.sh | scripts/run-pr.sh |
set -e
if [ -z "$1" ]; then
echo "No pull request ID was specified."
exit 1
fi
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
git checkout FETCH_HEAD
git rebase master
npm install
NODE_ENV=production npm run build
npm test || true
shift
npm start -- "$@"
|
set -e
if [ -z "$1" ]; then
echo "No pull request ID was specified."
exit 1
fi
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
git checkout FETCH_HEAD
git rebase master
yarn install
NODE_ENV=production yarn build
yarn test || true
shift
yarn start "$@"
| Use Yarn in the PR-test script | Use Yarn in the PR-test script
| Shell | mit | MaxLeiter/lounge,MaxLeiter/lounge,FryDay/lounge,realies/lounge,ScoutLink/lounge,ScoutLink/lounge,FryDay/lounge,thelounge/lounge,ScoutLink/lounge,realies/lounge,williamboman/lounge,thelounge/lounge,williamboman/lounge,williamboman/lounge,MaxLeiter/lounge,FryDay/lounge,realies/lounge | shell | ## Code Before:
set -e
if [ -z "$1" ]; then
echo "No pull request ID was specified."
exit 1
fi
git fetch https://github.com/thelounge/thelounge.git refs/pull/${1}/head
git checkout FETCH_HEAD
git rebase master
npm install
NODE_ENV=production npm run build
npm test || true
shift
npm start -- "$@"
## Instruction:... |
fda3498e15c3387e9719bee85abd6cad8543bcff | src/scripts/app/cms/grammarActivities/directives/grammarActivityForm.html | src/scripts/app/cms/grammarActivities/directives/grammarActivityForm.html | <dynamic-form template="grammarActivityTemplate"
ng-model="grammarActivity"
ng-submit="processGrammarActivityForm()">
</dynamic-form>
<h3>Concept Question Set</h3>
<ul>
<li ng-repeat="qs in grammarActivity.concepts">
<dynamic-form template="grammarActivityQuestionSetTemplate"
ng-model="qs">
... | <dynamic-form template="grammarActivityTemplate"
ng-model="grammarActivity"
ng-submit="processGrammarActivityForm()">
</dynamic-form>
<h3>Concept Question Set</h3>
<ul>
<li ng-repeat="qs in grammarActivity.concepts">
<select
ng-options="c.name for c in concepts.concept_level_2 track by c.uid"
ng-m... | Make question set not use dynamic forms | Make question set not use dynamic forms
| HTML | agpl-3.0 | empirical-org/Quill-Grammar,ddmck/Quill-Grammar,ddmck/Quill-Grammar,empirical-org/Quill-Grammar,ddmck/Quill-Grammar,empirical-org/Quill-Grammar | html | ## Code Before:
<dynamic-form template="grammarActivityTemplate"
ng-model="grammarActivity"
ng-submit="processGrammarActivityForm()">
</dynamic-form>
<h3>Concept Question Set</h3>
<ul>
<li ng-repeat="qs in grammarActivity.concepts">
<dynamic-form template="grammarActivityQuestionSetTemplate"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.