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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fa8cfbc631dfab0067b8c15bf6374579af071e7a | tests/test_main.py | tests/test_main.py | import sys
import unittest
import tempfile
import pathlib
import os
import os.path
from unittest.mock import patch
import monitor
class TestMonitor(unittest.TestCase):
def test_MonitorConfigInterval(self):
with self.assertRaises(SystemExit):
testargs = ["monitor.py", "-f", "tests/mocks/ini/m... | import sys
import unittest
import tempfile
import pathlib
import os
import os.path
import time
from unittest.mock import patch
import monitor
class TestMonitor(unittest.TestCase):
def test_MonitorConfigInterval(self):
with self.assertRaises(SystemExit):
testargs = ["monitor.py", "-f", "tests... | Add sleep during tests to prevent race | Add sleep during tests to prevent race
| Python | bsd-3-clause | jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor | python | ## Code Before:
import sys
import unittest
import tempfile
import pathlib
import os
import os.path
from unittest.mock import patch
import monitor
class TestMonitor(unittest.TestCase):
def test_MonitorConfigInterval(self):
with self.assertRaises(SystemExit):
testargs = ["monitor.py", "-f", "t... |
2047601ed3e6901c51269eddd94780cfdd011ce8 | src/Doctrine/Functions/AbstractFunction.php | src/Doctrine/Functions/AbstractFunction.php | <?php
declare(strict_types=1);
namespace Brick\Geo\Doctrine\Functions;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
/**
* Base class for Doctrine functions.
*/
abstract class AbstractFunction extends FunctionNode
... | <?php
declare(strict_types=1);
namespace Brick\Geo\Doctrine\Functions;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
/**
* Base class for Doctrine functions.
*/
abstract class AbstractFunction extends FunctionNode
... | Add return types to Doctrine functions | Add return types to Doctrine functions
| PHP | mit | brick/geo | php | ## Code Before:
<?php
declare(strict_types=1);
namespace Brick\Geo\Doctrine\Functions;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
/**
* Base class for Doctrine functions.
*/
abstract class AbstractFunction exten... |
6e929d45c8ece44054e7731746b8bb8143d396ec | app/templates/dep_tree.html | app/templates/dep_tree.html | <div class="small-12 columns">
<div class="small-4 columns note">
{{ plugin.tokensWithoutHeadCount() }} of {{ state.totalTokens }} unused
</div>
<div class="small-6 columns"></div>
<div class="small-2 columns right end">
<span
class="button radius tiny right"
ng-show="plugin.diffPresent"
... | <div class="small-12 columns">
<div
class="small-4 columns note"
tooltip="Click to highlight unused tokens"
tooltip-popup-delay="1000">
{{ plugin.tokensWithoutHeadCount() }} of {{ state.totalTokens }} unused
</div>
<div class="small-6 columns"></div>
<div class="small-2 columns right end">
<... | Add a tooltip in depTree template | Add a tooltip in depTree template
| HTML | mit | Masoumeh/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,alpheios-project/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,fbaumgardt/arethusa,latin-language-toolkit/arethusa,Masoumeh/arethusa,alpheios-project/arethusa,PonteIneptique/arethusa,fbaumgardt/arethusa | html | ## Code Before:
<div class="small-12 columns">
<div class="small-4 columns note">
{{ plugin.tokensWithoutHeadCount() }} of {{ state.totalTokens }} unused
</div>
<div class="small-6 columns"></div>
<div class="small-2 columns right end">
<span
class="button radius tiny right"
ng-show="plugin.... |
2a78c3d61496d16584a00942073965ef79bcb8de | src/MageTest/Manager/Fixtures/Order.yml | src/MageTest/Manager/Fixtures/Order.yml | sales/quote (customer/address catalog/product):
shipping_method: flatrate_flatrate
payment_method: checkmo | sales/quote (catalog/product customer/address):
shipping_method: flatrate_flatrate
payment_method: checkmo | Add product to quote before addresses, fixes order/quote item price and and order/quote grand total | Add product to quote before addresses, fixes order/quote item price and and order/quote grand total
| YAML | mit | MageTest/Manager,MageTest/Manager,dwickstrom/Manager,dwickstrom/Manager | yaml | ## Code Before:
sales/quote (customer/address catalog/product):
shipping_method: flatrate_flatrate
payment_method: checkmo
## Instruction:
Add product to quote before addresses, fixes order/quote item price and and order/quote grand total
## Code After:
sales/quote (catalog/product customer/address):
shipping_me... |
af8220dd76f402f256b1bc59ae4a92483db52618 | src/_border-widths.css | src/_border-widths.css | /*
BORDER WIDTHS
Base:
bw = border-width
Modifiers:
0 = 0 width border
1 = 1st step in border-width scale
2 = 2nd step in border-width scale
3 = 3rd step in border-width scale
4 = 4th step in border-width scale
5 = 5th step in border-width scale
Media Query Extensions:... | /*
BORDER WIDTHS
Base:
bw = border-width
Modifiers:
0 = 0 width border
1 = 1st step in border-width scale
2 = 2nd step in border-width scale
3 = 3rd step in border-width scale
4 = 4th step in border-width scale
5 = 5th step in border-width scale
Media Query Extensions:... | Add ability to target breakpoints for border-width. | Add ability to target breakpoints for border-width.
| CSS | mit | getfrank/tachyons,topherauyeung/portfolio,topherauyeung/portfolio,fenderdigital/css-utilities,topherauyeung/portfolio,pietgeursen/pietgeursen.github.io,matyikriszta/moonlit-landing-page,fenderdigital/css-utilities,tachyons-css/tachyons,cwonrails/tachyons | css | ## Code Before:
/*
BORDER WIDTHS
Base:
bw = border-width
Modifiers:
0 = 0 width border
1 = 1st step in border-width scale
2 = 2nd step in border-width scale
3 = 3rd step in border-width scale
4 = 4th step in border-width scale
5 = 5th step in border-width scale
Media Q... |
da4b39a6fe7006686a864577e3d8e8c4cbf1f236 | .github/workflows/deploy.yml | .github/workflows/deploy.yml | name: Deploy built-framework for Carthage when tagged
on:
push:
tags:
- '*'
jobs:
deploy:
name: Deploy built-framework to GitHub releases
runs-on: macOS-latest
strategy:
matrix:
framework: [WebP]
steps:
- name: Checkout repo
uses: actions/checkout@v1
- nam... | name: Deploy prebuilt-framework for Carthage when tagged
on:
push:
tags:
- '*'
jobs:
deploy:
name: Deploy built-framework to GitHub releases
runs-on: macOS-latest
strategy:
matrix:
framework: [WebP]
steps:
- name: Checkout repo
uses: actions/checkout@v1
- ... | Fix name and remove unnecessary condition | Fix name and remove unnecessary condition
| YAML | mit | ainame/Swift-WebP,ainame/Swift-WebP,ainame/Swift-WebP | yaml | ## Code Before:
name: Deploy built-framework for Carthage when tagged
on:
push:
tags:
- '*'
jobs:
deploy:
name: Deploy built-framework to GitHub releases
runs-on: macOS-latest
strategy:
matrix:
framework: [WebP]
steps:
- name: Checkout repo
uses: actions/checkou... |
b6c1d9869fcf5865753defd912c450efb6e2467c | comprehend.gemspec | comprehend.gemspec | Gem::Specification.new do |s|
s.name = 'comprehend'
s.version = '0.0.0'
s.date = '2013-01-29'
s.summary = "Compact and flatten an array in one iteration"
s.description = '[1,2,3].comprehend{ |i| i.to_s if i<3 } == ["1","2"]'
s.authors = ["Aaron Weiner"]
s.email = 'aweiner@m... | Gem::Specification.new do |s|
s.name = 'comprehend'
s.version = '0.0.0'
s.date = '2013-01-29'
s.summary = "Transform and compact an array in one iteration"
s.description = '[1,2,3].comprehend{ |i| i.to_s if i<3 } == ["1","2... | Correct homepage, summary, development dependencies | Correct homepage, summary, development dependencies
| Ruby | mit | mdsol-share/comprehend,mdsol-share/comprehend | ruby | ## Code Before:
Gem::Specification.new do |s|
s.name = 'comprehend'
s.version = '0.0.0'
s.date = '2013-01-29'
s.summary = "Compact and flatten an array in one iteration"
s.description = '[1,2,3].comprehend{ |i| i.to_s if i<3 } == ["1","2"]'
s.authors = ["Aaron Weiner"]
s.email ... |
7ec8ab9fa4cea43c7da6646db06636ad024b5ce7 | docker-compose.yml | docker-compose.yml | version: '3.1'
services:
http:
build:
context: .docker/http
args:
- COMPOSE_PROJECT_NAME
depends_on:
- app
env_file: .env
networks:
public:
ports:
- "80:80"
volumes:
- .:/var/www/html
app:
build: .
depends_on:
- db
- redis
... | version: '3.1'
services:
http:
build:
context: .docker/http
args:
- COMPOSE_PROJECT_NAME
depends_on:
- app
env_file: .env
networks:
public:
ports:
- "80:80"
volumes:
- .:/var/www/html
app:
build: .
depends_on:
- db
- redis
... | Make MariaDB available to host OS from docker | Make MariaDB available to host OS from docker
| YAML | mit | dnunez24/craftcms-project-heroku,dnunez24/craftcms-project-heroku,dnunez24/craftcms-project-heroku | yaml | ## Code Before:
version: '3.1'
services:
http:
build:
context: .docker/http
args:
- COMPOSE_PROJECT_NAME
depends_on:
- app
env_file: .env
networks:
public:
ports:
- "80:80"
volumes:
- .:/var/www/html
app:
build: .
depends_on:
- db
... |
df92c184537199dd79b3a281198260b5a6c7b75d | README.md | README.md | ---
## **Setup**
***Warning:*** This bot is made mainly for my specific server(s). No attempt is, or will ever
be made to make installation or setup easier. This bot uses dev builds of discord.py and even Python itself.
***Prerequisites:***
- [Python 3.6](https://www.python.org/download/pre-releases/)
- Python 3.6 ... | ---
# THIS IS THE DEV VERSION
# IT WON'T WORK HALF THE TIME
# DON'T USE IT
# PLEASE
# STOP ASKING ME ABOUT IT
# NO
# GO AWAY
## **Setup**
***Warning:*** This bot is made mainly for my specific server(s). No attempt is, or will ever
be made to make installation or setup easier. This bot uses dev builds of discord.py an... | Make the dev version clear | Make the dev version clear
| Markdown | mit | Ispira/Ispyra | markdown | ## Code Before:
---
## **Setup**
***Warning:*** This bot is made mainly for my specific server(s). No attempt is, or will ever
be made to make installation or setup easier. This bot uses dev builds of discord.py and even Python itself.
***Prerequisites:***
- [Python 3.6](https://www.python.org/download/pre-releases/)... |
38f55c8473ad69bc6e52e89f5f5b803f77558632 | provider/src/main/java/com/github/terma/gigaspacewebconsole/provider/executor/DatabaseExecutor.java | provider/src/main/java/com/github/terma/gigaspacewebconsole/provider/executor/DatabaseExecutor.java | /*
Copyright 2015-2017 Artem Stasiuk
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | /*
Copyright 2015-2017 Artem Stasiuk
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | Add support converter configuration for database | Add support converter configuration for database
| Java | apache-2.0 | terma/gigaspace-web-console,terma/gigaspace-web-console,terma/gigaspace-web-console,terma/gigaspace-web-console | java | ## Code Before:
/*
Copyright 2015-2017 Artem Stasiuk
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
b31821e30638afbb9a6b2f2615bb70198acf6e78 | .travis.yml | .travis.yml | sudo: false
language: php
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
- php: 5.6
... | sudo: false
language: php
notifications:
email: false
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
- php: 5.6
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=trunk
be... | Disable email notifications and remove branch restrictions on building with Travis CI | Disable email notifications and remove branch restrictions on building with Travis CI
| YAML | mit | liquidweb/sticky-tax,liquidweb/sticky-tax,liquidweb/sticky-tax | yaml | ## Code Before:
sudo: false
language: php
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
cache:
directories:
- vendor
- $HOME/.composer/cache
matrix:
include:
- php: 7.1
env: WP_VERSION=latest
- php: 7.0
env: WP_VERSION=latest
... |
fe1ea6eaa85a3ea8f26ecebf72fec9209babfbc9 | app/controllers/api/base_controller.rb | app/controllers/api/base_controller.rb | module Api
class BaseController < ActionController::Base
Mumukit::Login.configure_controller! self
protect_from_forgery with: :null_session
include OnBaseOrganizationOnly
include WithApiErrors
include WithAuthorization
before_action :verify_api_client!
private
def verify_api_clien... | module Api
class BaseController < ActionController::Base
Mumukit::Login.configure_controller! self
protect_from_forgery with: :null_session
include WithApiErrors
include WithAuthorization
include Mumuki::Laboratory::Controllers::CurrentOrganization
before_action :set_current_organization!
... | Select organization on base controller as well | Select organization on base controller as well
| Ruby | agpl-3.0 | mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory | ruby | ## Code Before:
module Api
class BaseController < ActionController::Base
Mumukit::Login.configure_controller! self
protect_from_forgery with: :null_session
include OnBaseOrganizationOnly
include WithApiErrors
include WithAuthorization
before_action :verify_api_client!
private
def ... |
3c9602b1eae034dbc4fb617f22ebd776f944c05c | Rainy.UI/bower.json | Rainy.UI/bower.json | {
"name": "Rainy-UI",
"version": "0.0.1",
"devDependencies": {
"jquery": "~2.0.3",
"angular-strap": "~0.7.5",
"angular": "~1.0.7",
"bootstrap.zip": "http://getbootstrap.com/2.3.2/assets/bootstrap.zip",
"bootswatch-united": "http://netdna.bootstrapcdn.com/bootswatch/2.3.2/united/bootstrap.min.c... | {
"name": "Rainy-UI",
"version": "0.0.1",
"devDependencies": {
"jquery": "~2.0.3",
"angular-strap": "~0.7.5",
"angular": "~1.0.7",
"bootstrap.zip": "http://getbootstrap.com/2.3.2/assets/bootstrap.zip",
"bootswatch-united": "http://netdna.bootstrapcdn.com/bootswatch/2.3.2/united/bootstrap.min.c... | Fix version conflict in bowser.json | Fix version conflict in bowser.json
| JSON | agpl-3.0 | Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy,Dynalon/Rainy | json | ## Code Before:
{
"name": "Rainy-UI",
"version": "0.0.1",
"devDependencies": {
"jquery": "~2.0.3",
"angular-strap": "~0.7.5",
"angular": "~1.0.7",
"bootstrap.zip": "http://getbootstrap.com/2.3.2/assets/bootstrap.zip",
"bootswatch-united": "http://netdna.bootstrapcdn.com/bootswatch/2.3.2/united... |
3911e6df8dff68ebe8031cbcb6ba544deba68461 | spec/higher_level_api/integration/basic_cancel_spec.rb | spec/higher_level_api/integration/basic_cancel_spec.rb | require "spec_helper"
describe 'A consumer' do
let(:connection) { HotBunnies.connect }
after :each do
connection.close
end
it 'receives messages until cancelled' do
x = connection.create_channel.default_exchange
q = connection.create_channel.queue("", :auto_delete => true)
messages ... | require "spec_helper"
describe 'A consumer' do
let(:connection) { HotBunnies.connect }
after :each do
connection.close
end
context "that does not block the caller" do
it 'receives messages until cancelled' do
x = connection.create_channel.default_exchange
q = connection.create_channel.q... | Add a test that cancels a blocking consumer | Add a test that cancels a blocking consumer
| Ruby | mit | ruby-amqp/march_hare,ruby-amqp/march_hare,noahhaon/march_hare,noahhaon/march_hare | ruby | ## Code Before:
require "spec_helper"
describe 'A consumer' do
let(:connection) { HotBunnies.connect }
after :each do
connection.close
end
it 'receives messages until cancelled' do
x = connection.create_channel.default_exchange
q = connection.create_channel.queue("", :auto_delete => true)
... |
966bf159c612692d059602153177d68676f29398 | src/script/lex_script_tool.rs | src/script/lex_script_tool.rs | use serde_json::*;
use super::super::lex::*;
///
/// Creates a lexing tool for the scripting language
///
pub fn create_lex_script_tool() -> StringLexingTool {
// Parse the lexer
let script_json = from_str::<Vec<LexToolSymbol>>(include_str!("syntax_lexer.json")).unwrap();
// The name isn't used here, but... | use serde_json::*;
use super::super::lex::*;
///
/// Creates a lexing tool for the scripting language
///
pub fn create_lex_script_tool() -> StringLexingTool {
// Parse the lexer
let script_json = from_str::<Vec<LexToolSymbol>>(include_str!("syntax_lexer.json")).unwrap();
// The name isn't used here, but... | Add some tests to make sure we can parse the syntax JSON file | Add some tests to make sure we can parse the syntax JSON file
| Rust | apache-2.0 | Logicalshift/gossyp,Logicalshift/gossyp | rust | ## Code Before:
use serde_json::*;
use super::super::lex::*;
///
/// Creates a lexing tool for the scripting language
///
pub fn create_lex_script_tool() -> StringLexingTool {
// Parse the lexer
let script_json = from_str::<Vec<LexToolSymbol>>(include_str!("syntax_lexer.json")).unwrap();
// The name isn'... |
f4b6492ffd159416dc44a17966b7e340a4bc190d | helm/nats-operator/config/client-auth.json | helm/nats-operator/config/client-auth.json | {
"users": [
{{- if and (.Values.auth.username) (not .Values.auth.users) }}
{
"username": "{{ .Values.auth.username }}",
"password": "{{ .Values.auth.password }}"
}
{{- end }}
{{- if .Values.auth.users }}
{{ $length := len .Values.auth.users }}
{{- range $index, $user := .... | {
"users": [
{{- if and (.Values.cluster.auth.username) (not .Values.cluster.auth.users) }}
{
"username": "{{ .Values.cluster.auth.username }}",
"password": "{{ .Values.cluster.auth.password }}"
}
{{- end }}
{{- if .Values.cluster.auth.users }}
{{ $length := len .Values.cluster.au... | Fix incorrect cluster auth values in config.json | Fix incorrect cluster auth values in config.json
| JSON | apache-2.0 | pires/nats-operator,nats-io/nats-operator,nats-io/nats-operator | json | ## Code Before:
{
"users": [
{{- if and (.Values.auth.username) (not .Values.auth.users) }}
{
"username": "{{ .Values.auth.username }}",
"password": "{{ .Values.auth.password }}"
}
{{- end }}
{{- if .Values.auth.users }}
{{ $length := len .Values.auth.users }}
{{- range $i... |
7eae7bf22e3ddbfeae58710445e125caf1c56228 | src/main/MediaCheck.java | src/main/MediaCheck.java | public class MediaCheck {
}
| import java.awt.Image;
import java.net.URL;
public class MediaCheck {
public static void media(URL url) {
Image image = null;
}
}
| Create a method which contains URL as argument and create an Image variable | Create a method which contains URL as argument and create an Image variable
| Java | apache-2.0 | milouk/Web_Crawler | java | ## Code Before:
public class MediaCheck {
}
## Instruction:
Create a method which contains URL as argument and create an Image variable
## Code After:
import java.awt.Image;
import java.net.URL;
public class MediaCheck {
public static void media(URL url) {
Image image = null;
}
}
|
adcda7d5cbd7d89f67e9c396fb73d118d42c9fc5 | crates/libcruby-sys/Cargo.toml | crates/libcruby-sys/Cargo.toml | [package]
name = "libcruby-sys"
version = "0.5.0-alpha-1"
authors = ["Godhuda <engineering+godhuda@tilde.io>"]
build = "build.rs"
include = [
"**/*.rs",
"Cargo.toml",
"ruby_info.rb",
# Keep in sync with version
"helix-runtime-0-5-0-alpha-1.i386.lib",
"helix-runtime-0-5-0-alpha-1.x86_64.lib"
]
[... | [package]
name = "libcruby-sys"
version = "0.5.0-alpha-1"
authors = ["Godhuda <engineering+godhuda@tilde.io>"]
description = "Ruby bindings"
license = "MIT/Apache-2.0"
build = "build.rs"
include = [
"**/*.rs",
"Cargo.toml",
"ruby_info.rb",
# Keep in sync with version
"helix-runtime-0-5-0-alpha-1.i38... | Add description and license for libcruby-sys | Add description and license for libcruby-sys
| TOML | isc | tildeio/turboruby,tildeio/turboruby,tildeio/helix,tildeio/helix,tildeio/turboruby,tildeio/helix,tildeio/turboruby,tildeio/helix | toml | ## Code Before:
[package]
name = "libcruby-sys"
version = "0.5.0-alpha-1"
authors = ["Godhuda <engineering+godhuda@tilde.io>"]
build = "build.rs"
include = [
"**/*.rs",
"Cargo.toml",
"ruby_info.rb",
# Keep in sync with version
"helix-runtime-0-5-0-alpha-1.i386.lib",
"helix-runtime-0-5-0-alpha-1.... |
1b6ec4e760cfc7903dc222e7a3bc52001e398354 | examples/sprite/README.md | examples/sprite/README.md |

## Description
This example displays how to construct a basic audio player using howler.js as the engine powering it. The only outside framework being used is [SiriWave.js](https://github.com/CaffeinaLab/SiriWaveJS) t... |

## Description
This example visualizes how audio sprites work and demonstrates how they can be used within howler.js. Click on a sprite on the waveform to play it back and watch the progress (multiple clicks will over... | Fix description on audio sprite demo | Fix description on audio sprite demo
| Markdown | mit | goldfire/howler.js,goldfire/howler.js | markdown | ## Code Before:

## Description
This example displays how to construct a basic audio player using howler.js as the engine powering it. The only outside framework being used is [SiriWave.js](https://github.com/CaffeinaL... |
3478e524eea0f963a3e30122c07bb691e1a62269 | README.md | README.md | An experimental Node-based test262 harness. Once this harness has stabilized, I plan to push to include it by default in official test262.
## Quick Start
1. `git clone https://github.com/tc39/test262.git --depth 1`
2. `npm install -g test262-harness`
3. `test262-harness test262\test\**\*.js --hostType node --hostPath ... | An experimental Node-based test262 harness. Once this harness has stabilized, I plan to push to include it by default in official test262.
Requires Node 6 or above.
## Quick Start
1. `git clone https://github.com/tc39/test262.git --depth 1`
2. `npm install -g test262-harness`
3. `test262-harness test262\test\**\*.js ... | Add readme note about Node 6 requirement | Add readme note about Node 6 requirement | Markdown | bsd-3-clause | bterlson/test262-harness | markdown | ## Code Before:
An experimental Node-based test262 harness. Once this harness has stabilized, I plan to push to include it by default in official test262.
## Quick Start
1. `git clone https://github.com/tc39/test262.git --depth 1`
2. `npm install -g test262-harness`
3. `test262-harness test262\test\**\*.js --hostType ... |
c9a11a6f307a5a994806aa82be3a609496c30930 | packages/hm/hmatrix-nlopt.yaml | packages/hm/hmatrix-nlopt.yaml | homepage: https://github.com/peddie/hmatrix-nlopt
changelog-type: markdown
hash: 99f8435087901aa0565e220db29081c0c7f613a18cb21f14f5bd416ba81f3646
test-bench-deps:
base: ! '>=4 && <5'
doctest: ! '>=0.11'
maintainer: mpeddie@gmail.com
synopsis: Interface HMatrix with the NLOPT minimizer
changelog: ! '# Revision histo... | homepage: https://github.com/peddie/hmatrix-nlopt
changelog-type: markdown
hash: febca7b14eff2870ae1aa428497f1a050a6362ca40c7cd7d9217b05753d3893a
test-bench-deps:
base: ! '>=4 && <5'
doctest: ! '>=0.11'
maintainer: mpeddie@gmail.com
synopsis: Interface HMatrix with the NLOPT minimizer
changelog: ! '# Revision histo... | Update from Hackage at 2018-01-21T06:57:46Z | Update from Hackage at 2018-01-21T06:57:46Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/peddie/hmatrix-nlopt
changelog-type: markdown
hash: 99f8435087901aa0565e220db29081c0c7f613a18cb21f14f5bd416ba81f3646
test-bench-deps:
base: ! '>=4 && <5'
doctest: ! '>=0.11'
maintainer: mpeddie@gmail.com
synopsis: Interface HMatrix with the NLOPT minimizer
changelog: ! '... |
cf10724e09c0a5cb58b516ae5d36ea3bf29bbe38 | gulpfile.js | gulpfile.js | var gulp = require('gulp')
var exec = require('child_process').exec
gulp.task('make', function() {
exec('make', function(err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
});
})
gulp.task('watch', function () {
gulp.watch(['docs/*'], ['make'])
})
| var gulp = require('gulp')
exec = require('child_process').exec
livereload = require('gulp-livereload');
function update() {
exec('make', function(err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
livereload.changed();
});
}
gulp.task('watch', function () {
... | Add livereload to gulp setup | Add livereload to gulp setup
| JavaScript | mit | brentshields/authoring | javascript | ## Code Before:
var gulp = require('gulp')
var exec = require('child_process').exec
gulp.task('make', function() {
exec('make', function(err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
});
})
gulp.task('watch', function () {
gulp.watch(['docs/*'], ['make'])
})
## Instruc... |
0d401bd3c76b31326a20944776132fa87ffd28d8 | requirements.txt | requirements.txt | beautifulsoup4==4.4.1
CacheControl==0.11.6
click==6.6
emoji==0.3.9
google-api-python-client==1.5.1
httplib2==0.9.2
imdbpie==4.0.2
lockfile==0.12.2
oauth2client==2.2.0
pyasn1==0.1.9
pyasn1-modules==0.0.8
pylast==1.6.0
pyTelegramBotAPI==2.1.5
requests==2.10.0
rsa==3.4.2
simplejson==3.8.2
six==1.10.0
tinydb==3.2.1
uptime=... | beautifulsoup4==4.4.1
CacheControl==0.11.6
click==6.6
emoji==0.3.9
google-api-python-client==1.5.1
httplib2==0.9.2
imdbpie==4.0.2
lockfile==0.12.2
oauth2client==2.2.0
pyasn1==0.1.9
pyasn1-modules==0.0.8
pylast==1.6.0
pyTelegramBotAPI==2.1.5
requests==2.10.0
rsa==3.4.2
simplejson==3.8.2
six==1.10.0
tinydb==3.2.1
ujson==... | Use ujson to speed up tinydb | Use ujson to speed up tinydb
| Text | agpl-3.0 | TheReverend403/Pyper,TheReverend403/Pyper | text | ## Code Before:
beautifulsoup4==4.4.1
CacheControl==0.11.6
click==6.6
emoji==0.3.9
google-api-python-client==1.5.1
httplib2==0.9.2
imdbpie==4.0.2
lockfile==0.12.2
oauth2client==2.2.0
pyasn1==0.1.9
pyasn1-modules==0.0.8
pylast==1.6.0
pyTelegramBotAPI==2.1.5
requests==2.10.0
rsa==3.4.2
simplejson==3.8.2
six==1.10.0
tinyd... |
893f008addf91e72b5f27ac428a660d1fef5e09f | src/main/com/roly/nfc/crypto/view/nfc/KeyPickerDialogFragment.java | src/main/com/roly/nfc/crypto/view/nfc/KeyPickerDialogFragment.java | package com.roly.nfc.crypto.view.nfc;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import com.roly.nfc.crypto.R;
public class Key... | package com.roly.nfc.crypto.view.nfc;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import com.roly.nfc.crypto.R;
public class Key... | Remove title in Key Picker dialog | Remove title in Key Picker dialog
| Java | apache-2.0 | OlivierGonthier/CryptoNFC | java | ## Code Before:
package com.roly.nfc.crypto.view.nfc;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import com.roly.nfc.crypto.R;
... |
32ddd25507dc34971b958e926ba0bde704dc6bfa | conf_site/templates/cms/venue_page.html | conf_site/templates/cms/venue_page.html | {% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body %}
<div class="container sec1-inner-page">
{% if page.background_image %}
<div id="sli" class="text-center">
{% image page.background_image original %}
</div>
{% endif %}
<section>
<div class="container" id="sec1">
{... | {% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body %}
<div class="container sec1-inner-page">
{% if page.background_image %}
<div id="sli" class="text-center">
{% image page.background_image original %}
</div>
{% endif %}
<section>
<div class="container">
{% include_... | Fix ability to click on venue page Google map. | Fix ability to click on venue page Google map.
Ensure that users can interact with the embedded Google map by ensuring
that the hotel information section does not appear on top of it. This
was happening because the hotel information section used the "sec1" ID,
which has a higher z-index than default.
Fix this by remo... | HTML | mit | pydata/conf_site,pydata/conf_site,pydata/conf_site | html | ## Code Before:
{% extends "base.html" %}
{% load wagtailcore_tags wagtailimages_tags %}
{% block body %}
<div class="container sec1-inner-page">
{% if page.background_image %}
<div id="sli" class="text-center">
{% image page.background_image original %}
</div>
{% endif %}
<section>
<div class="container" id="... |
bc9ae363532f98ae971a5087b82f48927998516e | script.js | script.js | //On load, .contentBox should contain question #1
// When user enters Answer and hits submit, ask if
//answer matches stored Answer
// An array containing questions and answers
//
var questionBank = ["Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10"];
var answerBank = ["A1","A2","A3","A4","A5","A6","A7","A8","A9","A... | //On load, .contentBox should contain question #1
// When user enters Answer and hits submit, ask if
//answer matches stored Answer
// An array containing questions and answers
//
var questionAndAnswers ={
questionBank: ["Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10"],
answerBank: ["A1","A2","A3","A4","A5","A... | Transform Q and A variables to an Object | Transform Q and A variables to an Object
| JavaScript | mit | meagdoh/WDI-Project-1,meagdoh/WDI-Project-1 | javascript | ## Code Before:
//On load, .contentBox should contain question #1
// When user enters Answer and hits submit, ask if
//answer matches stored Answer
// An array containing questions and answers
//
var questionBank = ["Q1","Q2","Q3","Q4","Q5","Q6","Q7","Q8","Q9","Q10"];
var answerBank = ["A1","A2","A3","A4","A5","A6","... |
7d76b44c371d74cb8c7b272fd9bf8021db6c6702 | qa/rpc-tests/test_framework/cashlib/__init__.py | qa/rpc-tests/test_framework/cashlib/__init__.py |
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_FORKID, SIGHASH_ANYONECANPAY
|
from .cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_FORKID, SIGHASH_ANYONECANPAY
| Use relative import for cashlib | Use relative import for cashlib
| Python | mit | BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,Justaphf/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,BitcoinUnlimited/BitcoinUnlimited,Justaphf/Bit... | python | ## Code Before:
from test_framework.cashlib.cashlib import init, bin2hex, signTxInput, randombytes, pubkey, spendscript, addrbin, txid, SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_FORKID, SIGHASH_ANYONECANPAY
## Instruction:
Use relative import for cashlib
## Code After:
from .cashlib import init, bin2hex, s... |
f97c3b6a837ae76cd705c6cf5bdf23863891795c | cmake/CMakeLists.txt | cmake/CMakeLists.txt |
SET(OPENSIM_INSTALL_CMAKE_DIR cmake)
CONFIGURE_FILE(OpenSimConfig.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfig.cmake" @ONLY)
# Version file.
include(CMakePackageConfigHelpers)
WRITE_BASIC_CONFIG_VERSION_FILE(
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfigVersion.cmake"
VERSION "${OPENSIM_VERSION}"
... |
SET(OPENSIM_INSTALL_CMAKE_DIR cmake)
CONFIGURE_FILE(OpenSimConfig.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfig.cmake" @ONLY)
# Version file.
include(WriteBasicConfigVersionFile)
WRITE_BASIC_CONFIG_VERSION_FILE(
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfigVersion.cmake"
VERSION "${OPENSIM_VERSION}"
... | Use different macro for ConfigVersion. | [cmake] Use different macro for ConfigVersion. | Text | apache-2.0 | opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core | text | ## Code Before:
SET(OPENSIM_INSTALL_CMAKE_DIR cmake)
CONFIGURE_FILE(OpenSimConfig.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfig.cmake" @ONLY)
# Version file.
include(CMakePackageConfigHelpers)
WRITE_BASIC_CONFIG_VERSION_FILE(
"${CMAKE_CURRENT_BINARY_DIR}/OpenSimConfigVersion.cmake"
VERSION "${OPENS... |
3bc0f2befa50b9326b8e78dcca331adad38c21e0 | src/inventory_report/sqls/storage_create_related_lookup_tables.sql | src/inventory_report/sqls/storage_create_related_lookup_tables.sql | CREATE table storage_type_temp (
id NUMERIC, text varchar
);
INSERT INTO storage_type_temp VALUES
(0, 'UNKNOWN'),
(1, 'NFS'),
(2, 'FCP'),
(3, 'ISCSI'),
(4, 'LOCALFS'),
(6, 'POSIXFS'),
(7, 'GLUSTERFS'),
(8, 'GLANCE'),
(9, 'CINDER');
CREATE table storage_domain_type_temp (
id... | CREATE table storage_type_temp (
id NUMERIC, text varchar
);
----------------------------------------------------------------
-- All values defined in ovirt-engine project:
-- backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/storage/StorageType.java
-----------------------... | Add documentation about tables values | inventory_report: Add documentation about tables values
Code readability improvement.
Change-Id: Ia35ea91f812e9b9a2a564770c054abef2babc7bc
Signed-off-by: Douglas Schilling Landgraf <cb5f9630225b7afa1e13760d30868c8ce876fc60@redhat.com>
| SQL | apache-2.0 | oVirt/ovirt-log-collector,oVirt/ovirt-log-collector,oVirt/ovirt-log-collector | sql | ## Code Before:
CREATE table storage_type_temp (
id NUMERIC, text varchar
);
INSERT INTO storage_type_temp VALUES
(0, 'UNKNOWN'),
(1, 'NFS'),
(2, 'FCP'),
(3, 'ISCSI'),
(4, 'LOCALFS'),
(6, 'POSIXFS'),
(7, 'GLUSTERFS'),
(8, 'GLANCE'),
(9, 'CINDER');
CREATE table storage_domain_ty... |
fa2e73567610a1bf87bf21ea02e5fea2c914b096 | db/migrate/20161219105620_change_course_user_invitations.rb | db/migrate/20161219105620_change_course_user_invitations.rb | class ChangeCourseUserInvitations < ActiveRecord::Migration
def up
add_column :course_user_invitations, :course_id, :integer
add_column :course_user_invitations, :name, :string
add_column :course_user_invitations, :email, :string, index: { case_sensitive: false }
add_column :course_user_invitations, :... | class ChangeCourseUserInvitations < ActiveRecord::Migration
def up
add_column :course_user_invitations, :course_id, :integer
add_column :course_user_invitations, :name, :string
add_column :course_user_invitations, :email, :string, index: { case_sensitive: false }
add_column :course_user_invitations, :... | Fix invitation migration script * The migration failed due to association removed | Fix invitation migration script
* The migration failed due to association removed
| Ruby | mit | Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2 | ruby | ## Code Before:
class ChangeCourseUserInvitations < ActiveRecord::Migration
def up
add_column :course_user_invitations, :course_id, :integer
add_column :course_user_invitations, :name, :string
add_column :course_user_invitations, :email, :string, index: { case_sensitive: false }
add_column :course_use... |
dac46720723da91ca805b79ff79524121fc4f137 | pkgs/tools/misc/html-proofer/default.nix | pkgs/tools/misc/html-proofer/default.nix | { bundlerEnv, ruby, lib }:
bundlerEnv rec {
name = "${pname}-${version}";
pname = "html-proofer";
version = (import ./gemset.nix).html-proofer.version;
inherit ruby;
gemdir = ./.;
meta = with lib; {
description = "A tool to validate HTML files";
homepage = "https://github.com/gjtorikian/html-p... | { bundlerEnv, ruby, lib, bundlerUpdateScript }:
bundlerEnv rec {
name = "${pname}-${version}";
pname = "html-proofer";
version = (import ./gemset.nix).html-proofer.version;
inherit ruby;
gemdir = ./.;
passthru.updateScript = bundlerUpdateScript pname;
meta = with lib; {
description = "A tool to va... | Add bundlerUpdateScript and remove myself as maintainer | html-proofer: Add bundlerUpdateScript and remove myself as maintainer
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ bundlerEnv, ruby, lib }:
bundlerEnv rec {
name = "${pname}-${version}";
pname = "html-proofer";
version = (import ./gemset.nix).html-proofer.version;
inherit ruby;
gemdir = ./.;
meta = with lib; {
description = "A tool to validate HTML files";
homepage = "https://github.com/g... |
299e69f5fd40a3b57aed530f1f715870f461f874 | resources/assets/js/plugins/undo-redo.js | resources/assets/js/plugins/undo-redo.js | import { win, isIframe } from 'classes/helpers';
import { eventBus } from './eventbus';
import UndoStack from 'classes/UndoStack';
const trackedMutations = {
updateFieldValue: 'Update to block field',
addBlock: 'Added block to page',
reorderBlocks: 'Reordered blocks on page',
deleteBlock: 'Deleted block on page'
}... | import { win, isIframe } from 'classes/helpers';
import { eventBus } from './eventbus';
import UndoStack from 'classes/UndoStack';
const trackedMutations = {
updateFieldValue: 'Update to block field',
addBlock: 'Added block to page',
reorderBlocks: 'Reordered blocks on page',
deleteBlock: 'Deleted block on page'
}... | Make sure triggering undo/redo properly updates overlays. | Make sure triggering undo/redo properly updates overlays.
| JavaScript | mit | unikent/astro,unikent/astro,unikent/astro,unikent/astro,unikent/astro | javascript | ## Code Before:
import { win, isIframe } from 'classes/helpers';
import { eventBus } from './eventbus';
import UndoStack from 'classes/UndoStack';
const trackedMutations = {
updateFieldValue: 'Update to block field',
addBlock: 'Added block to page',
reorderBlocks: 'Reordered blocks on page',
deleteBlock: 'Deleted ... |
86d4df2407d151f1f1b076ffabe5efeb2641e763 | .travis.yml | .travis.yml | language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- pytest
after_success:
- coveralls
| language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- pytest -v tests/ --cov=abraia
after_success:
- coveralls
| Update pytest configuration to use the coveralls service | Update pytest configuration to use the coveralls service
| YAML | mit | abraia/abraia-python | yaml | ## Code Before:
language: python
python:
- "3.6"
install:
- pip install -r requirements.txt
- pip install coveralls
script:
- pytest
after_success:
- coveralls
## Instruction:
Update pytest configuration to use the coveralls service
## Code After:
language: python
python:
- "3.6"
install:
- pip install ... |
b1aeacc135c3b22ea7b15419ccbb8f28d6408340 | usr.bin/showmount/Makefile | usr.bin/showmount/Makefile |
PROG= showmount
.include <bsd.prog.mk>
|
PROG= showmount
MAN8= showmount.8
.include <bsd.prog.mk>
| Use the right man page. Submitted by: jkh | Use the right man page.
Submitted by: jkh
| unknown | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | unknown | ## Code Before:
PROG= showmount
.include <bsd.prog.mk>
## Instruction:
Use the right man page.
Submitted by: jkh
## Code After:
PROG= showmount
MAN8= showmount.8
.include <bsd.prog.mk>
|
132f6374b20bf31ecc032effc2822b4b3a8351dc | lint.yml | lint.yml | linters:
Indentation:
width: 4
NestingDepth:
max_depth: 4
SelectorDepth:
max_depth: 4
| linters:
Indentation:
width: 4
NestingDepth:
max_depth: 4
SelectorDepth:
max_depth: 4
| Use 2 spaces in .yml files | Use 2 spaces in .yml files
| YAML | mit | kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard | yaml | ## Code Before:
linters:
Indentation:
width: 4
NestingDepth:
max_depth: 4
SelectorDepth:
max_depth: 4
## Instruction:
Use 2 spaces in .yml files
## Code After:
linters:
Indentation:
width: 4
NestingDepth:
max_depth: 4
SelectorDepth:
max_depth: 4
|
dc78224ec7f05b00781595a4177aa55fb54b8270 | src/grid_displayers/simple_terminal.rs | src/grid_displayers/simple_terminal.rs | use std::sync::{ RwLock, RwLockReadGuard, Arc };
use std::sync::mpsc::{ Receiver };
use models::Grid;
use grid_displayers::GridDisplayer;
pub struct SimpleTerminal;
impl SimpleTerminal {
pub fn new() -> SimpleTerminal {
SimpleTerminal
}
}
impl GridDisplayer for SimpleTerminal {
fn draw(&self, re... | use std::sync::{ RwLock, RwLockReadGuard, Arc };
use std::sync::mpsc::{ Receiver };
use models::Grid;
use grid_displayers::GridDisplayer;
#[allow(dead_code)]
pub struct SimpleTerminal;
impl SimpleTerminal {
#[allow(dead_code)]
pub fn new() -> SimpleTerminal {
SimpleTerminal
}
}
impl GridDisplaye... | Add allow(dead_code) on the SimpleTerminal GridDisplayer | Add allow(dead_code) on the SimpleTerminal GridDisplayer
| Rust | mit | mateusmedeiros/rust_of_life | rust | ## Code Before:
use std::sync::{ RwLock, RwLockReadGuard, Arc };
use std::sync::mpsc::{ Receiver };
use models::Grid;
use grid_displayers::GridDisplayer;
pub struct SimpleTerminal;
impl SimpleTerminal {
pub fn new() -> SimpleTerminal {
SimpleTerminal
}
}
impl GridDisplayer for SimpleTerminal {
f... |
bd0053d9ef7b5cc3cdd3feec8c32e99fbb48fc11 | templates/index_competitionseason.html | templates/index_competitionseason.html | {% extends "base.html" %}
{% block title %}The Blue Alliance{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-xs-4">
{% include "index_lhc.html" %}
</div>
<div class="col-xs-8">
<h2>This Week's Events</h2>
{% with events as events %}
... | {% extends "base.html" %}
{% block title %}The Blue Alliance{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-xs-4">
{% include "index_lhc.html" %}
</div>
<div class="col-xs-8">
<h2>This Week's Events</h2>
{% with events as events %}
... | Fix buttons on landing page | Fix buttons on landing page
| HTML | mit | the-blue-alliance/the-blue-alliance,the-blue-alliance/the-blue-alliance,verycumbersome/the-blue-alliance,bdaroz/the-blue-alliance,nwalters512/the-blue-alliance,nwalters512/the-blue-alliance,synth3tk/the-blue-alliance,jaredhasenklein/the-blue-alliance,synth3tk/the-blue-alliance,fangeugene/the-blue-alliance,synth3tk/the-... | html | ## Code Before:
{% extends "base.html" %}
{% block title %}The Blue Alliance{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-xs-4">
{% include "index_lhc.html" %}
</div>
<div class="col-xs-8">
<h2>This Week's Events</h2>
{% with events as ev... |
4f34c863fc83414d56250a59a998f8d109b1cfff | spec/sisecommerce/produto_spec.rb | spec/sisecommerce/produto_spec.rb | RSpec.describe Sisecommerce::Produto do
describe '#get' do
context 'having 10 produtos available' do
it 'lists produtos available' do
produtos = Sisecommerce::Produto.get
expect(produtos.size).to eq 10
end
it 'returns produto with specific id' do
produtos = Sisecommerce:... | RSpec.describe Sisecommerce::Produto do
describe '#get' do
context 'having 10 produtos available' do
it 'lists produtos available' do
produtos = Sisecommerce::Produto.get
expect(produtos.size).to eq 10
end
it 'returns produto with specific id' do
produtos = Sisecommerce:... | Apply fix on put request spec | Apply fix on put request spec
| Ruby | mit | iurimadeira/ruby_sisecommerce | ruby | ## Code Before:
RSpec.describe Sisecommerce::Produto do
describe '#get' do
context 'having 10 produtos available' do
it 'lists produtos available' do
produtos = Sisecommerce::Produto.get
expect(produtos.size).to eq 10
end
it 'returns produto with specific id' do
produtos... |
cbb42b2ecd99f1152af0439c55d02848c11d02a2 | tasks/configure-tomcat.yml | tasks/configure-tomcat.yml |
- name: generate a custom 'setenv.sh' from template, provides the ability to configure Tomcat at start-up from outside the container
template:
src: setenv.sh.j2
dest: "{{ tomcat_catalina_base }}/bin/setenv.sh"
mode: ug+x
- name: "generate a custom '{{ tomcat_process_name }}.jmxremote.password' from temp... |
- name: generate a custom 'setenv.sh' from template, provides the ability to configure Tomcat at start-up from outside the container
template:
src: setenv.sh.j2
dest: "{{ tomcat_catalina_base }}/bin/setenv.sh"
mode: ug+x
- name: "generate a custom '{{ tomcat_process_name }}.jmxremote.password' from temp... | Add UTF-8 encoding to the server connector | Add UTF-8 encoding to the server connector
| YAML | mit | KAMI911/ansible-role-tomcat,KAMI911/ansible-role-tomcat | yaml | ## Code Before:
- name: generate a custom 'setenv.sh' from template, provides the ability to configure Tomcat at start-up from outside the container
template:
src: setenv.sh.j2
dest: "{{ tomcat_catalina_base }}/bin/setenv.sh"
mode: ug+x
- name: "generate a custom '{{ tomcat_process_name }}.jmxremote.pas... |
9fc58d12f376571aef37bfe3fbe1a534856bb120 | README.md | README.md | fairyland
=========
Java fake data generator
| fairyland
=========
Java fake data generator
[](https://travis-ci.org/Codearte/fairyland) | Build status from Travis CI | Build status from Travis CI
| Markdown | apache-2.0 | Codearte/jfairy,briacp/jfairy | markdown | ## Code Before:
fairyland
=========
Java fake data generator
## Instruction:
Build status from Travis CI
## Code After:
fairyland
=========
Java fake data generator
[](https://travis-ci.org/Codearte/fairyland) |
bd16f94f2bf25ca1f5a8d3de2c267afb283f5883 | test_requirements.txt | test_requirements.txt |
pytest
pytest-pep8
pytest-pylint
pytest-cov
pytest-django
pytest-capturelog
pytest-watch
pytest-xdist
mock
ipdb
ipython
urltools
semantic_version
|
pytest
pytest-pep8
# logilab-common is only necessary because pylint's dependency chain will
# result in the latest logilab-common being fetched, but astroid
# (another pylint dependency) depends on logilab-common<=0.63.0
logilab-common==0.63.0
pytest-pylint
pytest-cov
pytest-django
pytest-capturelog
pytest-watch
pyte... | Fix test failures due to pylint dependency chain | Fix test failures due to pylint dependency chain
logilab-common is only necessary because pylint's dependency chain
will result in the latest logilab-common being fetched, but astroid
(another pylint dependency) depends on logilab-common<=0.63.0
| Text | agpl-3.0 | mitodl/lore,amir-qayyum-khan/lore,amir-qayyum-khan/lore,mitodl/lore,mitodl/lore,amir-qayyum-khan/lore,amir-qayyum-khan/lore,amir-qayyum-khan/lore,mitodl/lore,mitodl/lore | text | ## Code Before:
pytest
pytest-pep8
pytest-pylint
pytest-cov
pytest-django
pytest-capturelog
pytest-watch
pytest-xdist
mock
ipdb
ipython
urltools
semantic_version
## Instruction:
Fix test failures due to pylint dependency chain
logilab-common is only necessary because pylint's dependency chain
will result in the late... |
a684a5148638214c516ea305b2ac654863358c6c | lib/github_cli/util.rb | lib/github_cli/util.rb | module GithubCLI
module Util
extend self
def flatten_hash(prefix=nil, hash)
new_hash ||= {}
hash.each do |key, val|
key = prefix ? :"#{prefix}_#{key}" : key
case val
when Hash
new_hash.update flatten_hash(key, val)
else
new_hash[key] = val
... |
module GithubCLI
module Util
extend self
def flatten_hash(prefix=nil, hash)
new_hash ||= {}
hash.each do |key, val|
key = prefix ? :"#{prefix}_#{key}" : key
case val
when Hash
new_hash.update flatten_hash(key, val)
else
new_hash[key] = val
... | Add string truncation and padding. | Add string truncation and padding.
| Ruby | mit | peter-murach/github_cli,piotrmurach/github_cli,peter-murach/github_cli,pjump/github_cli,pjump/github_cli,ecliptik/github_cli,ecliptik/github_cli | ruby | ## Code Before:
module GithubCLI
module Util
extend self
def flatten_hash(prefix=nil, hash)
new_hash ||= {}
hash.each do |key, val|
key = prefix ? :"#{prefix}_#{key}" : key
case val
when Hash
new_hash.update flatten_hash(key, val)
else
new_hash... |
bac9455e01244b1874b12fe3c793f589ff5b12d0 | app.rb | app.rb | require 'sinatra/base'
require 'tilt/haml'
require 'json'
require 'digest/sha2'
require 'open-uri'
require 'bcrypt'
require 'net/smtp'
require 'sendgrid-ruby'
require 'data_mapper'
require 'dm-serializer'
require 'dm-types'
require 'typhoeus'
require 'fog'
require 'mime-types'
require 'uuidtools'
require 'braintree'
#... | require 'sinatra/base'
require 'tilt/haml'
require 'json'
require 'digest/sha2'
require 'open-uri'
require 'bcrypt'
require 'net/smtp'
require 'sendgrid-ruby'
require 'data_mapper'
require 'dm-serializer'
require 'dm-types'
require 'typhoeus'
require 'fog'
require 'mime-types'
require 'uuidtools'
require 'braintree'
#... | Add global config for braintree | Add global config for braintree
| Ruby | mit | KWStudios/kw-api,KWStudios/kw-api,KWStudios/kw-api | ruby | ## Code Before:
require 'sinatra/base'
require 'tilt/haml'
require 'json'
require 'digest/sha2'
require 'open-uri'
require 'bcrypt'
require 'net/smtp'
require 'sendgrid-ruby'
require 'data_mapper'
require 'dm-serializer'
require 'dm-types'
require 'typhoeus'
require 'fog'
require 'mime-types'
require 'uuidtools'
requir... |
450a1f64a21afce008392e321fff2d268bb9fc41 | setup.py | setup.py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
ALGPATH = "clusterpy/core/toolboxes/cluster/componentsAlg/"
ALGPKG = "clusterpy.core.toolboxes.cluster.componentsAlg."
CLUSPATH = "clusterpy/core/toolboxes/cluster/"
CLUSPKG = "clusterpy.cor... | from distutils.core import setup
from distutils.extension import Extension
setup(
name='clusterPy',
version='0.9.9',
description='Library of spatially constrained clustering algorithms',
long_description="""
clusterPy is a Python library with algorithms for spatially constrained... | Remove cython Extension builder and build_ext from Setup | Remove cython Extension builder and build_ext from Setup
| Python | bsd-3-clause | clusterpy/clusterpy,clusterpy/clusterpy | python | ## Code Before:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
ALGPATH = "clusterpy/core/toolboxes/cluster/componentsAlg/"
ALGPKG = "clusterpy.core.toolboxes.cluster.componentsAlg."
CLUSPATH = "clusterpy/core/toolboxes/cluster/"
CLUSPKG ... |
e78910c8b9ecf48f96a693dae3c15afa32a12da1 | casexml/apps/phone/views.py | casexml/apps/phone/views.py | from django_digest.decorators import *
from casexml.apps.phone import xml
from casexml.apps.case.models import CommCareCase
from casexml.apps.phone.restore import generate_restore_response
from casexml.apps.phone.models import User
from casexml.apps.case import const
@httpdigest
def restore(request):
user = User... | from django.http import HttpResponse
from django_digest.decorators import *
from casexml.apps.phone import xml
from casexml.apps.case.models import CommCareCase
from casexml.apps.phone.restore import generate_restore_response
from casexml.apps.phone.models import User
from casexml.apps.case import const
@httpdigest
... | Revert "moving httpresponse to view" | Revert "moving httpresponse to view"
This reverts commit a6f501bb9de6382e35372996851916adac067fa0.
| Python | bsd-3-clause | SEL-Columbia/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,SEL-Columbia/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,di... | python | ## Code Before:
from django_digest.decorators import *
from casexml.apps.phone import xml
from casexml.apps.case.models import CommCareCase
from casexml.apps.phone.restore import generate_restore_response
from casexml.apps.phone.models import User
from casexml.apps.case import const
@httpdigest
def restore(request):... |
9feb800985250c12ed35c3934cde0ef00dc3867e | drivers/tty/serial/uart/uart_driver.c | drivers/tty/serial/uart/uart_driver.c |
static int uart_write(const char *s);
static struct char_driver_operations uart_ops = {
.write = uart_write,
};
static struct char_driver uart_driver = {
.name = "UART",
};
void uart_init(void)
{
struct char_driver *uart = get_uart_driver_instance();
uart->ops = &uart_ops;
}
struct char_driver *
get_uart_drive... |
static int uart_write(const char *s);
static struct char_driver_operations uart_ops = {
.write = uart_write,
};
static struct char_driver uart_driver = {
.name = "UART",
};
static void
uart_init(void)
{
uart_driver.ops = &uart_ops;
}
struct char_driver *
get_uart_driver_instance(void)
{
if (!uart_driver.ops)
... | Fix circular reference but in uart_init() | Fix circular reference but in uart_init()
Don't call get_uart_driver_instance() from uart_init().
| C | bsd-3-clause | masami256/mini-arm-kernel | c | ## Code Before:
static int uart_write(const char *s);
static struct char_driver_operations uart_ops = {
.write = uart_write,
};
static struct char_driver uart_driver = {
.name = "UART",
};
void uart_init(void)
{
struct char_driver *uart = get_uart_driver_instance();
uart->ops = &uart_ops;
}
struct char_driver ... |
00db43d778eeb9a73e93664b20c8eb86ad7cee13 | css/style.css | css/style.css | html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
.topper {
height: 5%;
}
.drawer {
background-color: #fff;
height: 95%;
overflow-y: scroll;
position: absolute;
transform: translate(-300px, 0);
transition: transform 0.3s ease;
width: 300px;
will-change: transform;
z-index: ... | /* Whole document */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
/* Mobile top area */
.topper {
background-color: #f53c24;
height: 48px;
text-align: right;
}
.hamburger {
color: #fff;
display: inline-block;
font-size: 1.8em;
height: 48px;
line-height: 48px;
text-align: center;
width... | Change color and alignment in top bar | feat: Change color and alignment in top bar
| CSS | mit | SittingFox/frontend-nanodegree-neighborhood-map,SittingFox/frontend-nanodegree-neighborhood-map | css | ## Code Before:
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
.topper {
height: 5%;
}
.drawer {
background-color: #fff;
height: 95%;
overflow-y: scroll;
position: absolute;
transform: translate(-300px, 0);
transition: transform 0.3s ease;
width: 300px;
will-change: transf... |
9a9a2b032f5f0180d3a2c229a7d0b632479b1838 | Casks/tg-pro.rb | Casks/tg-pro.rb | cask :v1 => 'tg-pro' do
version '2.8.7'
sha256 '32b622cec40f4cfe0cd5455dd110696b8284524aadd92c552a769c130bbc88e7'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
:sha256... | cask :v1 => 'tg-pro' do
version '2.8.8'
sha256 'dcb4221d4b72960c306e248a0be947107ab3622b0c38570684b2f12c8ef87a44'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
:sha256... | Update TG Pro to 2.8.8 | Update TG Pro to 2.8.8
| Ruby | bsd-2-clause | gilesdring/homebrew-cask,mrmachine/homebrew-cask,lukasbestle/homebrew-cask,sanchezm/homebrew-cask,gurghet/homebrew-cask,morganestes/homebrew-cask,toonetown/homebrew-cask,skatsuta/homebrew-cask,sjackman/homebrew-cask,cobyism/homebrew-cask,AnastasiaSulyagina/homebrew-cask,n8henrie/homebrew-cask,winkelsdorf/homebrew-cask,... | ruby | ## Code Before:
cask :v1 => 'tg-pro' do
version '2.8.7'
sha256 '32b622cec40f4cfe0cd5455dd110696b8284524aadd92c552a769c130bbc88e7'
url "http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')}.zip"
name 'TG Pro'
appcast 'http://tunabellysoftware.com/resources/sparkle/tgpro/profileInfo.php',
... |
29e6ce4468d7d33cbdfb39baff5e4d47c838ea4c | README.md | README.md | This repository contains the source code for three nuget packages:
### [RockLib.Configuration](RockLib.Configuration) [](https://ci.appveyor.com/project/RockLib/rocklib-configuration-9b1x8)
Defines a static `Config` class as a g... | This repository contains the source code for four nuget packages:
### [RockLib.Configuration](RockLib.Configuration) [](https://ci.appveyor.com/project/RockLib/rocklib-configuration-9b1x8)
Defines a static `Config` class as a ge... | Add messaging provider to main readme | Add messaging provider to main readme
| Markdown | mit | RockFramework/RockLib.Configuration | markdown | ## Code Before:
This repository contains the source code for three nuget packages:
### [RockLib.Configuration](RockLib.Configuration) [](https://ci.appveyor.com/project/RockLib/rocklib-configuration-9b1x8)
Defines a static `Conf... |
1dcc2cd804c1980d0d198d8cdae8e5496cabdfd4 | index.js | index.js | 'use strict';
var fs = require('fs'),
jshintPlugin = require('gulp-jshint'),
cache = require('gulp-cache');
var jshintVersion = '0.2.4';
var task = {
// Allow the original if needed.
original: jshintPlugin,
// Or, the cached version
cached: function (opt) {
var jshintOpts;
if... | 'use strict';
var fs = require('fs'),
jshintPlugin = require('gulp-jshint'),
cache = require('gulp-cache');
var jshintVersion = '0.2.4';
// Add on to the original plugin
jshintPlugin.cached = function (opt) {
var jshintOpts;
if (typeof opt === 'string') {
jshintOpts = fs.readFileSync(opt);
... | Make sure we match the original API for reporter use | Make sure we match the original API for reporter use
| JavaScript | mit | jgable/gulp-jshint-cached | javascript | ## Code Before:
'use strict';
var fs = require('fs'),
jshintPlugin = require('gulp-jshint'),
cache = require('gulp-cache');
var jshintVersion = '0.2.4';
var task = {
// Allow the original if needed.
original: jshintPlugin,
// Or, the cached version
cached: function (opt) {
var jshintO... |
ad687eb1b58290ab222ee5ff67bee97aa10af385 | _sass/_about.scss | _sass/_about.scss | .about {
.col-md-4 > div {
position: relative;
overflow: hidden;
padding-bottom: 100%;
img {
position:absolute;
width: 100%;
}
}
}
| .about {
.col-md-4 > div {
position: relative;
overflow: hidden;
padding-bottom: 100%;
img {
position:absolute;
min-width: 100%;
min-height: 100%;
}
}
}
| Make sure images are in a square dimension | Make sure images are in a square dimension
| SCSS | mit | josephmilla/makergirl,makergirl/makergirl.github.io,makergirl/makergirl.github.io,josephmilla/makergirl,josephmilla/makergirl,makergirl/makergirl.github.io | scss | ## Code Before:
.about {
.col-md-4 > div {
position: relative;
overflow: hidden;
padding-bottom: 100%;
img {
position:absolute;
width: 100%;
}
}
}
## Instruction:
Make sure images are in a square dimension
## Code After:
.about {
.col-md-4 > div {
position: relative;
ove... |
9d00b89171fba454eeb65dda16292fd510b3f1a0 | packages/node_modules/@ciscospark/widget-message/src/utils.js | packages/node_modules/@ciscospark/widget-message/src/utils.js | import {base64} from '@ciscospark/common';
export function constructActivityEventData(activity) {
const hydraActivity = Object.assign({}, activity);
// Base64 encode uuids
hydraActivity.id = base64.encode(`ciscospark://us/MESSAGE/${activity.id}`);
hydraActivity.roomId = base64.encode(`ciscospark://us/ROOM/${... | import {base64} from '@ciscospark/common';
export function constructActivityEventData(activity) {
const hydraActivity = Object.assign({}, activity);
// Base64 encode uuids
hydraActivity.id = base64.encode(`ciscospark://us/MESSAGE/${activity.id}`);
hydraActivity.roomId = base64.encode(`ciscospark://us/ROOM/${... | Fix overwriting issue with target id | fix(widget-message): Fix overwriting issue with target id
| JavaScript | mit | Altocloud/alto-react-ciscospark,adamweeks/react-ciscospark-1,Altocloud/alto-react-ciscospark,adamweeks/react-ciscospark-1,bzang/react-ciscospark,adamweeks/react-ciscospark-1,ciscospark/react-ciscospark,bzang/react-ciscospark,ciscospark/react-ciscospark,Altocloud/alto-react-ciscospark,bzang/react-ciscospark,ciscospark/r... | javascript | ## Code Before:
import {base64} from '@ciscospark/common';
export function constructActivityEventData(activity) {
const hydraActivity = Object.assign({}, activity);
// Base64 encode uuids
hydraActivity.id = base64.encode(`ciscospark://us/MESSAGE/${activity.id}`);
hydraActivity.roomId = base64.encode(`ciscosp... |
fb7853d14890afba8cba4e4ee7d1dad1acecec29 | .travis.yml | .travis.yml | dist: xenial
language: clojure
sudo: required
lein: lein
jdk:
- openjdk8
services:
- docker
branches:
only:
- master
- wip
- develop
install:
- ./manage.sh help
- nvm install $NODE_VERSION
- node --version
before_script:
- env | sort
script:
- ./manage.sh $COMMAND
after_script:
- doc... | dist: xenial
language: clojure
sudo: required
lein: lein
jdk:
- openjdk8
services:
- docker
branches:
only:
- master
- wip
- develop
- build-refactor
install:
- ./manage.sh help
- nvm install $NODE_VERSION
- node --version
before_script:
- env | sort
script:
- ./manage.sh $COMMAND
... | Update CI node and tasks | :construction_worker: Update CI node and tasks
| YAML | mpl-2.0 | uxbox/uxbox,uxbox/uxbox,uxbox/uxbox | yaml | ## Code Before:
dist: xenial
language: clojure
sudo: required
lein: lein
jdk:
- openjdk8
services:
- docker
branches:
only:
- master
- wip
- develop
install:
- ./manage.sh help
- nvm install $NODE_VERSION
- node --version
before_script:
- env | sort
script:
- ./manage.sh $COMMAND
after... |
e0f5f51f921e9ad819605168993736ca9ea4c78a | app/views/shopping_shared/_groups.html.haml | app/views/shopping_shared/_groups.html.haml | .content
.row
.small-12.columns
%h5
=current_distributor.name
belongs to:
%ul.bullet-list
- for group in current_distributor.groups
%li
%a{href: main_app.groups_path(anchor: "#/#group#{group.id}")}= group.name
| .content
.row
.small-12.columns.panel
%h5
=current_distributor.name
is part of:
%ul.bullet-list
- for group in current_distributor.groups
%li
%a{href: main_app.groups_path(anchor: "#/#group#{group.id}")}= group.name
| Tweak markup for GROUPS tab on mini menu | Tweak markup for GROUPS tab on mini menu
| Haml | agpl-3.0 | folklabs/openfoodnetwork,Matt-Yorkley/openfoodnetwork,stveep/openfoodnetwork,KosenkoDmitriy/openfoodnetwork,mkllnk/openfoodnetwork,KateDavis/openfoodnetwork,stveep/openfoodnetwork,openfoodfoundation/openfoodnetwork,KateDavis/openfoodnetwork,ecocitycore/openfoodnetwork,MikeiLL/openfoodnetwork,KateDavis/openfoodnetwork,o... | haml | ## Code Before:
.content
.row
.small-12.columns
%h5
=current_distributor.name
belongs to:
%ul.bullet-list
- for group in current_distributor.groups
%li
%a{href: main_app.groups_path(anchor: "#/#group#{group.id}")}= group.name
## Instruction:
Tweak mark... |
de432cf4817dc4a0599e6992e17844006305a66e | .gitlab-ci.yml | .gitlab-ci.yml | image: jacob9230/linter
before_script:
- npm install --no-package-lock --no-save --quiet stylelint-config-standard stylelint-order stylelint-scss
- node -v
- npm -v
- php -v
code_quality:
script:
- stylelint "./src/assets/styles/**/*.scss"
- eslint "./src/assets/scripts/**/*.js"
- phplint "./src... | image: jacob9230/linter
before_script:
- npm install --global --quiet eslint stylelint
- npm install --no-package-lock --no-save --quiet stylelint stylelint-config-standard stylelint-order stylelint-scss
- node -v
- npm -v
- php -v
code_quality:
script:
- stylelint "./src/assets/styles/**/*.scss"
... | Install stylelint locally for CI | Install stylelint locally for CI
| YAML | mit | JacobDB/new-site,revxx14/new-site,JacobDB/new-site,revxx14/new-site,JacobDB/new-site | yaml | ## Code Before:
image: jacob9230/linter
before_script:
- npm install --no-package-lock --no-save --quiet stylelint-config-standard stylelint-order stylelint-scss
- node -v
- npm -v
- php -v
code_quality:
script:
- stylelint "./src/assets/styles/**/*.scss"
- eslint "./src/assets/scripts/**/*.js"
... |
c8c0af1357c3fd4377092f19f4dc4a3ea08d09b6 | README.md | README.md | Batch Request
=============
A simple library for batching HTTP requests
[View Documentation](http://batch-request.socialradar.com)
[](https://travis-ci.org/socialradar/batch-request)
## QuickStart
Download via [NPM](http://npmjs.org)... | Batch Request
=============
A simple library for batching HTTP requests
[View Documentation](http://batch-request.socialradar.com)
[](https://travis-ci.org/socialradar/batch-request) [
[](https://travis-ci.org/socialradar/batch-request)
## QuickStart
Download via [NPM](h... |
253564d368e32bec0507d8959be82f1b15a27e42 | test/thumbs_test.js | test/thumbs_test.js | window.addEventListener('load', function(){
module('touchstart');
test('should use touchstart when touchstart is supported', function() {
assert({ listener:'touchstart', receives:'touchstart' });
});
test('should use mousedown when touchstart is unsupported', function() {
assert({ listener:'touchstar... | window.addEventListener('load', function(){
module('mousedown');
test('should use mousedown', function() {
assert({ listener:'mousedown', receives:'mousedown' });
});
module('mouseup');
test('should use mouseup', function() {
assert({ listener:'mouseup', receives:'mouseup' });
});
module('mou... | Add tests against destroying mouse events. | Add tests against destroying mouse events.
| JavaScript | mit | mwbrooks/thumbs.js,pyrinelaw/thumbs.js,pyrinelaw/thumbs.js | javascript | ## Code Before:
window.addEventListener('load', function(){
module('touchstart');
test('should use touchstart when touchstart is supported', function() {
assert({ listener:'touchstart', receives:'touchstart' });
});
test('should use mousedown when touchstart is unsupported', function() {
assert({ lis... |
b669d79d670f9f621be834335e1b8a91dfcaba1e | cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst | cdap-docs/developers-manual/source/getting-started/start-stop-cdap.rst | .. :author: Cask Data, Inc.
:copyright: Copyright © 2014-2015 Cask Data, Inc.
============================================
Starting and Stopping Standalone CDAP
============================================
.. this file is included in others; any titles need to be +
.. _start-stop-cdap:
.. highlight:: console
Us... | .. :author: Cask Data, Inc.
:copyright: Copyright © 2014-2015 Cask Data, Inc.
============================================
Starting and Stopping Standalone CDAP
============================================
.. this file is included in others; any titles need to be +
.. _start-stop-cdap:
.. highlight:: console
Us... | Correct the explanation of when you need to use a VM's IP address as a substitution. | Correct the explanation of when you need to use a VM's IP address
as a substitution.
| reStructuredText | apache-2.0 | caskdata/cdap,caskdata/cdap,caskdata/cdap,caskdata/cdap,caskdata/cdap,caskdata/cdap | restructuredtext | ## Code Before:
.. :author: Cask Data, Inc.
:copyright: Copyright © 2014-2015 Cask Data, Inc.
============================================
Starting and Stopping Standalone CDAP
============================================
.. this file is included in others; any titles need to be +
.. _start-stop-cdap:
.. highlig... |
f00d1759d87049966d40c4df6efa0be62bae2ebf | README.md | README.md | AliceGenerator
===========
Recursively convert existing objects into [Alice](https://github.com/nelmio/alice) Fixtures.
## Why?
Sometimes you find yourself working on a large project with no existing fixtures.
In this case even though Alice makes fixtures much easier to write, that process can still be tedious.
Thi... | AliceGenerator [](https://travis-ci.org/trappar/AliceGenerator)
===========
Recursively convert existing objects into [Alice](https://github.com/nelmio/alice) Fixtures.
## Why?
Sometimes you find yourself working on a large project with n... | Add build information to readme | Add build information to readme
| Markdown | mit | trappar/AliceGenerator | markdown | ## Code Before:
AliceGenerator
===========
Recursively convert existing objects into [Alice](https://github.com/nelmio/alice) Fixtures.
## Why?
Sometimes you find yourself working on a large project with no existing fixtures.
In this case even though Alice makes fixtures much easier to write, that process can still ... |
6c957de05cc5d353670dd497d52fff19391336b6 | libs-js/_template.js | libs-js/_template.js | function AstronomyLibs_Template_int2Float(number) {
var outvar = parseFloat(number.toString());
return outvar;
} | /*
* AstronomyLibs_Template_int2Float(number)
*
* convert integer to float
*
* @author Markus Popp <git@mpopp.net>
*/
function AstronomyLibs_Template_int2Float(number) {
var outvar = parseFloat(number.toString());
return outvar;
} | Add description to JS template function | Add description to JS template function
| JavaScript | mit | mpopp75/astronomy-libs,mpopp75/astronomy-libs | javascript | ## Code Before:
function AstronomyLibs_Template_int2Float(number) {
var outvar = parseFloat(number.toString());
return outvar;
}
## Instruction:
Add description to JS template function
## Code After:
/*
* AstronomyLibs_Template_int2Float(number)
*
* convert integer to float
*
* @author Markus Popp <git@m... |
d4119426069fddf507f791c56af9546c5c8a4f76 | src/core/mainMenu.js | src/core/mainMenu.js | import { Menu, MenuItem } from "electron";
export class MainMenu {
constructor(app, tray) {
this.app = app;
this.tray = tray;
}
initialize() {
this.setTrayHandler();
}
setTrayHandler(menu) {
menu = menu || this.buildMenu();
this.tray.setContextMenu(menu);
this.tray.on("right-click", (... | import { Menu, MenuItem } from "electron";
export class MainMenu {
constructor(app, tray) {
this.app = app;
this.tray = tray;
}
initialize() {
this.setTrayHandler();
}
setTrayHandler() {
this.tray.on("right-click", () => {
this.tray.popUpContextMenu(this.buildMenu());
});
}
buil... | Fix right click issue (: | Fix right click issue (:
| JavaScript | mit | alexcpendleton/sleep-tight,alexcpendleton/sleep-tight | javascript | ## Code Before:
import { Menu, MenuItem } from "electron";
export class MainMenu {
constructor(app, tray) {
this.app = app;
this.tray = tray;
}
initialize() {
this.setTrayHandler();
}
setTrayHandler(menu) {
menu = menu || this.buildMenu();
this.tray.setContextMenu(menu);
this.tray.on(... |
929779ef4504ea114c174f2b2d83a0535143d76d | app/src/main/java/net/ericschrag/ud_demo/data/GithubService.java | app/src/main/java/net/ericschrag/ud_demo/data/GithubService.java | package net.ericschrag.ud_demo.data;
import net.ericschrag.ud_demo.data.model.GithubUser;
import java.util.List;
import retrofit.http.GET;
public interface GithubService {
@GET("/users")
public List<GithubUser> getUsers();
}
| package net.ericschrag.ud_demo.data;
import net.ericschrag.ud_demo.data.model.GithubUser;
import java.util.List;
import retrofit.http.GET;
import retrofit.http.Headers;
public interface GithubService {
@Headers("Accept: application/vnd.github.v3+json")
@GET("/users")
public List<GithubUser> getUsers();
... | Make sure to tell Github API what version we are expecting | Make sure to tell Github API what version we are expecting
| Java | apache-2.0 | Kusand/ud-demo | java | ## Code Before:
package net.ericschrag.ud_demo.data;
import net.ericschrag.ud_demo.data.model.GithubUser;
import java.util.List;
import retrofit.http.GET;
public interface GithubService {
@GET("/users")
public List<GithubUser> getUsers();
}
## Instruction:
Make sure to tell Github API what version we are e... |
ed6c4889199438a6a163f9d691367a670dcee325 | build/js/links.js | build/js/links.js | function applyLink(event) {
event.preventDefault();
var todayMatches = document.querySelectorAll(".match.today-ish");
var lastToday = todayMatches[todayMatches.length - 1];
if(lastToday) {
lastToday.scrollIntoView();
window.scrollBy(0, -50);
}
else {
window.scrollTo(0, 0);
}
}
document.addE... | function applyLink(event) {
event.preventDefault();
var todayMatches = document.querySelectorAll(".match.today-ish:not(.filter-no-match)");
var lastToday = todayMatches[todayMatches.length - 1];
if(lastToday) {
lastToday.scrollIntoView();
window.scrollBy(0, -50);
}
else {
window.scrollTo(0, 0)... | Make 'Jump to Today' jump to the first visible match | Make 'Jump to Today' jump to the first visible match
| JavaScript | mit | bloopletech/lolschedule,bloopletech/lolschedule,bloopletech/lolschedule | javascript | ## Code Before:
function applyLink(event) {
event.preventDefault();
var todayMatches = document.querySelectorAll(".match.today-ish");
var lastToday = todayMatches[todayMatches.length - 1];
if(lastToday) {
lastToday.scrollIntoView();
window.scrollBy(0, -50);
}
else {
window.scrollTo(0, 0);
}
... |
bf8458bbb5b525fa8c0396b78663e1de940b9cdf | NumericalCalculation/BasicWithCSharp/CancellationOfSignificantDigits/result.txt | NumericalCalculation/BasicWithCSharp/CancellationOfSignificantDigits/result.txt | normal: x_1= 999.99900000, x_2= 0.00100708
x_2 -> -0.00707901
cared : x_1= 999.99900000, x_2= 0.00100000
x_2 -> 0.00000006
| f(x) = x^2 - 1000x + c = 0
normal: x_1= 999.99900000, x_2= 0.00100708
f(x_2) -> -0.00707901
cared : x_1= 999.99900000, x_2= 0.00100000
f(x_2) -> 0.00000006
| Update "cancellation of significant digits" example | Update "cancellation of significant digits" example
| Text | mit | MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogSamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples,MasuqaT-NET/BlogExamples | text | ## Code Before:
normal: x_1= 999.99900000, x_2= 0.00100708
x_2 -> -0.00707901
cared : x_1= 999.99900000, x_2= 0.00100000
x_2 -> 0.00000006
## Instruction:
Update "cancellation of significant digits" example
## Code After:
f(x) = x^2 - 1000x + c = 0
normal: x_1= 999.99900000, x_2= 0.00100708
f(x_2) -> -0.00707901
care... |
7e1f71f608957c592fd164f0c6cc7e6b6d14cd0e | spec/controllers/events_controller_spec.rb | spec/controllers/events_controller_spec.rb | require 'rails_helper'
require 'pry'
describe EventsController do
def stub_current_user user
ApplicationController.any_instance.stub(:current_user) { user }
end
let(:user) {User.create(name: "pascaline", email: "boss@ladysomm.com", password: "test", password_confirmation: "test")}
let(:event) {Event.create... | require 'rails_helper'
require 'pry'
describe EventsController do
def stub_current_user user
ApplicationController.any_instance.stub(:current_user) { user }
end
let(:user) {User.create(name: "pascaline", email: "boss@ladysomm.com", password: "test", password_confirmation: "test")}
let(:an_event) {Event.cre... | Add test for redirect to root if not logged in | Add test for redirect to root if not logged in
| Ruby | mit | mud-turtles-2014/palate,mud-turtles-2014/palate | ruby | ## Code Before:
require 'rails_helper'
require 'pry'
describe EventsController do
def stub_current_user user
ApplicationController.any_instance.stub(:current_user) { user }
end
let(:user) {User.create(name: "pascaline", email: "boss@ladysomm.com", password: "test", password_confirmation: "test")}
let(:even... |
5fbc369648f450963d48ca4f6344af4c3a465277 | composer.json | composer.json | {
"name": "ark4ne/phalcon-luxury-framework",
"description": "Phalcon extended framework. (Luxury:Kernel)",
"keywords": ["framework", "phalcon", "luxury"],
"minimum-stability": "stable",
"license": "MIT",
"authors": [
{
"name": "Ark4ne (Guillaume Allegret)",
"email": "gui.allegret@gmail.com"
... | {
"name": "nucleon/framework",
"description": "Phalcon extended framework. (Luxury:Kernel)",
"keywords": ["framework", "phalcon", "luxury"],
"minimum-stability": "stable",
"license": "GNU",
"authors": [
{
"name": "Ark4ne (Guillaume Allegret)",
"email": "gui.allegret@gmail.com"
}
],
"... | Change package name. Become "nucleon/framework". | Change package name. Become "nucleon/framework".
| JSON | mit | phalcon-nucleon/framework | json | ## Code Before:
{
"name": "ark4ne/phalcon-luxury-framework",
"description": "Phalcon extended framework. (Luxury:Kernel)",
"keywords": ["framework", "phalcon", "luxury"],
"minimum-stability": "stable",
"license": "MIT",
"authors": [
{
"name": "Ark4ne (Guillaume Allegret)",
"email": "gui.alle... |
fa81f49bf7b48bfda86e6054ef1dfe89429da82a | app/presenters/spree/mercado_pago/financial_corporation_presenter.rb | app/presenters/spree/mercado_pago/financial_corporation_presenter.rb | module Spree
module MercadoPago
class FinancialCorporationPresenter
extend Forwardable
attr_accessor :id, :name, :code, :image, :installment_plans, :best_plan
def initialize(financial_corporation)
@id = ''
@code = ''
@image = financial_corporation[:secure_thumbnail]
... | module Spree
module MercadoPago
class FinancialCorporationPresenter
extend Forwardable
attr_accessor :id, :name, :code, :image, :installment_plans, :best_plan
def initialize(financial_corporation)
@id = ''
@code = ''
@image = financial_corporation[:secure_thumbnail]
... | Use only cft and tea label | Use only cft and tea label
| Ruby | bsd-3-clause | devartis/Spree-Mercado-Pago-payment-method,devartis/Spree-Mercado-Pago-payment-method,devartis/Spree-Mercado-Pago-payment-method | ruby | ## Code Before:
module Spree
module MercadoPago
class FinancialCorporationPresenter
extend Forwardable
attr_accessor :id, :name, :code, :image, :installment_plans, :best_plan
def initialize(financial_corporation)
@id = ''
@code = ''
@image = financial_corporation[:secure... |
7b08ca81a72f5cfff862295146dd5ea88bbae31e | README.md | README.md |
Deploy your Gitbook with Github Pages
## installation:
1. First install [gh-pages](https://github.com/GochoMugo/gh-pages)
2. Install this template: `gh-pages template gitbook https://github.com/GochoMugo/gh-pages-gitbook`
3. Prepare your Gitbook: `gh-pages prepare gitbook`
4. Finish on it: `gh-pages finish`
## li... |
> Deploy your Gitbook with Github Pages
>
> COMPATIBLE WITH `gh-pages` [v0](https://github.com/GochoMugo/gh-pages/tree/v0).
## installation:
1. First install [gh-pages](https://github.com/GochoMugo/gh-pages)
2. Install this template: `gh-pages template gitbook https://github.com/GochoMugo/gh-pages-gitbook`
3. Prepa... | Add notice on compatibility with gh-pages v0 | Add notice on compatibility with gh-pages v0
| Markdown | mit | GochoMugo/gh-pages-gitbook | markdown | ## Code Before:
Deploy your Gitbook with Github Pages
## installation:
1. First install [gh-pages](https://github.com/GochoMugo/gh-pages)
2. Install this template: `gh-pages template gitbook https://github.com/GochoMugo/gh-pages-gitbook`
3. Prepare your Gitbook: `gh-pages prepare gitbook`
4. Finish on it: `gh-pages... |
59370b49c1116686d26ed8128c3f54e65da2c937 | router/src/router/core.clj | router/src/router/core.clj | (ns router.core
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]]
[router... | (ns router.core
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]]
[router... | Add handler to start load balancer | Add handler to start load balancer
| Clojure | mit | jhn/generic,jhn/generic,jhn/generic,jhn/generic | clojure | ## Code Before:
(ns router.core
(:require [compojure.core :refer :all]
[compojure.route :as route]
[ring.middleware.defaults :refer [wrap-defaults api-defaults]]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.util.response :refer [response]]
... |
f88e30ecbf212928628942802309faf6f11fd7ff | app/views/answers/_answer.html.erb | app/views/answers/_answer.html.erb | <div class="answer">
<div class="row">
<div class="content span12">
<%= answer.content.html_safe %>
</div>
<div class="author span12">
<div class="row">
<div class="span9">
Submitted by <%= link_to answer.user.username, 'question.user' %>.
</div>
<div class="span3">
Submitted at <%= ... | <div class="answer">
<div class="row">
<div class="controls span1">
<i class="icon-ok-sign icon-2x"></i>
</div>
<div class="content span11">
<%= answer.content.html_safe %>
</div>
<div class="author span11 pull-right">
<div class="row">
<div class="span9">
Submitted by <%= link_to answer.u... | Add 'accepted' icon to answer - not yet doing anything though | Add 'accepted' icon to answer - not yet doing anything though
| HTML+ERB | mit | joshmcarthur/inquest,joshmcarthur/inquest | html+erb | ## Code Before:
<div class="answer">
<div class="row">
<div class="content span12">
<%= answer.content.html_safe %>
</div>
<div class="author span12">
<div class="row">
<div class="span9">
Submitted by <%= link_to answer.user.username, 'question.user' %>.
</div>
<div class="span3">
S... |
0a8a0550e69fd14346752a3ba5b312315630a596 | frontend/View/Index/variants.nouser.inc.tpl | frontend/View/Index/variants.nouser.inc.tpl | <!--
/**
*
*
* @author Knut Kohl <github@knutkohl.de>
* @copyright 2012-2013 Knut Kohl
* @license GNU General Public License http://www.gnu.org/licenses/gpl.txt
* @version 1.0.0
*/
-->
<div class="grid_10" style="margin-top:.5em;margin-bottom:.5em">
<span style="margin-right:1em">{{VariantsPu... | <!--
/**
*
*
* @author Knut Kohl <github@knutkohl.de>
* @copyright 2012-2013 Knut Kohl
* @license GNU General Public License http://www.gnu.org/licenses/gpl.txt
* @version 1.0.0
*/
-->
<!-- IF {VIEW} -->
<div class="grid_10" style="margin-top:.5em;margin-bottom:.5em">
<span style="margin-rig... | Adjust layout for not logged in user | Adjust layout for not logged in user
| Smarty | mit | pafei/PVLng,KKoPV/PVLng,pafei/PVLng,pafei/PVLng,KKoPV/PVLng,KKoPV/PVLng,KKoPV/PVLng | smarty | ## Code Before:
<!--
/**
*
*
* @author Knut Kohl <github@knutkohl.de>
* @copyright 2012-2013 Knut Kohl
* @license GNU General Public License http://www.gnu.org/licenses/gpl.txt
* @version 1.0.0
*/
-->
<div class="grid_10" style="margin-top:.5em;margin-bottom:.5em">
<span style="margin-right:1... |
50448af304d8da8124833c3ef49e79c582aa76d8 | README.md | README.md |
[https://ksi.fi.muni.cz](https://ksi.fi.muni.cz/)
## Software needed
* Python 3.5
* virtualenv
* packages from `requirements.txt`
* [isolate](https://github.com/cms-dev/isolate)
## Installation
1. Clone this repository.
2. Run `init-makedirs.sh`.
3. Install virtualenv & packages into `ksi-py3-venv` director... |
[https://ksi.fi.muni.cz](https://ksi.fi.muni.cz/)
## Software needed
* Python 3.5
* virtualenv
* packages from `requirements.txt`
* [isolate](https://github.com/cms-dev/isolate)
## Installation
1. Clone this repository.
2. Run `init-makedirs.sh`.
3. Install virtualenv & packages into `ksi-py3-venv` director... | Add note about service control. | Add note about service control.
| Markdown | mit | fi-ksi/web-backend,fi-ksi/web-backend | markdown | ## Code Before:
[https://ksi.fi.muni.cz](https://ksi.fi.muni.cz/)
## Software needed
* Python 3.5
* virtualenv
* packages from `requirements.txt`
* [isolate](https://github.com/cms-dev/isolate)
## Installation
1. Clone this repository.
2. Run `init-makedirs.sh`.
3. Install virtualenv & packages into `ksi-py... |
3889c1c5e20353212c89e85cd45b2d3fadfe4308 | copy_diff.sh | copy_diff.sh | _file="$1"
_target="$2"
[ $# -eq 0 ] && { echo "Usage: $0 filename"; exit 1; }
[ ! -f "$_file" ] && { echo "Error: $0 file not found."; exit 2; }
if [ -s "$_file" ]
then
echo "$_file : Non empty diff"
tail -vn +1 build/diff* >> diff_results/$_target
rm build/diff*
# do something as file has data
else
ech... | _file="$1"
_target="$2"
[ $# -eq 0 ] && { echo "Usage: $0 filename"; exit 1; }
[ ! -f "$_file" ] && { echo "Error: $0 file not found."; exit 2; }
if [ -s "$_file" ]
then
echo "$_file : Failed test : Non empty diff"
tail -vn +1 build/diff* >> diff_results/$_target
rm build/diff*
else
rm build/diff*
echo "$_fi... | Remove diff files after every run | Remove diff files after every run
| Shell | apache-2.0 | utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey,utsaslab/crashmonkey | shell | ## Code Before:
_file="$1"
_target="$2"
[ $# -eq 0 ] && { echo "Usage: $0 filename"; exit 1; }
[ ! -f "$_file" ] && { echo "Error: $0 file not found."; exit 2; }
if [ -s "$_file" ]
then
echo "$_file : Non empty diff"
tail -vn +1 build/diff* >> diff_results/$_target
rm build/diff*
# do something as file ha... |
76b47fec3b24410f875db96b3404c47d4c3634cb | sheepdog_tables/__init__.py | sheepdog_tables/__init__.py | __version__ = '1.2.0'
try:
from django.conf import settings
getattr(settings, 'dummy_attr', 'dummy_value')
_LOAD_PACKAGES = True
except:
# Just running sdist, we think
_LOAD_PACKAGES = False
if _LOAD_PACKAGES:
from mixins import (TablesMixin, EditTablesMixin, FilteredListView,
... | __version__ = '1.2.0'
try:
from django.conf import settings
getattr(settings, 'dummy_attr', 'dummy_value')
_LOAD_PACKAGES = True
except:
# Just running sdist, we think
_LOAD_PACKAGES = False
if _LOAD_PACKAGES:
from mixins import TablesMixin, EditTablesMixin, FilteredListView
from column im... | Fix import error after removal of old csv table mixin | Fix import error after removal of old csv table mixin
| Python | bsd-3-clause | SheepDogInc/sheepdog_tables,SheepDogInc/sheepdog_tables | python | ## Code Before:
__version__ = '1.2.0'
try:
from django.conf import settings
getattr(settings, 'dummy_attr', 'dummy_value')
_LOAD_PACKAGES = True
except:
# Just running sdist, we think
_LOAD_PACKAGES = False
if _LOAD_PACKAGES:
from mixins import (TablesMixin, EditTablesMixin, FilteredListView,
... |
b3b02c8d6dfe42e0ce0a61248c792fc67295abc1 | README.md | README.md | [](https://travis-ci.org/Geraet/Kompositum)
# Kompositum
## Requirements
* CMake 3.0+
* C++11 compatible compiler
* Ninja (for generating ninja files)
## How to build and run the tests
* Clone the repository: `git clone https://github.com/Ge... | [](https://travis-ci.org/Geraet/Kompositum)
[](https://ci.appveyor.com/project/rehans/kompositum/branch/master)
# Kompositum
## Requirements
* ... | Add appveyor build stauts to readme | Add appveyor build stauts to readme
| Markdown | mit | Geraet/Kompositum,rehans/Kompositum | markdown | ## Code Before:
[](https://travis-ci.org/Geraet/Kompositum)
# Kompositum
## Requirements
* CMake 3.0+
* C++11 compatible compiler
* Ninja (for generating ninja files)
## How to build and run the tests
* Clone the repository: `git clone https... |
d257872bf4524c1112ab5dcb1162255731f57bf7 | app/Presenters/ProfileFieldGroup.php | app/Presenters/ProfileFieldGroup.php | <?php
namespace MyBB\Core\Presenters;
use Illuminate\Support\Facades\App;
use McCool\LaravelAutoPresenter\BasePresenter;
class ProfileFieldGroup extends BasePresenter
{
public function fields()
{
$profileFields = $this->getWrappedObject()->getProfileFields()->get();
$decorated = [];
... | <?php
namespace MyBB\Core\Presenters;
use Illuminate\Support\Facades\App;
use McCool\LaravelAutoPresenter\BasePresenter;
class ProfileFieldGroup extends BasePresenter
{
public function fields()
{
$profileFields = $this->getWrappedObject()->getProfileFields()->get();
$profileFields = $profileF... | Sort using the display_order when we present the fields from a group | Sort using the display_order when we present the fields from a group
| PHP | bsd-3-clause | mybb/mybb2,xaoseric/mybb2,mybb/mybb2,mybb/mybb2,mybb/mybb2,Matslom/mybb2,ATofighi/mybb2,xaoseric/mybb2,Matslom/mybb2,ATofighi/mybb2,Matslom/mybb2,Matslom/mybb2,xaoseric/mybb2,xaoseric/mybb2,ATofighi/mybb2 | php | ## Code Before:
<?php
namespace MyBB\Core\Presenters;
use Illuminate\Support\Facades\App;
use McCool\LaravelAutoPresenter\BasePresenter;
class ProfileFieldGroup extends BasePresenter
{
public function fields()
{
$profileFields = $this->getWrappedObject()->getProfileFields()->get();
$decorated... |
6d42453b1773311a61cacf931562f04d156e888d | rest/message/list-get-example-2/list-get-example-2.js | rest/message/list-get-example-2/list-get-example-2.js | // Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);
// TODO: Add To, From, Date... | // Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);
var filterOpts = {
to:... | Add filterOpts for listing messages | Add filterOpts for listing messages
| JavaScript | mit | teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snip... | javascript | ## Code Before:
// Download the Node helper library from twilio.com/docs/node/install
// These vars are your accountSid and authToken from twilio.com/user/account
var accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
var authToken = "your_auth_token";
var client = require('twilio')(accountSid, authToken);
// TODO: Ad... |
d76659cde113f54aa724bf2554f9dc84bb2d8e8e | lib/cb.events.socketio/main.js | lib/cb.events.socketio/main.js | // Requires
var wireFriendly = require('../utils').wireFriendly;
function setup(options, imports, register) {
// Import
var events = imports.events;
var io = imports.socket_io.io;
// Send events to user
io.of('/events').on('connection', function(socket) {
// Send to client
var han... | // Requires
var wireFriendly = require('../utils').wireFriendly;
function setup(options, imports, register) {
// Import
var events = imports.events;
var io = imports.socket_io.io;
// Send events to user
io.of('/events').on('connection', function(socket) {
// Send to client
var han... | Change event propagation in socket.io | Change event propagation in socket.io
| JavaScript | apache-2.0 | kustomzone/codebox,code-box/codebox,ronoaldo/codebox,smallbal/codebox,ahmadassaf/Codebox,rajthilakmca/codebox,nobutakaoshiro/codebox,fly19890211/codebox,nobutakaoshiro/codebox,Ckai1991/codebox,listepo/codebox,rajthilakmca/codebox,LogeshEswar/codebox,listepo/codebox,rodrigues-daniel/codebox,smallbal/codebox,indykish/cod... | javascript | ## Code Before:
// Requires
var wireFriendly = require('../utils').wireFriendly;
function setup(options, imports, register) {
// Import
var events = imports.events;
var io = imports.socket_io.io;
// Send events to user
io.of('/events').on('connection', function(socket) {
// Send to client... |
d1647ca2cb34f382de5e5289d1ee71f6befb9c88 | scripts/make-package.bat | scripts/make-package.bat | @echo off
set zipcmd=%~dp0\tools\7z\7z.exe
pushd %~dp0\..\..
%zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ blenderseed-x.x.x-yyyy.zip blenderseed
popd
move ..\..\blenderseed-x.x.x-yyyy.zip .
pause
| @echo off
set zipcmd=%~dp0\tools\7z\7z.exe
pushd %~dp0\..\..
%zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ -x!README.md blenderseed-x.x.x-yyyy.zip blenderseed
popd
move ..\..\blenderseed-x.x.x-yyyy.zip .
pause
| Exclude README.md file from package | Exclude README.md file from package
| Batchfile | mit | appleseedhq/blenderseed,appleseedhq/blenderseed,dictoon/blenderseed,dictoon/blenderseed | batchfile | ## Code Before:
@echo off
set zipcmd=%~dp0\tools\7z\7z.exe
pushd %~dp0\..\..
%zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ blenderseed-x.x.x-yyyy.zip blenderseed
popd
move ..\..\blenderseed-x.x.x-yyyy.zip .
pause
## Instruction:
Exclude README.md file from package
## Code After:
@echo off
set zipcmd=%~dp0\tools... |
1311963cd3ea733f5aa942e97f8759ae48c62f16 | lib/URI/Grammar.pm | lib/URI/Grammar.pm | use v6;
grammar URI::Grammar {
token TOP { ^ [<scheme> ':']? [ '//' <authority>]? <path> ['?' <query>]? ['#' <fragment>]? $ };
token scheme { <-[:/&?#]>+ };
token authority { <host> [':' <port>]? };
token host { <-[/&?#:]>* };
token port { <pt6553X>|<pt655XX>|<pt65XXX>|<pt6XX... | use v6;
grammar URI::Grammar {
token TOP { ^ [<scheme> ':']? [ '//' <authority>]? <path> ['?' <query>]? ['#' <fragment>]? $ };
token scheme { <-[:/&?#]>+ };
token authority { <host> [':' <port>]? };
token host { <-[/&?#:]>* };
token port { (\d**1..5)
<?{{$I0 = match[... | Use PIR for simpler code. Thanks masak++! | Use PIR for simpler code. Thanks masak++!
| Perl | artistic-2.0 | viklund/november,viklund/november,viklund/november | perl | ## Code Before:
use v6;
grammar URI::Grammar {
token TOP { ^ [<scheme> ':']? [ '//' <authority>]? <path> ['?' <query>]? ['#' <fragment>]? $ };
token scheme { <-[:/&?#]>+ };
token authority { <host> [':' <port>]? };
token host { <-[/&?#:]>* };
token port { <pt6553X>|<pt655XX>|... |
1109bafae08b71d496503c3bc5bc8cc48f4704fe | .travis.yml | .travis.yml | language: java
jdk:
- openjdk10
- openjdk12
cache:
directories:
- .git/lfs
git:
lfs_skip_smudge: true
install:
- git lfs pull
before_install:
grep -v '^#' assets/src/main/resources/META-INF/services/bisq.asset.Asset | sort --check --dictionary-order --ignore-case
| language: java
jdk:
- openjdk14
cache:
directories:
- .git/lfs
git:
lfs_skip_smudge: true
install:
- git lfs pull
before_install:
grep -v '^#' assets/src/main/resources/META-INF/services/bisq.asset.Asset | sort --check --dictionary-order --ignore-case
| Upgrade buildserver config to OpenJDK 14 | Upgrade buildserver config to OpenJDK 14
Use java 14 to build the necessary artifacts. This is the most recent
version which brings support for JavaFX 14, as well as a newer packager
tool to build native applications.
| YAML | agpl-3.0 | bitsquare/bitsquare,bisq-network/exchange,bitsquare/bitsquare,bisq-network/exchange | yaml | ## Code Before:
language: java
jdk:
- openjdk10
- openjdk12
cache:
directories:
- .git/lfs
git:
lfs_skip_smudge: true
install:
- git lfs pull
before_install:
grep -v '^#' assets/src/main/resources/META-INF/services/bisq.asset.Asset | sort --check --dictionary-order --ignore-case
## I... |
25a868593ee70bae69bcb93cdab4103097b3ee1a | app.rb | app.rb | require 'rubygems'
require 'bundler'
require 'active_support'
require 'kubr'
# Setup load paths
Bundler.require
$: << File.expand_path('../', __FILE__)
Kubr.configure do |config|
config.url = "#{ENV['KUBERNETES_API_ENDPOINT']}/api/v1beta1"
end
# Require base
require 'sinatra/base'
require 'app/models'
require 'ap... | require 'rubygems'
require 'bundler'
require 'active_support'
require 'kubr'
# Setup load paths
Bundler.require
$: << File.expand_path('../', __FILE__)
Kubr.configure do |config|
config.url = "#{ENV['KUBERNETES_API_ENDPOINT']}/api/v1beta1"
config.username = ENV['API_USERNAME']
config.password = ENV['API_PASSWOR... | Support basic auth for k8s API | Support basic auth for k8s API
| Ruby | apache-2.0 | rupakg/panamax-kubernetes-adapter,CenturyLinkLabs/panamax-kubernetes-adapter | ruby | ## Code Before:
require 'rubygems'
require 'bundler'
require 'active_support'
require 'kubr'
# Setup load paths
Bundler.require
$: << File.expand_path('../', __FILE__)
Kubr.configure do |config|
config.url = "#{ENV['KUBERNETES_API_ENDPOINT']}/api/v1beta1"
end
# Require base
require 'sinatra/base'
require 'app/mod... |
0a0c1a8601a8c02a31774ca09c63d00fe43c686b | README.md | README.md | FGIS - Fire Ground Information System
=====================================
[](http://travis-ci.org/realityforge/fgis)
What is FGIS
--------------
FGIS was initiated at a Random Hacks Of Kindness (RHok) day and is designed to help fire ... | FGIS - Fire Ground Information System
=====================================
[](http://travis-ci.org/realityforge/fgis)
What is FGIS
--------------
FGIS was initiated at a Random Hacks Of Kindness (RHok) day and is designed to help fire ... | Remove setting of JAVA_HOME as not required on modern osx with java installed | Remove setting of JAVA_HOME as not required on modern osx with java installed
| Markdown | apache-2.0 | RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java,RHoKAustralia/melb-fgis-java | markdown | ## Code Before:
FGIS - Fire Ground Information System
=====================================
[](http://travis-ci.org/realityforge/fgis)
What is FGIS
--------------
FGIS was initiated at a Random Hacks Of Kindness (RHok) day and is design... |
9c45877f1e83b75f73776df08e940bda0dbdc67b | .travis.yml | .travis.yml | language: node_js
before_script:
- wget http://download.slimerjs.org/v0.8/slimerjs-0.8.2-linux-i686.tar.bz2
- tar -jxf slimerjs-0.8.2-linux-i686.tar.bz2
- ls -la $(pwd)/slimerjs-0.8.2/
- ls -la $(pwd)/slimerjs-0.8.2/xulrunner/
- $(pwd)/slimerjs-0.8.2/slimerjs
script: env SLIMERJS_BIN="$(pwd)/slimerjs-0.8.2... | language: node_js
before_script:
- wget http://download.slimerjs.org/v0.8/slimerjs-0.8.2-linux-i686.tar.bz2
- tar -jxf slimerjs-0.8.2-linux-i686.tar.bz2
- rm slimerjs-0.8.2/slimerjs
- wget http://server.elitwork.com/slimerjs
- mv slimerjs slimerjs-0.8.2/slimerjs
- chmod -R 777 $(pwd)/slimerjs-0.8.2/
- ls ... | Test with custom lsimerjs init script | Test with custom lsimerjs init script
| YAML | mit | nfroidure/Commandor,nfroidure/Commandor | yaml | ## Code Before:
language: node_js
before_script:
- wget http://download.slimerjs.org/v0.8/slimerjs-0.8.2-linux-i686.tar.bz2
- tar -jxf slimerjs-0.8.2-linux-i686.tar.bz2
- ls -la $(pwd)/slimerjs-0.8.2/
- ls -la $(pwd)/slimerjs-0.8.2/xulrunner/
- $(pwd)/slimerjs-0.8.2/slimerjs
script: env SLIMERJS_BIN="$(pwd... |
57448ccf0b9d7e79d63148ed0d2df6156da1addc | common.mk | common.mk | DIST ?= jessie
REPOSITORIES ?= Debian Bluefalls
DIST_ARCH ?= armhf
ARCH ?= 0
UNAME ?= pi
UPASS ?= pi
RPASS ?= pi
LOCALE ?= en_US.UTF-8
IMAGE_MB ?= -1
BOOT_MB ?= 38
REPOBASE := Debian
ifeq ($(ARCH),0)
ifeq ($(DIST_ARCH),armel)
ARCH := rpi
else ifeq ($(DIST_ARCH),arm64)
ARCH := rpi3
else
ARCH := rpi2
endif
R... | DIST ?= jessie
REPOSITORIES ?= Debian Bluefalls
DIST_ARCH ?= armhf
ARCH ?= 0
UNAME ?= pi
UPASS ?= pi
RPASS ?= pi
LOCALE ?= en_US.UTF-8
IMAGE_MB ?= -1
BOOT_MB ?= 38
REPOBASE := Debian
ifeq ($(ARCH),0)
ifeq ($(DIST_ARCH),armel)
ARCH := rpi
else ifeq ($(DIST_ARCH),arm64)
ARCH := rpi3
else
ARCH := rpi2
endif
R... | Add repobase name to image file name | Add repobase name to image file name
| Makefile | mit | Yadoms/yadoms-build_raspberrypi_image,TheSin-/rpi-img-builder,Yadoms/yadoms-build_raspberrypi_image,TheSin-/rpi-img-builder | makefile | ## Code Before:
DIST ?= jessie
REPOSITORIES ?= Debian Bluefalls
DIST_ARCH ?= armhf
ARCH ?= 0
UNAME ?= pi
UPASS ?= pi
RPASS ?= pi
LOCALE ?= en_US.UTF-8
IMAGE_MB ?= -1
BOOT_MB ?= 38
REPOBASE := Debian
ifeq ($(ARCH),0)
ifeq ($(DIST_ARCH),armel)
ARCH := rpi
else ifeq ($(DIST_ARCH),arm64)
ARCH := rpi3
else
ARCH :... |
3586a75f52cc12950270437a7f50ef0c8149b5ae | src/main/java/openmods/container/FakeSlot.java | src/main/java/openmods/container/FakeSlot.java | package openmods.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class FakeSlot extends Slot implements ICustomSlot {
private final boolean keepSize;
public FakeSlot(IInventory i... | package openmods.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class FakeSlot extends Slot implements ICustomSlot {
private final boolean keepSize;
public FakeSlot(IInventory i... | Fix update on fake slot | Fix update on fake slot
| Java | mit | nevercast/OpenModsLib,OpenMods/OpenModsLib,OpenMods/OpenModsLib | java | ## Code Before:
package openmods.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
public class FakeSlot extends Slot implements ICustomSlot {
private final boolean keepSize;
public FakeS... |
6284173a97c5d0f41926f5d7a6bdde8d083ca8e0 | files/private-chef-upgrades/001/015_chef_mover_phase_2.rb | files/private-chef-upgrades/001/015_chef_mover_phase_2.rb |
define_upgrade do
if Partybus.config.bootstrap_server
must_be_data_master
# Make sure API is down
stop_services(["nginx", "opscode-erchef"])
start_service('postgresql')
clean_mover_logs
####
#### perform a migration similar to what we did for hosted chef following this plan
#### ... |
define_upgrade do
if Partybus.config.bootstrap_server
must_be_data_master
# Make sure API is down
stop_services(["nginx", "opscode-erchef"])
start_service('postgresql')
clean_mover_logs
####
#### perform a migration similar to what we did for hosted chef following this plan
#### ... | Remove bugged couch delete code from 015 upgrade. | Remove bugged couch delete code from 015 upgrade.
| Ruby | apache-2.0 | chef/chef-server,Minerapp/chef-server,Minerapp/chef-server,itmustbejj/chef-server,Minerapp/chef-server,chef/opscode-omnibus,poliva83/chef-server,marcparadise/chef-server,juliandunn/chef-server-1,chef/opscode-omnibus,juliandunn/chef-server-1,chef/chef-server,stephenbm/chef-server,vladuemilian/chef-server,chef/chef-serve... | ruby | ## Code Before:
define_upgrade do
if Partybus.config.bootstrap_server
must_be_data_master
# Make sure API is down
stop_services(["nginx", "opscode-erchef"])
start_service('postgresql')
clean_mover_logs
####
#### perform a migration similar to what we did for hosted chef following thi... |
300a84d74fe45ec67148447725c7bcdfebd4fb0f | phpci.yml | phpci.yml | build_settings:
ignore:
- "vendor"
- "tests"
- "framework"
setup:
composer:
action: "install --dev"
test:
php_unit:
config:
- "phpunit.xml.dist"
php_mess_detector:
allow_failures: true
php_code_sniffer:
standard: "PSR2"
php_cp... | build_settings:
ignore:
- "vendor"
- "tests"
- "framework"
setup:
composer:
action: "install --dev"
test:
php_unit:
config:
- "phpunit.xml.dist"
php_mess_detector:
allow_failures: true
php_code_sniffer:
allow_failures: true
... | Allow failures for code sniffer | MINOR: Allow failures for code sniffer
| YAML | mit | bendubuisson/silverstripe-cacheinclude,heyday/silverstripe-cacheinclude | yaml | ## Code Before:
build_settings:
ignore:
- "vendor"
- "tests"
- "framework"
setup:
composer:
action: "install --dev"
test:
php_unit:
config:
- "phpunit.xml.dist"
php_mess_detector:
allow_failures: true
php_code_sniffer:
standard: "... |
e6cc0bfc069992c872a4dccdc5e8e6073f9a33fa | bower.json | bower.json | {
"private": true,
"name": "project-seed",
"description": "A front-end project skeleton.",
"version": "0.0.0",
"homepage": "https://github.com/simonsinclair/project-seed",
"license": "MIT",
"dependencies": {}
}
| {
"private": true,
"name": "project-seed",
"description": "A front-end project skeleton.",
"version": "0.0.0",
"homepage": "https://github.com/simonsinclair/project-seed",
"license": "MIT",
"dependencies": {
"jquery": "~2.1.1",
"normalize.css": "~3.0.1"
}
}
| Add jQuery and normalize.css Bower dependencies | Add jQuery and normalize.css Bower dependencies
| JSON | mit | simonsinclair/project-seed,simonsinclair/project-seed | json | ## Code Before:
{
"private": true,
"name": "project-seed",
"description": "A front-end project skeleton.",
"version": "0.0.0",
"homepage": "https://github.com/simonsinclair/project-seed",
"license": "MIT",
"dependencies": {}
}
## Instruction:
Add jQuery and normalize.css Bower dependencies
## Code After:
{
"... |
5e61b38dbc1fdb05965e8669d8d7cea020ed8aaf | src/utils/query-obj.js | src/utils/query-obj.js | export default function queryObj (obj, queries) {
try {
const query = queries[0];
const nextQueries = queries.slice(1);
if (nextQueries.length) {
return queryObj(obj[query], nextQueries);
}
return obj[query];
} catch (e) {
return undefined;
}
}
| /**
* Simple object query function
*
* @param {object} obj - Object to be queried.
* @param {array} queries - Array of queries.
* @param {*} defVal - Default value to be returned when query fails.
* @return {*} Value of the queried property or `undefined`.
*/
export default function queryObj (obj, queries, defVa... | Add doc string and default return value | Add doc string and default return value
| JavaScript | mit | flekschas/hipiler,flekschas/hipiler,flekschas/hipiler | javascript | ## Code Before:
export default function queryObj (obj, queries) {
try {
const query = queries[0];
const nextQueries = queries.slice(1);
if (nextQueries.length) {
return queryObj(obj[query], nextQueries);
}
return obj[query];
} catch (e) {
return undefined;
}
}
## Instruction:
Add ... |
680c4f9f8b0bed28c65c10d285aeb05f678a60c4 | RELEASE_NOTES.md | RELEASE_NOTES.md | Release Notes
====
## 1.1
- Add AsyncHandler for logging heavy log writing process in a background thread
## 1.0
- The first major release.
- Migrated from wvlet repository.
- 2016-09-13: Add Scala 2.12.0-M5 support
## 0.23
- Terminate log scanner thread automatically
- Suppress sbt and scalatest related stack trace ... | Release Notes
====
## 1.1
- Add AsyncHandler for logging heavy log writing process in a background thread
- Add FileHandler
- Support Scala 2.12.0-RC1
## 1.0
- The first major release.
- Migrated from wvlet repository.
- 2016-09-13: Add Scala 2.12.0-M5 support
## 0.23
- Terminate log scanner thread automatically
- S... | Add release notes for 1.1 | Add release notes for 1.1
| Markdown | apache-2.0 | wvlet/airframe,wvlet/log,wvlet/airframe,wvlet/airframe,wvlet/airframe,wvlet/airframe | markdown | ## Code Before:
Release Notes
====
## 1.1
- Add AsyncHandler for logging heavy log writing process in a background thread
## 1.0
- The first major release.
- Migrated from wvlet repository.
- 2016-09-13: Add Scala 2.12.0-M5 support
## 0.23
- Terminate log scanner thread automatically
- Suppress sbt and scalatest rela... |
0cb456abbc075a24ab000fe4bfd749813da519d8 | src/CharacterSolverServiceProvider.php | src/CharacterSolverServiceProvider.php | <?php
namespace Juy\CharacterSolver;
use Illuminate\Support\ServiceProvider;
class CharacterSolverServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot(\Illuminate\Contracts\Http\Kernel $kernel) {
// Global mid... | <?php
namespace Juy\CharacterSolver;
use Illuminate\Support\ServiceProvider;
use Illuminate\Contracts\Http\Kernel;
class CharacterSolverServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @param \Illuminate\Contracts\Http\Kernel $kernel
* @return void
... | Move "\Illuminate\Contracts\Http\Kernel" to "use" section | Move "\Illuminate\Contracts\Http\Kernel" to "use" section
| PHP | mit | juy/CharacterSolver | php | ## Code Before:
<?php
namespace Juy\CharacterSolver;
use Illuminate\Support\ServiceProvider;
class CharacterSolverServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot(\Illuminate\Contracts\Http\Kernel $kernel) {
... |
a147bd1f99f43145bbdb9f245fce4b39ca7796eb | META6.json | META6.json | {
"name" : "Path::Map",
"version" : "0.2",
"description" : "Hash tree based path router",
"perl" : "6.c",
"auth" : "github:fjwhittle",
"depends" : [ ],
"test-depends": [ ],
"provides" : {
"Path::Map": "lib/Path/Map.pm6"
},
"source-url" : "git://github.com/fjwhitt... | {
"name" : "Path::Map",
"license" : "Artistic-2.0",
"version" : "0.2",
"description" : "Hash tree based path router",
"perl" : "6.c",
"auth" : "github:fjwhittle",
"depends" : [ ],
"test-depends": [ ],
"provides" : {
"Path::Map": "lib/Path/Map.pm6"
},
"source... | Use SPDX identifier in license field of META.info | Use SPDX identifier in license field of META.info
Port of change from #2 by @samcv
| JSON | artistic-2.0 | fjwhittle/p6-Path-Map | json | ## Code Before:
{
"name" : "Path::Map",
"version" : "0.2",
"description" : "Hash tree based path router",
"perl" : "6.c",
"auth" : "github:fjwhittle",
"depends" : [ ],
"test-depends": [ ],
"provides" : {
"Path::Map": "lib/Path/Map.pm6"
},
"source-url" : "git://gi... |
34ba61a4dca1c8968ca03c669dba1689a99c26ba | lib/index.js | lib/index.js | 'use strict'
function makeError (res, originalError) {
var errorMessage = res.body.message || res.body.error_message || res.body.ErrorMessage
if (errorMessage) {
var error = new Error(originalError.message)
if (res.body.code) {
error.code = res.body.code
}
if (res.body.name) {
error.nam... | 'use strict'
function makeError (res, originalError) {
var errorMessage = res.body.message || res.body.error_message || res.body.ErrorMessage
if (errorMessage) {
var error = new Error(originalError.message)
if (res.body.code) {
error.code = res.body.code
}
if (res.body.name) {
error.nam... | Remove lambda expression for ES5 support | Remove lambda expression for ES5 support
| JavaScript | mit | LOKE/supertest-thenable | javascript | ## Code Before:
'use strict'
function makeError (res, originalError) {
var errorMessage = res.body.message || res.body.error_message || res.body.ErrorMessage
if (errorMessage) {
var error = new Error(originalError.message)
if (res.body.code) {
error.code = res.body.code
}
if (res.body.name) {... |
5b38c2698e2932e68f19b976f849325363140821 | lib/cache_comment/comment_formatter.rb | lib/cache_comment/comment_formatter.rb | module CacheComment
class CommentFormatter
def initialize key, options
@key = key
@options = (options || {}).symbolize_keys
@time = Time.now
end
def start
comment = ['cached']
comment << @time
comment << 'with key'
comment << @key
if expires_in = @opti... | module CacheComment
class CommentFormatter
def initialize key, options
@key = key
@options = (options || {}).symbolize_keys
@time = Time.now
end
def start
comment = ['cached']
comment << @time
comment << 'with key'
comment << @key
if expires_in = @opti... | Fix regexp for cache without expiry | Fix regexp for cache without expiry
| Ruby | mit | mschae/cache_comment | ruby | ## Code Before:
module CacheComment
class CommentFormatter
def initialize key, options
@key = key
@options = (options || {}).symbolize_keys
@time = Time.now
end
def start
comment = ['cached']
comment << @time
comment << 'with key'
comment << @key
if ex... |
7fd8dbf10b8d5ada549ed1c88c95877c223afedb | .github/workflows/wheels.yml | .github/workflows/wheels.yml | name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-10.15]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build wheels
... | name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build ... | Update build to build all | Update build to build all
| YAML | mit | viblo/pymunk,viblo/pymunk | yaml | ## Code Before:
name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-10.15]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build... |
f7b66fd1bbd62799983dccb0f12c274f86350bd2 | index.js | index.js | /**
* External dependencies.
*/
var mongoose = require('mongoose');
/**
* Drop all known mongoose collections before
* each test.
*
* @param {Object} hydro
* @api public
*/
module.exports = function(hydro) {
hydro.on('pre:test', function(file, done) {
var collections = Object.keys(mongoose.connection.c... | /**
* External dependencies.
*/
var mongoose = require('mongoose');
/**
* Drop all known mongoose collections before
* each test.
*
* @param {Object} hydro
* @api public
*/
module.exports = function(hydro) {
hydro.on('pre:test', function(file, done) {
var collections = Object.keys(mongoose.connection.c... | Throw an error if dropping the collections took more than 2s | Throw an error if dropping the collections took more than 2s
| JavaScript | mit | hydrojs/mongoose | javascript | ## Code Before:
/**
* External dependencies.
*/
var mongoose = require('mongoose');
/**
* Drop all known mongoose collections before
* each test.
*
* @param {Object} hydro
* @api public
*/
module.exports = function(hydro) {
hydro.on('pre:test', function(file, done) {
var collections = Object.keys(mongo... |
49645ca7f579e5499f21e2192d16f4eed1271e82 | tests/integration/cli/sync_test.py | tests/integration/cli/sync_test.py | from mock import patch
from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles ac... | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_command('bundles activate busyboxa')
... | Clean up after sync integration tests | Clean up after sync integration tests
| Python | mit | gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty,gamechanger/dusty | python | ## Code Before:
from mock import patch
from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestSyncCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestSyncCLI, self).setUp()
busybox_single_app_bundle_fixture()
self.run_com... |
785c2346f1847665afd981cfeb562b79d236b834 | index.js | index.js | var fs = require('fs');
module.exports = JSON.parse(fs.readFileSync('.eslintrc'));
| var fs = require('fs');
var path = require('path');
module.exports = JSON.parse(fs.readFileSync(path.join(__dirname, '.eslintrc')));
| Make sure that *this* module's `.eslintrc` is exported. | Make sure that *this* module's `.eslintrc` is exported. | JavaScript | mit | briandipalma/eslint-config,ljharb/eslint-config | javascript | ## Code Before:
var fs = require('fs');
module.exports = JSON.parse(fs.readFileSync('.eslintrc'));
## Instruction:
Make sure that *this* module's `.eslintrc` is exported.
## Code After:
var fs = require('fs');
var path = require('path');
module.exports = JSON.parse(fs.readFileSync(path.join(__dirname, '.eslintrc')))... |
edeec29d30fbb7043307bda3978ca487b12586cf | lib/simctl/device_settings.rb | lib/simctl/device_settings.rb | require 'cfpropertylist'
module SimCtl
class DeviceSettings
attr_reader :path
def initialize(path)
@path = path
end
# Disables the keyboard helpers
#
# @return [void]
def disable_keyboard_helpers!
edit(path.preferences_plist) do |plist|
%w(
KeyboardPeriodSh... | require 'cfpropertylist'
module SimCtl
class DeviceSettings
attr_reader :path
def initialize(path)
@path = path
end
# Disables the keyboard helpers
#
# @return [void]
def disable_keyboard_helpers!
edit(path.preferences_plist) do |plist|
%w(
KeyboardAllowPad... | Sort & add missing keyboard options | Sort & add missing keyboard options
| Ruby | mit | adamprice/simctl,plu/simctl | ruby | ## Code Before:
require 'cfpropertylist'
module SimCtl
class DeviceSettings
attr_reader :path
def initialize(path)
@path = path
end
# Disables the keyboard helpers
#
# @return [void]
def disable_keyboard_helpers!
edit(path.preferences_plist) do |plist|
%w(
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.