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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
49229ffa00ad3dd6d868506309f2a5a872312baf | lib/hyperclient/resource.rb | lib/hyperclient/resource.rb | require 'hyperclient/attributes'
require 'hyperclient/link_collection'
require 'hyperclient/resource_collection'
module Hyperclient
# Public: Represents a resource from your API. Its responsability is to
# ease the way you access its attributes, links and embedded resources.
class Resource
extend Forwardabl... | require 'forwardable'
require 'hyperclient/attributes'
require 'hyperclient/link_collection'
require 'hyperclient/resource_collection'
module Hyperclient
# Public: Represents a resource from your API. Its responsability is to
# ease the way you access its attributes, links and embedded resources.
class Resource... | Make sure the class that uses Forwardable requires it. | Make sure the class that uses Forwardable requires it.
| Ruby | mit | alabeduarte/hyperclient,codegram/hyperclient,dblock/hyperclient,jufemaiz/hyperclient | ruby | ## Code Before:
require 'hyperclient/attributes'
require 'hyperclient/link_collection'
require 'hyperclient/resource_collection'
module Hyperclient
# Public: Represents a resource from your API. Its responsability is to
# ease the way you access its attributes, links and embedded resources.
class Resource
e... |
e091d8dae12cfcab9a28747ab81f20afc41aa1d3 | Casks/4k-youtube-to-mp3.rb | Casks/4k-youtube-to-mp3.rb | cask :v1 => '4k-youtube-to-mp3' do
# note: "3" is not a version number, but an intrinsic part of the product name
version '2.9'
sha256 '07a558e3dddc957386d12f1a13880e6d02e86ccdabc64e3ac66c78eccde8fe09'
url "http://downloads.4kdownload.com/app/4kyoutubetomp3_#{version}.dmg"
name '4K Youtube to MP3'
homepage... | cask :v1 => '4k-youtube-to-mp3' do
# note: "3" is not a version number, but an intrinsic part of the product name
version '2.9'
sha256 '8f62dead99131f7cb6936f07d95020f81fca6472d2a4d6bdd3ea37aefb5749ce'
url "http://downloads.4kdownload.com/app/4kyoutubetomp3_#{version}.dmg"
name '4K Youtube to MP3'
homepage... | Fix checksum in "4K YouTube to MP3.app" Cask | Fix checksum in "4K YouTube to MP3.app" Cask
It seems that the download package has recently been changed, although the version number has not been bumped. This commit corrects the sha256 hash. | Ruby | bsd-2-clause | johan/homebrew-cask,gord1anknot/homebrew-cask,dlovitch/homebrew-cask,ninjahoahong/homebrew-cask,sebcode/homebrew-cask,troyxmccall/homebrew-cask,nathancahill/homebrew-cask,ayohrling/homebrew-cask,mAAdhaTTah/homebrew-cask,SamiHiltunen/homebrew-cask,napaxton/homebrew-cask,singingwolfboy/homebrew-cask,usami-k/homebrew-cask... | ruby | ## Code Before:
cask :v1 => '4k-youtube-to-mp3' do
# note: "3" is not a version number, but an intrinsic part of the product name
version '2.9'
sha256 '07a558e3dddc957386d12f1a13880e6d02e86ccdabc64e3ac66c78eccde8fe09'
url "http://downloads.4kdownload.com/app/4kyoutubetomp3_#{version}.dmg"
name '4K Youtube to... |
9a0d4e25cf232aead05ae4d6728d51946244a382 | test/rbbt/annotations/test_util.rb | test/rbbt/annotations/test_util.rb | require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/annotations'
class TestAnnotation < Test::Unit::TestCase
def test_marshal
a = "STRING"
a.extend Annotated
assert !(Annotated === Marshal.load(Marshal.dump(a)))
assert_equal a, Marshal.load(Marshal.du... | require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/annotations'
module TestEntityString
extend Entity
self.annotation :code
end
class TestAnnotation < Test::Unit::TestCase
def test_marshal
a = "STRING"
a.extend Annotated
assert !(Annotated === Marsh... | Test hash loading and saving of annotations | Test hash loading and saving of annotations
| Ruby | mit | mikisvaz/rbbt-util,mikisvaz/rbbt-util,mikisvaz/rbbt-util,mikisvaz/rbbt-util,mikisvaz/rbbt-util | ruby | ## Code Before:
require File.join(File.expand_path(File.dirname(__FILE__)), '../..', 'test_helper.rb')
require 'rbbt/annotations'
class TestAnnotation < Test::Unit::TestCase
def test_marshal
a = "STRING"
a.extend Annotated
assert !(Annotated === Marshal.load(Marshal.dump(a)))
assert_equal a, Marshal... |
ffc220106050b27c514db5b89f3bbeb1d72d1107 | app/templates/demo/index.html | app/templates/demo/index.html | <!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Bespoke.js</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1><%= pluginFullName %></h1>
<article>
<section>
<p>... | <!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title><%= pluginFullName %> demo</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1><%= pluginFullName %></h1>
<article>
<section>
... | Add plugin name to title of demo page | Add plugin name to title of demo page
| HTML | mit | bespokejs/generator-bespokeplugin,mbasanta/generator-bespokeplugin,markdalgleish/generator-bespokeplugin,mbasanta/generator-bespokeplugin | html | ## Code Before:
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Bespoke.js</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<h1><%= pluginFullName %></h1>
<article>
<section>
... |
78bd04f1e9bf526a47e2695eabd93a2c369a2c5b | lib/modules/hide_downvote.js | lib/modules/hide_downvote.js | HNSpecial.settings.registerModule("hide_downvote", function () {
function hideDownvoteButton () {
var arrows = _.toArray(document.getElementsByClassName('votearrow'));
arrows.forEach(function(arrow) {
if (arrow.classList.contains('rotate180')) {
arrow.parentElement.remove();
}
});
}... | HNSpecial.settings.registerModule("hide_downvote", function hideDownvotes() {
var arrows = _.toArray(document.getElementsByClassName('votearrow'));
arrows.forEach(function(arrow) {
if (arrow.classList.contains('rotate180')) {
arrow.parentElement.remove();
}
});
});
| Remove function definition for brevity | Remove function definition for brevity
| JavaScript | mit | gabrielecirulli/hn-special,gabrielecirulli/hn-special,gabrielecirulli/hn-special | javascript | ## Code Before:
HNSpecial.settings.registerModule("hide_downvote", function () {
function hideDownvoteButton () {
var arrows = _.toArray(document.getElementsByClassName('votearrow'));
arrows.forEach(function(arrow) {
if (arrow.classList.contains('rotate180')) {
arrow.parentElement.remove();
... |
70c33ced375baeccbb500446a861c7a61d04abc2 | tools/regression/bpf/bpf_filter/tests/test0083.h | tools/regression/bpf/bpf_filter/tests/test0083.h | /*-
* Test 0083: Check that the last instruction is BPF_RET.
*
* $FreeBSD$
*/
/* BPF program */
struct bpf_insn pc[] = {
BPF_JUMP(BPF_JMP+BPF_JA, 0, 0, 0),
};
/* Packet */
u_char pkt[] = {
0x00,
};
/* Packet length seen on wire */
u_int wirelen = sizeof(pkt);
/* Packet length passed on buffer */
u_int buflen ... | /*-
* Test 0083: Check that the last instruction is BPF_RET.
*
* $FreeBSD$
*/
/* BPF program */
struct bpf_insn pc[] = {
BPF_STMT(BPF_LD|BPF_IMM, 0),
};
/* Packet */
u_char pkt[] = {
0x00,
};
/* Packet length seen on wire */
u_int wirelen = sizeof(pkt);
/* Packet length passed on buffer */
u_int buflen = size... | Adjust a test case and make it more jump optimization neutral for JIT case. | Adjust a test case and make it more jump optimization neutral for JIT case.
| C | 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 | c | ## Code Before:
/*-
* Test 0083: Check that the last instruction is BPF_RET.
*
* $FreeBSD$
*/
/* BPF program */
struct bpf_insn pc[] = {
BPF_JUMP(BPF_JMP+BPF_JA, 0, 0, 0),
};
/* Packet */
u_char pkt[] = {
0x00,
};
/* Packet length seen on wire */
u_int wirelen = sizeof(pkt);
/* Packet length passed on buffer ... |
07085060ddcb0fd9776183d534bdbd26d745309a | README.md | README.md | This is C++11 based library and HAL for STM32
It include:
1) CMake build system for simplifier create, build and upload to target
2) Linker script to separate and simplified your code.
3) Vector table for Cortex-M3,4 for simplified create interrupt handers.
4) Startup code for Cortex-M3,4 cpu with initialization of d... | This is C++11 based library and HAL for STM32
It include:
1) CMake build system for simplifier create, build and upload to target
2) Linker script to separate and simplified your code.
3) Vector table for Cortex-M3,4 for simplified create interrupt handers.
4) Startup code for Cortex-M3,4 cpu with initialization of d... | Update project description - split functions | Update project description - split functions
| Markdown | apache-2.0 | no111u3/stm32cclib | markdown | ## Code Before:
This is C++11 based library and HAL for STM32
It include:
1) CMake build system for simplifier create, build and upload to target
2) Linker script to separate and simplified your code.
3) Vector table for Cortex-M3,4 for simplified create interrupt handers.
4) Startup code for Cortex-M3,4 cpu with ini... |
c7456edf3bf0056a9f807c5cc6925533a9ed4c2a | src/main/java/ca/earthgrazer/codereviewer/service/ReviewManagementServiceImpl.java | src/main/java/ca/earthgrazer/codereviewer/service/ReviewManagementServiceImpl.java | package ca.earthgrazer.codereviewer.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ca.earthgrazer.codereviewer.model.ReviewFile;
import ca.earthgrazer.codereviewer.rep... | package ca.earthgrazer.codereviewer.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ca.earthgrazer.codereviewer.model.ReviewFile;
im... | Add filtering for empty review files | Add filtering for empty review files
Resolves issue #4
| Java | apache-2.0 | earthgrazer/codereviewer,earthgrazer/codereviewer,earthgrazer/codereviewer | java | ## Code Before:
package ca.earthgrazer.codereviewer.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ca.earthgrazer.codereviewer.model.ReviewFile;
import ca.earthgrazer.... |
c833f55999f6fd9029626d1b794c86b2b5b11256 | post_office/test_settings.py | post_office/test_settings.py |
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
},
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'TIMEOUT': 36000,
'KEY_PREFIX': 'post-office',
},
'post_office': {
'BACKEND': 'django.core.cache.bac... |
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
},
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'TIMEOUT': 36000,
'KEY_PREFIX': 'post-office',
},
'post_office': {
'BACKEND': 'django.core.cache.bac... | Use "DjangoTestSuiteRunner" to in Django 1.6. | Use "DjangoTestSuiteRunner" to in Django 1.6.
| Python | mit | CasherWest/django-post_office,carrerasrodrigo/django-post_office,fapelhanz/django-post_office,RafRaf/django-post_office,ui/django-post_office,jrief/django-post_office,yprez/django-post_office,JostCrow/django-post_office,ui/django-post_office,LeGast00n/django-post_office,CasherWest/django-post_office,ekohl/django-post_o... | python | ## Code Before:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
},
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'TIMEOUT': 36000,
'KEY_PREFIX': 'post-office',
},
'post_office': {
'BACKEND': 'djang... |
cb1bd722d61fd289eca8e5d5a9bedbdc422f6349 | .github/workflows/ci-workflow.yml | .github/workflows/ci-workflow.yml | name: "CI Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] CI Tests on Credo [OTP/Elixir]"
strategy:
matrix:
otp: [20.3, 21.3, 22.2, 23]
elixir: [1.7.4, 1.8.2, ... | name: "CI Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] CI Tests on Credo [OTP/Elixir]"
strategy:
matrix:
otp: [20.3, 21.3, 22.2, 23]
elixir: [1.7.4, 1.8.2, ... | Update workflow for Elixir 1.11 | Update workflow for Elixir 1.11
| YAML | mit | rrrene/credo,rrrene/credo | yaml | ## Code Before:
name: "CI Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
name: "[${{matrix.otp}}/${{matrix.elixir}}] CI Tests on Credo [OTP/Elixir]"
strategy:
matrix:
otp: [20.3, 21.3, 22.2, 23]
elixir:... |
c8973f091676d30a38f9c82fb85a6b96d296e885 | application/Crawler/Flickr/Flickr.php | application/Crawler/Flickr/Flickr.php | <?php namespace Crawler\Flickr;
use Crawler\Crawler;
use Console\Console;
use Console\Progressbar;
class Flickr extends Crawler
{
public function getOriginalImageUrls($images)
{
$original_images = [];
Console::info("Getting original image urls for " . count($images) . " flickr links...");
... | <?php namespace Crawler\Flickr;
use Crawler\Crawler;
use Console\Console;
use Console\Progressbar;
class Flickr extends Crawler
{
public function getOriginalImageUrls($images)
{
$original_images = [];
Console::info("Getting original image urls for " . count($images) . " flickr links...");
... | Use new progressba interface, fixed console error, changed severity to notice, fixed error which caused empty urls to get fetched | Use new progressba interface, fixed console error, changed severity to notice, fixed error which caused empty urls to get fetched
| PHP | mit | queicherius/stockphoto-crawler | php | ## Code Before:
<?php namespace Crawler\Flickr;
use Crawler\Crawler;
use Console\Console;
use Console\Progressbar;
class Flickr extends Crawler
{
public function getOriginalImageUrls($images)
{
$original_images = [];
Console::info("Getting original image urls for " . count($images) . " flic... |
73f60945bca9a6990f6e6b2d5c4e974def0dc5f2 | resources/vagrant/windows/README.md | resources/vagrant/windows/README.md |
``` bash
cd /path/to/uuid/resources/vagrant/windows
vagrant up
vagrant ssh
```
Once inside the VM:
``` bash
cd uuid
composer install
composer run-script --timeout=0 test
```
|
``` bash
cd /path/to/uuid/resources/vagrant/windows
vagrant up
vagrant ssh
```
Once inside the VM:
``` bash
refreshenv
cd uuid
composer install
composer run-script --timeout=0 test
```
| Add `refreshenv` command to Windows instructions | Add `refreshenv` command to Windows instructions
[ci skip]
| Markdown | mit | michabbb-backup/uuid,michabbb-backup/uuid,ramsey/uuid | markdown | ## Code Before:
``` bash
cd /path/to/uuid/resources/vagrant/windows
vagrant up
vagrant ssh
```
Once inside the VM:
``` bash
cd uuid
composer install
composer run-script --timeout=0 test
```
## Instruction:
Add `refreshenv` command to Windows instructions
[ci skip]
## Code After:
``` bash
cd /path/to/uuid/resourc... |
26b07bafec285d68529f209bf37a6caffa71d356 | .travis.yml | .travis.yml | language: clojure
notifications:
irc: "jcsi.ms#qualityclj"
| language: clojure
notifications:
irc:
channels:
- "jcsi.ms#qualityclj"
use_notice: true
| Use a notice instead of join/message. | Use a notice instead of join/message. | YAML | epl-1.0 | quality-clojure/qualityclj | yaml | ## Code Before:
language: clojure
notifications:
irc: "jcsi.ms#qualityclj"
## Instruction:
Use a notice instead of join/message.
## Code After:
language: clojure
notifications:
irc:
channels:
- "jcsi.ms#qualityclj"
use_notice: true
|
5363f3ee15f567729dfdf47e9616778c6a720fa6 | spec/factories/nufs_accounts.rb | spec/factories/nufs_accounts.rb | overridable_factory :nufs_account do
sequence(:account_number) do |n|
"9#{'%02d' % n}-7777777" # fund3-dept7
end
sequence(:description, 'aaaaaaaa') { |n| "nufs account #{n}" }
expires_at { Time.zone.now + 1.month }
created_by 0
trait :with_order do
transient do
product nil
owner { Fact... | overridable_factory :nufs_account do
sequence(:account_number) do |n|
"9#{'%02d' % n}-7777777" # fund3-dept7
end
sequence(:description, 'aaaaaaaa') { |n| "nufs account #{n}" }
expires_at { Time.zone.now + 1.month }
created_by 0
end
FactoryGirl.modify do
factory :nufs_account do
trait :with_order d... | Fix "missing trait :with_order" in NU | Fix "missing trait :with_order" in NU
NU overrides the `nufs_account` factory, and it doesn’t actually
override the individual attributes and traits it actually replaces it.
| Ruby | mit | tablexi/nucore-open,tablexi/nucore-open,tablexi/nucore-open,tablexi/nucore-open | ruby | ## Code Before:
overridable_factory :nufs_account do
sequence(:account_number) do |n|
"9#{'%02d' % n}-7777777" # fund3-dept7
end
sequence(:description, 'aaaaaaaa') { |n| "nufs account #{n}" }
expires_at { Time.zone.now + 1.month }
created_by 0
trait :with_order do
transient do
product nil
... |
0194eb1e95c56faccc03f4864d7add7146c1745a | README.md | README.md | [](https://travis-ci.org/st3v/waitfor)
# waitfor
| [](https://travis-ci.org/st3v/waitfor)
[](https://coveralls.io/github/st3v/waitfor?branch=master)
# waitfor
| Add coverall badge to readme | Add coverall badge to readme
| Markdown | apache-2.0 | st3v/waitfor | markdown | ## Code Before:
[](https://travis-ci.org/st3v/waitfor)
# waitfor
## Instruction:
Add coverall badge to readme
## Code After:
[](https://travis-ci.org/st3v/waitfor)
[![Coverage Sta... |
573ad1d871ee1e0ac40ea1ce5a9028a89a8f91b8 | metadata/com.katiearose.sobriety.yml | metadata/com.katiearose.sobriety.yml | Categories:
- Sports & Health
- Time
License: GPL-3.0-only
AuthorName: Katherine Rose
AuthorEmail: katiearose@protonmail.com
SourceCode: https://github.com/KiARC/Sobriety
IssueTracker: https://github.com/KiARC/Sobriety/issues
Changelog: https://github.com/KiARC/Sobriety/releases
AutoName: Sobriety
RepoType: git
R... | Categories:
- Sports & Health
- Time
License: GPL-3.0-only
AuthorName: Katherine Rose
AuthorEmail: katiearose@protonmail.com
SourceCode: https://github.com/KiARC/Sobriety
IssueTracker: https://github.com/KiARC/Sobriety/issues
Changelog: https://github.com/KiARC/Sobriety/releases
AutoName: Sobriety
RepoType: git
R... | Update Sobriety to v5.2.1 (12) | Update Sobriety to v5.2.1 (12)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Sports & Health
- Time
License: GPL-3.0-only
AuthorName: Katherine Rose
AuthorEmail: katiearose@protonmail.com
SourceCode: https://github.com/KiARC/Sobriety
IssueTracker: https://github.com/KiARC/Sobriety/issues
Changelog: https://github.com/KiARC/Sobriety/releases
AutoName: Sobriety
... |
d97a9fd92ae2f787fd79788fff71aa584b019222 | SurgSim/Input/CMakeLists.txt | SurgSim/Input/CMakeLists.txt |
include_directories(
${EIGEN3_INCLUDE_DIR}
)
set(SURGSIM_INPUT_SOURCES
CommonDevice.cpp
InputManager.cpp
InputComponent.cpp
OutputComponent.cpp
)
set(SURGSIM_INPUT_HEADERS
CommonDevice.h
DeviceInterface.h
InputComponent.h
InputConsumerInterface.h
InputManager.h
OutputComponent.h
OutputProducerInterface.... |
include_directories(
${EIGEN3_INCLUDE_DIR}
)
set(SURGSIM_INPUT_SOURCES
CommonDevice.cpp
InputComponent.cpp
InputManager.cpp
OutputComponent.cpp
)
set(SURGSIM_INPUT_HEADERS
CommonDevice.h
DeviceInterface.h
InputComponent.h
InputConsumerInterface.h
InputManager.h
OutputComponent.h
OutputProducerInterface.... | Correct ordering in make file | Correct ordering in make file
| Text | apache-2.0 | simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim | text | ## Code Before:
include_directories(
${EIGEN3_INCLUDE_DIR}
)
set(SURGSIM_INPUT_SOURCES
CommonDevice.cpp
InputManager.cpp
InputComponent.cpp
OutputComponent.cpp
)
set(SURGSIM_INPUT_HEADERS
CommonDevice.h
DeviceInterface.h
InputComponent.h
InputConsumerInterface.h
InputManager.h
OutputComponent.h
OutputPr... |
be438aeaf94f85d26802fba01205b895fa8f9ac3 | public/stylesheets/sessions/new.css | public/stylesheets/sessions/new.css | a {
color: #ccc;
text-decoration: none;
}
body, td {
color: #ddd;
font-family: Helvetica, Arial, sans-serif;
}
body {
background: #1d1d1d;
margin: 0;
padding: 0;
}
form {
margin: 0;
}
table {
border-collapse: collapse;
height: 100%;
}
td {
padding: 0 30px;
}
#left_col {
background-color: #000;
... | a {
color: #ccc;
text-decoration: none;
}
body, td {
color: #ddd;
font-family: Helvetica, Arial, sans-serif;
}
body {
background: #1d1d1d;
margin: 0;
padding: 0;
}
form {
margin: 0;
}
table {
border-collapse: collapse;
height: 100%;
}
td {
padding: 0 30px;
}
#left_col {
background-color: #000;
... | Remove reference to missing background | Remove reference to missing background
Change-Id: Id7472ad7255d40195002ddaeacf61d2f59d1f476
Reviewed-on: https://gerrit.causes.com/5122
Reviewed-by: Adam Derewecki <0e18f44c1fec03ec4083422cb58ba6a09ac4fb2a@causes.com>
Tested-by: Adam Derewecki <0e18f44c1fec03ec4083422cb58ba6a09ac4fb2a@causes.com>
| CSS | mit | causes/mockr,causes/mockr,causes/mockr | css | ## Code Before:
a {
color: #ccc;
text-decoration: none;
}
body, td {
color: #ddd;
font-family: Helvetica, Arial, sans-serif;
}
body {
background: #1d1d1d;
margin: 0;
padding: 0;
}
form {
margin: 0;
}
table {
border-collapse: collapse;
height: 100%;
}
td {
padding: 0 30px;
}
#left_col {
backgroun... |
6de4b0b9ae9bac3f1463e831e0e09435df5a8ca9 | vim/vundle.vim | vim/vundle.vim | " vundle.vim
" ----------
" Config file for Vundle bundles. This file also sources all
" Vundle-installed plugins. So this file should be sourced
" in the vimrc before attempting to use any of those plugins.
" note: comments after Bundle commands are not allowed.
filetype off " required!
set rtp+=~/.v... | " vundle.vim
" ----------
" Config file for Vundle bundles. This file also sources all
" Vundle-installed plugins. So this file should be sourced
" in the vimrc before attempting to use any of those plugins.
" note: comments after Bundle commands are not allowed.
filetype off " required!
set rtp+=~/.v... | Add vim plugins for JSHint and for fixing whitespace in vim | Add vim plugins for JSHint and for fixing whitespace in vim
| VimL | mit | eyuelt/dotfiles,eyuelt/dotfiles | viml | ## Code Before:
" vundle.vim
" ----------
" Config file for Vundle bundles. This file also sources all
" Vundle-installed plugins. So this file should be sourced
" in the vimrc before attempting to use any of those plugins.
" note: comments after Bundle commands are not allowed.
filetype off " require... |
ce32738221dcdd7f1a23d30bcfc21f6ceda9c82e | .travis.yml | .travis.yml | sudo: required
dist: trusty
language: python
python:
- "2.7"
services:
- docker
# command to install dependencies
install:
- "pip install tox-travis"
- pip install codecov
#run tests
script:
- docker version
- docker info
- tox
after_success:
- codecov
| sudo: required
dist: trusty
language: python
python:
- "2.7"
services:
- docker
env:
global:
- DOCKER_VERSION=1.10.1-0~trusty
before_install:
# list docker-engine versions
- apt-cache madison docker-engine
# upgrade docker-engine to specific version
- sudo apt-get -o Dpkg::Option... | Update docker-engine to ersion 1.10.1 to fix issue with ARG in test Dockerfile | Update docker-engine to ersion 1.10.1 to fix issue with ARG in test Dockerfile
| YAML | apache-2.0 | charlesvardeman/smartcontainers,crcresearch/smartcontainers,Omegaice/smartcontainers,Omegaice/smartcontainers,crcresearch/smartcontainers,Omegaice/smartcontainers,crcresearch/smartcontainers | yaml | ## Code Before:
sudo: required
dist: trusty
language: python
python:
- "2.7"
services:
- docker
# command to install dependencies
install:
- "pip install tox-travis"
- pip install codecov
#run tests
script:
- docker version
- docker info
- tox
after_success:
- codecov
## Instruction:... |
7f7e5eb39d2863da3908d9b0a92ae8e819b35335 | app/controllers/api/users_controller.rb | app/controllers/api/users_controller.rb | class Api::UsersController < Api::BaseController
load_permissions_and_authorize_resource
def update
@user = current_user
if @user.update(user_params)
render json: {}, status: :ok
else
render json: { errors: @user.errors.full_messages }, status: 422
end
end
def accept_terms
cur... | class Api::UsersController < Api::BaseController
load_permissions_and_authorize_resource
def update
@user = current_user
if @user.update(user_params)
render json: {}, status: :ok
else
render json: { errors: @user.errors.full_messages }, status: 422
end
end
def accept_terms
cur... | Fix bug where notification setting could not be updated via the API | Fix bug where notification setting could not be updated via the API
| Ruby | mit | fsek/web,fsek/web,fsek/web | ruby | ## Code Before:
class Api::UsersController < Api::BaseController
load_permissions_and_authorize_resource
def update
@user = current_user
if @user.update(user_params)
render json: {}, status: :ok
else
render json: { errors: @user.errors.full_messages }, status: 422
end
end
def acce... |
73628ef6acb75c8df19a3e42fd56decaa2b06570 | .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt | .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt | package util
import common.Os
import common.buildToolGradleParameters
import common.gradleWrapper
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement
import jetbrains.buildServer.configs.kotlin.v2019_2.RequirementType
import jetbrains.buildServe... | package util
import common.Os
import common.buildToolGradleParameters
import common.gradleWrapper
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement
import jetbrains.buildServer.configs.kotlin.v2019_2.RequirementType
import jetbrains.buildServe... | Use lenient dependency verification for EC2 warmup builds | Use lenient dependency verification for EC2 warmup builds
We run a `resolveAllDependencies` build to warm up the EC2 agent image.
However, sometimes the build fails with dependency verification failures,
which is not required because we just want to download all artifacts.
| Kotlin | apache-2.0 | blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,grad... | kotlin | ## Code Before:
package util
import common.Os
import common.buildToolGradleParameters
import common.gradleWrapper
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Requirement
import jetbrains.buildServer.configs.kotlin.v2019_2.RequirementType
import jetb... |
cb192f3b98bcfc5d8363924c5be1f2be37a2dbb5 | admin/scripts/default.js | admin/scripts/default.js | $(document).ready(function () {
/*Navigation initialization*/
var navigation = $('#navigation');
var navShown = false;
$('#nav-controller').on('click', function () {
if (navShown) {
navigation.removeClass('show-nav');
navigation.addClass('hide-nav');
navShown... | $(document).ready(function () {
/*Navigation initialization*/
var navigation = $('#navigation');
var navShown = false;
var navController = $('#nav-controller');
if (navController) {
navController.on('click', function () {
if (navShown) {
navigation.removeClass('s... | Resolve all the JS errors | Resolve all the JS errors
| JavaScript | mit | UoG-Libraries/Adshow,UoG-Libraries/Adshow,UoG-Libraries/Adshow | javascript | ## Code Before:
$(document).ready(function () {
/*Navigation initialization*/
var navigation = $('#navigation');
var navShown = false;
$('#nav-controller').on('click', function () {
if (navShown) {
navigation.removeClass('show-nav');
navigation.addClass('hide-nav');
... |
16edf8f236790e9b843e21d8c4eb09cefebb3cae | WarpSDK.podspec | WarpSDK.podspec | Pod::Spec.new do |s|
s.name = "WarpSDK"
s.version = "1.0.6"
s.summary = "The Warp iOS SDK is a library designed to work with projects built on-top of the Warp Server."
s.homepage = "https://github.com/dividedbyzeroco/warp-server"
s.license = { :type => "MIT", :file => "LICENSE" }
... | Pod::Spec.new do |s|
s.name = "WarpSDK"
s.version = "1.0.6"
s.summary = "The Warp iOS SDK is a library designed to work with projects built on-top of the Warp Server."
s.homepage = "https://github.com/dividedbyzeroco/warp-server"
s.license = { :type => "MIT", :file => "LICENSE" }
... | Set Specified Versions for Alamofire, EVReflection and SwiftyJSON on PodSpec | Set Specified Versions for Alamofire, EVReflection and SwiftyJSON on PodSpec
| Ruby | mit | kuyazee/WarpSDK-iOS,kuyazee/WarpSDK-iOS | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "WarpSDK"
s.version = "1.0.6"
s.summary = "The Warp iOS SDK is a library designed to work with projects built on-top of the Warp Server."
s.homepage = "https://github.com/dividedbyzeroco/warp-server"
s.license = { :type => "MIT", :file ... |
dbcd019a65b67299b9e1d33145ef90d1b02a3c4b | TODO.txt | TODO.txt | - Input/output headers
- Cookie jar
- "No session" session
- Use setUpClass/tearDownClass for starting and stopping bottle servers
- Generic memoization for attributes on response, forms, etc.
- Multiple selection select support for form params
- Handle multiple submit form tags in form params
- Checkboxes, che... | - Input/output headers
- Cookie jar
- "No session" session
- Use setUpClass/tearDownClass for starting and stopping bottle servers
- Generic memoization for attributes on response, forms, etc.
- Multiple selection select support for form params
- Handle multiple submit form tags in form params
- Checkboxes, che... | Add user agent to todo | Add user agent to todo
| Text | bsd-2-clause | p/webracer | text | ## Code Before:
- Input/output headers
- Cookie jar
- "No session" session
- Use setUpClass/tearDownClass for starting and stopping bottle servers
- Generic memoization for attributes on response, forms, etc.
- Multiple selection select support for form params
- Handle multiple submit form tags in form params
-... |
6d7432f99fb7ed8874c1f271a266f13d1ae48ac2 | app/services/error_dumper.rb | app/services/error_dumper.rb | class ErrorDumper
include Callee
UNDEFINED_EXCEPTION = ''.freeze
option :exception, optional: true, default: -> { UNDEFINED_EXCEPTION }
option :file_name, optional: true, default: -> { location.try(:path).to_s }
option :label, optional: true, default: -> { location.try(:label).to_s }
option :line_number,... | class ErrorDumper
include Callee
UNDEFINED_EXCEPTION = ''.freeze
option :exception, optional: true, default: -> { UNDEFINED_EXCEPTION }
option :file_name, optional: true, default: -> { location.try(:path).to_s }
option :label, optional: true, default: -> { location.try(:label).to_s }
option :line_number,... | Make ErrorDumper to notify Honeybadger | Make ErrorDumper to notify Honeybadger
| Ruby | mit | dreikanter/feeder,dreikanter/feeder,dreikanter/feeder | ruby | ## Code Before:
class ErrorDumper
include Callee
UNDEFINED_EXCEPTION = ''.freeze
option :exception, optional: true, default: -> { UNDEFINED_EXCEPTION }
option :file_name, optional: true, default: -> { location.try(:path).to_s }
option :label, optional: true, default: -> { location.try(:label).to_s }
opti... |
b97fd14bba5d45a6e4e3caa02bd947bddfd0ba8b | tools/sniper_stats_jobid.py | tools/sniper_stats_jobid.py | import sniper_stats, intelqueue, iqclient
class SniperStatsJobid(sniper_stats.SniperStatsBase):
def __init__(self, jobid):
self.jobid = jobid
self.ic = iqclient.IntelClient()
def read_metricnames(self):
return self.ic.graphite_dbresults(self.jobid, 'read_metricnames')
def get_snapshots(self):
... | import sniper_stats, intelqueue, iqclient
class SniperStatsJobid(sniper_stats.SniperStatsBase):
def __init__(self, jobid):
self.jobid = jobid
self.ic = iqclient.IntelClient()
self.names = self.read_metricnames()
def read_metricnames(self):
return self.ic.graphite_dbresults(self.jobid, 'read_metri... | Read metric names on startup for jobid-based stats so self.names is available as expected | [sniper_stats] Read metric names on startup for jobid-based stats so self.names is available as expected
| Python | mit | abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper,abanaiyan/sniper | python | ## Code Before:
import sniper_stats, intelqueue, iqclient
class SniperStatsJobid(sniper_stats.SniperStatsBase):
def __init__(self, jobid):
self.jobid = jobid
self.ic = iqclient.IntelClient()
def read_metricnames(self):
return self.ic.graphite_dbresults(self.jobid, 'read_metricnames')
def get_snaps... |
24a91e3249379e3e6696b1751edbb0414827bd18 | .travis.yml | .travis.yml | dist: trusty
language: ruby
rvm:
- 2.1.10
- 2.2.7
- 2.3.4
- 2.4.1
- 2.5.3
- 2.6.3
- jruby-9.1.17.0
- jruby-head
- rbx-3
- ruby-head
jdk:
- openjdk8 # for jruby
matrix:
allow_failures:
- rvm: rbx-3
- rvm: ruby-head
addons:
apt:
packages:
- libpcre3
- libpcre3-dev
before_inst... | dist: xenial
language: ruby
rvm:
- 2.1.10
- 2.2.10
- 2.3.8
- 2.4.5
- 2.5.3
- 2.6.3
- jruby-9.1.17.0
- jruby-head
- rbx-3
- ruby-head
jdk:
- openjdk8 # for jruby
matrix:
allow_failures:
- rvm: rbx-3
- rvm: ruby-head
addons:
apt:
packages:
- libpcre3
- libpcre3-dev
before_ins... | Use Xenial with pre-installed Ruby 2.3 and 2.4 versions | Use Xenial with pre-installed Ruby 2.3 and 2.4 versions
| YAML | mit | adhearsion/ruby_speech,adhearsion/ruby_speech,adhearsion/ruby_speech | yaml | ## Code Before:
dist: trusty
language: ruby
rvm:
- 2.1.10
- 2.2.7
- 2.3.4
- 2.4.1
- 2.5.3
- 2.6.3
- jruby-9.1.17.0
- jruby-head
- rbx-3
- ruby-head
jdk:
- openjdk8 # for jruby
matrix:
allow_failures:
- rvm: rbx-3
- rvm: ruby-head
addons:
apt:
packages:
- libpcre3
- libpcre3... |
342b5f050ff43f1b5aeb162eac48f728590987a5 | NOTES.md | NOTES.md | https://robots.thoughtbot.com/middleman-bourbon-walkthrough | ---
This will be my first project using a stack consiting of Ruby, Middleman and Bourbon, Neat & Bitters.
I am keeping a log of lessons learned, tools used and issues encountered for future reference.
## Log Lessons Learned and Issues Encountered
---
### Saturday - July 8th
* Learned how to deal with varying version... | Update lessons learnd notes from July 8th | Update lessons learnd notes from July 8th
| Markdown | mit | jasonhalbig/jasonhalbig.github.io,jasonhalbig/jasonhalbig.github.io,jasonhalbig/jasonhalbig.github.io,jasonhalbig/jasonhalbig.github.io | markdown | ## Code Before:
https://robots.thoughtbot.com/middleman-bourbon-walkthrough
## Instruction:
Update lessons learnd notes from July 8th
## Code After:
---
This will be my first project using a stack consiting of Ruby, Middleman and Bourbon, Neat & Bitters.
I am keeping a log of lessons learned, tools used and issues enc... |
66e88adbf119283b44c6d11121b806d879efcb32 | .travis.yml | .travis.yml | language: scala
scala:
- 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- sbt test
- cd public
- grunt test
deploy:
provider: heroku
api_key: "mgc+E/IvRsGjPfLNDJjXwTmuG+Rbptin3vU7M8ebYzd0QuMF+Jakj72... | language: scala
scala:
- 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- sbt test
- cd public
- grunt test
deploy:
provider: heroku
api_key: "mgc+E/IvRsGjPfLNDJjXwTmuG+Rbptin3vU7M8ebYzd0QuMF+Jakj72... | Add skip_cleanup to keep the artifacts. | Add skip_cleanup to keep the artifacts.
| YAML | apache-2.0 | alxdarksage/BridgePF,DwayneJengSage/BridgePF,alxdarksage/BridgePF,DwayneJengSage/BridgePF,DwayneJengSage/BridgePF,alxdarksage/BridgePF,Sage-Bionetworks/BridgePF,Sage-Bionetworks/BridgePF,Sage-Bionetworks/BridgePF | yaml | ## Code Before:
language: scala
scala:
- 2.10.3
before_script:
- npm install bower
- npm install grunt-cli
- gem install sass
- cd public
- npm install
- bower install
- cd ..
script:
- sbt test
- cd public
- grunt test
deploy:
provider: heroku
api_key: "mgc+E/IvRsGjPfLNDJjXwTmuG+Rbptin3vU7M8e... |
f231f8425810de5d024ab124250c6ca9a47e6c27 | android/KMAPro/kMAPro/src/main/res/xml/file_paths.xml | android/KMAPro/kMAPro/src/main/res/xml/file_paths.xml | <?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com.apk/res/android">
<!-- path is relative to app_data/files/ -->
<files-path name="packages" path="../app_data/packages/" />
</paths>
| <?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com.apk/res/android">
<!-- path is relative to /data/data/com.tavultesoft.kmapro/files/ -->
<files-path name="packages" path="../app_data/packages/" />
</paths>
| Clarify comment to fileProvider path | Clarify comment to fileProvider path
| XML | apache-2.0 | tavultesoft/keymanweb,tavultesoft/keymanweb | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com.apk/res/android">
<!-- path is relative to app_data/files/ -->
<files-path name="packages" path="../app_data/packages/" />
</paths>
## Instruction:
Clarify comment to fileProvider path
## Code After:
<?xml... |
b7f170ece0e65099d1353510a6e7a617c4dc349f | README.md | README.md | Ruby implementation of BBC News Chintz
| Ruby implementation of [BBC News Chintz](https://github.com/BBC-News/chintz)
| Add link to original chintz | Add link to original chintz
Reduces the steps required for a user to go and see the original library and learn about what it is | Markdown | apache-2.0 | BBC-News/chintz-ruby | markdown | ## Code Before:
Ruby implementation of BBC News Chintz
## Instruction:
Add link to original chintz
Reduces the steps required for a user to go and see the original library and learn about what it is
## Code After:
Ruby implementation of [BBC News Chintz](https://github.com/BBC-News/chintz)
|
b25a78818503cbd02c39da7a0dd9abb3f2e3cb76 | app/actions/LoginActions.js | app/actions/LoginActions.js | /**
* LoginActions
* Actions for helping with login
*/
import { browserHistory } from 'react-router';
import Parse from 'parse';
import AuthService from '../middleware/api/Authentication';
export const LOGIN_REQUEST = "LOGIN_REQUEST";
export const LOGIN_SUCCESS = "LOGIN_SUCCESS";
export const LOGIN_FAIL = "LOGIN_... | /**
* LoginActions
* Actions for helping with login
*/
import { browserHistory } from 'react-router';
import Parse from 'parse';
import AuthService from '../middleware/api/Authentication';
export const LOGIN_REQUEST = "LOGIN_REQUEST";
export const LOGIN_SUCCESS = "LOGIN_SUCCESS";
export const LOGIN_FAIL = "LOGIN_... | Add call to AuthService for logout | Add call to AuthService for logout
| JavaScript | mit | bspride/ModernCookbook,bspride/ModernCookbook,bspride/ModernCookbook | javascript | ## Code Before:
/**
* LoginActions
* Actions for helping with login
*/
import { browserHistory } from 'react-router';
import Parse from 'parse';
import AuthService from '../middleware/api/Authentication';
export const LOGIN_REQUEST = "LOGIN_REQUEST";
export const LOGIN_SUCCESS = "LOGIN_SUCCESS";
export const LOGI... |
a41de0b4024fb7b18c4191bfb20c6481203ffcfe | README.md | README.md | Rewrite in progress ... documentation online currently out of sync with master. If you would like to deploy, checkout the last release at https://github.com/untoldone/bloomapi/tree/v0.1.6
An open source library for maintaining an updated mirror of the [NPI Data Dissemination](http://nppes.viva-it.com/NPI_Files.html) a... | BloomAPI
========
BloomAPI is a set of libraries and executables to translate existing datasources into performant APIs. A public deployment of BloomAPI as well as more information can be found at http://www.bloomapi.com.
The public deployment of BloomAPI currently hosts an updated mirror of the [NPI Data Disseminatio... | Update Readme.md for version 0.2.0 | Update Readme.md for version 0.2.0
| Markdown | mit | untoldone/bloomapi,untoldone/bloomapi | markdown | ## Code Before:
Rewrite in progress ... documentation online currently out of sync with master. If you would like to deploy, checkout the last release at https://github.com/untoldone/bloomapi/tree/v0.1.6
An open source library for maintaining an updated mirror of the [NPI Data Dissemination](http://nppes.viva-it.com/N... |
075e66b35e268ef4d79e87e3fac703f598770d24 | test-inkwell/Cargo.toml | test-inkwell/Cargo.toml | [package]
name = "test-inkwell"
version = "0.1.0"
authors = ["Shaked Flur <fshaked@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33"
# inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", f... | [package]
name = "test-inkwell"
version = "0.1.0"
authors = ["Shaked Flur <fshaked@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33"
# inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", f... | Switch to our local copy of inkwell | Switch to our local copy of inkwell
| TOML | apache-2.0 | project-oak/rust-verification-tools,project-oak/rust-verification-tools,project-oak/rust-verification-tools,project-oak/rust-verification-tools | toml | ## Code Before:
[package]
name = "test-inkwell"
version = "0.1.0"
authors = ["Shaked Flur <fshaked@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33"
# inkwell = { git = "https://github.com/TheDan64/inkwell", bran... |
f053f33de1c7180df497979f5d993c951ad60297 | repository/CargoPackageManager-Tests.package/CGOVcsSerializedProjectTest.class/instance/testCanSerializeAPackageDependencyOnExternalCargoProject.st | repository/CargoPackageManager-Tests.package/CGOVcsSerializedProjectTest.class/instance/testCanSerializeAPackageDependencyOnExternalCargoProject.st | tests
testCanSerializeAPackageDependencyOnExternalCargoProject
| project projectStonString |
project := self counterUiProject.
projectStonString := STON toStringPretty: project asVcsSerializedCargoProject.
self
assert: projectStonString
equals: 'OngoingProject {
#name : #Counter-UI,
#description : ''Smal... | tests
testCanSerializeAPackageDependencyOnExternalCargoProject
| project projectStonString |
project := self counterUiProject.
projectStonString := STON toStringPretty: project asVcsSerializedCargoProject.
self
assert: projectStonString
equals: 'OngoingProject {
#name : #Counter-UI,
#description : ''Smal... | Fix test broken due to merge | Fix test broken due to merge | Smalltalk | mit | demarey/cargo | smalltalk | ## Code Before:
tests
testCanSerializeAPackageDependencyOnExternalCargoProject
| project projectStonString |
project := self counterUiProject.
projectStonString := STON toStringPretty: project asVcsSerializedCargoProject.
self
assert: projectStonString
equals: 'OngoingProject {
#name : #Counter-UI,
#desc... |
3f330a4faf2736e9952521e82dc9796312a676f3 | .travis.yml | .travis.yml | ---
language: python
python:
- "2.6"
- "2.7"
- "3.5"
script:
- pip install codecov
- coverage run monitor.py -1 -v -f tests/monitor.ini
- TEST_VALUE=myenv python monitor.py -t -f tests/monitor-env.ini
- codecov
| ---
language: python
python:
- "2.7"
- "3.5"
script:
- pip install codecov
- coverage run monitor.py -1 -v -f tests/monitor.ini
- TEST_VALUE=myenv python monitor.py -t -f tests/monitor-env.ini
- codecov
| Drop testing for Python 2.6 | Drop testing for Python 2.6
It's no longer support by Python core team anyway
| YAML | bsd-3-clause | jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor,jamesoff/simplemonitor | yaml | ## Code Before:
---
language: python
python:
- "2.6"
- "2.7"
- "3.5"
script:
- pip install codecov
- coverage run monitor.py -1 -v -f tests/monitor.ini
- TEST_VALUE=myenv python monitor.py -t -f tests/monitor-env.ini
- codecov
## Instruction:
Drop testing for Python 2.6
It's no longer sup... |
f81e9472c05197da73a9f4caae7635e57aa460e2 | spec/features/main_spec.rb | spec/features/main_spec.rb | describe 'main process', type: :feature, js: true do
it "html includes content 'Listing buckets' and 'my-bucket'" do
Aws.config[:s3] = {
stub_responses: {
list_buckets: { buckets: [{ name: 'my-bucket' }] }
}
}
visit '/buckets'
expect(page).to have_content 'Listing buckets'
expe... | describe 'main process', type: :feature, js: true do
before do
FakeS3Server.restart
s3 = Aws::S3::Client.new
s3.create_bucket(bucket: 'my-bucket')
Tempfile.open('file') do |file|
file.puts 'body'
file.flush
s3.put_object(
bucket: 'my-bucket',
key: 'my-folder/my-file',... | Modify feature spec to use FakeS3Server | Modify feature spec to use FakeS3Server
| Ruby | mit | hoshinotsuyoshi/s3_explorer,hoshinotsuyoshi/s3_explorer,hoshinotsuyoshi/s3_explorer | ruby | ## Code Before:
describe 'main process', type: :feature, js: true do
it "html includes content 'Listing buckets' and 'my-bucket'" do
Aws.config[:s3] = {
stub_responses: {
list_buckets: { buckets: [{ name: 'my-bucket' }] }
}
}
visit '/buckets'
expect(page).to have_content 'Listing b... |
44685b4cd69e9159bf309a9a08db2db7e32309c5 | src/helpers/ApiClient.js | src/helpers/ApiClient.js | import superagent from 'superagent';
import config from '../config';
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__) {
// Prepend host and port of the API server to the path.
return 'http://localho... | import superagent from 'superagent';
import config from '../config';
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__) {
// Prepend host and port of the API server to the path.
return 'http://localho... | Revert changes to client masking | Revert changes to client masking
| JavaScript | mit | Boelensman1/championpick2 | javascript | ## Code Before:
import superagent from 'superagent';
import config from '../config';
const methods = ['get', 'post', 'put', 'patch', 'del'];
function formatUrl(path) {
const adjustedPath = path[0] !== '/' ? '/' + path : path;
if (__SERVER__) {
// Prepend host and port of the API server to the path.
return... |
0bde03c00d22092e3707318675e87fe9ea2110ba | docs/acme-issuer.yaml | docs/acme-issuer.yaml | kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging.api.letsencrypt.org/directory
# Email address used for ACME registration
email: user@example.com
# Name of a secret used to store the ACME account private key
privateKey: letsncryp... | apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging.api.letsencrypt.org/directory
# Email address used for ACME registration
email: user@example.com
# Name of a secret used to store the ACME accou... | Add missing apiVersion to Issuer | Add missing apiVersion to Issuer
| YAML | apache-2.0 | dippynark/cert-manager,cert-manager/cert-manager,jetstack/cert-manager,cert-manager/cert-manager,dippynark/cert-manager,dippynark/cert-manager,jetstack-experimental/cert-manager,jetstack/cert-manager,jetstack-experimental/cert-manager,jetstack-experimental/cert-manager,cert-manager/cert-manager,jetstack/cert-manager | yaml | ## Code Before:
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging.api.letsencrypt.org/directory
# Email address used for ACME registration
email: user@example.com
# Name of a secret used to store the ACME account private key
priva... |
73464c8f531da3aa082f681fc263c1debcc7ad3f | app/reducers/modal/index.test.js | app/reducers/modal/index.test.js | import reducer from './';
describe('Modal reducer', () => {
let initialState;
let state;
let actionType;
let payload;
const callReducer = () => reducer(state, { type: actionType, payload });
beforeEach(() => {
initialState = {
isOpen: false,
modalName: '',
modalOptions: {}
};
... | import reducer from './';
describe('Modal reducer', () => {
let initialState;
let state;
let actionType;
let payload;
const callReducer = () => reducer(state, { type: actionType, payload });
beforeEach(() => {
initialState = {
isOpen: false,
modalName: '',
modalOptions: {}
};
... | Use initialState in Modal reducer spec | Use initialState in Modal reducer spec
| JavaScript | mit | fs/react-base,fs/react-base,fs/react-base | javascript | ## Code Before:
import reducer from './';
describe('Modal reducer', () => {
let initialState;
let state;
let actionType;
let payload;
const callReducer = () => reducer(state, { type: actionType, payload });
beforeEach(() => {
initialState = {
isOpen: false,
modalName: '',
modalOptio... |
48a17dc27daeadbe73ef1e85e2f0dd6efa5576f0 | views/editInventory.html | views/editInventory.html | <form ng-submit="addInventory()">
<fieldset>
<span>
<label for="name">Name:</label>
<input type="text" ng-model="inventory.name" placeholder="Character/Shop Name" required />
</span>
<span>
<label for="coin.gp">GP:</label>
<input type="number"... | <form ng-submit="addInventory()">
<fieldset>
<span>
<label for="name">Name:</label>
<input type="text" ng-model="inventory.name" placeholder="Character/Shop Name" autofocus required />
</span>
<span>
<label for="coin.gp">GP:</label>
<input typ... | Add autofocus to name input | Add autofocus to name input
| HTML | cc0-1.0 | zcdunn/inventory,zcdunn/inventory | html | ## Code Before:
<form ng-submit="addInventory()">
<fieldset>
<span>
<label for="name">Name:</label>
<input type="text" ng-model="inventory.name" placeholder="Character/Shop Name" required />
</span>
<span>
<label for="coin.gp">GP:</label>
<inp... |
6749189ed2f354ed91a9ffd725a08f4fd657251c | app/decorators/collection_decorator.rb | app/decorators/collection_decorator.rb |
class CollectionDecorator < BaseDecorator
include Enumerable
attr_reader :collection, :decorator
delegate :exists?, :empty?, to: :collection
def initialize(collection, decorator: nil)
@collection = collection
@decorator = decorator
end
def each(&block)
@collection.each do |item|
block.... |
class CollectionDecorator < BaseDecorator
include Enumerable
attr_reader :collection, :decorator
delegate :exists?, :empty?, to: :collection
def initialize(collection, decorator: nil, opts: {})
@collection = collection
@decorator = decorator
@opts = opts
end
def each
@collection.each do ... | Allow collection decorator to receive arguments to be passed to each decorator | Allow collection decorator to receive arguments to be passed to each decorator
| Ruby | agpl-3.0 | PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev | ruby | ## Code Before:
class CollectionDecorator < BaseDecorator
include Enumerable
attr_reader :collection, :decorator
delegate :exists?, :empty?, to: :collection
def initialize(collection, decorator: nil)
@collection = collection
@decorator = decorator
end
def each(&block)
@collection.each do |it... |
a08fb84be93610ecd7851e16daeaeb1d175df74c | Sources/HTMLRange.h | Sources/HTMLRange.h | //
// HTMLRange.h
// HTMLKit
//
// Created by Iska on 20/11/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HTMLRange : NSObject
@end
| //
// HTMLRange.h
// HTMLKit
//
// Created by Iska on 20/11/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import "HTMLNode.h"
/**
A HTML Range, represents a sequence of content within a node tree.
Each range has a start and an end which are boundary points.
A boundary point is a tuple consist... | Add properties to HTML Range interface | Add properties to HTML Range interface
See:
https://dom.spec.whatwg.org/#range
| C | mit | iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit,iabudiab/HTMLKit | c | ## Code Before:
//
// HTMLRange.h
// HTMLKit
//
// Created by Iska on 20/11/16.
// Copyright © 2016 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface HTMLRange : NSObject
@end
## Instruction:
Add properties to HTML Range interface
See:
https://dom.spec.whatwg.org/#range
## Code... |
80da1759c8d133aabc3bb9f73f4a6c54451e7aad | aeron-system-tests/src/test/java/io/aeron/PrintEnvInfo.java | aeron-system-tests/src/test/java/io/aeron/PrintEnvInfo.java | package io.aeron;
import org.junit.jupiter.api.Test;
class PrintEnvInfo
{
@Test
void test()
{
System.out.println("=========================");
System.out.println("[PrintEnvInfo] System properties:");
System.out.println("=========================");
System.getProperties().en... | /*
* Copyright 2014-2021 Real Logic Limited.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Disable the printing of env information. | [Java] Disable the printing of env information.
| Java | apache-2.0 | mikeb01/Aeron,mikeb01/Aeron,mikeb01/Aeron,mikeb01/Aeron | java | ## Code Before:
package io.aeron;
import org.junit.jupiter.api.Test;
class PrintEnvInfo
{
@Test
void test()
{
System.out.println("=========================");
System.out.println("[PrintEnvInfo] System properties:");
System.out.println("=========================");
System.ge... |
671b054079c2c9d3b95011b5d7336c5c16fa8dfc | pom.xml | pom.xml | <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.truesighpulse</groupId>
<artifactId>cassandra-plugin</artifactId>
<version>0.9.0</version>
<dependencies>
<dependency>
<groupId>com.boundary</groupId>
<artifactId>java-plugin-sdk</artifactId>
<version>0.6.0</version>
<scope... | <project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.truesighpulse</groupId>
<artifactId>cassandra-plugin</artifactId>
<version>0.9.0</version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.4.0</ver... | Allow to run plugin with exec:java for testing. | Allow to run plugin with exec:java for testing.
Signed-off-by: GabrielNicolasAvellaneda <83a8591a9a34d9745961eaad83d1d871cc3e5445@gmail.com>
| XML | apache-2.0 | GabrielNicolasAvellaneda/boundary-plugin-cassandra,boundary/truesightpulse-plugin-cassandra,boundary/boundary-plugin-cassandra,boundary/meter-plugin-cassandra | xml | ## Code Before:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.truesighpulse</groupId>
<artifactId>cassandra-plugin</artifactId>
<version>0.9.0</version>
<dependencies>
<dependency>
<groupId>com.boundary</groupId>
<artifactId>java-plugin-sdk</artifactId>
<version>0.6.0</versi... |
24fa5e3cfdf41b6d948aa7627651b6f95ada83e2 | week-6/guessing-game/my_solution.rb | week-6/guessing-game/my_solution.rb |
class GuessingGame
def initialize(answer)
# Your initialization code goes here
end
# Make sure you define the other required methods, too
end
# Refactored Solution
# Reflection |
class GuessingGame
def initialize(answer)
# Your initialization code goes here
@answer = answer
end
def guess(integer)
@guess = integer
if integer < @answer
:low
elsif integer > @answer
:high
else
:correct
end
end
def solved?
if @answer == @guess
retur... | Add guessing-game solution & reflection | Add guessing-game solution & reflection
| Ruby | mit | Kunal57/phase-0,Kunal57/phase-0 | ruby | ## Code Before:
class GuessingGame
def initialize(answer)
# Your initialization code goes here
end
# Make sure you define the other required methods, too
end
# Refactored Solution
# Reflection
## Instruction:
Add guessing-game solution & reflection
## Code After:
class GuessingGame
def initial... |
6170db9aabaf549097ba572c4294c285fd052679 | appveyor.yml | appveyor.yml | configuration: Release
os: Visual Studio 2015 CTP
install:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
before_build:
- nuget restore Nine.Graphics.sln
build:
parallel: true
publish_nuget: true
publish_nuget_symbols: true | configuration: Release
os: Visual Studio 2015 CTP
install:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
before_build:
- nuget restore Nine.Graphics.sln
build:
parallel: true
publish_nuget: true
version: 1.0.{build}
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '... | Deploy to nuget on master has changed | Deploy to nuget on master has changed
| YAML | mit | yufeih/Nine.Graphics,studio-nine/Nine.Graphics | yaml | ## Code Before:
configuration: Release
os: Visual Studio 2015 CTP
install:
- set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
before_build:
- nuget restore Nine.Graphics.sln
build:
parallel: true
publish_nuget: true
publish_nuget_symbols: true
## Instruction:
Deploy to nuget on master has changed
... |
d48320a593e0055d4a95df0a3f664c6054e4b5f3 | src/routes/Gavin/components/SelectedPhenotypes.js | src/routes/Gavin/components/SelectedPhenotypes.js | import React, { Component, PropTypes } from 'react'
import { FormGroup, Checkbox, Glyphicon } from 'react-bootstrap'
const propTypes = {
phenotypes : PropTypes.array,
togglePhenotype : PropTypes.func,
removePhenotype : PropTypes.func
}
class SelectedPhenotypes extends Component {
render () {
const { ... | import React, { Component, PropTypes } from 'react'
import { FormGroup, Checkbox, Glyphicon } from 'react-bootstrap'
const propTypes = {
phenotypes : PropTypes.array,
togglePhenotype : PropTypes.func,
removePhenotype : PropTypes.func
}
class SelectedPhenotypes extends Component {
render () {
const { ... | Fix warning: checkbox without onChange attribute | Fix warning: checkbox without onChange attribute | JavaScript | mit | fdlk/gavin,fdlk/gavin | javascript | ## Code Before:
import React, { Component, PropTypes } from 'react'
import { FormGroup, Checkbox, Glyphicon } from 'react-bootstrap'
const propTypes = {
phenotypes : PropTypes.array,
togglePhenotype : PropTypes.func,
removePhenotype : PropTypes.func
}
class SelectedPhenotypes extends Component {
render (... |
e019355e2f1c2679b5ea772cbaed1eec42c1e117 | README.md | README.md | linux-driver-management
=======================
Linux Driver Management (LDM) provides the core functionality required for integration of drivers
into modern Linux distributions. It provides centralised tooling for detection and configuration
for drivers, with a specific focus currently on display drivers.
Linux Dri... | linux-driver-management
=======================
Linux Driver Management (LDM) provides the core functionality required for integration of drivers
into modern Linux distributions. It provides centralised tooling for detection and configuration
for drivers, with a specific focus currently on display drivers.
Linux Dri... | Make it crystal clear the name is only a working-name, nothing more | Make it crystal clear the name is only a working-name, nothing more
Signed-off-by: Ikey Doherty <d8d992cf0016e35c2a8339d5e7d44bebd12a2d77@solus-project.com>
| Markdown | lgpl-2.1 | solus-project/linux-driver-management,solus-project/linux-driver-management | markdown | ## Code Before:
linux-driver-management
=======================
Linux Driver Management (LDM) provides the core functionality required for integration of drivers
into modern Linux distributions. It provides centralised tooling for detection and configuration
for drivers, with a specific focus currently on display dri... |
31f4b41a2ea1f9e38285c15d8fc119145874112e | test/TestSites/project.json | test/TestSites/project.json | {
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.AspNetCore.WebUtilities": "1.0.0-*",
"Microsoft.Extensions.Configuration.EnvironmentV... | {
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.WebUtilities": "1.0.0-*",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-*",
"Microsoft.Extensions.Configurat... | Remove unused broken WebListener dependency. | Remove unused broken WebListener dependency.
| JSON | apache-2.0 | aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore | json | ## Code Before:
{
"version": "1.0.0-*",
"dependencies": {
"Microsoft.AspNetCore.IISPlatformHandler": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.Server.WebListener": "0.1.0-*",
"Microsoft.AspNetCore.WebUtilities": "1.0.0-*",
"Microsoft.Extensions.Configurat... |
907202bf9e55afa6dc8c076cb92a003695708200 | docs/developer_docs.rst | docs/developer_docs.rst | Developer Docs
==============
Documentation for all the under-the-hood classes and functions that most users
won't need to interact with.
Classes
-------------
.. autoclass:: parameter.UVParameter
:members:
.. autoclass:: parameter.AntPositionParameter
:members:
.. autoclass:: parameter.AngleParameter
:member... | Developer Docs
==============
Documentation for all the under-the-hood classes and functions that most users
won't need to interact with.
Classes
-------------
.. autoclass:: parameter.UVParameter
:members:
.. autoclass:: parameter.AntPositionParameter
:members:
.. autoclass:: parameter.AngleParameter
:member... | Add UVData class to developer docs | Add UVData class to developer docs
| reStructuredText | bsd-2-clause | HERA-Team/pyuvdata,HERA-Team/pyuvdata,HERA-Team/pyuvdata,HERA-Team/pyuvdata | restructuredtext | ## Code Before:
Developer Docs
==============
Documentation for all the under-the-hood classes and functions that most users
won't need to interact with.
Classes
-------------
.. autoclass:: parameter.UVParameter
:members:
.. autoclass:: parameter.AntPositionParameter
:members:
.. autoclass:: parameter.AnglePar... |
ee649468df406877ccc51a1042e5657f11caa57d | oauthenticator/tests/test_openshift.py | oauthenticator/tests/test_openshift.py | from pytest import fixture, mark
from ..openshift import OpenShiftOAuthenticator
from .mocks import setup_oauth_mock
def user_model(username):
"""Return a user model"""
return {
'metadata': {
'name': username,
}
}
@fixture
def openshift_client(client):
setup_oauth_mock(... | from pytest import fixture, mark
from ..openshift import OpenShiftOAuthenticator
from .mocks import setup_oauth_mock
def user_model(username):
"""Return a user model"""
return {
'metadata': {
'name': username,
}
}
@fixture
def openshift_client(client):
setup_oauth_mock(... | Update test harness to use new REST API path for OpenShift. | Update test harness to use new REST API path for OpenShift.
| Python | bsd-3-clause | minrk/oauthenticator,NickolausDS/oauthenticator,jupyter/oauthenticator,jupyter/oauthenticator,maltevogl/oauthenticator,jupyterhub/oauthenticator | python | ## Code Before:
from pytest import fixture, mark
from ..openshift import OpenShiftOAuthenticator
from .mocks import setup_oauth_mock
def user_model(username):
"""Return a user model"""
return {
'metadata': {
'name': username,
}
}
@fixture
def openshift_client(client):
s... |
d79f97ff4cee592dcfa73c6d36b1850042932498 | lib/browserNative.js | lib/browserNative.js | "use strict";
/*global window*/
exports.encode = window.btoa;
exports.decode = window.atob;
| "use strict";
/*global window*/
exports.encode = window.btoa.bind(window);
exports.decode = window.atob.bind(window);
| Use `bind` to give context to `atob` and `btoa`. | Use `bind` to give context to `atob` and `btoa`.
| JavaScript | mit | YuzuJS/base64it | javascript | ## Code Before:
"use strict";
/*global window*/
exports.encode = window.btoa;
exports.decode = window.atob;
## Instruction:
Use `bind` to give context to `atob` and `btoa`.
## Code After:
"use strict";
/*global window*/
exports.encode = window.btoa.bind(window);
exports.decode = window.atob.bind(window);
|
711dec86960bb73a30fef3e19f7fe099f2c08ba0 | Sources/ApodidaeCore/Command.swift | Sources/ApodidaeCore/Command.swift | import Foundation
public enum Command {
case search(String)
case info(String)
case home(String)
case add(String)
public static var exampleUsage: String {
return """
Commands:
apo search <query>
Search for the query on all available sources.
apo inf... | import Foundation
public enum Command {
case search(String)
case info(String)
case home(String)
case add(String)
public static var exampleUsage: String {
return """
Commands:
apo search <query>
Search for packages matching query.
apo info <package_... | Update old `apo search` command helper | Update old `apo search` command helper
| Swift | mit | kiliankoe/apodidae,kiliankoe/apodidae | swift | ## Code Before:
import Foundation
public enum Command {
case search(String)
case info(String)
case home(String)
case add(String)
public static var exampleUsage: String {
return """
Commands:
apo search <query>
Search for the query on all available sources.
... |
b00c4e57d2728ece556791d9604c7dd8be92b0e1 | metadata/org.blockinger.game.txt | metadata/org.blockinger.game.txt | Category:Games
License:GPLv3+
Web Site:
Source Code:https://github.com/vocollapse/Blockinger
Issue Tracker:https://github.com/vocollapse/Blockinger/issues
Donate:https://www.paypal.com/de/cgi-bin/webscr?cmd=_flow&SESSION=EZMfv9YIOooYMruwVhQNql39Sp8MNFgPbf11YpRpF8JamhkVUdIJ1sfnKBu&dispatch=5885d80a13c0db1f8e263663d3faee... | Category:Games
License:GPLv3+
Web Site:
Source Code:https://github.com/vocollapse/Blockinger
Issue Tracker:https://github.com/vocollapse/Blockinger/issues
Donate:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=H6VS9SNRHMJSS
Summary:Tetris clone
Description:
Clone of the classic Tetris game for And... | Fix blockinger donate link, update to 1.4.4 | Fix blockinger donate link, update to 1.4.4
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Category:Games
License:GPLv3+
Web Site:
Source Code:https://github.com/vocollapse/Blockinger
Issue Tracker:https://github.com/vocollapse/Blockinger/issues
Donate:https://www.paypal.com/de/cgi-bin/webscr?cmd=_flow&SESSION=EZMfv9YIOooYMruwVhQNql39Sp8MNFgPbf11YpRpF8JamhkVUdIJ1sfnKBu&dispatch=5885d80a13c0db... |
a1ddc7eaaece604f1a162e13da9c1b6d0aa1a438 | app/views/posts/_comment_form.html.erb | app/views/posts/_comment_form.html.erb | <h5> Write a comment </h5>
<%= form_for(@comment, url: comment_post_path(@comment.commentable_id)) do |f| %>
<%= f.text_area :comment %>
<br />
<%= f.submit 'Submit', class: 'btn btn-primary btn-block' %>
<% end %>
| <h5> Write a comment </h5>
<%= form_for(@comment, url: comment_post_path(@comment.commentable_id)) do |f| %>
<%= f.text_area :comment, cols: 20, rows: 5 %>
<br />
<%= f.submit 'Submit', class: 'btn btn-primary btn-block' %>
<% end %>
| Change comment dimensions to display a bigger box | Change comment dimensions to display a bigger box
| HTML+ERB | mit | maebeale/doublehranch,rubyforgood/doublehranch,rubyforgood/doublehranch,rubyforgood/doublehranch,maebeale/doublehranch,maebeale/doublehranch | html+erb | ## Code Before:
<h5> Write a comment </h5>
<%= form_for(@comment, url: comment_post_path(@comment.commentable_id)) do |f| %>
<%= f.text_area :comment %>
<br />
<%= f.submit 'Submit', class: 'btn btn-primary btn-block' %>
<% end %>
## Instruction:
Change comment dimensions to display a bigger box
## Code After:... |
eead05bea93c4dd621eb8a9fb23d01ed4753e376 | data-scripts/download-and-convert-diffs.sh | data-scripts/download-and-convert-diffs.sh |
cd "$(dirname $0)"
source utils.sh
while read line; do
args=$(jq .id,.diff_url <<<$line | tr '"' ' ')
id=$(awk '{ print $1 }' <<<$args)
if [ -f "data/$id.diff" ]; then
error "Skipping already downloaded diff for ID: $id"
continue
else
success "Beginning processing on ID: $id"
... |
cd "$(dirname $0)"
source utils.sh
while read line; do
args=$(jq .id,.diff_url <<<$line | tr '"' ' ')
id=$(awk '{ print $1 }' <<<$args)
if [ -f "data/$id.diff" ]; then
error "Skipping already downloaded diff for ID: $id"
continue
fi
success "Beginning processing on ID: $id"
dif... | Simplify logic in download script | Simplify logic in download script
| Shell | apache-2.0 | JohnStarich/github-code-recommendations,JohnStarich/github-code-recommendations,JohnStarich/github-code-recommendations | shell | ## Code Before:
cd "$(dirname $0)"
source utils.sh
while read line; do
args=$(jq .id,.diff_url <<<$line | tr '"' ' ')
id=$(awk '{ print $1 }' <<<$args)
if [ -f "data/$id.diff" ]; then
error "Skipping already downloaded diff for ID: $id"
continue
else
success "Beginning processi... |
6e34f748864feb04a84ceb1e0d79c916fbaf1322 | src/app/Hits/index.js | src/app/Hits/index.js | import React from 'react'
import {Hits} from 'react-instantsearch'
import Pagination from '../Pagination'
import Stats from '../Stats'
import Hit from '../Hit'
function CustomHits ({hits}) {
return (
<div data-app='hits'>
<Stats />
<div className='pv3 pv4-l ph3 ph5-l'>
{hits.map((hit, idx) =... | import React from 'react'
import {Hits} from 'react-instantsearch'
import Pagination from '../Pagination'
import Stats from '../Stats'
import Hit from '../Hit'
function CustomHits ({hits, hitsPerPage}) {
const hasPagination = hits.length > hitsPerPage
return (
<div data-app='hits'>
<Stats />
<div ... | Hide pagination when is not necessary | Hide pagination when is not necessary
| JavaScript | mit | windtoday/windtoday-marketplace,windtoday/windtoday-app,windtoday/windtoday-marketplace | javascript | ## Code Before:
import React from 'react'
import {Hits} from 'react-instantsearch'
import Pagination from '../Pagination'
import Stats from '../Stats'
import Hit from '../Hit'
function CustomHits ({hits}) {
return (
<div data-app='hits'>
<Stats />
<div className='pv3 pv4-l ph3 ph5-l'>
{hits.... |
0ff7e9aac3876066ce92cd5b7adadcdb46c1efad | lib/tty/test_prompt.rb | lib/tty/test_prompt.rb |
require_relative 'prompt'
module TTY
# Used for initializing test cases
class TestPrompt < Prompt
def initialize(**options)
@input = StringIO.new
@output = StringIO.new
options.merge!({
input: @input,
output: @output,
env: { "TTY_TEST" => true },
enable_color... |
require "stringio"
require_relative 'prompt'
module TTY
# Used for initializing test cases
class TestPrompt < Prompt
def initialize(**options)
@input = StringIO.new
@output = StringIO.new
options.merge!({
input: @input,
output: @output,
env: { "TTY_TEST" => true },
... | Change to ensure dependency is loaded | Change to ensure dependency is loaded
| Ruby | mit | piotrmurach/tty-prompt,peter-murach/tty-prompt | ruby | ## Code Before:
require_relative 'prompt'
module TTY
# Used for initializing test cases
class TestPrompt < Prompt
def initialize(**options)
@input = StringIO.new
@output = StringIO.new
options.merge!({
input: @input,
output: @output,
env: { "TTY_TEST" => true },
... |
b448f8f99b8084ed56cb757d4ba2a212ab9501bb | spec/features/ordering_spec.rb | spec/features/ordering_spec.rb | require 'rails_helper'
describe 'Customizing and ordering a card' do
let(:template) { CardTemplate.create(greeting: "nevermind", image_file: "123.gif") }
describe 'Viewing the customization page' do
it 'has the greeting for the template selected' do
visit "/card_templates/#{template.id}"
expect(pa... | require 'rails_helper'
describe 'Customizing and ordering a card' do
let(:template) { CardTemplate.create(greeting: "nevermind", image_file: "123.gif") }
describe 'Viewing the customization page' do
it 'has the greeting for the template selected' do
visit "/card_templates/#{template.id}"
expect(pa... | Add test for new card form | Add test for new card form
| Ruby | mit | rasnom/sorryyoufeelthatway,rasnom/sorryyoufeelthatway,rasnom/sorryyoufeelthatway | ruby | ## Code Before:
require 'rails_helper'
describe 'Customizing and ordering a card' do
let(:template) { CardTemplate.create(greeting: "nevermind", image_file: "123.gif") }
describe 'Viewing the customization page' do
it 'has the greeting for the template selected' do
visit "/card_templates/#{template.id}"... |
f2b1a6aa935400df53728f54dfa5737e8a056df6 | keymaps/atom-latex.cson | keymaps/atom-latex.cson | 'atom-text-editor[data-grammar~="latex"]':
'ctrl-alt-b': 'Atom-LaTeX:build'
'ctrl-alt-h': 'atom-latex:build-here'
'ctrl-alt-p': 'Atom-LaTeX:preview'
'ctrl-alt-t': 'Atom-LaTeX:preview-tab'
'ctrl-alt-k': 'Atom-LaTeX:kill'
'ctrl-alt-s': 'atom-latex:synctex'
'ctrl-alt-l': 'Atom-LaTeX:show-log'
| 'atom-text-editor[data-grammar="text tex latex"]':
'ctrl-alt-b': 'atom-latex:build'
'ctrl-alt-h': 'atom-latex:build-here'
'ctrl-alt-p': 'atom-latex:preview'
'ctrl-alt-t': 'atom-latex:preview-tab'
'ctrl-alt-k': 'atom-latex:kill'
'ctrl-alt-s': 'atom-latex:synctex'
'ctrl-alt-l': 'atom-latex:show-log'
| Fix keymap not binding problem | Fix keymap not binding problem
| CoffeeScript | mit | ashthespy/Atom-LaTeX,James-Yu/Atom-LaTeX,ashthespy/Atom-LaTeX,James-Yu/Atom-LaTeX | coffeescript | ## Code Before:
'atom-text-editor[data-grammar~="latex"]':
'ctrl-alt-b': 'Atom-LaTeX:build'
'ctrl-alt-h': 'atom-latex:build-here'
'ctrl-alt-p': 'Atom-LaTeX:preview'
'ctrl-alt-t': 'Atom-LaTeX:preview-tab'
'ctrl-alt-k': 'Atom-LaTeX:kill'
'ctrl-alt-s': 'atom-latex:synctex'
'ctrl-alt-l': 'Atom-LaTeX:show-log'... |
fc4c5df7902fa37834233e20392418bf64ebdc64 | app/views/questions/tagged.html.erb | app/views/questions/tagged.html.erb | <div id="page-wrap">
<div id="body">
<div class="question-list">
<%= render partial: 'question-summary', collection: @questions, as: 'question' %>
</div>
</div>
<div id="sidebar">
<h4><%= @count %> questions tagged <a class="btn btn-default tag"><%= params[:tag] %></a></h4>
<h5>related tags<... | <div id="page-wrap">
<div id="body">
<div class="question-list">
<%= render partial: 'question-summary', collection: @questions, as: 'question' %>
</div>
<%= paginate @questions %>
</div>
<div id="sidebar">
<h4><%= @count %> questions tagged <a class="btn btn-default tag"><%= params[:tag] %>... | Add question pagination to the body div on tagged | Add question pagination to the body div on tagged
| HTML+ERB | mit | thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa | html+erb | ## Code Before:
<div id="page-wrap">
<div id="body">
<div class="question-list">
<%= render partial: 'question-summary', collection: @questions, as: 'question' %>
</div>
</div>
<div id="sidebar">
<h4><%= @count %> questions tagged <a class="btn btn-default tag"><%= params[:tag] %></a></h4>
<... |
01bd59e2037ac0aa1ffa5d8b8fa1b02b714e085e | server.js | server.js | /**
* ActiveRules implemented on top of Koa.
*
* @module arkoa
* @copyright 2015 - Brian Winkers
* @license MIT
*/
"use strict";
/**
* System wide settings, most settings will be in ActiveRules sites
* File-based Configuration support, using nconf for bow
*
* Setup nconf to use (in-order):
* 1. Command-line... | /**
* ActiveRules implemented on top of Koa.
*
* @module arkoa
* @copyright 2015 - Brian Winkers
* @license MIT
*/
"use strict";
/**
* System wide settings, most settings will be in ActiveRules sites
* File-based Configuration support, using nconf for bow
*
* Setup nconf to use (in-order):
* 1. Command-line... | Add app root dir to settings. | Add app root dir to settings. | JavaScript | mit | bwinkers/arkoa | javascript | ## Code Before:
/**
* ActiveRules implemented on top of Koa.
*
* @module arkoa
* @copyright 2015 - Brian Winkers
* @license MIT
*/
"use strict";
/**
* System wide settings, most settings will be in ActiveRules sites
* File-based Configuration support, using nconf for bow
*
* Setup nconf to use (in-order):
*... |
027178a21083ceaa4151806e877a58ec7792f625 | pysswords/__main__.py | pysswords/__main__.py | import argparse
from getpass import getpass
from pysswords.db import Database
from pysswords.crypt import CryptOptions
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('path')
parser.add_argument('--create', action='store_true')
parser.add_argument('--password', default=None)
... | import argparse
from getpass import getpass
from pysswords.db import Database
from pysswords.crypt import CryptOptions
def get_args():
parser = argparse.ArgumentParser()
main_group = parser.add_argument_group('Main options')
main_group.add_argument('path', help='Path to database file')
main_group.add_... | Refactor get args function from console interface | Refactor get args function from console interface
| Python | mit | eiginn/passpie,scorphus/passpie,marcwebbie/passpie,scorphus/passpie,marcwebbie/pysswords,eiginn/passpie,marcwebbie/passpie | python | ## Code Before:
import argparse
from getpass import getpass
from pysswords.db import Database
from pysswords.crypt import CryptOptions
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('path')
parser.add_argument('--create', action='store_true')
parser.add_argument('--password', d... |
0bd469751034c9a9bc9c3b6f396885670722a692 | manage.py | manage.py |
import os
from flask_script import Manager, Server
from flask_script.commands import ShowUrls, Clean
from mothership import create_app
from mothership.models import db
# default to dev config because no one should use this in
# production anyway
env = os.environ.get('MOTHERSHIP_ENV', 'dev')
app = create_app('mothers... |
import os
from flask_script import Manager, Server
from flask_script.commands import ShowUrls, Clean
from mothership import create_app
from mothership.models import db
# default to dev config because no one should use this in
# production anyway
env = os.environ.get('MOTHERSHIP_ENV', 'dev')
app = create_app('mothers... | Remove comment for running under uwsgi | Remove comment for running under uwsgi | Python | mit | afl-mothership/afl-mothership,afl-mothership/afl-mothership,afl-mothership/afl-mothership,afl-mothership/afl-mothership | python | ## Code Before:
import os
from flask_script import Manager, Server
from flask_script.commands import ShowUrls, Clean
from mothership import create_app
from mothership.models import db
# default to dev config because no one should use this in
# production anyway
env = os.environ.get('MOTHERSHIP_ENV', 'dev')
app = cre... |
01d02c52ed3e7b8a9ac5f845de9a8bd7076aa426 | README.md | README.md |
Wrap eslint and esformatter to format and pretty-print javascript via stdio.
## Installation
```shell
npm install -g eslint-pretty
```
## Usage
```shell
cat uglylinty.js | eslint-pretty > uglylinty_pretty.js
```
## Why
After carefully building your `.eslintrc.js` file, wouldn't it be nice to quickly format c... |
Wrap eslint and esformatter to format and pretty-print javascript via stdio.
## Installation
```shell
npm install -g eslint-pretty
```
## Usage
```shell
cat uglylinty.js | eslint-pretty > uglylinty_pretty.js
```
## Why
After carefully building your `.eslintrc.js` file, wouldn't it be nice to quickly format c... | Add vim section to readme | Add vim section to readme
| Markdown | mit | bugeats/eslint-pretty | markdown | ## Code Before:
Wrap eslint and esformatter to format and pretty-print javascript via stdio.
## Installation
```shell
npm install -g eslint-pretty
```
## Usage
```shell
cat uglylinty.js | eslint-pretty > uglylinty_pretty.js
```
## Why
After carefully building your `.eslintrc.js` file, wouldn't it be nice to ... |
14c5f82116a97b1489c0c36144342cb133d887e3 | .travis.yml | .travis.yml | language: node_js
node_js:
- "4.1"
- '0.12'
before_script:
- npm install -g mocha codeclimate-test-reporter istanbul
- git config --global push.default matching
- git config --global user.email "dancrumb@gmail.com"
- git config --global user.name "Travis-CI"
after_success:
- codeclimate-test-reporter < coverage/... | language: node_js
node_js:
- '4.1'
- '0.12'
- 'iojs'
before_script:
- npm install -g mocha codeclimate-test-reporter istanbul
- git config --global push.default matching
- git config --global user.email "dancrumb@gmail.com"
- git config --global user.name "Travis-CI"
after_success:
- codeclimate-test-reporter <... | Add iojs testing to Travis CI | Add iojs testing to Travis CI
| YAML | mit | dancrumb/operation-tree | yaml | ## Code Before:
language: node_js
node_js:
- "4.1"
- '0.12'
before_script:
- npm install -g mocha codeclimate-test-reporter istanbul
- git config --global push.default matching
- git config --global user.email "dancrumb@gmail.com"
- git config --global user.name "Travis-CI"
after_success:
- codeclimate-test-repo... |
62ea69faf070e9a3f237136a56ad4e775cd743ca | addon/fx-package.json | addon/fx-package.json | {
"author": "Typhos",
"description": "View Reddit ponymotes across the site",
"fullName": "BetterPonymotes",
"id": "jid1-tHrhDJXsKvsiCw",
"license": "MPL 2.0",
"name": "betterponymotes",
"preferences": [
{
"label": "Preferences",
"name": "openPrefs",
... | {
"author": "Typhos",
"description": "View Reddit ponymotes across the site",
"fullName": "BetterPonymotes",
"id": "jid1-tHrhDJXsKvsiCw",
"license": "MPL 2.0",
"name": "betterponymotes",
"permissions": {"private-browsing": true},
"preferences": [
{
"label": "Preferenc... | Make BPM work on private browsing Firefox tabs | Make BPM work on private browsing Firefox tabs
| JSON | agpl-3.0 | Ajedi32/bpm,ByzantineFailure/bpm,ByzantineFailure/BPM-for-Discord,ILikePizza555/BPM-for-Discord,ByzantineFailure/bpm,ILikePizza555/BPM-for-Discord,Carson-Shook/bpm,ByzantineFailure/BPM-for-Discord,ByzantineFailure/bpm,Rothera/bpm,Rothera/bpm,ILikePizza555/BPM-for-Discord,ByzantineFailure/BPM-for-Discord,Carson-Shook/bp... | json | ## Code Before:
{
"author": "Typhos",
"description": "View Reddit ponymotes across the site",
"fullName": "BetterPonymotes",
"id": "jid1-tHrhDJXsKvsiCw",
"license": "MPL 2.0",
"name": "betterponymotes",
"preferences": [
{
"label": "Preferences",
"name": "openP... |
e87629683bbb798611f28e5db45857a7dde5fa7d | pagination/index.js | pagination/index.js | module.exports = Pagination;
function Pagination() {}
Pagination.prototype.view = __dirname + '/views';
Pagination.prototype.style = __dirname + '/styles';
Pagination.prototype.name = 'pagination';
Pagination.prototype.components = [];
require('./operations');
require('./actions');
require('./viewhelpers');
Paginat... | var _ = require('lodash');
module.exports = Pagination;
function Pagination() {}
Pagination.prototype.view = __dirname + '/views';
Pagination.prototype.style = __dirname + '/styles';
Pagination.prototype.name = 'pagination';
Pagination.prototype.components = [];
require('./operations');
require('./actions');
requir... | Add support for end attribute within pagination component | Add support for end attribute within pagination component
| JavaScript | mit | BBWeb/d-md-components,BBWeb/d-md-components | javascript | ## Code Before:
module.exports = Pagination;
function Pagination() {}
Pagination.prototype.view = __dirname + '/views';
Pagination.prototype.style = __dirname + '/styles';
Pagination.prototype.name = 'pagination';
Pagination.prototype.components = [];
require('./operations');
require('./actions');
require('./viewhel... |
9387ea6745e1d16fb9db4bde8ea3907775ac1ca1 | src/websocket-client.js | src/websocket-client.js | /**
* @module src/websocket-client
*/
'use strict'
const Base = require('./base')
const payload = 'a'.repeat(process.env.PB_PAYLOAD_BYTES) // ~1kb payload
var count = 0
const limit = 5000
var start
class WebsocketClient extends Base {
constructor () {
super()
this._initWebsocketClient()
start = new... | /**
* @module src/websocket-client
*/
'use strict'
const Base = require('./base')
const payload = 'a'.repeat(process.env.PB_PAYLOAD_BYTES) // ~1kb payload
var count = 0
const limit = 5000
var start
class WebsocketClient extends Base {
constructor () {
super()
this._initWebsocketClient()
this._ws.on... | Set start time after socket client connect event fires | Set start time after socket client connect event fires
| JavaScript | mit | cflynn07/http-websockets-rabbitmq-perf-battle | javascript | ## Code Before:
/**
* @module src/websocket-client
*/
'use strict'
const Base = require('./base')
const payload = 'a'.repeat(process.env.PB_PAYLOAD_BYTES) // ~1kb payload
var count = 0
const limit = 5000
var start
class WebsocketClient extends Base {
constructor () {
super()
this._initWebsocketClient()... |
3343eca5456da80a855a8ab749558c7305299b44 | lib/views/analysis_status_view.coffee | lib/views/analysis_status_view.coffee | {View} = require 'atom'
React = require 'react-atom-fork'
{_} = require 'lodash'
{a, div, span} = require 'reactionary-atom-fork'
module.exports =
class AnalysisStatusView extends View
Object.defineProperty @::, 'analysisCount', get: -> @items.length
items: []
@content: ->
@div class: 'inline-block'
ini... | {View} = require 'atom'
{_} = require 'lodash'
module.exports =
class AnalysisStatusView extends View
Object.defineProperty @::, 'analysisCount', get: -> @items.length
items: []
@content: ->
@div class: 'inline-block', =>
@a href: '#', click: 'showAnalysis', =>
@span class: 'dart-tools-status ... | Clean up implementation of status view. | [REFACTOR] Clean up implementation of status view.
The previous status view was based on React and unnecessarily complex.
I've replaced it with Spacepen.
| CoffeeScript | mit | radicaled/dart-tools | coffeescript | ## Code Before:
{View} = require 'atom'
React = require 'react-atom-fork'
{_} = require 'lodash'
{a, div, span} = require 'reactionary-atom-fork'
module.exports =
class AnalysisStatusView extends View
Object.defineProperty @::, 'analysisCount', get: -> @items.length
items: []
@content: ->
@div class: 'inli... |
126a68e2619384f54d5459799d44661cbc1a025e | scripts/image_epouta_constants.sh | scripts/image_epouta_constants.sh | DIB_LOCAL_IMAGE=""
DIB_OPTIONS="--no-tmpfs --qemu-img-options compat=0.10"
IMAGE_SIZE="10"
IMAGE_FORMAT="qcow2"
IMAGE_VISIBILITY="$IMAGE_VISIBILITY"
IMAGE_KEEP_COUNT="25"
TMP_IMAGE_NAME="_tmp_$IMAGE_NAME"
SECURITY_GROUPS="default"
TEST_INSTANCE_NAME="_test_$IMAGE_NAME-$(date +%F)"
TEST_FLAVOR="hpc.mini"
TEST_NET_ID="$O... | DIB_LOCAL_IMAGE=""
DIB_OPTIONS="--no-tmpfs --qemu-img-options compat=0.10"
IMAGE_SIZE="10"
IMAGE_FORMAT="qcow2"
IMAGE_VISIBILITY="$IMAGE_VISIBILITY"
IMAGE_KEEP_COUNT="25"
TMP_IMAGE_NAME="_tmp_$IMAGE_NAME"
SECURITY_GROUPS="default"
TEST_INSTANCE_NAME="_test_$IMAGE_NAME-$(date +%F)"
TEST_FLAVOR="standard.tiny"
TEST_NET_I... | Use standard.tiny instead of deprecated flavor | Use standard.tiny instead of deprecated flavor
- #CCCP-2274
| Shell | mit | CSC-IT-Center-for-Science/diskimage-builder-csc-automation | shell | ## Code Before:
DIB_LOCAL_IMAGE=""
DIB_OPTIONS="--no-tmpfs --qemu-img-options compat=0.10"
IMAGE_SIZE="10"
IMAGE_FORMAT="qcow2"
IMAGE_VISIBILITY="$IMAGE_VISIBILITY"
IMAGE_KEEP_COUNT="25"
TMP_IMAGE_NAME="_tmp_$IMAGE_NAME"
SECURITY_GROUPS="default"
TEST_INSTANCE_NAME="_test_$IMAGE_NAME-$(date +%F)"
TEST_FLAVOR="hpc.mini"... |
1bbe0e23a4e418cde7a25ec933a23426f46fe7aa | packagereader.go | packagereader.go | package gomposer
import (
"os"
"encoding/json"
)
type Reader interface {
Read(filename string) *Version
}
type PackageReader struct {
}
func (pr PackageReader) Read(filename string) (*Version, error) {
buf, err := os.Open(filename)
if err != nil {
return nil, err
}
output := &Ve... | package gomposer
import (
"os"
"encoding/json"
)
type Reader interface {
Read(filename string) *Version
}
type PackageReader struct {
}
func (pr PackageReader) Read(filename string) (*Version, error) {
buf, err := os.Open(filename)
if err != nil {
return nil, err
}
output := &Version{}
json.NewDecode... | Refactor dependency resolver + add test for later on | Refactor dependency resolver + add test for later on
| Go | mit | icambridge/gomposer | go | ## Code Before:
package gomposer
import (
"os"
"encoding/json"
)
type Reader interface {
Read(filename string) *Version
}
type PackageReader struct {
}
func (pr PackageReader) Read(filename string) (*Version, error) {
buf, err := os.Open(filename)
if err != nil {
return nil, err
}
... |
4a63a6cc586be9a9acf7d2374eb5d1030ad71792 | doc/change-log.md | doc/change-log.md | ---
layout: default
currentMenu: change-log
---
# Change Log
## 1.4.0
* Features
* Make Elasticsearch configurable in IntegrationEngine.json
* Chores
* Rename IElasticSearchJob.cs file to IElasticsearchJob.cs
* Rename project to InEngine.NET
* Documentation
* Getting started
* Web API
* Integ... | ---
layout: default
currentMenu: change-log
---
# Change Log
## 1.4.1
* Chores
* Add link to change log in NuGet package release notes.
## 1.4.0
* Features
* Make Elasticsearch configurable in IntegrationEngine.json
* Chores
* Rename IElasticSearchJob.cs file to IElasticsearchJob.cs
* Rename projec... | Update change log for 1.4.1 | Update change log for 1.4.1
| Markdown | mit | InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET,InEngine-NET/InEngine.NET | markdown | ## Code Before:
---
layout: default
currentMenu: change-log
---
# Change Log
## 1.4.0
* Features
* Make Elasticsearch configurable in IntegrationEngine.json
* Chores
* Rename IElasticSearchJob.cs file to IElasticsearchJob.cs
* Rename project to InEngine.NET
* Documentation
* Getting started
* Web... |
61ec36bbe1fdfe3eb9471a84a1598f95a101b357 | Library/Homebrew/extend/ENV.rb | Library/Homebrew/extend/ENV.rb | require 'hardware'
require 'extend/ENV/shared'
require 'extend/ENV/std'
require 'extend/ENV/super'
def superenv?
return false if MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?
return false unless Superenv.bin && Superenv.bin.directory?
return false if ARGV.env == "std"
true
end
module EnvActivation
def ac... | require 'hardware'
require 'extend/ENV/shared'
require 'extend/ENV/std'
require 'extend/ENV/super'
def superenv?
Superenv.bin && Superenv.bin.directory? && ARGV.env != "std"
end
module EnvActivation
def activate_extensions!
if superenv?
extend(Superenv)
else
extend(Stdenv)
end
end
def... | Simplify conditions for superenv activation | Simplify conditions for superenv activation
`MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?` should never be true.
In its earliest form, this would raise a bare RuntimeError in an effort
to have the bug reported. Later, it was changed to silently disable
superenv. But we don't want to do that. If there's a bug, or ... | Ruby | bsd-2-clause | hanxue/homebrew,caijinyan/homebrew,lvicentesanchez/homebrew,apjanke/homebrew,xanderlent/homebrew,georgschoelly/homebrew,ebouaziz/linuxbrew,amarshall/homebrew,apjanke/homebrew,rhunter/homebrew,ahihi/tigerbrew,kgb4000/homebrew,gicmo/homebrew,dkotvan/homebrew,wfarr/homebrew,wadejong/homebrew,imjerrybao/homebrew,feelpp/hom... | ruby | ## Code Before:
require 'hardware'
require 'extend/ENV/shared'
require 'extend/ENV/std'
require 'extend/ENV/super'
def superenv?
return false if MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?
return false unless Superenv.bin && Superenv.bin.directory?
return false if ARGV.env == "std"
true
end
module EnvAct... |
f6454cf80f90b6e6debaecce39f247f195ed2461 | less/components/currency-dropdown.less | less/components/currency-dropdown.less | .currency-dropdown {
width: 80px;
font-size: 14px;
text-transform: uppercase;
padding: 0;
text-align: center;
option {
padding: 0;
}
}
| .currency-dropdown {
font-size: 14px;
text-transform: uppercase;
text-align: center;
padding: 0 20px;
option {
padding: 0;
}
}
| Fix dropdown weird position on Chrome | Fix dropdown weird position on Chrome
This annoys me a bit that in Chrome the currency dropdown looks really
weird
| Less | mpl-2.0 | ScottDowne/donate.mozilla.org,jbuck/donate.mozilla.org,alicoding/donate.mozilla.org,mozilla/donate.mozilla.org | less | ## Code Before:
.currency-dropdown {
width: 80px;
font-size: 14px;
text-transform: uppercase;
padding: 0;
text-align: center;
option {
padding: 0;
}
}
## Instruction:
Fix dropdown weird position on Chrome
This annoys me a bit that in Chrome the currency dropdown looks really
weird
## Code After:
.c... |
593dafefaa8c26cf4a5364c59a5198ff45095072 | ckanext/ioos_theme/templates/header.html | ckanext/ioos_theme/templates/header.html | {% ckan_extends %}
{% block header_account %}
<div id="center-logo">
<a href="https://ioos.us">
<img src="/img/top-ioos-logo.png" alt="IOOS Logo" id="header-logo" title="IOOS Logo">
</a>
</div>
{{super()}}
{% endblock %}
<a href="https://ioos.us"><img src="img/IOOS.png" alt="IOOS alt logo"></a>
{% ... | {% ckan_extends %}
{% block header_account %}
<div id="center-logo">
<a href="https://ioos.us">
<img src="/img/top-ioos-logo.png" alt="IOOS Logo" id="header-logo" title="IOOS Logo">
</a>
</div>
{{super()}}
{% endblock %}
<a href="https://ioos.us"><img src="img/IOOS.png" alt="IOOS alt logo"></a>
{% ... | Add home page reference to top nav menu | Add home page reference to top nav menu
| HTML | agpl-3.0 | ioos/catalog-ckan,ioos/catalog-ckan,ioos/catalog-ckan | html | ## Code Before:
{% ckan_extends %}
{% block header_account %}
<div id="center-logo">
<a href="https://ioos.us">
<img src="/img/top-ioos-logo.png" alt="IOOS Logo" id="header-logo" title="IOOS Logo">
</a>
</div>
{{super()}}
{% endblock %}
<a href="https://ioos.us"><img src="img/IOOS.png" alt="IOOS al... |
21ba74abf9d31e3399c39b194273850689edf1e7 | lib/cli.js | lib/cli.js |
const cli = require('commander')
const pkg = require('../package')
const apiCall = require('./apiCall')
cli.name('ur-cli')
cli
.version(pkg.version).usage('<command> <args> [options]')
.command('create [projectIds]', 'Make a request to queue up for project submissions.')
.command('get [id]', 'Get assignment re... |
const cli = require('commander')
const pkg = require('../package')
cli.name('ur-cli')
cli
.version(pkg.version).usage('<command> <args> [options]')
.command('create [projectIds]', 'Make a request to queue up for project submissions.')
.command('get [id]', 'Get assignment requests.')
.command('update [project... | Clean up unused error handling. | Clean up unused error handling.
| JavaScript | mit | trolster/ur-cli,trolster/urcli,gabraganca/ur-cli | javascript | ## Code Before:
const cli = require('commander')
const pkg = require('../package')
const apiCall = require('./apiCall')
cli.name('ur-cli')
cli
.version(pkg.version).usage('<command> <args> [options]')
.command('create [projectIds]', 'Make a request to queue up for project submissions.')
.command('get [id]', 'G... |
a89e32c1f149ba3d023e03b066a967d0ff243e3a | server/lua/updateNick.lua | server/lua/updateNick.lua | --
-- Copyright 2015 Ilkka Oksanen <iao@iki.fi>
--
-- 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 app... | --
-- Copyright 2015 Ilkka Oksanen <iao@iki.fi>
--
-- 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 app... | Use lua only to track irc users | Use lua only to track irc users
| Lua | apache-2.0 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas | lua | ## Code Before:
--
-- Copyright 2015 Ilkka Oksanen <iao@iki.fi>
--
-- 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... |
c1edce660721df096c289f79f35056c191e47a81 | lib/travis/build/appliances/disable_sudo.rb | lib/travis/build/appliances/disable_sudo.rb | require 'travis/build/appliances/base'
module Travis
module Build
module Appliances
class DisableSudo < Base
MSG1 = "\nThis job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.\n"
MSG2 = "See http://docs.travis-ci.com/user/wor... | require 'travis/build/appliances/base'
module Travis
module Build
module Appliances
class DisableSudo < Base
MSG1 = "\nThis job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.\n"
MSG2 = "If you require sudo, add 'sudo: requir... | Add `sudo: required` note to container-based infra header | Add `sudo: required` note to container-based infra header
| Ruby | mit | final-ci/travis-build,Tiger66639/travis-build,akoeplinger/travis-build,akoeplinger/travis-build,lrowe/travis-build,kevmoo/travis-build,wereHamster/travis-build,Tiger66639/travis-build,Distelli/travis-build,will/travis-build,wereHamster/travis-build,Joshua-Anderson/travis-build,will/travis-build,JuliaCI/travis-build,Aci... | ruby | ## Code Before:
require 'travis/build/appliances/base'
module Travis
module Build
module Appliances
class DisableSudo < Base
MSG1 = "\nThis job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.\n"
MSG2 = "See http://docs.travis... |
83887b413c1b07107de68c70e53a1cb192cfd021 | roles/hadoop/vars/main.yml | roles/hadoop/vars/main.yml | ---
hadoop_version: "2.8.0"
hadoop_mirror: "http://apache.xl-mirror.nl/hadoop/common/"
hadoop_dir: "/data/local/hadoop"
hadoop_conf_dir: "/etc/hadoop/conf"
hadoop_src_dir: "/usr/local/src"
hadoop_usr_parent_dir: "/usr/lib" #this is the folder where the hadoop archive will be extracted
hadoop_usr_dir: "/usr/lib/hadoop"... | ---
hadoop_version: "2.8.0"
hadoop_mirror: "http://apache.xl-mirror.nl/hadoop/common/"
hadoop_dir: "/data/local/hadoop"
hadoop_conf_dir: "/etc/hadoop/conf"
hadoop_src_dir: "/usr/local/src"
hadoop_usr_parent_dir: "/usr/lib" #this is the folder where the hadoop archive will be extracted
hadoop_usr_dir: "/usr/lib/hadoop"... | Add spark and ubuntu as Hadoop users | Add spark and ubuntu as Hadoop users
| YAML | apache-2.0 | nlesc-sherlock/emma,nlesc-sherlock/emma,nlesc-sherlock/emma | yaml | ## Code Before:
---
hadoop_version: "2.8.0"
hadoop_mirror: "http://apache.xl-mirror.nl/hadoop/common/"
hadoop_dir: "/data/local/hadoop"
hadoop_conf_dir: "/etc/hadoop/conf"
hadoop_src_dir: "/usr/local/src"
hadoop_usr_parent_dir: "/usr/lib" #this is the folder where the hadoop archive will be extracted
hadoop_usr_dir: "... |
1b9641b3d0c27a587ef9b34fe055ecc3c52eb7de | .travis.yml | .travis.yml | ---
language: node_js
sudo: false
cache:
directories:
- node_modules
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test
deploy:
provider: heroku
strategy: api
buildpack: https://github.com/tonycoco/heroku-buildpack-ember-cli.git
api_key:
secure: SdUfMZVRlmaZN... | ---
language: node_js
compiler:
- gcc
node_js:
- "0.10"
before_install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
- sudo apt-get update;
- sudo apt-get install gcc-4.8 g++-4.8;
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20;
- sudo update-alternatives --instal... | Use GCC 4.8 compiler with Travis CI | Use GCC 4.8 compiler with Travis CI
| YAML | mit | liveband/liveband | yaml | ## Code Before:
---
language: node_js
sudo: false
cache:
directories:
- node_modules
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test
deploy:
provider: heroku
strategy: api
buildpack: https://github.com/tonycoco/heroku-buildpack-ember-cli.git
api_key:
secur... |
82feef7a684164e2d985368b96cf58abe86ab203 | test/projects/less-project/source/styles/style.less | test/projects/less-project/source/styles/style.less | @import "_styleguide_variables";
@test-variable: 10px;
// First section
//
// Markup:
// <div class="section">Section markup</div>
//
// Styleguide 1.0
.section {
color: @color-red;
}
.section:hover {
color: @color-green;
}
.section:active {
color: @color-blue;
}
// Section with modifiers
//
// $color-red - ... | @import "_styleguide_variables";
@test-variable: 10px;
// First section
//
// Markup:
// <div class="section">Section markup</div>
//
// Styleguide 1.0
.section {
color: @color-red;
}
.section:hover {
color: @color-green;
}
.section:active {
color: @color-blue;
}
// Section with modifiers
//
// $color-red - ... | Remove extra sections from LESS test project | Remove extra sections from LESS test project
| Less | mit | varya/sc5-styleguide,soulfresh/sc5-styleguide,junaidrsd/sc5-styleguide,junaidrsd/sc5-styleguide,SC5/sc5-styleguide,varya/sc5-styleguide,patriziosotgiu/sc5-styleguide,SC5/sc5-styleguide,soulfresh/sc5-styleguide,patriziosotgiu/sc5-styleguide | less | ## Code Before:
@import "_styleguide_variables";
@test-variable: 10px;
// First section
//
// Markup:
// <div class="section">Section markup</div>
//
// Styleguide 1.0
.section {
color: @color-red;
}
.section:hover {
color: @color-green;
}
.section:active {
color: @color-blue;
}
// Section with modifiers
//
... |
826b9e1b91b82b7b8b33bbdad6083d1618d248ec | bower.json | bower.json | {
"name": "delite",
"version": "0.1.7-dev",
"dependencies": {
"dcl": "1.1.x",
"decor": "#master",
"dojo": ">=1.9.1",
"dpointer": ">=0.1.0-dev",
"requirejs": "2.1.x",
"requirejs-domready": ">=2.0.1",
"requirejs-dplugins": ">=0.2.2-dev",
"requirejs-text": ">=2.0.11",
"decor": "#master"
},
"devDepen... | {
"name": "delite",
"version": "0.1.7-dev",
"dependencies": {
"dcl": "1.1.x",
"decor": "#master",
"dojo": ">=1.9.1",
"dpointer": ">=0.1.0-dev",
"requirejs": "2.1.x",
"requirejs-domready": ">=2.0.1",
"requirejs-dplugins": ">=0.2.2-dev",
"requirejs-text": ">=2.0.11"
},
"devDependencies": {
"dstore"... | Remove duplicated dependency on decor | Remove duplicated dependency on decor
| JSON | bsd-3-clause | kitsonk/delite,harbalk/delite,Sam-Cummins/delite,harbalk/delite,kitsonk/delite,Sam-Cummins/delite | json | ## Code Before:
{
"name": "delite",
"version": "0.1.7-dev",
"dependencies": {
"dcl": "1.1.x",
"decor": "#master",
"dojo": ">=1.9.1",
"dpointer": ">=0.1.0-dev",
"requirejs": "2.1.x",
"requirejs-domready": ">=2.0.1",
"requirejs-dplugins": ">=0.2.2-dev",
"requirejs-text": ">=2.0.11",
"decor": "#master... |
b9914eb30a009af6ae7bf1bc7b3f28598bfbed39 | conda/faiss/meta.yaml | conda/faiss/meta.yaml | package:
name: faiss-cpu
version: "{{ FAISS_BUILD_VERSION }}"
source:
git_url: ../../
requirements:
build:
- {{ compiler('cxx') }}
- llvm-openmp # [osx]
- setuptools
- swig
host:
- python {{ python }}
- intel-openmp # [osx]
- numpy 1.11.*
- mkl >=2018
run:
- python {{... | package:
name: faiss-cpu
version: "{{ FAISS_BUILD_VERSION }}"
source:
git_url: ../../
requirements:
build:
- {{ compiler('cxx') }}
- python {{ python }}
- llvm-openmp # [osx]
- setuptools
- swig
- mkl >=2018
host:
- python {{ python }}
- intel-openmp # [osx]
- numpy 1.11... | Fix conda packages build reqs. | Fix conda packages build reqs.
| YAML | mit | facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss,facebookresearch/faiss | yaml | ## Code Before:
package:
name: faiss-cpu
version: "{{ FAISS_BUILD_VERSION }}"
source:
git_url: ../../
requirements:
build:
- {{ compiler('cxx') }}
- llvm-openmp # [osx]
- setuptools
- swig
host:
- python {{ python }}
- intel-openmp # [osx]
- numpy 1.11.*
- mkl >=2018
run:... |
e93f2b8dc148ec795e5c99ca5751b9501c8a3b9f | .github/workflows/javalib.yml | .github/workflows/javalib.yml | name: Java Lib CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
... | name: Java Lib CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- nam... | Create dummy gradle.properties for CI | Create dummy gradle.properties for CI | YAML | mit | simonpoole/OpeningHoursParser | yaml | ## Code Before:
name: Java Lib CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Bu... |
5788ffd548b436e3d11b7075dfed390826ff98b2 | lib/Devel/Cover/Report/Codecov/Service/Snap.pm | lib/Devel/Cover/Report/Codecov/Service/Snap.pm | package Devel::Cover::Report::Codecov::Service::Snap;
use strict;
use warnings;
use utf8;
sub detect {
return $ENV{SNAP_CI};
}
sub configuration {
return {
service => 'snap',
build => $ENV{SNAP_PIPELINE_COUNTER},
commit => $ENV{SNAP_COMMIT} // $ENV{SNAP_UPSTREAM_COMMI... | package Devel::Cover::Report::Codecov::Service::Snap;
use strict;
use warnings;
use utf8;
sub detect {
return $ENV{SNAP_CI};
}
sub configuration {
my $commit = defined $ENV{SNAP_COMMIT} ? $ENV{SNAP_COMMIT} : $ENV{SNAP_UPSTREAM_COMMIT};
my $branch = defined $ENV{SNAP_BRANCH} ? $ENV{SNAP_BRANCH} : $ENV{SNAP... | Fix bug (remove // expr) | Fix bug (remove // expr)
| Perl | mit | pine613/codecov-perl,codecov/codecov-perl,pine613/codecov-perl,codecov/codecov-perl,pine613/codecov-perl | perl | ## Code Before:
package Devel::Cover::Report::Codecov::Service::Snap;
use strict;
use warnings;
use utf8;
sub detect {
return $ENV{SNAP_CI};
}
sub configuration {
return {
service => 'snap',
build => $ENV{SNAP_PIPELINE_COUNTER},
commit => $ENV{SNAP_COMMIT} // $ENV{SNA... |
82ea7227a4cfc12f2986513a2470de9980f809f6 | .travis.yml | .travis.yml | language: generic
sudo: required
script: swift test
matrix:
include:
- os: osx
osx_image: xcode9
- os: linux
dist: trusty
install:
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.0-RELEASE-u... | language: generic
sudo: required
script: swift test
matrix:
include:
- os: osx
osx_image: xcode11
- os: linux
dist: trusty
install:
- wget https://swift.org/builds/swift-5.1.3-release/ubuntu1404/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-5.1.3-... | Test against Swift 5 with Travis CI | Test against Swift 5 with Travis CI
| YAML | mit | Bouke/DNS | yaml | ## Code Before:
language: generic
sudo: required
script: swift test
matrix:
include:
- os: osx
osx_image: xcode9
- os: linux
dist: trusty
install:
- wget https://swift.org/builds/swift-4.0-release/ubuntu1404/swift-4.0-RELEASE/swift-4.0-RELEASE-ubuntu14.04.tar.gz
- tar xzf swi... |
cc917a0753b50779c84f5f5e075b455d3859da75 | salt/roots/salt/multimedia/medibuntu/init.sls | salt/roots/salt/multimedia/medibuntu/init.sls | {%if grains['os'] == 'Ubuntu' %}
include:
- medibuntu.apt
medibuntu:
pkg:
- latest
- names:
- non-free-codecs
- libdvdcss2
- require:
- cmd: apt-update
{% endif %}
| {%if grains['os'] == 'Ubuntu' %}
include:
- multimedia.medibuntu.apt
medibuntu:
pkg:
- latest
- names:
- non-free-codecs
- libdvdcss2
- require:
- cmd: apt-update
{% endif %}
| Fix package include path for medibuntu. | Fix package include path for medibuntu.
| SaltStack | mit | tony/salt-states-configs,tony/salt-states-configs | saltstack | ## Code Before:
{%if grains['os'] == 'Ubuntu' %}
include:
- medibuntu.apt
medibuntu:
pkg:
- latest
- names:
- non-free-codecs
- libdvdcss2
- require:
- cmd: apt-update
{% endif %}
## Instruction:
Fix package include path for medibuntu.
## Code After:
{%if grains['os'] == 'Ubuntu' %... |
5f1eeaf8e69ec187e85491b94059b83ebca5aabd | app/controllers/gobierto_budgets/budget_lines_controller.rb | app/controllers/gobierto_budgets/budget_lines_controller.rb | module GobiertoBudgets
class BudgetLinesController < GobiertoBudgets::ApplicationController
layout :choose_layout
before_action :load_params
def show
end
def feedback
@question_id = params[:question_id].to_i
render_404 and return unless [1,2].include?(@question_id)
render 'sho... | module GobiertoBudgets
class BudgetLinesController < GobiertoBudgets::ApplicationController
layout :choose_layout
before_action :load_params
def show
end
def feedback
@question_id = params[:question_id].to_i
render_404 and return unless [1,2].include?(@question_id)
render 'sho... | Fix redirect for level 4 category | Fix redirect for level 4 category
| Ruby | agpl-3.0 | PopulateTools/gobierto-comparador-presupuestos,PopulateTools/gobierto-comparador-presupuestos,PopulateTools/gobierto-comparador-presupuestos,PopulateTools/gobierto-comparador-presupuestos | ruby | ## Code Before:
module GobiertoBudgets
class BudgetLinesController < GobiertoBudgets::ApplicationController
layout :choose_layout
before_action :load_params
def show
end
def feedback
@question_id = params[:question_id].to_i
render_404 and return unless [1,2].include?(@question_id)
... |
bfd8d1126e771702dfe4869923927b8f4fb81ef1 | openstack/tests/functional/network/v2/test_extension.py | openstack/tests/functional/network/v2/test_extension.py |
import six
from openstack.tests.functional import base
class TestExtension(base.BaseFunctionalTest):
def test_list_and_find(self):
extensions = list(self.conn.network.extensions())
self.assertGreater(len(extensions), 0)
for ext in extensions:
self.assertIsInstance(ext.name,... |
import six
from openstack.tests.functional import base
class TestExtension(base.BaseFunctionalTest):
def test_list_and_find(self):
extensions = list(self.conn.network.extensions())
self.assertGreater(len(extensions), 0)
for ext in extensions:
self.assertIsInstance(ext.name,... | Remove namespace from network ext test | Remove namespace from network ext test
Change-Id: Id9b97d67ac6745fe962a76ccd9c0e4f7cbed4a89
| Python | apache-2.0 | mtougeron/python-openstacksdk,briancurtin/python-openstacksdk,stackforge/python-openstacksdk,stackforge/python-openstacksdk,dudymas/python-openstacksdk,dtroyer/python-openstacksdk,dtroyer/python-openstacksdk,mtougeron/python-openstacksdk,briancurtin/python-openstacksdk,openstack/python-openstacksdk,openstack/python-ope... | python | ## Code Before:
import six
from openstack.tests.functional import base
class TestExtension(base.BaseFunctionalTest):
def test_list_and_find(self):
extensions = list(self.conn.network.extensions())
self.assertGreater(len(extensions), 0)
for ext in extensions:
self.assertIsIn... |
fd045c4353fd897c886822844a0b4ad68419bc9d | .jshint.airbnb.json | .jshint.airbnb.json | {
"browser": true,
"jquery": true,
"node": true,
"esnext": true,
"camelcase": true,
"eqeqeq": true,
"indent": 2,
"latedef": true,
"maxlen": 80,
"newcap": true,
"quotmark": "single",
"strict": true,
"undef": true,
"unused": true,
"eqnull": true
} | {
"browser": true,
"jquery": true,
"node": true,
"jasmine": true,
"mocha": true,
"esnext": true,
"camelcase": true,
"eqeqeq": true,
"indent": 2,
"latedef": true,
"maxlen": 80,
"newcap": true,
"quotmark": "single",
"strict": true,
"undef": true,
"unused": true,
"eqnull": true
} | Add jasmine and mocha to jshint conf | Add jasmine and mocha to jshint conf
| JSON | mit | MitocGroup/deep-microservices-todo-app,MitocGroup/deep-microservices-todo-app,MitocGroup/deep-microservices-todo-app,MitocGroup/deep-microservices-todomvc,MitocGroup/deep-microservices-todomvc,MitocGroup/deep-microservices-todomvc,MitocGroup/deep-microservices-todomvc | json | ## Code Before:
{
"browser": true,
"jquery": true,
"node": true,
"esnext": true,
"camelcase": true,
"eqeqeq": true,
"indent": 2,
"latedef": true,
"maxlen": 80,
"newcap": true,
"quotmark": "single",
"strict": true,
"undef": true,
"unused": true,
"eqnull": true
}
## Instruction:
Add jasmine ... |
887bee6ff3200cb11c6983b09f446ae054684aef | articles/_posts/2009-09-01-hsl-rgb-and-alpha-transparency.md | articles/_posts/2009-09-01-hsl-rgb-and-alpha-transparency.md | ---
title: Color in Opera 10 — HSL, RGB and Alpha Transparency
authors:
- molly-holzschlag
layout: article
--- | ---
title: Color in Opera 10 — HSL, RGB and Alpha Transparency
authors:
- molly-holzschlag
intro: 'This guide explains how the RGB (Red, Green, Blue) and HSL (Hue, Saturation, Lightness) color models work, and how web designers can make clever use of them in CSS to improve their designs, and make more logical color sch... | Add intro for article “Color in Opera 10 — HSL, RGB and Alpha Transparency” | Add intro for article “Color in Opera 10 — HSL, RGB and Alpha Transparency”
Ref. #19.
| Markdown | apache-2.0 | Jasenpan1987/devopera,initaldk/devopera,Jasenpan1987/devopera,operasoftware/devopera,shwetank/devopera,simevidas/devopera,payeldillip/devopera,erikmaarten/devopera,michaelstewart/devopera,operasoftware/devopera,erikmaarten/devopera,Jasenpan1987/devopera,initaldk/devopera,Mtmotahar/devopera,michaelstewart/devopera,pauli... | markdown | ## Code Before:
---
title: Color in Opera 10 — HSL, RGB and Alpha Transparency
authors:
- molly-holzschlag
layout: article
---
## Instruction:
Add intro for article “Color in Opera 10 — HSL, RGB and Alpha Transparency”
Ref. #19.
## Code After:
---
title: Color in Opera 10 — HSL, RGB and Alpha Transparency
authors:
- ... |
55d6db4013930bd3731425ef1d5334cb81c9482c | views/widgets/menu.blade.php | views/widgets/menu.blade.php | <div class="navbar">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target="#cellonav">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{ HTML::link(handles('orchestra::manages/melody.them... | @section('melody::primary_menu')
<ul class="nav">
<li class="{{ URI::is('*/manages/melody.themes/frontend*') ? 'active' : '' }}">
{{ HTML::link(handles('orchestra::manages/melody.themes/frontend'), 'Frontend') }}
</li>
<li class="{{ URI::is('*/manages/melody.themes/backend*') ? 'active' : '' }}">
{{ HTML::link(h... | Update navigation to use Orchestra\Decorator::navbar() | Update navigation to use Orchestra\Decorator::navbar()
Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
| PHP | mit | orchestral/melody | php | ## Code Before:
<div class="navbar">
<div class="navbar-inner">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target="#cellonav">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{ HTML::link(handles('orchestra::man... |
df342fe730d44c0141bd169d90df7202f0d3a571 | app.js | app.js | 'use strict';
/**
* Module dependencies.
*/
const express = require('express');
const compression = require('compression');
const bodyParser = require('body-parser');
const router = require('./routes/routes');
/**
* Express configuration.
*/
const app = express();
app.use(compression());
// pars... | 'use strict';
/**
* Module dependencies.
*/
const express = require('express');
const compression = require('compression');
const bodyParser = require('body-parser');
const router = require('./routes/routes');
/**
* Express configuration.
*/
const app = express();
app.use(compression());
// pars... | Update error function to arrow function | Update error function to arrow function
| JavaScript | mit | lostatseajoshua/Challenger | javascript | ## Code Before:
'use strict';
/**
* Module dependencies.
*/
const express = require('express');
const compression = require('compression');
const bodyParser = require('body-parser');
const router = require('./routes/routes');
/**
* Express configuration.
*/
const app = express();
app.use(compress... |
4fcc489ad3c8e6c61778d7be6949d7bbef4c8ad5 | tests/validators/format/alpha.js | tests/validators/format/alpha.js | // Load dependencies
var amanda = require('../../../src/amanda.js');
/**
* Test #1
*/
exports['Test #1'] = function(test) {
var count = 0;
var schema = {
required: true,
format: 'alpha'
};
[
'abc',
'ABC',
'Abc',
'aBc'
].forEach(function(data) {
amanda.validate(data, schema, f... | // Load dependencies
var amanda = require('../../../dist/latest.js');
/**
* Test #1
*/
exports['Test #1'] = function(test) {
var count = 0;
var schema = {
required: true,
format: 'alpha'
};
[
'abc',
'ABC',
'Abc',
'aBc'
].forEach(function(data) {
amanda.validate(data, schema, ... | Update the path to Amanda in the ‘amanda.js’ file | Update the path to Amanda in the ‘amanda.js’ file
| JavaScript | mit | apiaryio/Amanda,apiaryio/Amanda,Baggz/Amanda | javascript | ## Code Before:
// Load dependencies
var amanda = require('../../../src/amanda.js');
/**
* Test #1
*/
exports['Test #1'] = function(test) {
var count = 0;
var schema = {
required: true,
format: 'alpha'
};
[
'abc',
'ABC',
'Abc',
'aBc'
].forEach(function(data) {
amanda.validate... |
fbf012325a24f3b86fc54fd9a47a42172249c120 | app/views/layouts/application.html.haml | app/views/layouts/application.html.haml | !!!
%html
%head
%title Welcome to Funnies!
= stylesheet_link_tag :all
= javascript_include_tag :defaults
= csrf_meta_tag
%body
= yield
| !!!
%html
%head
%title Welcome to Funnies!
= stylesheet_link_tag :all
= javascript_include_tag :defaults
= csrf_meta_tag
%body
- if flash[:notice] || flash[:alert]
%div{:class => "notice #{'alert' if flash[:alert]}"}
= flash[:notice] || flash[:alert]
#header.group
#header... | Update app layout, use flashes and account info | Update app layout, use flashes and account info
| Haml | apache-2.0 | martinisoft/funnies,martinisoft/funnies | haml | ## Code Before:
!!!
%html
%head
%title Welcome to Funnies!
= stylesheet_link_tag :all
= javascript_include_tag :defaults
= csrf_meta_tag
%body
= yield
## Instruction:
Update app layout, use flashes and account info
## Code After:
!!!
%html
%head
%title Welcome to Funnies!
= styleshee... |
48754bb1c7ca83163091da61f07abca7cbc5e37e | ophir-core/src/main/scala/ophir/search/Search.scala | ophir-core/src/main/scala/ophir/search/Search.scala | package ophir.search
import ophir.model.Def
import ophir.db.DefRepo
import ophir.parser.SigParser
object Search {
type Result = Either[String, Iterator[Def]]
private val mixedRegex = """^([^\:]+)\:(.+)$""".r
def find(query: String): Result = query match {
case mixedRegex(text, tpe) => MixedEngine find (t... | package ophir.search
import ophir.model.Def
import ophir.db.DefRepo
import ophir.parser.SigParser
object Search {
type Result = Either[String, Iterator[Def]]
private val mixedRegex = """^([^\:]*)\:(.+)$""".r
def find(query: String): Result = query match {
case mixedRegex("", tpe) => TypeEngine find tpe
... | Fix searches starting with ":" | Fix searches starting with ":"
| Scala | mit | ornicar/scalex,kzys/scalex | scala | ## Code Before:
package ophir.search
import ophir.model.Def
import ophir.db.DefRepo
import ophir.parser.SigParser
object Search {
type Result = Either[String, Iterator[Def]]
private val mixedRegex = """^([^\:]+)\:(.+)$""".r
def find(query: String): Result = query match {
case mixedRegex(text, tpe) => Mix... |
ba562b89fd8da5f91b7b40a2c43c5f91b90af437 | rakefile.rb | rakefile.rb | DOMAIN = 'code2d.net'.freeze
REGION = 'us-east-1'.freeze
TERRAFORM_VARS = "-var domain=#{DOMAIN} -var region=#{REGION}".freeze
task :build do
cd 'app' do
sh 'rake build'
end
end
task :deploy do
sh 'terraform init'
sh 'terraform get'
sh "terraform apply #{TERRAFORM_VARS}"
cd 'app' do
sh "BUCKET=#... | DOMAIN = 'code2d.net'.freeze
REGION = 'us-east-1'.freeze
TERRAFORM_VARS = "-var domain=#{DOMAIN} -var region=#{REGION}".freeze
task :build do
cd 'app' do
sh 'rake build'
end
end
task :deploy do
sh 'terraform init'
sh 'terraform get'
sh "terraform apply #{TERRAFORM_VARS}"
cd 'app' do
sh "BUCKET=#... | Update name servers on deployment | Update name servers on deployment
| Ruby | mit | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | ruby | ## Code Before:
DOMAIN = 'code2d.net'.freeze
REGION = 'us-east-1'.freeze
TERRAFORM_VARS = "-var domain=#{DOMAIN} -var region=#{REGION}".freeze
task :build do
cd 'app' do
sh 'rake build'
end
end
task :deploy do
sh 'terraform init'
sh 'terraform get'
sh "terraform apply #{TERRAFORM_VARS}"
cd 'app' do
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.