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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
74215b034173a8554730557b4a6596f3ae62771c | spec/integration/admin/authorization_spec.rb | spec/integration/admin/authorization_spec.rb | require 'spec_helper'
describe "Admin panel, authorization" do
before do
create_page!(:root)
end
def assert_denied_access
visit "/context/admin"
assert_seen("You must be an admin to access that area.")
page.current_url.should eql("http://www.example.com/")
end
context "anonymous user" do
... | require 'spec_helper'
describe "Admin panel, authorization" do
before do
create_page!(:root)
end
def assert_denied_access
visit context_admin_root_path
assert_seen("You must be an admin to access that area.")
page.current_url.should eql("http://www.example.com/")
end
context "anonymous user... | Switch to using URL helper rather than hardcoded path | Switch to using URL helper rather than hardcoded path
| Ruby | mit | reinteractive/context,reinteractive/context | ruby | ## Code Before:
require 'spec_helper'
describe "Admin panel, authorization" do
before do
create_page!(:root)
end
def assert_denied_access
visit "/context/admin"
assert_seen("You must be an admin to access that area.")
page.current_url.should eql("http://www.example.com/")
end
context "anony... |
9069c542767acf9e2117c6b8aacf9263c6abda09 | package.json | package.json | {
"name": "combokeys",
"version": "1.4.6",
"description": "Simple library for handling keyboard shortcuts",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "grunt mocha"
},
"repository": {
"type": "git",
"url": "git://github.com/ccampbell/mousetrap.git"
}... | {
"name": "combokeys",
"version": "1.4.6",
"description": "Simple library for handling keyboard shortcuts",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "grunt mocha"
},
"repository": {
"type": "git",
"url": "git://github.com/ccampbell/mousetrap.git"
}... | Add Zuul and PhantomJS to dev env. | Add Zuul and PhantomJS to dev env.
| JSON | apache-2.0 | PolicyStat/combokeys | json | ## Code Before:
{
"name": "combokeys",
"version": "1.4.6",
"description": "Simple library for handling keyboard shortcuts",
"main": "index.js",
"directories": {
"test": "tests"
},
"scripts": {
"test": "grunt mocha"
},
"repository": {
"type": "git",
"url": "git://github.com/ccampbell/mo... |
f812c0af39c5affbb6718639a950e598237ac2f7 | README.md | README.md |
Display the list of functions/methods in the editor via `cmd-r` in Atom.
If your project has a `tags`/`.tags`/`TAGS`/`.TAGS` file at the root then
following are supported:
* `cmd-shift-r` to view all function/methods in the project
* `ctrl-alt-down` to jump to the declaration of the method/function under
th... |
Display the list of functions/methods in the editor via `cmd-r` in Atom.
If your project has a `tags`/`.tags`/`TAGS`/`.TAGS` file at the root then
following are supported:
* `cmd-r` to view all function/methods in the current file
* `cmd-shift-r` to view all function/methods in the project
* `ctrl-alt-down` ... | Add missing keybindings to the readme | Add missing keybindings to the readme | Markdown | mit | spencerlyon2/symbols-view,changjej/symbols-view,atom/symbols-view,kainwinterheart/symbols-view,rodumani/symbols-view,changjej/symbols-view,spencerlyon2/symbols-view,rodumani/symbols-view | markdown | ## Code Before:
Display the list of functions/methods in the editor via `cmd-r` in Atom.
If your project has a `tags`/`.tags`/`TAGS`/`.TAGS` file at the root then
following are supported:
* `cmd-shift-r` to view all function/methods in the project
* `ctrl-alt-down` to jump to the declaration of the method/funct... |
415827e2760b1a1970df71afc320de3fd1594fba | .github/workflows/build-ab.yml | .github/workflows/build-ab.yml | name: build ab
on:
- push
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential cmake libfmt-dev python3-pip ninja-build ragel
sudo pip install pyyaml jinja2
- name: chec... | name: build ab
on:
- push
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential cmake libfmt-dev python3-pip ninja-build ragel
sudo pip install pyyaml jinja2
- name: chec... | Remove verbose option from ninja | Remove verbose option from ninja
Signed-off-by: Robert Young <42c59959a3f4413d6a1b4d7b4f99db457d199e49@gmail.com>
| YAML | apache-2.0 | ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab,ab-vm/ab | yaml | ## Code Before:
name: build ab
on:
- push
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential cmake libfmt-dev python3-pip ninja-build ragel
sudo pip install pyyaml jinja2
... |
60ff0ed354e0e2d9bffe464e3216ca7b3211cede | hack/build-func-tests.sh | hack/build-func-tests.sh |
set -e
source hack/common.sh
source hack/config.sh
mkdir -p "${TESTS_OUT_DIR}/tests"
bazel run \
:build-ginkgo -- ${TESTS_OUT_DIR}/ginkgo
bazel run \
:build-functests -- ${TESTS_OUT_DIR}/tests.test
bazel run \
:build-junit-merger -- ${TESTS_OUT_DIR}/junit-merger
|
set -e
source hack/common.sh
source hack/config.sh
rm -rf "${TESTS_OUT_DIR}"
mkdir -p "${TESTS_OUT_DIR}"
bazel run \
:build-ginkgo -- ${TESTS_OUT_DIR}/ginkgo
bazel run \
:build-functests -- ${TESTS_OUT_DIR}/tests.test
bazel run \
:build-junit-merger -- ${TESTS_OUT_DIR}/junit-merger
| Make `make build-functest` work without nested bazel invocation | Make `make build-functest` work without nested bazel invocation
Signed-off-by: Roman Mohr <6da0130c5aeef94e5bbaabadbf8017270be25c64@redhat.com>
| Shell | apache-2.0 | kubevirt/kubevirt,kubevirt/kubevirt,kubevirt/kubevirt,stu-gott/kubevirt,davidvossel/kubevirt,stu-gott/kubevirt,davidvossel/kubevirt,stu-gott/kubevirt,stu-gott/kubevirt,davidvossel/kubevirt,davidvossel/kubevirt,kubevirt/kubevirt | shell | ## Code Before:
set -e
source hack/common.sh
source hack/config.sh
mkdir -p "${TESTS_OUT_DIR}/tests"
bazel run \
:build-ginkgo -- ${TESTS_OUT_DIR}/ginkgo
bazel run \
:build-functests -- ${TESTS_OUT_DIR}/tests.test
bazel run \
:build-junit-merger -- ${TESTS_OUT_DIR}/junit-merger
## Instruction:
Make `mak... |
647a572104ac18596a363add5a94ac9d251fa20e | circle.yml | circle.yml | machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
override:
- docker version
- docker info
- scripts/buildSupportedImages.sh
test:
override:
- scripts/testImage.sh latest 8090
- scrip... | machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
override:
- docker version
- docker info
- export TEST_JENKINS_VERSION=1.647
- export TEST_JENKINS_STABLE_VERSION=1.642.1
- scripts/buil... | Build fix missing environment variable. | Build fix missing environment variable.
| YAML | mit | blacklabelops/jenkins | yaml | ## Code Before:
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
override:
- docker version
- docker info
- scripts/buildSupportedImages.sh
test:
override:
- scripts/testImage.sh latest ... |
b27d88bed374107c6261dda51139d760bf17208b | Twig/TwigExtensions.php | Twig/TwigExtensions.php | <?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(
'va... | <?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(
'va... | Refactor deprecated Twig_Function_Method to Twig_SimpleFunction | Refactor deprecated Twig_Function_Method to Twig_SimpleFunction
| PHP | mit | marcaube/ObCmsBundle,marcaube/ObCmsBundle | php | ## Code Before:
<?php
namespace Ob\CmsBundle\Twig;
class TwigExtensions extends \Twig_Extension
{
private $configs;
/**
* @param array $configs
*/
public function __construct($configs)
{
$this->configs = $configs;
}
public function getFunctions()
{
return array(... |
e842d3ccb51cc5a7feb0f2d573ce6f22330b4f46 | packages/update-modules/update-modules_1.0.bb | packages/update-modules/update-modules_1.0.bb | SECTION = "base"
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26", "module-init-tools-depmod","modutils-depmod",d)} "
PR = "r5"
SRC_URI = "file://update-modules"
pkg_postinst() {
if [ "x$D" != "x" ]; then
e... | SECTION = "base"
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26", "module-init-tools-depmod","modutils-depmod",d)} "
PR = "r6"
SRC_URI = "file://update-modules"
pkg_postinst() {
if [ "x$D" != "x" ]; then
e... | Insert special case work-around for a legacy corner case of a machine which supports a 2.6 kernel but is used in a distro which must use a 2.4 kernel. It's ugly, just look away now. It has the blessing of RP and hrw, however. | update-modules: Insert special case work-around for a legacy corner case of a machine which supports a 2.6 kernel but is used in a distro which must use a 2.4 kernel. It's ugly, just look away now. It has the blessing of RP and hrw, however.
| BitBake | mit | JamesAng/oe,anguslees/openembedded-android,dellysunnymtech/sakoman-oe,trini/openembedded,yyli/overo-oe,mrchapp/arago-oe-dev,JamesAng/oe,scottellis/overo-oe,Martix/Eonos,dave-billin/overo-ui-moos-auv,JrCs/opendreambox,JrCs/opendreambox,popazerty/openembedded-cuberevo,openpli-arm/openembedded,trini/openembedded,KDAB/Open... | bitbake | ## Code Before:
SECTION = "base"
DESCRIPTION = "Script to manage module configuration files"
LICENSE = "GPLv2"
PACKAGE_ARCH = "all"
RDEPENDS = "${@base_contains("MACHINE_FEATURES", "kernel26", "module-init-tools-depmod","modutils-depmod",d)} "
PR = "r5"
SRC_URI = "file://update-modules"
pkg_postinst() {
if [ "x$D" !... |
5facee21b3e6a9b798af64ef8335b8a9131d4744 | init.rb | init.rb | require "taobao_fu"
config_file = File.join(Rails.root, "config", "taobao.yml")
TaobaoFu.load(config_file) if FileTest::exists?(config_file)
| require "taobao_fu"
#Fix "couldn't parse YAML" error ruby 1.9.2/rails 3.1
require 'yaml'
YAML::ENGINE.yamler= 'syck'
config_file = File.join(Rails.root, "config", "taobao.yml")
TaobaoFu.load(config_file) if FileTest::exists?(config_file)
| Fix "couldn't parse YAML" error ruby 1.9.2/rails 3.1 | Fix "couldn't parse YAML" error ruby 1.9.2/rails 3.1 | Ruby | mit | nioteam/taobao_fu | ruby | ## Code Before:
require "taobao_fu"
config_file = File.join(Rails.root, "config", "taobao.yml")
TaobaoFu.load(config_file) if FileTest::exists?(config_file)
## Instruction:
Fix "couldn't parse YAML" error ruby 1.9.2/rails 3.1
## Code After:
require "taobao_fu"
#Fix "couldn't parse YAML" error ruby 1.9.2/rails 3.1
re... |
83f2f7b4632033b88530de412cda410be2d2d08b | learnsets-g6/README.md | learnsets-g6/README.md | Pokémon Gen 6 Learnsets Data
============================
This should be in the the following format:
[How to get the move] - [Move name]
Specifically, it should be in this order (and how to get the move *must* be
written one of these ways):
Start - [Start move]
L? - [Level-up move of unknown level]
L5 - [Level... | Pokémon Gen 6 Learnsets Data
============================
This should be in the the following format:
[How to get the move] - [Move name]
Specifically, it should be in this order (and how to get the move *must* be
written one of these ways):
Start - [Start move]
L? - [Level-up move of unknown level]
L5 - [Level... | Add Notes section for instructions | Add Notes section for instructions
| Markdown | mit | Zarel/Pokemon-Gen-6-Learnsets,Zarel/Pokemon-Gen-6-Learnsets | markdown | ## Code Before:
Pokémon Gen 6 Learnsets Data
============================
This should be in the the following format:
[How to get the move] - [Move name]
Specifically, it should be in this order (and how to get the move *must* be
written one of these ways):
Start - [Start move]
L? - [Level-up move of unknown lev... |
3500f4e7ec7ece9dcf13434ae071af87721adb37 | spec/specs/once.coffee | spec/specs/once.coffee | describe "Bacon.once", ->
describe "should send single event and end", ->
expectStreamEvents(
-> Bacon.once("pow")
["pow"])
describe "accepts an Error event as parameter", ->
expectStreamEvents(
-> Bacon.once(new Bacon.Error("oop"))
[error()])
describe "Allows wrapped events, for i... | describe "Bacon.once", ->
describe "should send single event and end", ->
expectStreamEvents(
-> Bacon.once("pow")
["pow"])
describe "accepts an Error event as parameter", ->
expectStreamEvents(
-> Bacon.once(new Bacon.Error("oop"))
[error()])
describe "Allows wrapped events, for i... | Remove use of Function::bind in specs | Remove use of Function::bind in specs | CoffeeScript | mit | baconjs/bacon.js,baconjs/bacon.js,baconjs/bacon.js,baconjs/bacon.js | coffeescript | ## Code Before:
describe "Bacon.once", ->
describe "should send single event and end", ->
expectStreamEvents(
-> Bacon.once("pow")
["pow"])
describe "accepts an Error event as parameter", ->
expectStreamEvents(
-> Bacon.once(new Bacon.Error("oop"))
[error()])
describe "Allows wrapp... |
ba104e31d3576e661c8b8db1b7e9ca5505002430 | demo/tree.ur | demo/tree.ur | sequence s
table t : { Id : int, Parent : option int, Nam : string }
PRIMARY KEY Id
open TreeFun.Make(struct
val tab = t
end)
fun row r = <xml>
#{[r.Id]}: {[r.Nam]} <a link={del r.Id}>[Delete]</a>
<form>
Add child: <textbox{#Nam}/> <submit action={add (Some r.Id)}/>
... | sequence s
table t : { Id : int, Parent : option int, Nam : string }
PRIMARY KEY Id,
CONSTRAINT F FOREIGN KEY Parent REFERENCES t (Id) ON DELETE CASCADE
open TreeFun.Make(struct
val tab = t
end)
fun row r = <xml>
#{[r.Id]}: {[r.Nam]} <a link={del r.Id}>[Delete]</a>
<fo... | Use FOREIGN KEY in Tree demo | Use FOREIGN KEY in Tree demo
| UrWeb | bsd-3-clause | urweb/debian-urweb,thinkpad20/urweb,urweb/debian-urweb,urweb/debian-urweb,urweb/debian-urweb,thinkpad20/urweb,thinkpad20/urweb,urweb/debian-urweb | urweb | ## Code Before:
sequence s
table t : { Id : int, Parent : option int, Nam : string }
PRIMARY KEY Id
open TreeFun.Make(struct
val tab = t
end)
fun row r = <xml>
#{[r.Id]}: {[r.Nam]} <a link={del r.Id}>[Delete]</a>
<form>
Add child: <textbox{#Nam}/> <submit action={add... |
89b6ffe750c70d409e5cb3c2ee35490ae7650195 | tox.ini | tox.ini | [tox]
skip_missing_interpreters = True
envlist =
py27,
py33,
py34,
py35,
py36
[testenv]
deps =
pytest-cov
-rrequirements.txt
commands =
py.test --cov dynmen {posargs}
| [tox]
skip_missing_interpreters = True
envlist =
py27,
py33,
py34,
py35,
py36
[testenv]
deps =
pytest-cov
-rrequirements.txt
commands =
py.test --cov dynmen --cov-report term-missing {posargs}
| Add cov-report term-missing to pytest | Add cov-report term-missing to pytest
| INI | mit | frostidaho/dynmen | ini | ## Code Before:
[tox]
skip_missing_interpreters = True
envlist =
py27,
py33,
py34,
py35,
py36
[testenv]
deps =
pytest-cov
-rrequirements.txt
commands =
py.test --cov dynmen {posargs}
## Instruction:
Add cov-report term-missing to pytest
## Code After:
[tox]
skip_missing_interpreters =... |
d739d9ff9687c05b0538f139a0461437c50b62e5 | js/countdown-coupon-weeks.js | js/countdown-coupon-weeks.js | jQuery(function ($) {
var endDate = new Date('$EndDate');
var template = '<span class="weeks">%w</span> <span class="text-weeks">weeks</span> <span class="days">%d</span> <span class="text-days">days</span> <span class="time">%H:%M:%S</span>';
$('.$ElementClass').countdown(endDate, function(event) {
$(this).html(e... | jQuery(function ($) {
var endDate = new Date('$EndDate');
var template = '<span class="weeks">%w</span> <span class="text-weeks">weeks</span> <span class="days">%d</span> <span class="text-days">days</span> <span class="time">%H:%M:%S</span>';
$('.$ElementClass').countdown(endDate, function(event) {
$(this).html(e... | Make use of the template variable in coupon weeks | Make use of the template variable in coupon weeks
| JavaScript | bsd-3-clause | textagroup/countdown,textagroup/countdown | javascript | ## Code Before:
jQuery(function ($) {
var endDate = new Date('$EndDate');
var template = '<span class="weeks">%w</span> <span class="text-weeks">weeks</span> <span class="days">%d</span> <span class="text-days">days</span> <span class="time">%H:%M:%S</span>';
$('.$ElementClass').countdown(endDate, function(event) {
... |
746598c50b59778fc227fd515e2b7ec01f91234d | SetupMac.sh | SetupMac.sh |
echo "1. Install Homebrew"
# "http://brew.sh/"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; echo
echo "2. Install Homebrew Cask"
# "https://caskroom.github.io/"
brew install caskroom/cask/brew-cask ; echo
if [ $? -ne 0 ] ; then
exit
fi
echo "3. Install app... |
echo "1. Install Homebrew"
# "http://brew.sh/"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; echo
echo "2. Install Homebrew Cask"
# "https://caskroom.github.io/"
brew install caskroom/cask/brew-cask ; echo
if [ $? -ne 0 ] ; then
exit
fi
echo "3. Install app... | Add command `brew cleanup -s` | Add command `brew cleanup -s`
| Shell | mit | masanori1102/SetupMac | shell | ## Code Before:
echo "1. Install Homebrew"
# "http://brew.sh/"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; echo
echo "2. Install Homebrew Cask"
# "https://caskroom.github.io/"
brew install caskroom/cask/brew-cask ; echo
if [ $? -ne 0 ] ; then
exit
fi
echo... |
b04a850f1a83e82b18b4b37e85abf18a91a27fc3 | README.md | README.md | Mjölnir Authentication Server
=============================
Abstract
--------
Mjölnir authentication is fully compatible with Yggdrasil authentication which is used by Minecraft and other Mojang apps.
However, Mjölnir is developed for replacing the authentication system of Minecraft in case you want an own authentica... | Mjölnir Authentication Server
=============================
[](https://travis-ci.org/riskawarrior/Mjolnir-Authentication-Server)
Abstract
--------
Mjölnir authentication is fully compatible with Yggdrasil authenticatio... | Build status icon is added to master branch | Build status icon is added to master branch
| Markdown | mit | riskawarrior/Mjolnir-Authentication-Server,riskawarrior/Mjolnir-Authentication-Server,riskawarrior/Mjolnir-Authentication-Server,riskawarrior/Mjolnir-Authentication-Server | markdown | ## Code Before:
Mjölnir Authentication Server
=============================
Abstract
--------
Mjölnir authentication is fully compatible with Yggdrasil authentication which is used by Minecraft and other Mojang apps.
However, Mjölnir is developed for replacing the authentication system of Minecraft in case you want a... |
f9b8e81e1b795f45354dd8d90892fd9f5e971425 | config-example.js | config-example.js | var fs = require('fs');
var splitca = require('split-ca');
module.exports = {
webServerPort: 8080,
/* MySQL config */
MySQL_Hostname: 'localhost',
MySQL_Username: 'root',
MySQL_Password: '',
MySQL_Database: 'janusvr',
/* Redis config */
redis: {
host: "127.0.0.1",
... | var fs = require('fs');
var splitca = require('split-ca');
module.exports = {
webServerPort: 8080,
/* MySQL config */
MySQL_Hostname: 'localhost',
MySQL_Username: 'root',
MySQL_Password: '',
MySQL_Database: 'janusvr',
/* Redis config */
redis: {
host: "127.0.0.1",
... | Add new config variables to example config | Add new config variables to example config
| JavaScript | mit | janusvr/janus-api,janusvr/janus-api,janusvr/janus-api | javascript | ## Code Before:
var fs = require('fs');
var splitca = require('split-ca');
module.exports = {
webServerPort: 8080,
/* MySQL config */
MySQL_Hostname: 'localhost',
MySQL_Username: 'root',
MySQL_Password: '',
MySQL_Database: 'janusvr',
/* Redis config */
redis: {
host: "12... |
2e4658a2ecc77eb7a91f9c81cf1c56a5bd854a9e | lib/adapter_extensions.rb | lib/adapter_extensions.rb | class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :establish_connection, :adapter_exte... | require 'adapter_extensions/base'
class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :... | Move this so the consumer doesn't have anything to require | Move this so the consumer doesn't have anything to require
| Ruby | mit | activewarehouse/adapter_extensions,pokka/adapter_extensions | ruby | ## Code Before:
class ActiveRecord::Base
class << self
def establish_connection_with_adapter_extensions(*args)
establish_connection_without_adapter_extensions(*args)
ActiveSupport.run_load_hooks(:active_record_connection_established, connection_pool)
end
alias_method_chain :establish_connectio... |
e637612ec1a03fb8aac823a62bbd14dcb2201ee4 | generators/app/templates/index.js | generators/app/templates/index.js | 'use strict';
module.exports = function () {};
| <% if ( !esModules ) { %>'use strict';
module.exports = function () {};<% } else { %>export default function () {};<% } %>
| Add export for ES Modules | Add export for ES Modules
| JavaScript | mit | niksy/generator-paleta,niksy/generator-paleta | javascript | ## Code Before:
'use strict';
module.exports = function () {};
## Instruction:
Add export for ES Modules
## Code After:
<% if ( !esModules ) { %>'use strict';
module.exports = function () {};<% } else { %>export default function () {};<% } %>
|
3128b46daadedb619cb80e8e556a4fc3b87e2c54 | src/com/googlecode/totallylazy/xml/XPathLookups.java | src/com/googlecode/totallylazy/xml/XPathLookups.java | package com.googlecode.totallylazy.xml;
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Mapper;
import com.googlecode.totallylazy.Xml;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
pub... | package com.googlecode.totallylazy.xml;
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Callers;
import com.googlecode.totallylazy.Mapper;
import com.googlecode.totallylazy.Xml;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import java.util.Map;
import j... | Add an accessor for easy access to lookups | Add an accessor for easy access to lookups
| Java | apache-2.0 | bodar/totallylazy,bodar/totallylazy,bodar/totallylazy | java | ## Code Before:
package com.googlecode.totallylazy.xml;
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Mapper;
import com.googlecode.totallylazy.Xml;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import java.util.Map;
import java.util.concurrent.Concurr... |
8a1f4ebeb513e1974f50bbd6c588f3707f77328e | native/SalesforceSDK/res/layout/sf__account_switcher.xml | native/SalesforceSDK/res/layout/sf__account_switcher.xml | <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/white"
android:orientation="vertical">
<RadioGroup android:id="@+id/sf__accounts... | <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/darker_gray"
android:orientation="vertical">
<RadioGroup android:id="@+id/sf__ac... | Switch to better background color | Switch to better background color
| XML | apache-2.0 | solomonronald/SalesforceMobileSDK-Android,seethaa/force_analytics_example,seethaa/force_analytics_example,seethaa/force_analytics_example,kchitalia/SalesforceMobileSDK-Android,kchitalia/SalesforceMobileSDK-Android,solomonronald/SalesforceMobileSDK-Android,solomonronald/SalesforceMobileSDK-Android,kchitalia/SalesforceMo... | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/white"
android:orientation="vertical">
<RadioGroup android:id="@... |
640f4211c8786333110bdc05e8e303d23df6e189 | ajax/libs/jquery.textcomplete/package.json | ajax/libs/jquery.textcomplete/package.json | {
"name": "jquery.textcomplete",
"npmName": "jquery-textcomplete",
"npmFileMap": [
{
"basePath": "/",
"files": [
"jquery.*"
]
}
],
"filename": "jquery.textcomplete.min.js",
"version": 0,
"description": "Introduce autocompleting power to textareas, like GitHub comment form... | {
"name": "jquery.textcomplete",
"npmName": "jquery-textcomplete",
"filename": "jquery.textcomplete.min.js",
"version": 0,
"description": "Introduce autocompleting power to textareas, like GitHub comment forms have.",
"homepage": "http://yuku-t.com/jquery-textcomplete/",
"keywords": [
"jquery.textco... | Remove npm update from jquery.textcomplete | Remove npm update from jquery.textcomplete
Keeps breaking build.
| JSON | mit | XVicarious/cdnjs,kitcambridge/cdnjs,Rich-Harris/cdnjs,jozefizso/cdnjs,RobLoach/cdnjs,ComputerWolf/cdnjs,kenwheeler/cdnjs,tomalec/cdnjs,brunoksato/cdnjs,bevacqua/cdnjs,joeylakay/cdnjs,brunoksato/cdnjs,askehansen/cdnjs,SimeonC/cdnjs,HealthIndicators/cdnjs,gabel/cdnjs,peteygao/cdnjs,hristozov/cdnjs,szimek/cdnjs,rwjblue/cd... | json | ## Code Before:
{
"name": "jquery.textcomplete",
"npmName": "jquery-textcomplete",
"npmFileMap": [
{
"basePath": "/",
"files": [
"jquery.*"
]
}
],
"filename": "jquery.textcomplete.min.js",
"version": 0,
"description": "Introduce autocompleting power to textareas, like Git... |
d5c7ca6a6434a8d85ff766f8c190fb93f6d4df26 | static/src/store/mainReducer.js | static/src/store/mainReducer.js | import { combineReducers } from 'redux';
import audio from '../containers/Audio/reducer';
import midi from '../containers/Midi/reducer';
import login from '../containers/Login/reducer';
import map from '../containers/Map/reducer';
import messagesBox from '../containers/MessagesBox/reducer';
import metronome from '../co... | import { combineReducers } from 'redux';
import audio from '../containers/Audio/reducer';
import midi from '../containers/Midi/reducer';
import login from '../containers/Login/reducer';
import map from '../containers/Map/reducer';
import messagesBox from '../containers/MessagesBox/reducer';
import metronome from '../co... | Add sessions reducer to main reducer | Add sessions reducer to main reducer
| JavaScript | mit | ffont/freesound-explorer,ffont/freesound-explorer,ffont/freesound-explorer | javascript | ## Code Before:
import { combineReducers } from 'redux';
import audio from '../containers/Audio/reducer';
import midi from '../containers/Midi/reducer';
import login from '../containers/Login/reducer';
import map from '../containers/Map/reducer';
import messagesBox from '../containers/MessagesBox/reducer';
import metro... |
5638ae86dee534c06ec3ffb5d6adaa094665e9c2 | launchd.prog.mk | launchd.prog.mk |
CFLAGS+=-Werror -I${PWD}/../src -I${PWD}/../liblaunch
.include <bsd.prog.mk>
|
CFLAGS+=-Werror -g -I${PWD}/../src \
-I${PWD}/../liblaunch \
-I/usr/local/include
.include <bsd.prog.mk>
| Add /usr/local/include to all Makefiles, god place to pick up uuid/uuid.h | Add /usr/local/include to all Makefiles, god place to pick up uuid/uuid.h
| Makefile | apache-2.0 | freebsd/openlaunchd,freebsd/openlaunchd,freebsd/openlaunchd | makefile | ## Code Before:
CFLAGS+=-Werror -I${PWD}/../src -I${PWD}/../liblaunch
.include <bsd.prog.mk>
## Instruction:
Add /usr/local/include to all Makefiles, god place to pick up uuid/uuid.h
## Code After:
CFLAGS+=-Werror -g -I${PWD}/../src \
-I${PWD}/../liblaunch \
-I/usr/local/include
.include <bsd.prog.mk>
|
0a41f75b9abbae6ae17c8b02249f7b5460f09a1c | www/templates/default/html/EventListing/Month.tpl.php | www/templates/default/html/EventListing/Month.tpl.php | <ul class="month-day-listing">
<?php
foreach ($context as $e) {
//Start building an array of row classes
$classes = array('event');
if ($e->isAllDay()) {
$classes[] = 'all-day';
}
if ($e->isInProgress()) {
$classes[] = 'in-progress';
}
if ($e->isOnGoing()) {
$class... | <a href="<?php echo $context->getURL(); ?>"><?php echo $context->getDateTime()->format('j')?></a>
<ul class="month-day-listing">
<?php
foreach ($context as $e) {
//Start building an array of row classes
$classes = array('event');
if ($e->isAllDay()) {
$classes[] = 'all-day';
}
if ($e->isIn... | Add a link to the day | Add a link to the day
| PHP | bsd-3-clause | unl/UNL_UCBCN_System,unl/UNL_UCBCN_System,unl/UNL_UCBCN_System,unl/UNL_UCBCN_System,unl/UNL_UCBCN_System | php | ## Code Before:
<ul class="month-day-listing">
<?php
foreach ($context as $e) {
//Start building an array of row classes
$classes = array('event');
if ($e->isAllDay()) {
$classes[] = 'all-day';
}
if ($e->isInProgress()) {
$classes[] = 'in-progress';
}
if ($e->isOnGoing()) ... |
06fd5e08d3c38b35f6916e180e2d5f3ee1ac561d | nuxeo-platform-forum-core/src/main/resources/OSGI-INF/forum-schemas-contrib.xml | nuxeo-platform-forum-core/src/main/resources/OSGI-INF/forum-schemas-contrib.xml | <?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.forum.coreTypes">
<require>org.nuxeo.ecm.core.schema.TypeService</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
<schema name="thread" src="schemas/thread.xsd"/>
<schema name="post" src="schemas/post.xsd"/>
... | <?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.forum.coreTypes">
<require>org.nuxeo.ecm.core.schema.TypeService</require>
<require>org.nuxeo.ecm.core.CoreExtensions</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
<schema name="thread" src="schemas/thread.xs... | Add missing dependency on core for forum schemas definitions | Add missing dependency on core for forum schemas definitions
| XML | lgpl-2.1 | deadcyclo/nuxeo-features,bjalon/nuxeo-features,bjalon/nuxeo-features,bjalon/nuxeo-features,deadcyclo/nuxeo-features,bjalon/nuxeo-features,deadcyclo/nuxeo-features,deadcyclo/nuxeo-features,nuxeo-archives/nuxeo-features,bjalon/nuxeo-features,nuxeo-archives/nuxeo-features,bjalon/nuxeo-features,deadcyclo/nuxeo-features,dea... | xml | ## Code Before:
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.forum.coreTypes">
<require>org.nuxeo.ecm.core.schema.TypeService</require>
<extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
<schema name="thread" src="schemas/thread.xsd"/>
<schema name="post" src="schem... |
aae866ef90170797c34732a328a76e21a3ec5caf | server.js | server.js | var dgram = require('dgram'),
LogPacket = require('./logpacket.js');
var server = dgram.createSocket('udp4');
var secret = "";
function getAddress(address) {
return address.address + ':' + address.port;
}
server.on('listening', function() {
console.log('Server listening on ' + getAddress(server.address()));
}... | var dgram = require('dgram'),
LogPacket = require('./logpacket.js');
var server = dgram.createSocket('udp4');
var secret = '';
function getAddress(address) {
return address.address + ':' + address.port;
}
server.on('listening', function() {
console.log('Server listening on ' + getAddress(server.address()));
}... | Replace quotes and ensure errors are handled | Replace quotes and ensure errors are handled
| JavaScript | agpl-3.0 | jackwilsdon/logaddress-protocol,jackwilsdon/logaddress-protocol | javascript | ## Code Before:
var dgram = require('dgram'),
LogPacket = require('./logpacket.js');
var server = dgram.createSocket('udp4');
var secret = "";
function getAddress(address) {
return address.address + ':' + address.port;
}
server.on('listening', function() {
console.log('Server listening on ' + getAddress(serve... |
95c8ff3d4620287b99cf5ab4770095972d2cf0d1 | Settings/Control.cpp | Settings/Control.cpp |
Control::Control() {
}
Control::Control(int id, HWND parent) :
_id(id),
_parent(parent) {
_hWnd = GetDlgItem(parent, id);
}
Control::~Control() {
}
bool Control::Text(std::wstring text) {
return SetDlgItemText(_parent, _id, text.c_str()) == TRUE;
}
bool Control::Text(int value) {
return Text(std::to_... |
Control::Control() {
}
Control::Control(int id, HWND parent) :
_id(id),
_parent(parent) {
_hWnd = GetDlgItem(parent, id);
}
Control::~Control() {
}
bool Control::Text(std::wstring text) {
return SetDlgItemText(_parent, _id, text.c_str()) == TRUE;
}
bool Control::Text(int value) {
return SetDlgItemInt... | Use Win32 function instead of rolling our own | Use Win32 function instead of rolling our own
| C++ | bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX | c++ | ## Code Before:
Control::Control() {
}
Control::Control(int id, HWND parent) :
_id(id),
_parent(parent) {
_hWnd = GetDlgItem(parent, id);
}
Control::~Control() {
}
bool Control::Text(std::wstring text) {
return SetDlgItemText(_parent, _id, text.c_str()) == TRUE;
}
bool Control::Text(int value) {
retu... |
eb1dbfa376db1a4777814a02e015647812e434c0 | src/Standards/base.yml | src/Standards/base.yml | name: "base"
file:
open_tag:
enabled: false
max_line_length:
enabled: true
error_limit: 80
warning_limit: -1
info_limit: -1
tab_expand: 4
indentation:
enabled: false
style: "tab"
count: 1
| name: "base"
file:
open_tag:
enabled: false
max_line_length:
enabled: true
error_limit: 80
warning_limit: -1
info_limit: -1
tab_expand: 4
indentation:
enabled: false
style: "tab"
count: 1
| Use 2 spaces for YAML (standards?) | Use 2 spaces for YAML (standards?)
| YAML | mit | HippoPHP/Hippo | yaml | ## Code Before:
name: "base"
file:
open_tag:
enabled: false
max_line_length:
enabled: true
error_limit: 80
warning_limit: -1
info_limit: -1
tab_expand: 4
indentation:
enabled: false
style: "tab"
count: 1
## Instruction:
Use 2 spaces f... |
87b3e5b3a0ac04537237208a7535a937109e1d13 | src/hmac.js | src/hmac.js | // HMAC - keyed-Hash Message Authentication Code
function hmac(hash, size, digest, data, hkey, block) {
var i, akey, ipad, opad;
data = self.Encoder(data).trunc();
hkey = self.Encoder(hkey).trunc();
if (hkey.length > block) {
akey = hash(digest, hkey).trunc();
} else {
akey = self.Encoder(hkey).... | // HMAC - keyed-Hash Message Authentication Code
function hmac(hash, size, digest, data, hkey, block) {
var i, akey, ipad, opad;
if (hkey.length > block) {
akey = hash(digest, hkey).trunc();
} else {
akey = self.Encoder(hkey).trunc();
}
for (i = 0, ipad = [], opad = []; i < block; i += 1) {
... | Remove excessive Encoder calls in HMAC -- 'ready' should already have been applied. | Remove excessive Encoder calls in HMAC -- 'ready' should already have been applied.
| JavaScript | mit | coiscir/jsdigest,coiscir/jsdigest | javascript | ## Code Before:
// HMAC - keyed-Hash Message Authentication Code
function hmac(hash, size, digest, data, hkey, block) {
var i, akey, ipad, opad;
data = self.Encoder(data).trunc();
hkey = self.Encoder(hkey).trunc();
if (hkey.length > block) {
akey = hash(digest, hkey).trunc();
} else {
akey = sel... |
5ab1ba8d370e644c5af8891290fe346b3d8f042f | db/seeds.rb | db/seeds.rb | UpdateFederationResources.run
# Create an admin user
admin = User.find_or_create_by(email: 'admin@cloud.net') do |u|
u.full_name = 'Cloud Admin'
u.password = 'adminpassword'
u.admin = true
end
admin.confirm! unless admin.confirmed?
# Get the available providers from the Onapp installation's federation
UpdateFed... | UpdateFederationResources.run
# Create an admin user
admin = User.find_or_create_by(email: 'admin@cloud.net') do |u|
u.full_name = 'Cloud Admin'
u.password = 'adminpassword'
u.admin = true
end
admin.confirm! unless admin.confirmed?
| Remove duplicate UpdateFederationResources.runn in seed.rb | Remove duplicate UpdateFederationResources.runn in seed.rb
| Ruby | apache-2.0 | OnApp/cloudnet,OnApp/cloudnet,OnApp/cloudnet,OnApp/cloudnet | ruby | ## Code Before:
UpdateFederationResources.run
# Create an admin user
admin = User.find_or_create_by(email: 'admin@cloud.net') do |u|
u.full_name = 'Cloud Admin'
u.password = 'adminpassword'
u.admin = true
end
admin.confirm! unless admin.confirmed?
# Get the available providers from the Onapp installation's fede... |
cf90ef6151aa2883a9f5ae7b6f414f322f9baacf | cmd/speeldoos/cmd-check.go | cmd/speeldoos/cmd-check.go | package main
import (
"log"
"os"
)
func check_main(args []string) {
allCarr, err := allCarriersWithErrors()
if err != nil {
log.Fatalf("Unable to open library: %s", err)
}
exitStatus := 0
for _, pc := range allCarr {
if pc.Error != nil {
exitStatus = 1
log.Printf("Parse error in %s: %s", pc.Filenam... | package main
import (
"fmt"
"log"
"os"
"path"
"github.com/thijzert/speeldoos"
"github.com/thijzert/speeldoos/lib/zipmap"
)
type checkF func(*speeldoos.Carrier) []error
var allChecks []checkF = []checkF{
check_carrierID,
check_sourceFiles,
}
func check_main(args []string) {
allCarr, err := allCarriersWithE... | Check if every source file exists | Check if every source file exists
| Go | bsd-3-clause | thijzert/speeldoos | go | ## Code Before:
package main
import (
"log"
"os"
)
func check_main(args []string) {
allCarr, err := allCarriersWithErrors()
if err != nil {
log.Fatalf("Unable to open library: %s", err)
}
exitStatus := 0
for _, pc := range allCarr {
if pc.Error != nil {
exitStatus = 1
log.Printf("Parse error in %s:... |
94ffce2e5964c02ecf2badfbbd8750a61469b5ff | src/sky-labels.scss | src/sky-labels.scss | $sky-labels-blurred-text-color: #000 !default;
$sky-labels-focused-background-color: #000 !default;
$sky-labels-focused-text-color: #FFF !default;
$sky-labels-animation-duration: .15s !default;
.sky-label {
margin-top: 15px;
position: relative;
}
.sky-label label {
color: $sky-labels-blurred-text-color;
left:... | $sky-labels-blurred-text-color: #000 !default;
$sky-labels-focused-background-color: #000 !default;
$sky-labels-focused-text-color: #FFF !default;
$sky-labels-animation-duration: .15s !default;
.sky-label {
margin-top: 15px;
position: relative;
}
.sky-label label {
color: $sky-labels-blurred-text-color;
left:... | Change cursor selection to label element | Change cursor selection to label element
When you hover over the label the cursor is not a text (as it should be to indicate you can click and start typing). | SCSS | mit | thoughtbot/sky-labels,thoughtbot/sky-labels | scss | ## Code Before:
$sky-labels-blurred-text-color: #000 !default;
$sky-labels-focused-background-color: #000 !default;
$sky-labels-focused-text-color: #FFF !default;
$sky-labels-animation-duration: .15s !default;
.sky-label {
margin-top: 15px;
position: relative;
}
.sky-label label {
color: $sky-labels-blurred-tex... |
e1f20195a6c05efa3cddb86214388ecb592aa84c | pacman/hooks.sh | pacman/hooks.sh | post_install() {
systemctl enable {{name}}
systemctl enable {{name}}.socket
systemctl start {{name}}
}
pre_upgrade() {
systemctl stop {{name}}.socket
systemctl stop {{name}}
}
post_upgrade() {
systemctl start {{name}}
}
pre_remove() {
systemctl stop {{name}}.socket
systemctl disable {{name}}.socket
systemct... | post_install() {
systemctl daemon-reload
systemctl enable {{name}}
systemctl enable {{name}}.socket
systemctl start {{name}}
}
pre_upgrade() {
systemctl stop {{name}}.socket
systemctl stop {{name}}
}
post_upgrade() {
systemctl daemon-reload
systemctl start {{name}}
}
pre_remove() {
systemctl stop {{name}}.s... | Revert "fix(pacman): systemct daemon-reload is done automatically" | Revert "fix(pacman): systemct daemon-reload is done automatically"
This reverts commit 8c19d56f82d1624f385cf237a58a762a1f62d381.
| Shell | bsd-2-clause | arlac77/rtsp-archive,arlac77/rtsp-archive | shell | ## Code Before:
post_install() {
systemctl enable {{name}}
systemctl enable {{name}}.socket
systemctl start {{name}}
}
pre_upgrade() {
systemctl stop {{name}}.socket
systemctl stop {{name}}
}
post_upgrade() {
systemctl start {{name}}
}
pre_remove() {
systemctl stop {{name}}.socket
systemctl disable {{name}}.... |
40a45e40cc6ad30a3c9eedf2907bdfd8d0f4ac80 | css/components/submitted-menu.css | css/components/submitted-menu.css | .submitted-menu {
background-color: var(--dark-background);
background-position: center center;
background-size: cover;
display: flex;
width: 100%;
}
.submitted-menu-bar {
display: flex;
justify-content: space-between;
margin: 0 auto;
width: 100%;
}
.submitted-menu-items {
display: flex;
justify-content: f... | .submitted-menu {
background-color: var(--dark-background);
background-position: center center;
background-size: cover;
display: flex;
width: 100%;
}
.submitted-menu-bar {
display: flex;
justify-content: space-between;
margin: 0 auto;
width: 100%;
}
.submitted-menu-items {
display: flex;
justify-content: f... | Fix styles for submitted menu role select | Fix styles for submitted menu role select
So submit button and select are in one line
| CSS | mit | egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations | css | ## Code Before:
.submitted-menu {
background-color: var(--dark-background);
background-position: center center;
background-size: cover;
display: flex;
width: 100%;
}
.submitted-menu-bar {
display: flex;
justify-content: space-between;
margin: 0 auto;
width: 100%;
}
.submitted-menu-items {
display: flex;
ju... |
d64412260f871ba367eabcbdae393ec8e6d6bb37 | .storybook/config.js | .storybook/config.js | import { configure, addDecorator } from '@storybook/react';
import { setDefaults } from '@storybook/addon-info';
import { setOptions } from '@storybook/addon-options';
import backgroundColor from 'react-storybook-decorator-background';
// addon-info
setDefaults({
header: true,
inline: true,
source: true,
propT... | import { configure, addDecorator } from '@storybook/react';
import { setDefaults } from '@storybook/addon-info';
import { setOptions } from '@storybook/addon-options';
import backgroundColor from 'react-storybook-decorator-background';
import { State } from '@sambego/storybook-state';
// addon-info
setDefaults({
hea... | Exclude State component from the propTypes information table | Exclude State component from the propTypes information table
| JavaScript | mit | teamleadercrm/teamleader-ui | javascript | ## Code Before:
import { configure, addDecorator } from '@storybook/react';
import { setDefaults } from '@storybook/addon-info';
import { setOptions } from '@storybook/addon-options';
import backgroundColor from 'react-storybook-decorator-background';
// addon-info
setDefaults({
header: true,
inline: true,
sourc... |
786d1ee8f58c95ab3d27d06bda2ec593cadef48e | apps/videos/tests/__init__.py | apps/videos/tests/__init__.py | from apps.videos.tests.celery_tasks import *
from apps.videos.tests.downloads import *
from apps.videos.tests.feeds import *
from apps.videos.tests.following import *
from apps.videos.tests.forms import *
from apps.videos.tests.metadata import *
from apps.videos.tests.models import *
from apps.videos.tests.rpc import *... | from apps.videos.tests.celery_tasks import *
from apps.videos.tests.downloads import *
from apps.videos.tests.feeds import *
from apps.videos.tests.following import *
from apps.videos.tests.forms import *
from apps.videos.tests.metadata import *
from apps.videos.tests.models import *
from apps.videos.tests.rpc import *... | Remove the syncing tests from the list. | Remove the syncing tests from the list.
| Python | agpl-3.0 | ReachingOut/unisubs,ofer43211/unisubs,ofer43211/unisubs,ReachingOut/unisubs,ujdhesa/unisubs,norayr/unisubs,wevoice/wesub,norayr/unisubs,eloquence/unisubs,wevoice/wesub,pculture/unisubs,ofer43211/unisubs,eloquence/unisubs,wevoice/wesub,norayr/unisubs,ujdhesa/unisubs,pculture/unisubs,eloquence/unisubs,ujdhesa/unisubs,wev... | python | ## Code Before:
from apps.videos.tests.celery_tasks import *
from apps.videos.tests.downloads import *
from apps.videos.tests.feeds import *
from apps.videos.tests.following import *
from apps.videos.tests.forms import *
from apps.videos.tests.metadata import *
from apps.videos.tests.models import *
from apps.videos.te... |
8f90226052b257151b056c0be7b6344798aa9461 | composer.json | composer.json | {
"name": "shvetsgroup/laravel-email-database-log",
"description": "A simple database logger for all outgoing emails sent by Laravel website.",
"keywords": ["laravel", "markdown"],
"license": "MIT",
"authors": [
{
"name": "Alexander Shvets",
"email": "neochief@shvetsg... | {
"name": "shvetsgroup/laravel-email-database-log",
"description": "A simple database logger for all outgoing emails sent by Laravel website.",
"keywords": ["laravel", "markdown", "mail"],
"license": "MIT",
"authors": [
{
"name": "Alexander Shvets",
"email": "neochief... | Drop support for Laravel 5.x & 7.x because EOL | Drop support for Laravel 5.x & 7.x because EOL
| JSON | mit | shvetsgroup/laravel-email-database-log | json | ## Code Before:
{
"name": "shvetsgroup/laravel-email-database-log",
"description": "A simple database logger for all outgoing emails sent by Laravel website.",
"keywords": ["laravel", "markdown"],
"license": "MIT",
"authors": [
{
"name": "Alexander Shvets",
"email": "... |
ae3080c05c46f41b7c7c59fe4d5dc1d2870ffb5d | lib/tasks/one_sheet/files.rb | lib/tasks/one_sheet/files.rb | module OneSheet
class Files
def self.read(type)
new(type).read
end
private_class_method :new
def initialize(type)
@files = type[:files]
@path = type[:path]
end
def read
files.reduce('') do |content, file|
content << read_file(*file)
end
end
pr... | module OneSheet
class Files
extend Forwardable
def self.read(type)
new(type).read
end
def self.read_file(path, file)
lines = File.readlines(File.join(path, file[:file]))
lines[file[:from_line]..file[:to_line]].join << "\n"
end
private_class_method :read_file
private_cl... | Make read_file a class method since it doesn't rely on state | Make read_file a class method since it doesn't rely on state
| Ruby | mit | paulfioravanti/resume | ruby | ## Code Before:
module OneSheet
class Files
def self.read(type)
new(type).read
end
private_class_method :new
def initialize(type)
@files = type[:files]
@path = type[:path]
end
def read
files.reduce('') do |content, file|
content << read_file(*file)
end... |
7a6a9eff3bedd6aa5cfb716b07ea3703efe1ae87 | lib/ruche/help.js | lib/ruche/help.js | // Module dependencies.
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var error = require('./util/error');
/**
* Show a contextual help.
* @param {String} [command] Command you want to know more about.
* @return {String}
*/
var help = function (command) {
var file = 'help';... | // Module dependencies.
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var error = require('./util/error');
/**
* Show a contextual help.
* @param {String} [context] Command you want to know more about.
* @return {String}
*/
var help = function (context) {
var file = 'help';... | Change command paramater to context | Change command paramater to context
The context word is more relevant because when no command is specified the context is 'global'
| JavaScript | mit | quentinrossetti/ruche,quentinrossetti/ruche,quentinrossetti/ruche | javascript | ## Code Before:
// Module dependencies.
var fs = require('fs');
var path = require('path');
var _ = require('underscore');
var error = require('./util/error');
/**
* Show a contextual help.
* @param {String} [command] Command you want to know more about.
* @return {String}
*/
var help = function (command) {
va... |
d615d89805c7df14fcd7d510ace11cf134636871 | scss/modules/_images.scss | scss/modules/_images.scss | // RESPONSIVE FLOATED IMAGES
// --------------------------------------------------------------------
// Breakpoint for floated images
$img-breakpoint: 768px;
%image-block {
display: block;
@include x-rem(margin, 1 0);
}
// For use with ProcessWire
@if $pw-img-classes {
.align_left,
.align_right {
... | // RESPONSIVE FLOATED IMAGES
// --------------------------------------------------------------------
// Breakpoint for floated images
$img-breakpoint: 768px !default;
// Margins for images
$img-margin: 1 0 !default;
$img-left-margin: .25 1 .75 0 !default;
$img-right-margin: .25 0 .75 1 !default;
%image-bl... | Use Sass defaults in images partial. | Use Sass defaults in images partial.
| SCSS | mit | yellowled/yl-bp,yellowled/yl-bp | scss | ## Code Before:
// RESPONSIVE FLOATED IMAGES
// --------------------------------------------------------------------
// Breakpoint for floated images
$img-breakpoint: 768px;
%image-block {
display: block;
@include x-rem(margin, 1 0);
}
// For use with ProcessWire
@if $pw-img-classes {
.align_left,
... |
09c039007f0ee3350fa3e6ae0a6b4d6b2a262c71 | README.md | README.md |
This is a thin Go wrapper around the C library for the Torque resource manager.
Documentation about the functions can be found in the man pages of the Torque
library.
## Install
go get github.com/jbarber/pbs
## Documentation
go doc github.com/jbarber/pbs
## Usage
package main
import (
"... |
This is a thin Go wrapper around the C library (libtorque) for the [Torque resource manager](http://www.adaptivecomputing.com/products/open-source/torque/).
Documentation about the functions can be found in the man pages of the Torque
library.
## Install
go get github.com/jbarber/pbs
## Documentation
go d... | Add author + original source of libtorque | Add author + original source of libtorque
| Markdown | bsd-2-clause | jbarber/pbs | markdown | ## Code Before:
This is a thin Go wrapper around the C library for the Torque resource manager.
Documentation about the functions can be found in the man pages of the Torque
library.
## Install
go get github.com/jbarber/pbs
## Documentation
go doc github.com/jbarber/pbs
## Usage
package main
im... |
c094bbc02e1ebb390d0a7c32c16d3a696bed6f9d | lib/simple_slug.rb | lib/simple_slug.rb | require 'simple_slug/version'
require 'active_support/core_ext'
require 'simple_slug/model_addition'
require 'simple_slug/railtie' if Object.const_defined?(:Rails)
module SimpleSlug
autoload :HistorySlug, 'simple_slug/history_slug'
mattr_accessor :excludes
@@excludes = %w(new edit show index session login logou... | require 'simple_slug/version'
require 'active_support/core_ext'
require 'simple_slug/model_addition'
require 'simple_slug/railtie' if Object.const_defined?(:Rails)
module SimpleSlug
autoload :HistorySlug, 'simple_slug/history_slug'
mattr_accessor :excludes
@@excludes = %w(new edit show index session login logou... | Allow values like `--123` for slug | Allow values like `--123` for slug
| Ruby | mit | leschenko/simple_slug | ruby | ## Code Before:
require 'simple_slug/version'
require 'active_support/core_ext'
require 'simple_slug/model_addition'
require 'simple_slug/railtie' if Object.const_defined?(:Rails)
module SimpleSlug
autoload :HistorySlug, 'simple_slug/history_slug'
mattr_accessor :excludes
@@excludes = %w(new edit show index ses... |
0b8e4c5e06e24ecbdb4905976f91e75815042ac3 | src/public/index.php | src/public/index.php | <?php
require __DIR__ . '/../vendor/autoload.php';
// TODO: If settings.php file does not exists throw an exception and warn users
require __DIR__ . '/../settings.php';
$app = new \Slim\App($settings);
// Register dependencies
// TODO: If dependencies.php file does not exists throw an exception and warn users
requir... | <?php
require __DIR__ . '/../vendor/autoload.php';
$settings = [];
if (file_exists(__DIR__ . '/../settings.php')) {
require __DIR__ . '/../settings.php';
} else {
throw new \RuntimeException('Settings file is missing.');
}
$app = new \Slim\App($settings);
// Register dependencies
if (file_exists(__DIR__ . '... | Use exceptions to warn user and stop application if any runtime file is missing | Use exceptions to warn user and stop application if any runtime file is missing
| PHP | mit | thehand/wallet-logger | php | ## Code Before:
<?php
require __DIR__ . '/../vendor/autoload.php';
// TODO: If settings.php file does not exists throw an exception and warn users
require __DIR__ . '/../settings.php';
$app = new \Slim\App($settings);
// Register dependencies
// TODO: If dependencies.php file does not exists throw an exception and w... |
bdad1a9d5e902c11f0854bbc61a1e4e8136c9bba | api/endpoints/context_helpers.go | api/endpoints/context_helpers.go | package api
import "github.com/labstack/echo"
// GetProjectID returns projectID for current HTTP request
func GetProjectID(c echo.Context) int64 {
return c.Get("projectID").(int64)
}
| package api
import (
"errors"
"github.com/labstack/echo"
)
// GetProjectID returns projectID for current HTTP request
func GetProjectID(c echo.Context) int64 {
if projectID, ok := c.Get("projectID").(int64); ok {
return projectID
}
panic(errors.New("failed to get projectID, is mw.RequireProject call missing?"... | Use safe type assertion in GetProjectID | Use safe type assertion in GetProjectID
| Go | mit | diyan/assimilator,diyan/assimilator,diyan/assimilator | go | ## Code Before:
package api
import "github.com/labstack/echo"
// GetProjectID returns projectID for current HTTP request
func GetProjectID(c echo.Context) int64 {
return c.Get("projectID").(int64)
}
## Instruction:
Use safe type assertion in GetProjectID
## Code After:
package api
import (
"errors"
"github.com... |
f473ebe7ce68560952a68247341bde46c2f26c97 | shoop/core/order_creator/_modifier.py | shoop/core/order_creator/_modifier.py | from django.db.transaction import atomic
from shoop.core.models import Order
from ._creator import OrderProcessor
class OrderModifier(OrderProcessor):
@atomic
def update_order_from_source(self, order_source, order):
data = self.get_source_base_data(order_source)
Order.objects.filter(pk=orde... | from django.db.transaction import atomic
from shoop.core.models import Order
from ._creator import OrderProcessor
class OrderModifier(OrderProcessor):
@atomic
def update_order_from_source(self, order_source, order):
data = self.get_source_base_data(order_source)
Order.objects.filter(pk=orde... | Enable modifying orders with taxes | Core: Enable modifying orders with taxes
Refs SHOOP-2338 / SHOOP-2578
| Python | agpl-3.0 | shawnadelic/shuup,shoopio/shoop,suutari/shoop,hrayr-artunyan/shuup,shawnadelic/shuup,suutari/shoop,hrayr-artunyan/shuup,suutari-ai/shoop,suutari-ai/shoop,suutari-ai/shoop,suutari/shoop,hrayr-artunyan/shuup,shoopio/shoop,shawnadelic/shuup,shoopio/shoop | python | ## Code Before:
from django.db.transaction import atomic
from shoop.core.models import Order
from ._creator import OrderProcessor
class OrderModifier(OrderProcessor):
@atomic
def update_order_from_source(self, order_source, order):
data = self.get_source_base_data(order_source)
Order.object... |
398e9f7d5d785c3e34f3db59b3edbb8629453c51 | README.md | README.md | [](https://hex.pm/packages/safeio)
safeio
=====
An OTP library for checking that specific directories are safe to use.
This project is the result of problems with handling broken NFS mounts.
Our application would regularily use `filelib:is_regul... | [](https://hex.pm/packages/safeio)
safeio
=====
An OTP application for checking that specific directories are safe to use.
This project is the result of problems with handling broken NFS mounts.
Our application would regularily use `filelib:is_r... | Add documentation about recovery from stale mounts | Add documentation about recovery from stale mounts
| Markdown | apache-2.0 | lindenbaum/safeio | markdown | ## Code Before:
[](https://hex.pm/packages/safeio)
safeio
=====
An OTP library for checking that specific directories are safe to use.
This project is the result of problems with handling broken NFS mounts.
Our application would regularily use `... |
1ff9a6ebf1815039f7aef722fc42fdab231a2771 | config/module.config.php | config/module.config.php | <?php
return [
'service_manager' => [
'factories' => [
'JwPersistentUser\ModuleOptions' => 'JwPersistentUser\Model\ModuleOptionsFactory',
'JwPersistentUser\Service\RememberMe' => 'JwPersistentUser\Service\RememberMeServiceFactory',
'JwPersistentUser\Service\Cookie' => 'J... | <?php
use JwPersistentUser\Model\ModuleOptions;
use JwPersistentUser\Model\ModuleOptionsFactory;
use JwPersistentUser\Service\CookieService;
use JwPersistentUser\Service\CookieServiceFactory;
use JwPersistentUser\Service\RememberMeService;
use JwPersistentUser\Service\RememberMeServiceFactory;
use JwPersistentUser\Ser... | Make some aliases and use classes as identifiers | Make some aliases and use classes as identifiers
Signed-off-by: Camilo Sperberg <9fc10dd65f77fb6c78cda83e986d969eee8e0d9c@jouwweb.nl>
| PHP | bsd-3-clause | JouwWeb/JwPersistentUser | php | ## Code Before:
<?php
return [
'service_manager' => [
'factories' => [
'JwPersistentUser\ModuleOptions' => 'JwPersistentUser\Model\ModuleOptionsFactory',
'JwPersistentUser\Service\RememberMe' => 'JwPersistentUser\Service\RememberMeServiceFactory',
'JwPersistentUser\Servi... |
2fd5b5180f66ede002522753e7bea25c121744af | README.md | README.md | ERROR: type should be string, got "\nhttps://github.com/johnlindquist/nuxt-typescript-starter/\n" |
Node/Vue/Nuxt site promoting ManifoldJS tool to build manifest files
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/) (with NPM)
* [NPM](http://npmjs.com/)
## Installation
* `git clone <repository-url>` this repos... | Add simple version of new readme | Add simple version of new readme
| Markdown | mit | manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site | markdown | ## Code Before:
https://github.com/johnlindquist/nuxt-typescript-starter/
## Instruction:
Add simple version of new readme
## Code After:
Node/Vue/Nuxt site promoting ManifoldJS tool to build manifest files
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](http://gi... |
c73bb043a8abdce6429ccf4b60be930e58af4113 | lib/reporter-proxy.js | lib/reporter-proxy.js | module.exports = class ReporterProxy {
constructor () {
this.reporter = null
this.timingsQueue = []
this.eventType = 'find-and-replace-v1'
}
setReporter (reporter) {
this.reporter = reporter
let timingsEvent
while ((timingsEvent = this.timingsQueue.shift())) {
this.reporter.add... | module.exports = class ReporterProxy {
constructor () {
this.reporter = null
this.timingsQueue = []
this.eventType = 'find-and-replace-v1'
}
setReporter (reporter) {
this.reporter = reporter
let timingsEvent
while ((timingsEvent = this.timingsQueue.shift())) {
this.reporter.add... | Use an object for the queue of unsent events | Use an object for the queue of unsent events
| JavaScript | mit | atom/find-and-replace,trevdor/find-and-replace | javascript | ## Code Before:
module.exports = class ReporterProxy {
constructor () {
this.reporter = null
this.timingsQueue = []
this.eventType = 'find-and-replace-v1'
}
setReporter (reporter) {
this.reporter = reporter
let timingsEvent
while ((timingsEvent = this.timingsQueue.shift())) {
t... |
4e3773d96a47b88529a01fa4c4a0f25bf1b77b1c | lib/github_test.py | lib/github_test.py | import unittest
import github
class TestGithub(unittest.TestCase):
def setUp(self):
pass
def test_user(self):
u = github.user()
u1 = github.user()
self.assertTrue(u)
# make sure hash works
self.assertTrue(u is u1)
def test_has_issues(self):
... | import unittest
import github
class TestGithub(unittest.TestCase):
def setUp(self):
pass
def test_user(self):
u = github.user()
u1 = github.user()
self.assertTrue(u)
# make sure hash works
self.assertTrue(u is u1)
def test_has_issues(self):
... | Remove old repo_from_path tests. This is a very hard functionality to test | Remove old repo_from_path tests. This is a very hard functionality to
test
| Python | mit | jonmorehouse/vimhub | python | ## Code Before:
import unittest
import github
class TestGithub(unittest.TestCase):
def setUp(self):
pass
def test_user(self):
u = github.user()
u1 = github.user()
self.assertTrue(u)
# make sure hash works
self.assertTrue(u is u1)
def test_has_issue... |
b0c02597b27893af59c4dd6074bcecdd1721e7fa | config/webpack.config.base.js | config/webpack.config.base.js | const webpack = require('webpack');
const path = require('path');
module.exports = {
context: path.resolve(__dirname, '..'),
entry: {
'easy-bits.min': './src/index.js'
},
target: 'web',
output: {
path: path.resolve(__dirname, '../dist/'),
publicPath: '/',
filename: '[name].js',
libraryTarget: 'umd'
},
... | const webpack = require('webpack');
const path = require('path');
module.exports = {
context: path.resolve(__dirname, '..'),
entry: {
'easy-bits.min': './src/index.js'
},
target: 'web',
output: {
path: path.resolve(__dirname, '../dist/'),
publicPath: '/',
filename: '[name].js',
libraryTarget: 'umd',
g... | Remove window reference from UMD module | Remove window reference from UMD module
| JavaScript | mit | easyfuckingpeasy/Easy-Bits | javascript | ## Code Before:
const webpack = require('webpack');
const path = require('path');
module.exports = {
context: path.resolve(__dirname, '..'),
entry: {
'easy-bits.min': './src/index.js'
},
target: 'web',
output: {
path: path.resolve(__dirname, '../dist/'),
publicPath: '/',
filename: '[name].js',
libraryTa... |
de984749d01e9961c71c897e850bc8f87393c634 | templates/share_repos.html | templates/share_repos.html | {% extends "myhome_base.html" %}
{% block nav_shareadmin_class %}class="cur"{% endblock %}
{% block right_panel %}
<h3>我共享的同步目录</h3>
{% if out_repos %}
<table class="repo-list">
<tr>
<th width="20%">名字</th>
<th width="25%">共享给</th>
<th width="45%">描述</th>
<th width="10%">操作</th>
... | {% extends "myhome_base.html" %}
{% block nav_shareadmin_class %}class="cur"{% endblock %}
{% block right_panel %}
<h3>我共享的同步目录</h3>
{% if out_repos %}
<table class="repo-list">
<tr>
<th width="20%">名字</th>
<th width="25%">共享给</th>
<th width="45%">描述</th>
<th width="10%">操作</th>
... | Fix bug in unshare repo | Fix bug in unshare repo
| HTML | apache-2.0 | madflow/seahub,miurahr/seahub,Chilledheart/seahub,cloudcopy/seahub,miurahr/seahub,cloudcopy/seahub,Chilledheart/seahub,miurahr/seahub,madflow/seahub,cloudcopy/seahub,Chilledheart/seahub,madflow/seahub,miurahr/seahub,madflow/seahub,Chilledheart/seahub,cloudcopy/seahub,madflow/seahub,Chilledheart/seahub | html | ## Code Before:
{% extends "myhome_base.html" %}
{% block nav_shareadmin_class %}class="cur"{% endblock %}
{% block right_panel %}
<h3>我共享的同步目录</h3>
{% if out_repos %}
<table class="repo-list">
<tr>
<th width="20%">名字</th>
<th width="25%">共享给</th>
<th width="45%">描述</th>
<th width=... |
468fb779830bd727aef77d55e85942ee288fd0d9 | src/components/Badge/index.js | src/components/Badge/index.js | import { h, Component } from 'preact';
import style from './style';
import Icon from '../Icon';
export default class Badge extends Component {
render() {
const { artist, event, small } = this.props;
if (!event && !artist) {
return;
}
if (artist && artist.onTourUntil) {
return (
... | import { h, Component } from 'preact';
import style from './style';
import Icon from '../Icon';
export default class Badge extends Component {
render() {
const { event, small } = this.props;
if (!event) {
return;
}
if (event.cancelled) {
return (
<span class={`${style.badge} ${... | Remove some artist code in Badge component | Remove some artist code in Badge component
| JavaScript | mit | zaccolley/songkick.pink,zaccolley/songkick.pink | javascript | ## Code Before:
import { h, Component } from 'preact';
import style from './style';
import Icon from '../Icon';
export default class Badge extends Component {
render() {
const { artist, event, small } = this.props;
if (!event && !artist) {
return;
}
if (artist && artist.onTourUntil) {
... |
117870068ee6e372a712b108804367ae047c7823 | src/config/initializers/tasks/package.coffee | src/config/initializers/tasks/package.coffee | op = require '../../../tasks/package/operators'
module.exports = (config) ->
config.tasks.package.merge
operatorsMap:
'annotate:class': op.annotateClass
'annotate:file': op.annotateFile
'join': op.join
'compile': op.compile
'uglify': op.uglify
'create:directory': op.createDire... | op = require '../../../tasks/package/operators'
module.exports = (config) ->
config.tasks.package.merge
operatorsMap:
'annotate:class': op.annotateClass
'annotate:file': op.annotateFile
'compile': op.compile
'create:directory': op.createDirectory
'create:file': op.saveToFile
'... | Rename saveToFile operator as create:file | Rename saveToFile operator as create:file
| CoffeeScript | mit | abe33/neat,abe33/neat,abe33/neat,abe33/neat | coffeescript | ## Code Before:
op = require '../../../tasks/package/operators'
module.exports = (config) ->
config.tasks.package.merge
operatorsMap:
'annotate:class': op.annotateClass
'annotate:file': op.annotateFile
'join': op.join
'compile': op.compile
'uglify': op.uglify
'create:directory... |
91670bd28f4ddd5cafb94c274de0a0269fcbd5eb | index.coffee | index.coffee | upnp = require 'upnp'
config =
app:
name: 'Bragi'
version: '0.0.1'
url: 'http://'
device:
type: 'MediaServer'
version: '1.0'
upnp.start config, ->
console.log 'Bragi running! :-)'
| fs = require 'fs'
upnp = require 'upnp-server'
Tag = require('taglib').Tag
mediaServer = upnp.createDevice 'MediaServer', 'Bragi', (err, device, msg) ->
throw err if err
device.start (err) ->
throw err if err
fs.readdir dir, (err, files) ->
for file in files
try
... | Update to use new upnp-device API | Update to use new upnp-device API
| CoffeeScript | mit | jacobrask/bragi | coffeescript | ## Code Before:
upnp = require 'upnp'
config =
app:
name: 'Bragi'
version: '0.0.1'
url: 'http://'
device:
type: 'MediaServer'
version: '1.0'
upnp.start config, ->
console.log 'Bragi running! :-)'
## Instruction:
Update to use new upnp-device API
## Code After:
fs =... |
4961e4c984cee1c13f15966b670fccb0360391ee | src/main/web/js/app/pym-interactive.js | src/main/web/js/app/pym-interactive.js |
$(function() {
$('div.pym-interactive').each(function(index, element) {
new pym.Parent($(element).attr('id'), $(element).data('url'));
});
});
|
$(function() {
$('div.pym-interactive').each(function(index, element) {
var pymParent = new pym.Parent($(element).attr('id'), $(element).data('url'));
pymParent.onMessage('height', function(height) {
addIframeHeightToEmbedCode($(this), height);
});
});
});
function addIfram... | Build embed code including height attrbute on height message from pym child | Build embed code including height attrbute on height message from pym child
| JavaScript | mit | ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage | javascript | ## Code Before:
$(function() {
$('div.pym-interactive').each(function(index, element) {
new pym.Parent($(element).attr('id'), $(element).data('url'));
});
});
## Instruction:
Build embed code including height attrbute on height message from pym child
## Code After:
$(function() {
$('div.pym-inte... |
70785353a9526b56a11f71df0f6f8d40591aeaa4 | api/controllers/requests.js | api/controllers/requests.js | var OwerRequestModel = require('../models/requests/owerRequest.js')
, error = require('../utils/error.js');
var allOwerRequests = function(req, res) {
var facebookId = req.user.facebookId
, type = req.query.type;
if (type) {
if (type === 'received') {
conditions.to = facebookId;
... | var OwerRequestModel = require('../models/requests/owerRequest.js')
, error = require('../utils/error.js');
var allOwerRequests = function(req, res) {
var type = req.query.type;
var facebookId;
if (req.user && req.user.facebookId) {
facebookId = req.user.facebookId;
}
if (type && facebookI... | Fix admin not being able to access reqs | Fix admin not being able to access reqs
| JavaScript | mit | justinsacbibit/omi,justinsacbibit/omi,justinsacbibit/omi | javascript | ## Code Before:
var OwerRequestModel = require('../models/requests/owerRequest.js')
, error = require('../utils/error.js');
var allOwerRequests = function(req, res) {
var facebookId = req.user.facebookId
, type = req.query.type;
if (type) {
if (type === 'received') {
conditions.to... |
df0b7b1a37a849684fce6b8905abf8c24a606227 | fabric/fmc-webui/src/main/webapp/app/views/profiles_page/detail_page/profile_attributes.jade | fabric/fmc-webui/src/main/webapp/app/views/profiles_page/detail_page/profile_attributes.jade | - ###
Copyright 2012 Red Hat, Inc.
Red Hat licenses this file to you under the Apache License, version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | - ###
Copyright 2012 Red Hat, Inc.
Red Hat licenses this file to you under the Apache License, version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law ... | Fix up fallback styling used in IE | Fix up fallback styling used in IE
| Jade | apache-2.0 | dhirajsb/fabric8,sobkowiak/fabric8,janstey/fuse,janstey/fabric8,jboss-fuse/fuse,KurtStam/fabric8,KurtStam/fabric8,jboss-fuse/fuse,punkhorn/fabric8,jonathanchristison/fabric8,rhuss/fabric8,joelschuster/fuse,gashcrumb/fabric8,EricWittmann/fabric8,jimmidyson/fabric8,opensourceconsultant/fuse,zmhassan/fabric8,rmarting/fuse... | jade | ## Code Before:
- ###
Copyright 2012 Red Hat, Inc.
Red Hat licenses this file to you 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... |
43a515f25e7bebd90ad2ccce4f60f6b5e0fe71d0 | src/util/arrayEqual.js | src/util/arrayEqual.js | export default function arrayEqual (a, b) {
if (a.length === b.length) {
return a.every((value, index) => {
return value === b[index];
});
}
return false;
}
| export default function arrayEqual (a, b) {
if (a.length === b.length) {
return a.every((value, index) => value === b[index]);
}
return false;
}
| Tidy up array equal function. | Tidy up array equal function.
| JavaScript | mit | ben-eb/css-values | javascript | ## Code Before:
export default function arrayEqual (a, b) {
if (a.length === b.length) {
return a.every((value, index) => {
return value === b[index];
});
}
return false;
}
## Instruction:
Tidy up array equal function.
## Code After:
export default function arrayEqual (a, ... |
9dc1224151bf7d27171eff846c1feefc0bc99191 | bot_receive/function.json | bot_receive/function.json | {
"bindings": [
{
"name": "message",
"type": "queueTrigger",
"direction": "in",
"queueName": "bot-queue",
"connection": ""
}
]
} | {
"bindings": [
{
"type": "serviceBusTrigger",
"name": "message",
"queueName": "bot_receive",
"connection": "AzureWebJobsServiceBus",
"accessRights": "manage",
"direction": "in"
}
]
}
| Switch bot_receive to ServiceBus queue | Switch bot_receive to ServiceBus queue | JSON | mit | wrdsb/igor-functions | json | ## Code Before:
{
"bindings": [
{
"name": "message",
"type": "queueTrigger",
"direction": "in",
"queueName": "bot-queue",
"connection": ""
}
]
}
## Instruction:
Switch bot_receive to ServiceBus queue
## Code After:
{
"bindings": [
{
"type": "serviceBusTrigger",
... |
4508820e4c5e3bd310975dc5bbb954980c19d38e | .travis.yml | .travis.yml | sudo: required
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "pypy-5.4"
services:
- rabbitmq
addons:
apt:
packages:
- stompserver
env:
- RABBITMQ_HOST=localhost RABBITMQ_PORT=61613 RABBITMQ_USER=guest RABBITMQ_PASSWORD=guest STOMPSERVER_HOST=localhost STOMPSERVER_PORT=63613 STD_HO... | sudo: required
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy-5.4"
services:
- rabbitmq
addons:
apt:
packages:
- stompserver
env:
- RABBITMQ_HOST=localhost RABBITMQ_PORT=61613 RABBITMQ_USER=guest RABBITMQ_PASSWORD=guest STOMPSERVER_HOST=localhost STOMPSERVER_PORT=63... | Test with Python 3.6 on Travis | Test with Python 3.6 on Travis
| YAML | apache-2.0 | jasonrbriggs/stomp.py,jasonrbriggs/stomp.py | yaml | ## Code Before:
sudo: required
language: python
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "pypy-5.4"
services:
- rabbitmq
addons:
apt:
packages:
- stompserver
env:
- RABBITMQ_HOST=localhost RABBITMQ_PORT=61613 RABBITMQ_USER=guest RABBITMQ_PASSWORD=guest STOMPSERVER_HOST=localhost STOMPSERVER_P... |
73e75a82ac4e400a2d3d9181b56ec9100c7e5c2b | packages/ch/ChannelT.yaml | packages/ch/ChannelT.yaml | homepage: https://github.com/pthariensflame/ChannelT
changelog-type: ''
hash: 5498bce886160bb2019dbbd44d6ddcdead021e562da76acf9b43afa2247b99ce
test-bench-deps: {}
maintainer: alexanderaltman@me.com
synopsis: Generalized stream processors
changelog: ''
basic-deps:
free: ! '>=4.12.4 && <4.13'
base: ! '>=4.8.2.0 && <5... | homepage: https://github.com/pthariensflame/ChannelT
changelog-type: ''
hash: 6574b7a436966ba6a1f224d9194f9923ac3cc80d49b808fc0c53bc3c51d7b4f4
test-bench-deps: {}
maintainer: alexanderaltman@me.com
synopsis: Generalized stream processors
changelog: ''
basic-deps:
free: ! '>=4.12.4 && <4.13'
base: ! '>=4.8.2.0 && <5... | Update from Hackage at 2017-05-22T03:12:09Z | Update from Hackage at 2017-05-22T03:12:09Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/pthariensflame/ChannelT
changelog-type: ''
hash: 5498bce886160bb2019dbbd44d6ddcdead021e562da76acf9b43afa2247b99ce
test-bench-deps: {}
maintainer: alexanderaltman@me.com
synopsis: Generalized stream processors
changelog: ''
basic-deps:
free: ! '>=4.12.4 && <4.13'
base: ! ... |
a31fa29f891f471a071cc4cb0036cbeb178b63a8 | .travis.yml | .travis.yml | language: ruby
sudo: false
cache: bundler
addons:
apt:
sources:
- libicu-dev
script: bundle exec rake
gemfile:
- gemfiles/rails_5.gemfile
- gemfiles/rails_4.gemfile
- gemfiles/rails_3.gemfile
rvm:
- 2.3.1
- 2.2.5
- 2.1
- 2.0
- ruby-head
matrix:
fast_finish: true
allow_failures:
... | language: ruby
sudo: false
cache: bundler
addons:
apt:
sources:
- libicu-dev
script: bundle exec rake
gemfile:
- gemfiles/rails_5.gemfile
- gemfiles/rails_4.gemfile
- gemfiles/rails_3.gemfile
rvm:
- 2.3.1
- 2.2.5
- 2.1
- 2.0
- ruby-head
matrix:
fast_finish: true
allow_failures:
... | Exclude impossible builds to save CPU time | Exclude impossible builds to save CPU time
| YAML | mit | gjtorikian/html-pipeline,jch/html-pipeline,gjtorikian/html-pipeline,jch/html-pipeline | yaml | ## Code Before:
language: ruby
sudo: false
cache: bundler
addons:
apt:
sources:
- libicu-dev
script: bundle exec rake
gemfile:
- gemfiles/rails_5.gemfile
- gemfiles/rails_4.gemfile
- gemfiles/rails_3.gemfile
rvm:
- 2.3.1
- 2.2.5
- 2.1
- 2.0
- ruby-head
matrix:
fast_finish: true
allo... |
7c7922d38dfc1c08f709e0a497b1fa9f024687fa | scripts/local_test.sh | scripts/local_test.sh |
set -eux
configurator --local userservice qa
license_key=$(python -c "print __import__('json').load(open('configuration.json'))['userservice']['geoip']['license_key']")
rm configuration.json
./virtualenv/bin/python -m maxmindupdater geoip.mmdb $license_key GeoIP2-Country
|
set -eux
configurator --local userservice qa
license_key=$(python -c "print __import__('json').load(open('configuration.json'))['userservice']['geoip']['license_key']")
rm configuration.json
./virtualenv/bin/python maxmindupdater/__main__.py geoip.mmdb $license_key GeoIP2-Country
| Revert python -m in local testing as it's actually a pain | Revert python -m in local testing as it's actually a pain
| Shell | mit | yola/maxmind-updater,yola/maxmind-updater | shell | ## Code Before:
set -eux
configurator --local userservice qa
license_key=$(python -c "print __import__('json').load(open('configuration.json'))['userservice']['geoip']['license_key']")
rm configuration.json
./virtualenv/bin/python -m maxmindupdater geoip.mmdb $license_key GeoIP2-Country
## Instruction:
Revert pytho... |
c11de03b158ba19e67d1fde44cf27e28d200071f | core/app/models/spree/payment_method.rb | core/app/models/spree/payment_method.rb | module Spree
class PaymentMethod < ActiveRecord::Base
DISPLAY = [:both, :front_end, :back_end]
default_scope where(:deleted_at => nil)
scope :production, where(:environment => 'production')
def self.providers
Rails.application.config.spree.payment_methods
end
def provider_class
... | module Spree
class PaymentMethod < ActiveRecord::Base
DISPLAY = [:both, :front_end, :back_end]
default_scope where(:deleted_at => nil)
scope :production, where(:environment => 'production')
attr_accessible :name, :description, :environment, :display_on, :active
def self.providers
Rails.a... | Make name, description, environment, display_on and active mass-assignable for payment method | Make name, description, environment, display_on and active mass-assignable for payment method
| Ruby | bsd-3-clause | beni55/spree,sideci-sample/sideci-sample-spree,ramkumar-kr/spree,imella/spree,agient/agientstorefront,sideci-sample/sideci-sample-spree,tesserakt/clean_spree,grzlus/solidus,lsirivong/solidus,wolfieorama/spree,lzcabrera/spree-1-3-stable,njerrywerry/spree,SadTreeFriends/spree,piousbox/spree,dotandbo/spree,degica/spree,Ar... | ruby | ## Code Before:
module Spree
class PaymentMethod < ActiveRecord::Base
DISPLAY = [:both, :front_end, :back_end]
default_scope where(:deleted_at => nil)
scope :production, where(:environment => 'production')
def self.providers
Rails.application.config.spree.payment_methods
end
def prov... |
c202a769afd4f7bc51abfe6d2c2bff6608a0dd7d | app/models/team.rb | app/models/team.rb | class Team < ActiveRecord::Base
# == Associations
has_many :users
has_many :receivers, through: :invitations
# == Validations
validates :name, presence: true
# == Scope methods
scope :with_users, -> { includes(:users).select{ |team| team.users.length > 0 }}
scope :by_score, -> { with_users.sort_by(&:s... | class Team < ActiveRecord::Base
# == Associations
has_many :users
has_many :receivers, through: :invitations
# == Validations
validates :name, presence: true
# == Scope methods
scope :with_users, -> { includes(:users).select{ |team| team.users.length > 0 }}
scope :by_score, -> { with_users.sort_by(&:s... | Change reject to reject! in score method in Team model | Change reject to reject! in score method in Team model
| Ruby | mit | codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app,codeforboston/cambridge_energy_app | ruby | ## Code Before:
class Team < ActiveRecord::Base
# == Associations
has_many :users
has_many :receivers, through: :invitations
# == Validations
validates :name, presence: true
# == Scope methods
scope :with_users, -> { includes(:users).select{ |team| team.users.length > 0 }}
scope :by_score, -> { with_u... |
a28f079d865742d5d13e2fa31f661bc1a9916a52 | test/test_helper.rb | test/test_helper.rb | RAILS_ENV = 'test'
require 'rubygems'
require 'test/unit'
require 'mocha'
require 'ostruct'
begin
require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb'))
rescue LoadError
require 'active_support'
require 'action_controller'
require 'html/document'
require 'action_vie... | RAILS_ENV = 'test'
require 'rubygems'
require 'test/unit'
require 'mocha'
require 'ostruct'
begin
require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb'))
rescue LoadError
require 'active_support'
require 'action_controller'
require 'html/document'
require 'action_vie... | Fix protect against forgery test failures | Fix protect against forgery test failures
| Ruby | mit | joshuabates/association-lists | ruby | ## Code Before:
RAILS_ENV = 'test'
require 'rubygems'
require 'test/unit'
require 'mocha'
require 'ostruct'
begin
require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb'))
rescue LoadError
require 'active_support'
require 'action_controller'
require 'html/document'
req... |
3bdade9b38c675257fd2bb5da261f94c4282c476 | CONTRIBUTING.md | CONTRIBUTING.md |
1. Report your full operating system details, python version and
terminal/console program and version.
2. Ensure that your commit messages follow [these
guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
3. Stick to the existing coding style.
4. Make sure all tests pass when run ... |
1. Report your full operating system details, python version and
terminal/console program and version.
2. Ensure that your commit messages follow [these
guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
3. Stick to the existing coding style.
4. Make sure all tests pass when run ... | Add contrib guidelines for system tests | Add contrib guidelines for system tests [ci skip]
| Markdown | bsd-3-clause | MisanthropicBit/colorise | markdown | ## Code Before:
1. Report your full operating system details, python version and
terminal/console program and version.
2. Ensure that your commit messages follow [these
guidelines](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
3. Stick to the existing coding style.
4. Make sure all test... |
90fe9290da7e304da1d10225b0a698420018ec1f | db/seeds/default/250_users.rb | db/seeds/default/250_users.rb | module Renalware
log "--------------------Adding Users--------------------"
Renalware::User.create!(
given_name: 'System',
family_name: 'User',
username: Renalware::SystemUser.username,
password: SecureRandom.hex(32),
email: 'systemuser@renalware.net',
approved: true,
signature: 'System ... | module Renalware
log "--------------------Adding System User--------------------"
Renalware::User.create!(
given_name: 'System',
family_name: 'User',
username: Renalware::SystemUser.username,
password: SecureRandom.hex(32),
email: 'systemuser@renalware.net',
approved: true,
signature: 'S... | Tweak add System User log | Tweak add System User log
| Ruby | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | ruby | ## Code Before:
module Renalware
log "--------------------Adding Users--------------------"
Renalware::User.create!(
given_name: 'System',
family_name: 'User',
username: Renalware::SystemUser.username,
password: SecureRandom.hex(32),
email: 'systemuser@renalware.net',
approved: true,
sig... |
b0b02d1654faf14cd20e479516b416cc8c6ecf3d | less/Rb-menu.less | less/Rb-menu.less | /*==============================General Menu style============================*/
| /*==============================General Menu style============================*/
/* Responsive Navigation Basic Style
===============================================================================================*/
#menu {
display: none;
}
@media screen and (max-width: 768px) {
#menu {
display: block;
... | Include Rb- css for responsive menu | Include Rb- css for responsive menu
Also include on MEDIA less file
| Less | mit | newaeonweb/responsiveboilerplate | less | ## Code Before:
/*==============================General Menu style============================*/
## Instruction:
Include Rb- css for responsive menu
Also include on MEDIA less file
## Code After:
/*==============================General Menu style============================*/
/* Responsive Navigation Basic Style
... |
dc3762a5bcfe060acc06d923ea52ccf5058a271a | listcmd.go | listcmd.go | // Copyright (C) 2017 Damon Revoe. All rights reserved.
// Use of this source code is governed by the MIT
// license, which can be found in the LICENSE file.
package main
func listPackages(workspacedir, pkgpath string) error {
packageIndex, err := buildPackageIndex(pkgpath)
if err != nil {
return err
}
packag... | // Copyright (C) 2017 Damon Revoe. All rights reserved.
// Use of this source code is governed by the MIT
// license, which can be found in the LICENSE file.
package main
import (
"log"
"github.com/spf13/cobra"
)
func listPackages() error {
packageIndex, err := buildPackageIndex(flags.pkgPath)
if err != nil {
... | Add the 'list' command using cobra | Add the 'list' command using cobra
| Go | mit | revl/autoforge | go | ## Code Before:
// Copyright (C) 2017 Damon Revoe. All rights reserved.
// Use of this source code is governed by the MIT
// license, which can be found in the LICENSE file.
package main
func listPackages(workspacedir, pkgpath string) error {
packageIndex, err := buildPackageIndex(pkgpath)
if err != nil {
return... |
144af82653e167caa83f2658ef28443a66d3b1ce | lib/bunny/heartbeat_sender.rb | lib/bunny/heartbeat_sender.rb | require "thread"
require "amq/protocol/client"
require "amq/protocol/frame"
module Bunny
class HeartbeatSender
#
# API
#
def initialize(transport)
@transport = transport
@mutex = Mutex.new
@last_activity_time = Time.now
end
def start(period = 30)
@mutex.synchro... | require "thread"
require "amq/protocol/client"
require "amq/protocol/frame"
module Bunny
class HeartbeatSender
#
# API
#
def initialize(transport)
@transport = transport
@mutex = Mutex.new
@last_activity_time = Time.now
end
def start(period = 30)
@mutex.synchro... | Stop heartbeat sender on any exception it encounters | Stop heartbeat sender on any exception it encounters
| Ruby | mit | jafrog/bunny,teodor-pripoae/bunny,wconrad/bunny,0xfaded/bunny,0xfaded/bunny,bartj3/bunny,pressrelations/bunny,teodor-pripoae/bunny,jafrog/bunny,gferguson-gd/bunny,bartj3/bunny,gferguson-gd/bunny,wconrad/bunny,pressrelations/bunny | ruby | ## Code Before:
require "thread"
require "amq/protocol/client"
require "amq/protocol/frame"
module Bunny
class HeartbeatSender
#
# API
#
def initialize(transport)
@transport = transport
@mutex = Mutex.new
@last_activity_time = Time.now
end
def start(period = 30)
... |
9be47d768eb967add11f6ac218ccb49973f9d5ee | src/main.c | src/main.c | int main()
{
return 0;
}
|
const char usage[] = "Usage: %s <filenname>\n";
#define READ_SIZE 2048
int main(int argc, char *argv[])
{
if (argc != 2) {
printf(usage, argv[0]);
return 1;
}
//FILE *file = fopen(argv[1], "r");
int fd = open(argv[1], O_RDONLY);
char buf[READ_SIZE];
ssize_t bytes;
do {
bytes = read(fd, buf, READ_SIZE);... | Read file passed as argv[1] | Read file passed as argv[1]
| C | mit | orodley/imgprint | c | ## Code Before:
int main()
{
return 0;
}
## Instruction:
Read file passed as argv[1]
## Code After:
const char usage[] = "Usage: %s <filenname>\n";
#define READ_SIZE 2048
int main(int argc, char *argv[])
{
if (argc != 2) {
printf(usage, argv[0]);
return 1;
}
//FILE *file = fopen(argv[1], "r");
int fd = o... |
8bf86deaa86836252966f1e3f69ae297601a61e7 | ansible/ansible.yml | ansible/ansible.yml | - hosts: all
sudo: True
remote_user: vagrant
roles:
- { role: common, hostname: testvm }
- { role: webserver, web_server: nginx }
- { role: php, version: "5.6", env: dev }
- { role: dev/composer }
- { role: database, vendor: mariadb }
- { role: common/host, hostname: drupal.example.com }
... | - hosts: all
sudo: True
remote_user: vagrant
roles:
- { role: common, hostname: testvm }
- { role: webserver, web_server: nginx }
- { role: php, version: "5.6", env: dev }
- { role: dev/tools }
- { role: dev/composer }
- { role: dev/drush }
- { role: database, vendor: mariadb }
- {... | Enable dev/drush and dev/tools by default | Enable dev/drush and dev/tools by default
| YAML | mit | mariano-dagostino/genoma | yaml | ## Code Before:
- hosts: all
sudo: True
remote_user: vagrant
roles:
- { role: common, hostname: testvm }
- { role: webserver, web_server: nginx }
- { role: php, version: "5.6", env: dev }
- { role: dev/composer }
- { role: database, vendor: mariadb }
- { role: common/host, hostname: drupal... |
386ba02d9116a5ab0661a20ce3406029ebfb965e | README.md | README.md |
Converts sfz instruments into Bitwig Studio multisample instruments.
The Bitwig multisample format is more basic than sfz. Features that are unique to sfz will be lost in the conversion process.
## Usage
python sf2bitwig.py file.sfz
## Dependencies
* docopt
|
Converts sfz instruments into Bitwig Studio multisample instruments.
The Bitwig multisample format is more basic than sfz. Features that are unique to sfz will be lost in the conversion process.
## Usage
python sf2bitwig.py file.sfz
## Dependencies
* docopt
## Tested SFZ files
[VS Chamber Orchestra: Community Edi... | Add list of tested SFZ files | Add list of tested SFZ files
| Markdown | mit | davem2/sfz2bitwig | markdown | ## Code Before:
Converts sfz instruments into Bitwig Studio multisample instruments.
The Bitwig multisample format is more basic than sfz. Features that are unique to sfz will be lost in the conversion process.
## Usage
python sf2bitwig.py file.sfz
## Dependencies
* docopt
## Instruction:
Add list of tested SFZ ... |
c343c6ee7fb3c2f545b082c06c21f3fbb93a4585 | src/extension/index.js | src/extension/index.js | import {
setupTokenEditor,
setTokenEditorValue,
useDefaultToken
} from '../editor';
import { getParameterByName } from '../utils.js';
import { publicKeyTextArea } from './dom-elements.js';
/* For initialization, look at the end of this file */
function parseLocationQuery() {
const publicKey = getParameterByNa... | import {
setupTokenEditor,
setTokenEditorValue,
useDefaultToken
} from '../editor';
import { publicKeyTextArea } from './dom-elements.js';
/* For initialization, look at the end of this file */
function loadToken() {
const lastToken = localStorage.getItem('lastToken');
if(lastToken) {
setTokenEditorValu... | Remove unnecessary code for the extension. | Remove unnecessary code for the extension.
| JavaScript | mit | nov/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,simo5/jsonwebtoken.github.io,nov/jsonwebtoken.github.io | javascript | ## Code Before:
import {
setupTokenEditor,
setTokenEditorValue,
useDefaultToken
} from '../editor';
import { getParameterByName } from '../utils.js';
import { publicKeyTextArea } from './dom-elements.js';
/* For initialization, look at the end of this file */
function parseLocationQuery() {
const publicKey = ... |
59e1f4d9b72f385057e4db87a393e0aa0a37e33a | app/views/surveys/_question.erb | app/views/surveys/_question.erb | <% question.choices.each do |choice| %>
<%= erb :"surveys/_choice", locals: {choice: choice, question: question}, layout: false %>
<% end %> | <h4><%= question.question %></h4>
<% question.choices.each do |choice| %>
<%= erb :"surveys/_choice", locals: {choice: choice, question: question}, layout: false %>
<% end %> | Fix question not showing up | Fix question not showing up
| HTML+ERB | mit | Doralyp/Survey-Primate,Doralyp/Survey-Primate,Doralyp/Survey-Primate | html+erb | ## Code Before:
<% question.choices.each do |choice| %>
<%= erb :"surveys/_choice", locals: {choice: choice, question: question}, layout: false %>
<% end %>
## Instruction:
Fix question not showing up
## Code After:
<h4><%= question.question %></h4>
<% question.choices.each do |choice| %>
<%= erb :"surveys/_choice... |
a123f709e8a807fda0feb6bba18a7db5e282f12d | test/index.js | test/index.js | const koa = require("koa"),
expect = require("expect"),
uncapitalize = require("../"),
app = koa();
app.use(uncapitalize);
app.use(function* (next) {
if (this.path.toLowerCase() != "/test") {
return yield next;
}
this.body = "OK";
});
const request = require("supertest").agent(app.listen());
describ... | const agent = require("supertest-koa-agent"),
expect = require("chai").expect,
Koa = require("koa"),
uncapitalize = require("../");
var app = null;
var subject = null;
beforeEach(() => {
app = new Koa();
app.use(uncapitalize);
app.use(function* (next) {
if (this.path.toLowerCase() != "/test") {
... | Update tests for new versions | Update tests for new versions
| JavaScript | mit | mfinelli/koa-uncapitalize | javascript | ## Code Before:
const koa = require("koa"),
expect = require("expect"),
uncapitalize = require("../"),
app = koa();
app.use(uncapitalize);
app.use(function* (next) {
if (this.path.toLowerCase() != "/test") {
return yield next;
}
this.body = "OK";
});
const request = require("supertest").agent(app.lis... |
95db36749005919426136254c4b8f5315d4a5e9f | src/css/popup.css | src/css/popup.css | html,
body {
min-width: 800px;
min-height: 300px;
padding: 0;
margin: 0;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
overflow: hidden;
font-size: 12px;
}
#app-container {
margin: auto;
min-width: 800px;
max-width: 1024px;
}
| html,
body {
min-height: 300px;
padding: 0;
margin: 0;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
overflow: hidden;
font-size: 12px;
}
#app-container {
margin: auto;
min-width: 800px;
max-width: 1024px;
}
| Remove min-width from html, body | Remove min-width from html, body
| CSS | mit | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | css | ## Code Before:
html,
body {
min-width: 800px;
min-height: 300px;
padding: 0;
margin: 0;
user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
overflow: hidden;
font-size: 12px;
}
#app-container {
margin: auto;
min-width: 800px;
max-width: 1024px;
}
## ... |
dfe7a8fd46ec0e400551ff5d48faef4faee51cab | src/app/projects/states/tutorials/tutorials.coffee | src/app/projects/states/tutorials/tutorials.coffee | angular.module('doubtfire.projects.states.tutorials', [])
#
# Tasks state for projects
#
.config(($stateProvider) ->
$stateProvider.state 'projects/tutorials', {
parent: 'projects/index'
url: '/tutorials'
controller: 'ProjectsTutorialsStateCtrl'
templateUrl: 'projects/states/tutorials/tutorials.tpl.h... | angular.module('doubtfire.projects.states.tutorials', [])
#
# Tasks state for projects
#
.config(($stateProvider) ->
$stateProvider.state 'projects/tutorials', {
parent: 'projects/index'
url: '/tutorials'
controller: 'ProjectsTutorialsStateCtrl'
templateUrl: 'projects/states/tutorials/tutorials.tpl.h... | Add success alert messages on changing tutorial | ENHANCE: Add success alert messages on changing tutorial
| CoffeeScript | agpl-3.0 | alexcu/doubtfire-web,alexcu/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web,doubtfire-lms/doubtfire-web | coffeescript | ## Code Before:
angular.module('doubtfire.projects.states.tutorials', [])
#
# Tasks state for projects
#
.config(($stateProvider) ->
$stateProvider.state 'projects/tutorials', {
parent: 'projects/index'
url: '/tutorials'
controller: 'ProjectsTutorialsStateCtrl'
templateUrl: 'projects/states/tutorials... |
0e3654d6494163364f2b24d257499759625f180d | wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php | wcfsetup/install/files/lib/system/user/activity/event/FollowUserActivityEvent.class.php | <?php
namespace wcf\system\user\activity\event;
use wcf\data\user\UserList;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
/**
* User activity event implementation for follows.
*
* @author Alexander Ebert
* @copyright 2001-2017 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.or... | <?php
namespace wcf\system\user\activity\event;
use wcf\data\user\UserList;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
/**
* User activity event implementation for follows.
*
* @author Alexander Ebert
* @copyright 2001-2017 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.or... | Hide follow events if the user may not view profiles | Hide follow events if the user may not view profiles
| PHP | lgpl-2.1 | WoltLab/WCF,Cyperghost/WCF,WoltLab/WCF,SoftCreatR/WCF,Cyperghost/WCF,SoftCreatR/WCF,MenesesEvandro/WCF,SoftCreatR/WCF,WoltLab/WCF,SoftCreatR/WCF,MenesesEvandro/WCF,Cyperghost/WCF,Cyperghost/WCF,WoltLab/WCF,Cyperghost/WCF | php | ## Code Before:
<?php
namespace wcf\system\user\activity\event;
use wcf\data\user\UserList;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
/**
* User activity event implementation for follows.
*
* @author Alexander Ebert
* @copyright 2001-2017 WoltLab GmbH
* @license GNU Lesser General Public License <http... |
53aaac2596fbc315a8f9019f0cf33ded926b9e1b | lib/barge/client.rb | lib/barge/client.rb | require 'faraday'
require 'faraday_middleware'
module Barge
class Client
attr_accessor :access_token
attr_reader :droplet
DEFAULT_OPTIONS = {}
DIGITAL_OCEAN_URL = 'https://api.digitalocean.com'
TIMEOUTS = 10
def initialize(options = DEFAULT_OPTIONS)
self.access_token = options.fetch(... | require 'faraday'
require 'faraday_middleware'
module Barge
class Client
attr_accessor :access_token
attr_reader :droplet
DEFAULT_OPTIONS = {}
DIGITAL_OCEAN_URL = 'https://api.digitalocean.com'
TIMEOUTS = 10
def initialize(options = DEFAULT_OPTIONS)
self.access_token = options.fetch(... | Use symbols to specify middleware | Use symbols to specify middleware | Ruby | mit | blom/barge | ruby | ## Code Before:
require 'faraday'
require 'faraday_middleware'
module Barge
class Client
attr_accessor :access_token
attr_reader :droplet
DEFAULT_OPTIONS = {}
DIGITAL_OCEAN_URL = 'https://api.digitalocean.com'
TIMEOUTS = 10
def initialize(options = DEFAULT_OPTIONS)
self.access_token ... |
681dc926bcc021550d8b4fc13fc0136652a43c2c | src/extras/index.js | src/extras/index.js | export * from './controls/FirstPersonControls';
export * from './controls/OrbitControlsModule';
export * from './VirtualMouse';
| export * from './controls/FirstPersonControls';
export * from './controls/OrbitControlsModule';
export * from './pass/index';
export * from './shader/index';
export * from './VirtualMouse';
| Fix exporting pass & shaders | Fix exporting pass & shaders
| JavaScript | mit | WhitestormJS/whitestorm.js,WhitestormJS/whitestorm.js | javascript | ## Code Before:
export * from './controls/FirstPersonControls';
export * from './controls/OrbitControlsModule';
export * from './VirtualMouse';
## Instruction:
Fix exporting pass & shaders
## Code After:
export * from './controls/FirstPersonControls';
export * from './controls/OrbitControlsModule';
export * from './... |
f8bdd7c8139cfc6d7af4bb3d89e983073db976bf | mecodesktop.py | mecodesktop.py |
from macroeco import desktop
desktop()
|
import sys as _sys
from macroeco import desktop
if len(_sys.argv) > 1:
desktop(_sys.argv[1])
else:
desktop()
| Allow compiled OS X app to take parameter file as input on command line | Allow compiled OS X app to take parameter file as input on command line
| Python | bsd-2-clause | jkitzes/macroeco | python | ## Code Before:
from macroeco import desktop
desktop()
## Instruction:
Allow compiled OS X app to take parameter file as input on command line
## Code After:
import sys as _sys
from macroeco import desktop
if len(_sys.argv) > 1:
desktop(_sys.argv[1])
else:
desktop()
|
394ef9cff3b3258150dc5d057a8d11726ca597d9 | requirements/ci_requirements.txt | requirements/ci_requirements.txt | -r requirements.txt
coverage==3.7.1
django-jenkins==0.14.1
logilab-common==0.60.1
pep8==1.4.6
pyflakes==0.7.3
pylint==1.1.0
nose==1.3.1
django-nose==1.1 | -r requirements.txt
coverage==3.7.1
django-jenkins==0.14.1
logilab-common==0.60.1
pep8==1.4.6
pyflakes==0.7.3
pylint==1.1.0
nose==1.3.1
django-nose==1.1
sauceclient==0.1.0
| Add sauceclient==0.1.0 to ci requirements | Add sauceclient==0.1.0 to ci requirements | Text | bsd-3-clause | onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site,onepercentclub/onepercentclub-site | text | ## Code Before:
-r requirements.txt
coverage==3.7.1
django-jenkins==0.14.1
logilab-common==0.60.1
pep8==1.4.6
pyflakes==0.7.3
pylint==1.1.0
nose==1.3.1
django-nose==1.1
## Instruction:
Add sauceclient==0.1.0 to ci requirements
## Code After:
-r requirements.txt
coverage==3.7.1
django-jenkins==0.14.1
logilab-common==0... |
e5949ec2af3bb4fce0261665105d845144a5ab9f | tools/createNugetPackages.cmd | tools/createNugetPackages.cmd | @ECHO OFF
pushd "%~dp0.."
SET parentDir=%cd%
popd
SET SUFFIX=%1
IF '%SUFFIX%' == '' GOTO NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c Release -o "%parentDir%\nugets" --version-suffix %SUFFIX%
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs\Suite\Microsoft... | @ECHO OFF
pushd "%~dp0.."
SET parentDir=%cd%
popd
SET CONFIGURATION=%2
IF '%CONFIGURATION%' == '' SET CONFIGURATION=Release
SET SUFFIX=%1
IF '%SUFFIX%' == '' GOTO NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c %CONFIGURATION% -o "%parentDir%\nugets" -... | Allow building Nuget packages out of Debug binaries | Allow building Nuget packages out of Debug binaries
| Batchfile | mit | karolz-ms/diagnostics-eventflow | batchfile | ## Code Before:
@ECHO OFF
pushd "%~dp0.."
SET parentDir=%cd%
popd
SET SUFFIX=%1
IF '%SUFFIX%' == '' GOTO NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c Release -o "%parentDir%\nugets" --version-suffix %SUFFIX%
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs... |
e346ab3abd59d1ea6574f6804544a9b993c99281 | demo/README.md | demo/README.md | Fuel OVS Plugin Demo Script
===========================
Overview
--------
This directory includes scripts to setup fuel ovs plugin demo.
The scripts are ONLY tested in new installation of Ubuntu 14.04.03 Desktop
64bit. Extra configuration or Extra packages such as virtualbox may break
functionality. All packages or ... | Fuel OVS Plugin Demo Script
===========================
Overview
--------
This directory includes scripts to setup fuel ovs plugin demo.
The scripts are ONLY tested in new installation of Ubuntu 14.04.03 Desktop
64bit in server:
a. 16G Memory
b. 1T Disk
c. virtualization support
Extra configuration or Extra package... | Add how to run network script without git | Add how to run network script without git
Change-Id: Idaea8274eff1f365e99f20bd9e5dad239add4d82
Signed-off-by: Guo Ruijing <941cd458652bd2387d6420a5e549d9433c53f366@intel.com>
| Markdown | apache-2.0 | georgepar/fuel-plugin-ovs-mirror,georgepar/fuel-plugin-ovs-mirror,georgepar/fuel-plugin-ovs-mirror | markdown | ## Code Before:
Fuel OVS Plugin Demo Script
===========================
Overview
--------
This directory includes scripts to setup fuel ovs plugin demo.
The scripts are ONLY tested in new installation of Ubuntu 14.04.03 Desktop
64bit. Extra configuration or Extra packages such as virtualbox may break
functionality. ... |
17d2056799f9560f0340efa18447a6ea7dd52e56 | src/mixin.js | src/mixin.js | function Mixin(proto, properties) {
for (const property in properties) {
const value = properties[property];
if (proto[property] && typeof value == "function") {
inherit(proto, property, value);
} else {
proto[property] = value;
}
}
}
function inherit(proto, name, func) {
var parentFu... | function Mixin(proto, properties) {
for (const property in properties) {
const value = properties[property];
if (proto[property] && typeof value == "function") {
inherit(proto, property, value);
} else {
proto[property] = value;
}
}
}
function inherit(proto, property, func) {
var pare... | Make name `name` match in `inherit` helper | Make name `name` match in `inherit` helper
This function uses approximately the same variable names to add to the
prototype. Lets match `Mixin`.
| JavaScript | mit | iFixit/node-markup,iFixit/node-markup,iFixit/node-markup | javascript | ## Code Before:
function Mixin(proto, properties) {
for (const property in properties) {
const value = properties[property];
if (proto[property] && typeof value == "function") {
inherit(proto, property, value);
} else {
proto[property] = value;
}
}
}
function inherit(proto, name, func) ... |
4a7e8406f2159975b34de83115c3cc61c367879b | lib/zendesk_apps_support/app_requirement.rb | lib/zendesk_apps_support/app_requirement.rb | module ZendeskAppsSupport
class AppRequirement
TYPES = %w(automations channel_integrations macros targets views ticket_fields triggers user_fields).freeze
end
end
| module ZendeskAppsSupport
class AppRequirement
TYPES = %w(automations channel_integrations macros targets views ticket_fields triggers user_fields organization_fields).freeze
end
end
| Add organization_fields as a valid requirements resource type | Add organization_fields as a valid requirements resource type
| Ruby | apache-2.0 | zendesk/zendesk_apps_support,zendesk/zendesk_apps_support,zendesk/zendesk_apps_support | ruby | ## Code Before:
module ZendeskAppsSupport
class AppRequirement
TYPES = %w(automations channel_integrations macros targets views ticket_fields triggers user_fields).freeze
end
end
## Instruction:
Add organization_fields as a valid requirements resource type
## Code After:
module ZendeskAppsSupport
class AppR... |
8443567ab3940297e70f0af5a10f50c750af38a4 | src/josegonzalez/Queuesadilla/Job.php | src/josegonzalez/Queuesadilla/Job.php | <?php
namespace josegonzalez\Queuesadilla;
class Job
{
protected $item;
protected $backend;
public function __construct($item, $backend)
{
$this->item = $item;
$this->backend = $backend;
}
public function attempts()
{
if (array_key_exists('attempts', $this->item)... | <?php
namespace josegonzalez\Queuesadilla;
class Job
{
protected $item;
protected $backend;
public function __construct($item, $backend)
{
$this->item = $item;
$this->backend = $backend;
}
public function attempts()
{
if (array_key_exists('attempts', $this->item)... | Add ability to retrieve the entire item | Add ability to retrieve the entire item
| PHP | mit | josegonzalez/php-queuesadilla | php | ## Code Before:
<?php
namespace josegonzalez\Queuesadilla;
class Job
{
protected $item;
protected $backend;
public function __construct($item, $backend)
{
$this->item = $item;
$this->backend = $backend;
}
public function attempts()
{
if (array_key_exists('attempt... |
58ee530d240c7878bf8c2e1083330baf00b1878c | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
/**
* Pull in the package.json file so we can read its metadata.
*/
pkg: grunt.file.readJSON('package.json'),
/**
* LESS: https://github.com/gruntjs/grunt-contrib-less
*
* Compile LESS files to CSS.
*/... | module.exports = function(grunt) {
'use strict';
grunt.initConfig({
/**
* Pull in the package.json file so we can read its metadata.
*/
pkg: grunt.file.readJSON('package.json'),
/**
* LESS: https://github.com/gruntjs/grunt-contrib-less
*
* Compile LESS files to CSS.
*/... | Change where legacy outputs to in order to match current components. | Change where legacy outputs to in order to match current components.
| JavaScript | cc0-1.0 | cfpb/cf-grid,Scotchester/cf-grid,cfpb/cf-grid,Scotchester/cf-grid | javascript | ## Code Before:
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
/**
* Pull in the package.json file so we can read its metadata.
*/
pkg: grunt.file.readJSON('package.json'),
/**
* LESS: https://github.com/gruntjs/grunt-contrib-less
*
* Compile LESS files... |
9d8f18cbc352bf1596b1052771b0a7502306a808 | README.md | README.md |
이 문서는 [hexo](http://hexo.io/)로 만들었습니다. 마크다운으로 작성된 문서는 `src`에 있습니다. 언제든지 이슈가 있으면 풀 리퀘스트를 보내주세요!
## 개발 방법
개발 서버 주소는 `localhost:4000` :
```
$ npm install -g hexo-cli
$ npm install
$ hexo server
```
|
이 문서는 [hexo](http://hexo.io/)로 만들었습니다. 마크다운으로 작성된 문서는 `src`에 있습니다. 언제든지 이슈가 있으면 풀 리퀘스트를 보내주세요!
## 개발 방법
개발 서버 주소는 `localhost:4000` :
```
$ npm install -g hexo-cli
$ npm install
$ hexo server
```
## 기타 한국어 번역 페이지
- [Vuex](https://vuex.vuejs.org/kr/), [저장소](https://github.com/ChangJoo-Park/vuex)
- [Vue-Router](http... | Add additional translated vue.js docs | Add additional translated vue.js docs
| Markdown | mit | vuejs-kr/kr.vuejs.org,vuejs-kr/kr.vuejs.org | markdown | ## Code Before:
이 문서는 [hexo](http://hexo.io/)로 만들었습니다. 마크다운으로 작성된 문서는 `src`에 있습니다. 언제든지 이슈가 있으면 풀 리퀘스트를 보내주세요!
## 개발 방법
개발 서버 주소는 `localhost:4000` :
```
$ npm install -g hexo-cli
$ npm install
$ hexo server
```
## Instruction:
Add additional translated vue.js docs
## Code After:
이 문서는 [hexo](http://hexo.io/)로 만들... |
b7c0049e9c072f34b64b8acf4867ee74e1ff1d5e | app/models/reason.rb | app/models/reason.rb | class Reason < ActiveRecord::Base
has_and_belongs_to_many :posts
has_many :feedbacks, :through => :posts
def tp_percentage
# I don't like the .count.count, but it does get the job done
count = self.posts.where(:is_tp => true, :is_fp => false).count
return (count.to_f / self.posts.count.to_f).to_f
... | class Reason < ActiveRecord::Base
has_and_belongs_to_many :posts
has_many :feedbacks, :through => :posts
def tp_percentage
# I don't like the .count.count, but it does get the job done
count = self.posts.where(:is_tp => true, :is_fp => false).count
return (count.to_f / self.posts.count.to_f).to_f
... | Include ignore; naa; etc. in orange bar | Include ignore; naa; etc. in orange bar
| Ruby | cc0-1.0 | j-f1/forked-metasmoke,Charcoal-SE/metasmoke,angussidney/metasmoke,j-f1/forked-metasmoke,j-f1/forked-metasmoke,SulphurDioxide/metasmoke,j-f1/forked-metasmoke,SulphurDioxide/metasmoke,angussidney/metasmoke,Charcoal-SE/metasmoke,Charcoal-SE/metasmoke,angussidney/metasmoke,SulphurDioxide/metasmoke,Charcoal-SE/metasmoke,ang... | ruby | ## Code Before:
class Reason < ActiveRecord::Base
has_and_belongs_to_many :posts
has_many :feedbacks, :through => :posts
def tp_percentage
# I don't like the .count.count, but it does get the job done
count = self.posts.where(:is_tp => true, :is_fp => false).count
return (count.to_f / self.posts.co... |
e4062735961d1d586b2aad5a4057361c7f4e10cd | README.md | README.md | [](http://travis-ci.org/mapbox/polyline)
# polyline
A simple [google-esque polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
implementation in Javascript. Compatible with nodejs (`npm install polyline`... | [](http://travis-ci.org/mapbox/polyline)
# polyline
A simple [google-esque polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
implementation in Javascript. Compatible with nodejs (`npm install polyline`... | Improve readme, add examples and installation | Improve readme, add examples and installation
| Markdown | bsd-3-clause | mapbox/polyline,Kevin-M-Smith/polyline,Turbo87/polyline | markdown | ## Code Before:
[](http://travis-ci.org/mapbox/polyline)
# polyline
A simple [google-esque polyline](https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
implementation in Javascript. Compatible with nodejs (`npm i... |
4d4cc120a92e36f80889605b44a3e6296da5ed1b | src/c_callable/mod.rs | src/c_callable/mod.rs | extern crate libc;
pub mod anoncreds;
pub mod crypto;
pub mod sovrin;
pub mod wallet;
use self::libc::{c_char, c_uchar};
#[no_mangle]
pub extern fn init_client(host_and_port: *const c_char) -> i32 {
unimplemented!();
}
#[no_mangle]
pub extern fn release_client(client_id: i32) -> i32 {
unimplemented!();
}
#... | extern crate libc;
pub mod anoncreds;
pub mod crypto;
pub mod sovrin;
pub mod wallet;
use std::collections::HashMap;
use std::mem;
use std::sync::{Arc, Mutex, Once, ONCE_INIT};
use self::libc::{c_char, c_uchar};
use super::SovrinClient;
#[derive(Clone)]
pub struct SingletonClients {
inner: Arc<Mutex<(HashMap<i3... | Create simple storage for active clients in C API. | Create simple storage for active clients in C API.
| Rust | apache-2.0 | peacekeeper/indy-sdk,MRJCrunch/indy-sdk,MRJCrunch/indy-sdk,peacekeeper/indy-sdk,korsimoro/indy-sdk,peacekeeper/indy-sdk,srottem/indy-sdk,Artemkaaas/indy-sdk,evernym/sovrin-client-rust,srottem/indy-sdk,Artemkaaas/indy-sdk,evernym/sovrin-client-rust,korsimoro/indy-sdk,MRJCrunch/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/in... | rust | ## Code Before:
extern crate libc;
pub mod anoncreds;
pub mod crypto;
pub mod sovrin;
pub mod wallet;
use self::libc::{c_char, c_uchar};
#[no_mangle]
pub extern fn init_client(host_and_port: *const c_char) -> i32 {
unimplemented!();
}
#[no_mangle]
pub extern fn release_client(client_id: i32) -> i32 {
unimpl... |
2cb02f1ba357f71614cf70483cdc1a68108667eb | .travis.yml | .travis.yml | cache: bundler
language: ruby
sudo: false
before_install:
- gem update --system
- gem install bundler
gemfile:
- gemfiles/rails_4.2.11.gemfile
- gemfiles/rails_5.0.7.gemfile
- gemfiles/rails_5.1.6.gemfile
- gemfiles/rails_5.2.3.gemfile
- gemfiles/rails_5.2.4.gemfile
- gemfiles/rails_6.0.1.gemfile
rvm... | cache: bundler
language: ruby
sudo: false
before_install:
- gem update --system
- gem install bundler
gemfile:
- gemfiles/rails_4.2.11.gemfile
- gemfiles/rails_5.0.7.gemfile
- gemfiles/rails_5.1.6.gemfile
- gemfiles/rails_5.2.3.gemfile
- gemfiles/rails_5.2.4.gemfile
- gemfiles/rails_6.0.1.gemfile
rvm... | Test with latest Ruby versions | Test with latest Ruby versions
| YAML | mit | appfolio/store_base_sti_class | yaml | ## Code Before:
cache: bundler
language: ruby
sudo: false
before_install:
- gem update --system
- gem install bundler
gemfile:
- gemfiles/rails_4.2.11.gemfile
- gemfiles/rails_5.0.7.gemfile
- gemfiles/rails_5.1.6.gemfile
- gemfiles/rails_5.2.3.gemfile
- gemfiles/rails_5.2.4.gemfile
- gemfiles/rails_6.... |
eed507e755ddf79f19cb7b2bb6c5f63d5a8c2d31 | README.md | README.md |
Dotfiles used by me to configure new work environments for web development.
Right now this only covers a bare minimum of my setup, but it's already very handy.
## Disclaimer
It's recommended that you inspect all of the scripts and files in this repository before running anything.
While everything works well for me... |
Dotfiles used by me to configure new work environments for web development.
Right now this only covers a bare minimum of my setup, but it's already very handy.
I used to have fancier dotfiles script, which you can find under the tag [linux-dotfiles](https://github.com/fmoliveira/dotfiles/tree/linux-dotfiles). I've d... | Add linux-dotfiles tag to readme | Add linux-dotfiles tag to readme
| Markdown | mit | fmoliveira/dotfiles,fmoliveira/dotfiles,fmoliveira/dotfiles | markdown | ## Code Before:
Dotfiles used by me to configure new work environments for web development.
Right now this only covers a bare minimum of my setup, but it's already very handy.
## Disclaimer
It's recommended that you inspect all of the scripts and files in this repository before running anything.
While everything w... |
5876a767b5acf515f2db90545c0b5ce483a88550 | features/step_definitions/interaction_steps.rb | features/step_definitions/interaction_steps.rb | And("show me the page") do
save_and_open_page
end
Given(/^I am on the sign in page$/) do
visit new_user_session_path
end
When(/^I go to the homepage$/) do
visit root_path
end
Then(/^I should be on my profile page$/) do
current_path.should == user_path(@user)
end
Then(/^I should be on jane's profile page$/) ... | And("show me the page") do
save_and_open_page
end
Given(/^I am on the sign in page$/) do
visit new_user_session_path
end
When(/^I go to the homepage$/) do
visit root_path
end
Then(/^I should be on my profile page$/) do
current_path.should == user_path(@user)
end
Then(/^I should be on (.*?)'s profile page$/)... | Fix interaction step with generic username regex. | Fix interaction step with generic username regex.
| Ruby | mit | elizabrock/nss-squawker,elizabrock/nss-squawker | ruby | ## Code Before:
And("show me the page") do
save_and_open_page
end
Given(/^I am on the sign in page$/) do
visit new_user_session_path
end
When(/^I go to the homepage$/) do
visit root_path
end
Then(/^I should be on my profile page$/) do
current_path.should == user_path(@user)
end
Then(/^I should be on jane's ... |
665106dfc9dfbdad1173bad1a1217267ab4df8b1 | .travis.yml | .travis.yml | sudo: false
language: go
go:
- 1.6
script:
- go test -v ./...
- go vet
notifications:
email: false
| sudo: false
language: go
go:
- 1.6
script:
- go test -v ./...
- go vet
- go test -coverprofile=profile.out -covermode=count
- goveralls -service=travis-ci -coverprofile=profile.out -repotoken $COVERALLS
notifications:
email: false
| Add code coverage using coverall | Add code coverage using coverall
| YAML | apache-2.0 | t3rm1n4l/nitro,t3rm1n4l/nitro,t3rm1n4l/nitro | yaml | ## Code Before:
sudo: false
language: go
go:
- 1.6
script:
- go test -v ./...
- go vet
notifications:
email: false
## Instruction:
Add code coverage using coverall
## Code After:
sudo: false
language: go
go:
- 1.6
script:
- go test -v ./...
- go vet
- go test -coverprofile=profile.out -covermode=count
- goveralls -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.