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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f72e4e09d5001c972abc62b4b2e351dffb76166b | src/_interactive.css | src/_interactive.css | /* INTERACTIVE */
details {
display: block;
}
| /* INTERACTIVE */
details {
display: block;
}
details *,
details ::before,
details ::after {
box-sizing: border-box;
}
| Add box-sizing: border-box for details children | Add box-sizing: border-box for details children
Close #23
| CSS | mit | barcia/standarize | css | ## Code Before:
/* INTERACTIVE */
details {
display: block;
}
## Instruction:
Add box-sizing: border-box for details children
Close #23
## Code After:
/* INTERACTIVE */
details {
display: block;
}
details *,
details ::before,
details ::after {
box-sizing: border-box;
}
|
477853ccf9d701ceeaa40bc1cba8703efea02019 | modules/akamai_logs/templates/check_akamai_logs.sh.erb | modules/akamai_logs/templates/check_akamai_logs.sh.erb | num_files=$(find <%= @local_logs_dir %>/ -name 'gdslog*.gz' -mtime -1 -size +10M | wc -l)
if [ "$num_files" -lt "4" ]; then
echo "ERROR: Fewer downloaded Akamai logs than expected."
exit 2
else
echo "OK"
exit 0
fi
| num_files=$(find <%= @local_logs_dir %>/ -name 'gdslog*.gz' -mtime -1.2 -size +10M | wc -l)
if [ "$num_files" -lt "4" ]; then
echo "ERROR: Expected 4 downloaded Akamai logs, only found $num_files."
exit 2
else
echo "OK"
exit 0
fi
| Increase time interval for Akamai logs nagios check | Increase time interval for Akamai logs nagios check
Prevent Nagios alert by providing a bit of a buffer around the time
interval.
Also add the actual number of logs found in the error message.
| HTML+ERB | mit | alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet | html+erb | ## Code Before:
num_files=$(find <%= @local_logs_dir %>/ -name 'gdslog*.gz' -mtime -1 -size +10M | wc -l)
if [ "$num_files" -lt "4" ]; then
echo "ERROR: Fewer downloaded Akamai logs than expected."
exit 2
else
echo "OK"
exit 0
fi
## Instruction:
Increase time interval for Akamai logs nagios check
Prevent Nag... |
905a08bf59f6a7d51218aaa4559e7f4efa6244a9 | thunderdome/tests/groovy/test_scanner.py | thunderdome/tests/groovy/test_scanner.py | import os
from unittest import TestCase
from thunderdome.gremlin import parse
class GroovyScannerTest(TestCase):
"""
Test Groovy language scanner
"""
def test_parsing_complicated_function(self):
groovy_file = os.path.join(os.path.dirname(__file__), 'test.groovy')
result = parse(gr... | import os
from unittest import TestCase
from thunderdome.gremlin import parse
class GroovyScannerTest(TestCase):
"""
Test Groovy language scanner
"""
def test_parsing_complicated_function(self):
groovy_file = os.path.join(os.path.dirname(__file__), 'test.groovy')
result = parse(gr... | Add Unit-Test For Scanner Problem | Add Unit-Test For Scanner Problem
| Python | mit | StartTheShift/thunderdome,StartTheShift/thunderdome | python | ## Code Before:
import os
from unittest import TestCase
from thunderdome.gremlin import parse
class GroovyScannerTest(TestCase):
"""
Test Groovy language scanner
"""
def test_parsing_complicated_function(self):
groovy_file = os.path.join(os.path.dirname(__file__), 'test.groovy')
r... |
9b12ee79b89a855208910356b2ca669180b02c83 | .travis.yml | .travis.yml | sudo: false
language: go
go:
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
- "1.10"
- tip
os:
- linux
env:
global:
- DB_URL="http://browscap.org/stream?q=BrowsCapCSV"
- TMP_PATH=test/tmp.csv
- DB_PATH=test/browscap.csv
matrix:
- CPU=1
- CPU=8
script: ./test.bash
matrix:
a... | sudo: false
language: go
go:
- "1.3"
- "1.4"
- "1.5"
- "1.6"
- "1.7"
- "1.8"
- "1.9"
- "1.10"
- "1.11"
- tip
os:
- linux
env:
global:
- DB_URL="http://browscap.org/stream?q=BrowsCapCSV"
- TMP_PATH=test/tmp.csv
- DB_PATH=test/browscap.csv
matrix:
- CPU=1
- CPU=8
script:... | Add 1.11 to Travis config | Add 1.11 to Travis config
| YAML | mit | kavu/cappa,kavu/cappa | yaml | ## Code Before:
sudo: false
language: go
go:
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
- "1.10"
- tip
os:
- linux
env:
global:
- DB_URL="http://browscap.org/stream?q=BrowsCapCSV"
- TMP_PATH=test/tmp.csv
- DB_PATH=test/browscap.csv
matrix:
- CPU=1
- CPU=8
script: ./test.b... |
4754e781d96f7eda3af007494dead7ac652f3118 | _includes/social_buttons.html | _includes/social_buttons.html | <ul class="rrssb-buttons clearfix">
</ul>
| {% assign post_url = site.url | append: page.url %}
<ul class="rrssb-buttons clearfix">
<li class="rrssb-twitter">
<a href="{{ 'http://twitter.com/home?status=' | append: page.title | append: ' by @ne1ro ' | append: post_url | uri_escape }}" class="popup">
<span class="rrssb-icon"><svg xmlns="http://www.w3.... | Add Bit Twitter Button :joy: | Add Bit Twitter Button :joy:
| HTML | mit | ne1ro/neiro.io,ne1ro/neiro.io | html | ## Code Before:
<ul class="rrssb-buttons clearfix">
</ul>
## Instruction:
Add Bit Twitter Button :joy:
## Code After:
{% assign post_url = site.url | append: page.url %}
<ul class="rrssb-buttons clearfix">
<li class="rrssb-twitter">
<a href="{{ 'http://twitter.com/home?status=' | append: page.title | append: ' ... |
f9ad5fc73cb5167c76c66686c83a6795e0a336ae | metadata/com.knirirr.beecount.txt | metadata/com.knirirr.beecount.txt | Categories:Office
License:Apache2
Web Site:https://code.google.com/p/beecount
Source Code:https://code.google.com/p/beecount/source
Issue Tracker:https://code.google.com/p/beecount/issues
Auto Name:BeeCount
Summary:Knitting row counter
Description:
A knitting project helper, with the following features:
* Keep track o... | Categories:Office
License:Apache2
Web Site:https://code.google.com/p/beecount
Source Code:https://code.google.com/p/beecount/source
Issue Tracker:https://code.google.com/p/beecount/issues
Auto Name:BeeCount
Summary:Knitting row counter
Description:
A knitting project helper, with the following features:
* Keep track o... | Update BeeCount to 1.2.6 (56) | Update BeeCount to 1.2.6 (56)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Office
License:Apache2
Web Site:https://code.google.com/p/beecount
Source Code:https://code.google.com/p/beecount/source
Issue Tracker:https://code.google.com/p/beecount/issues
Auto Name:BeeCount
Summary:Knitting row counter
Description:
A knitting project helper, with the following features... |
217e4e5450379452769fac74766aeb473d212d61 | src/rivets.coffee | src/rivets.coffee | Rivets =
# Binder definitions, publicly accessible on `module.binders`. Can be
# overridden globally or local to a `Rivets.View` instance.
binders: {}
# Component definitions, publicly accessible on `module.components`. Can be
# overridden globally or local to a `Rivets.View` instance.
components: {}
# ... | Rivets =
# Binder definitions, publicly accessible on `module.binders`. Can be
# overridden globally or local to a `Rivets.View` instance.
binders: {}
# Component definitions, publicly accessible on `module.components`. Can be
# overridden globally or local to a `Rivets.View` instance.
components: {}
# ... | Add default { template } delimiters. | Add default { template } delimiters.
| CoffeeScript | mit | benderTheCrime/tiny-rivets,nopnop/rivets,mikeric/rivets,altmind/rivets,re-clone/rivets,kangax/rivets,nopnop/rivets,MishaMykhalyuk/rivets,jccazeaux/rivets,zongkelong/rivets,MishaMykhalyuk/rivets,QAPInt/rivets,jccazeaux/rivets,altmind/rivets,zongkelong/rivets,QAPInt/rivets,re-clone/rivets,altmind/rivets,MishaMykhalyuk/ri... | coffeescript | ## Code Before:
Rivets =
# Binder definitions, publicly accessible on `module.binders`. Can be
# overridden globally or local to a `Rivets.View` instance.
binders: {}
# Component definitions, publicly accessible on `module.components`. Can be
# overridden globally or local to a `Rivets.View` instance.
comp... |
ada5e5d04aaf766b9a88f72a53d0d9c3a62dc69d | tests/sharedtria/CMakeLists.txt | tests/sharedtria/CMakeLists.txt | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
INCLUDE(${DEAL_II_SOURCE_DIR}/tests/setup_testsubproject.cmake)
PROJECT(testsuite CXX)
INCLUDE(${DEAL_II_TARGET_CONFIG})
DEAL_II_PICKUP_TESTS()
| CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
INCLUDE(../setup_testsubproject.cmake)
PROJECT(testsuite CXX)
INCLUDE(${DEAL_II_TARGET_CONFIG})
DEAL_II_PICKUP_TESTS()
| Fix path to cmake file. | Fix path to cmake file.
The current path leads to a failure on my system when calling
'ninja setup_tests':
FAILED: cd /node/bangerth/trunk/build/tests/sharedtria && /w/bangerth/share/software/cmake-2.8.12.2/bin/cmake -GNinja -DDEAL_II_DIR=/node/bangerth/trunk/build -UDIFF_DIR -UNUMDIFF_DIR -UTEST_PICKUP_REGEX -UTEST_... | Text | lgpl-2.1 | sriharisundar/dealii,sriharisundar/dealii,pesser/dealii,ibkim11/dealii,kalj/dealii,ibkim11/dealii,angelrca/dealii,sairajat/dealii,maieneuro/dealii,danshapero/dealii,adamkosik/dealii,spco/dealii,nicolacavallini/dealii,Arezou-gh/dealii,Arezou-gh/dealii,sriharisundar/dealii,maieneuro/dealii,ibkim11/dealii,angelrca/dealii,... | text | ## Code Before:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9)
INCLUDE(${DEAL_II_SOURCE_DIR}/tests/setup_testsubproject.cmake)
PROJECT(testsuite CXX)
INCLUDE(${DEAL_II_TARGET_CONFIG})
DEAL_II_PICKUP_TESTS()
## Instruction:
Fix path to cmake file.
The current path leads to a failure on my system when calling
'ninja setup_tests... |
d9ecc149156b70926e843f0207bb8303e3f80377 | BreweryDBTests/RequestBuilderTests.swift | BreweryDBTests/RequestBuilderTests.swift | //
// RequestBuilderTests.swift
// BreweryDB
//
// Created by Jake Welton on 1/30/16.
// Copyright © 2016 Jake Welton. All rights reserved.
//
import XCTest
@testable import BreweryDB
class RequestBuilderTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. Thi... | //
// RequestBuilderTests.swift
// BreweryDB
//
// Created by Jake Welton on 1/30/16.
// Copyright © 2016 Jake Welton. All rights reserved.
//
import XCTest
@testable import BreweryDB
class RequestBuilderTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. Thi... | Add test for NSURL extension | Add test for NSURL extension
| Swift | mit | jwelton/BreweryDB,jwelton/BreweryDB | swift | ## Code Before:
//
// RequestBuilderTests.swift
// BreweryDB
//
// Created by Jake Welton on 1/30/16.
// Copyright © 2016 Jake Welton. All rights reserved.
//
import XCTest
@testable import BreweryDB
class RequestBuilderTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setu... |
1f395c66eeaabdc36f11cb333529d271ed4566a0 | lib/resty/auto-ssl/utils/shell_execute.lua | lib/resty/auto-ssl/utils/shell_execute.lua | local shell = require "resty.auto-ssl.vendor.shell"
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc"
return function(command)
-- Make sure the sockproc has started before trying to execute any commands
-- (since it's started by only a single worker in init_worker, it's possible
-- other worke... | local shell = require "resty.auto-ssl.vendor.shell"
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc"
return function(command)
-- Make sure the sockproc has started before trying to execute any commands
-- (since it's started by only a single worker in init_worker, it's possible
-- other worke... | Increase default timeout for calling letsencrypt.sh to 60 seconds. | Increase default timeout for calling letsencrypt.sh to 60 seconds.
This attempts to workaround potential slowdowns on Let's Encrypt's end
without dropping the initial request while registering the cert.
The previous default timeout builtin to resty-shell was 15 seconds.
Hopefully certificate registrations won't actua... | Lua | mit | UseFedora/lua-resty-auto-ssl,UseFedora/lua-resty-auto-ssl,GUI/lua-resty-auto-ssl | lua | ## Code Before:
local shell = require "resty.auto-ssl.vendor.shell"
local start_sockproc = require "resty.auto-ssl.utils.start_sockproc"
return function(command)
-- Make sure the sockproc has started before trying to execute any commands
-- (since it's started by only a single worker in init_worker, it's possible
... |
a5474a6773c59ed8593b8d0f31943f116de6ba3c | scripts/aws/mongo-install.sh | scripts/aws/mongo-install.sh | set -e
cat <<END > mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
END
sudo mv -v mongodb-org-3.0.repo /etc/yum.repos.d/mongodb-org-3.0.repo
sudo yum install -y mongodb-org
sudo service mongod start
sudo chkc... | cat <<END | sudo tee /etc/yum.repos.d/mongodb-org-3.2.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
END
sudo yum update -y
set -e
sudo yum install -y mongodb-org
if ... | Improve mongo installer for aws linux | Improve mongo installer for aws linux
| Shell | mit | c9s/typeloy,c9s/typeloy | shell | ## Code Before:
set -e
cat <<END > mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
END
sudo mv -v mongodb-org-3.0.repo /etc/yum.repos.d/mongodb-org-3.0.repo
sudo yum install -y mongodb-org
sudo service mongod... |
298c66efec5397378156ddb3dc1260930d81fe42 | radian-emacs/radian-help.el | radian-emacs/radian-help.el | ;;; radian-help.el --- Improve the Emacs help system
(require 'radian-package)
;; This package provides several useful features, but the most
;; important is `describe-keymap'. Because the package is rather
;; outdated, it's not autoloaded. (But `use-package' takes care of
;; that for us.)
(use-package help-fns+
:d... | ;;; radian-help.el --- Improve the Emacs help system
(require 'radian-package)
;; This package provides several useful features, but the most
;; important is `describe-keymap'. Because the package is rather
;; outdated, it's not autoloaded. (But `use-package' takes care of
;; that for us.)
(use-package help-fns+
:d... | Make sure describe-symbol isn't unbound | Make sure describe-symbol isn't unbound
| Emacs Lisp | mit | raxod502/radian,raxod502/radian | emacs-lisp | ## Code Before:
;;; radian-help.el --- Improve the Emacs help system
(require 'radian-package)
;; This package provides several useful features, but the most
;; important is `describe-keymap'. Because the package is rather
;; outdated, it's not autoloaded. (But `use-package' takes care of
;; that for us.)
(use-packag... |
4569342455a71ddd56f77714eb07c28068d48383 | examples/logWriter_config.js | examples/logWriter_config.js | /* jshint -W079 */
var scribe = require('../scribe.js')({
createDefaultConsole : false
});
var consoleOne = scribe.console({
console : {
colors : 'white'
},
logWriter : {
rootPath : 'logsConsoleOne' //all logs in ./logsConsoleOne
}
});
var consoleTwo = scribe.console({
consol... | /* jshint -W079 */
var moment = require('moment'),
path = require('path');
var scribe = require('../scribe.js')({
createDefaultConsole : false
});
/**
* Create a custom LogWriter
*
* It'll save logs under logsConsoleTwo/[user]/[logger]/[DD_MMM_YY].[logger].json
*
* @see lib/logWriter.js for details
... | Add a custom LogWriter example | Add a custom LogWriter example
| JavaScript | mit | bluejamesbond/Scribe.js,joshball/Scribe.js,joshball/Scribe.js,bluejamesbond/Scribe.js | javascript | ## Code Before:
/* jshint -W079 */
var scribe = require('../scribe.js')({
createDefaultConsole : false
});
var consoleOne = scribe.console({
console : {
colors : 'white'
},
logWriter : {
rootPath : 'logsConsoleOne' //all logs in ./logsConsoleOne
}
});
var consoleTwo = scribe.cons... |
91ed18aedd564d41b3fdfbc2c0fd241a25fe09ea | app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/TransactionEngineFromAddress.scala | app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/TransactionEngineFromAddress.scala | /*
* Copyright 2017 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | /*
* Copyright 2017 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | Update default transaction engine from address | RATE-4305: Update default transaction engine from address
| Scala | apache-2.0 | saurabharora80/hmrc-email-renderer | scala | ## Code Before:
/*
* Copyright 2017 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
51baf5b1caf02a09f4c9558b4d5e085cbea5a068 | README.md | README.md |
Additional validator implementations for javax.validation.
Validators will treat null and blank input strings as valid. If you want to make sure fields are not null/blank
you have to use `@NotNull` or `@NotBlank` in addition.
## ISBNs
```java
@ISBN
private String isbn;
@ISBN(type = ISBNType.ISBN_10)
pr... |
Additional validator implementations for [javax.validation](http://beanvalidation.org/).
Validators will treat null and blank input strings as valid. If you want to make sure fields are not null/blank
you have to use `@NotNull` or `@NotBlank` in addition.
## ISBNs
```java
@ISBN
private String isbn;
@ISBN(... | Add link to bean validation documentation | Add link to bean validation documentation
| Markdown | apache-2.0 | britter/bean-validators,britter/bean-validators | markdown | ## Code Before:
Additional validator implementations for javax.validation.
Validators will treat null and blank input strings as valid. If you want to make sure fields are not null/blank
you have to use `@NotNull` or `@NotBlank` in addition.
## ISBNs
```java
@ISBN
private String isbn;
@ISBN(type = ISBNTyp... |
ce0c966f6d094412086cc91cdbb392f98507daee | src/spec/models/deployable_spec.rb | src/spec/models/deployable_spec.rb | require 'spec_helper'
describe Deployable do
it "should have automatically generated uuid after validation" do
d = Factory.build(:deployable)
d.uuid = nil
d.save
d.uuid.should_not be_nil
end
it "should not be valid if deployable name is too long" do
d = Factory.build(:deployable)
d.name... | require 'spec_helper'
describe Deployable do
it "should have automatically generated uuid after validation" do
d = Factory.build(:deployable)
d.uuid = nil
d.save
d.uuid.should_not be_nil
end
it "should not be valid if deployable name is too long" do
d = Factory.build(:deployable)
d.name... | Add tests for deployable validation | Add tests for deployable validation
| Ruby | apache-2.0 | aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor | ruby | ## Code Before:
require 'spec_helper'
describe Deployable do
it "should have automatically generated uuid after validation" do
d = Factory.build(:deployable)
d.uuid = nil
d.save
d.uuid.should_not be_nil
end
it "should not be valid if deployable name is too long" do
d = Factory.build(:deploy... |
535c3b80506c5e96abe1487836a96a2b576fb02a | TVGuide/app/models/channel.rb | TVGuide/app/models/channel.rb | class Channel < ApplicationRecord
belongs_to :category
has_many :shows
has_many :schedules, through: :shows
validates :name, presence: true, uniqueness: true
end
| class Channel < ApplicationRecord
belongs_to :category
has_many :schedules, through: :shows
has_many :shows
validates :name, presence: true, uniqueness: true
end
| Change order of attributes in Channel model. | Change order of attributes in Channel model.
| Ruby | unlicense | hemi93/tv-guide,hemi93/tv-guide,hemi93/tv-guide,hemi93/tv-guide | ruby | ## Code Before:
class Channel < ApplicationRecord
belongs_to :category
has_many :shows
has_many :schedules, through: :shows
validates :name, presence: true, uniqueness: true
end
## Instruction:
Change order of attributes in Channel model.
## Code After:
class Channel < ApplicationRecord
belongs_to :category... |
d7d97b46bdcf96f1fc4d0ab7574c41266b52b90d | companies.json | companies.json | {
"bloggers": [
{
"jsonId": 10003,
"name": "Goyello",
"rss": "http://blog.goyello.com/pl/feed/",
"twitter": "@goyello"
},
{
"jsonId": 10004,
"name": "Pragmatists",
"rss": "http://pragmatists.pl/blog/feed/",
"twitter": "@pragmatists"
},
{
"jsonI... | {
"bloggers": [
{
"jsonId": 10002,
"name": "TouK",
"rss": "http://touk.pl/blog/feed/",
"twitter": "@touk_pl"
},
{
"jsonId": 10003,
"name": "Goyello",
"rss": "http://blog.goyello.com/pl/feed/",
"twitter": "@goyello"
},
{
"jsonId": 10004,
"... | Add TouK rss feed available via http | Add TouK rss feed available via http
| JSON | mit | szpak/jvm-bloggers,sobkowiak/jvm-bloggers,szpak/jvm-bloggers,tdziurko/jvm-bloggers,tdziurko/jvm-bloggers,jvm-bloggers/jvm-bloggers,alien11689/jvm-bloggers,szpak/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,jvm-bloggers/jvm-bloggers,tdziurko/jvm-bloggers,alien11689/jvm-bloggers,jvm-bloggers/jvm-bloggers,... | json | ## Code Before:
{
"bloggers": [
{
"jsonId": 10003,
"name": "Goyello",
"rss": "http://blog.goyello.com/pl/feed/",
"twitter": "@goyello"
},
{
"jsonId": 10004,
"name": "Pragmatists",
"rss": "http://pragmatists.pl/blog/feed/",
"twitter": "@pragmatists"
},
... |
638dfd12436925ef992e3fbe3ce76bae53073bce | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.3
- jruby
env:
global:
- JRUBY_OPTS=--dev
sudo: false
before_script:
- RAILS_ENV=test bundle exec rake --rakefile=test/dummy/Rakefile db:setup
matrix:
allow_failures:
- rvm: jruby
| language: ruby
rvm:
- 2.3.1
- ruby-head
- jruby
env:
global:
- JRUBY_OPTS=--dev
sudo: false
before_script:
- RAILS_ENV=test bundle exec rake --rakefile=test/dummy/Rakefile db:setup
matrix:
allow_failures:
- rvm: jruby
| Set specific Ruby 2.3.1 and test on ruby HEAD | Set specific Ruby 2.3.1 and test on ruby HEAD
| YAML | mit | gsamokovarov/rvt,gsamokovarov/rvt,gsamokovarov/rvt | yaml | ## Code Before:
language: ruby
rvm:
- 2.3
- jruby
env:
global:
- JRUBY_OPTS=--dev
sudo: false
before_script:
- RAILS_ENV=test bundle exec rake --rakefile=test/dummy/Rakefile db:setup
matrix:
allow_failures:
- rvm: jruby
## Instruction:
Set specific Ruby 2.3.1 and test on ruby HEAD
## Code After... |
b973c6abe4d325b08278822f85f72ebc1761a825 | changes/constants.py | changes/constants.py | from enum import Enum
class Status(Enum):
unknown = 0
queued = 1
in_progress = 2
finished = 3
collecting_results = 4
def __str__(self):
return STATUS_LABELS[self]
class Result(Enum):
unknown = 0
passed = 1
failed = 2
skipped = 3
errored = 4
aborted = 5
ti... | from enum import Enum
class Status(Enum):
unknown = 0
queued = 1
in_progress = 2
finished = 3
collecting_results = 4
def __str__(self):
return STATUS_LABELS[self]
class Result(Enum):
unknown = 0
passed = 1
failed = 2
skipped = 3
aborted = 5
timedout = 6
... | Remove errored state (lets rely on a single failure state) | Remove errored state (lets rely on a single failure state)
| Python | apache-2.0 | bowlofstew/changes,dropbox/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,bowlofstew/changes,wfxiang08/changes,dropbox/changes,dropbox/changes,wfxiang08/changes,wfxiang08/changes,bowlofstew/changes | python | ## Code Before:
from enum import Enum
class Status(Enum):
unknown = 0
queued = 1
in_progress = 2
finished = 3
collecting_results = 4
def __str__(self):
return STATUS_LABELS[self]
class Result(Enum):
unknown = 0
passed = 1
failed = 2
skipped = 3
errored = 4
ab... |
307b568d320ab964e6f7dabe9dca5370aa9b0f6f | README.rst | README.rst | SMS sender
==========
A library for sending SMS messages through various service providers (gateways).
The currently supported gateways are:
- `Nexmo <http://nexmo.com/>`_
- `BulkSms <http://bulksms.com/>`_
- `ProSms.eu <http://pro-sms.eu/>`_
Usage
-----
Example::
<?php
use Devture\Component\SmsSender\... | SMS sender
==========
A library for sending SMS messages through various service providers (gateways).
The currently supported gateways are:
- `Nexmo <http://nexmo.com/>`_
- `BulkSms <http://bulksms.com/>`_
- `ProSms.eu <http://pro-sms.eu/>`_
Usage
-----
Example::
<?php
use Devture\Component\SmsSender\... | Fix use statements order in example | Fix use statements order in example
| reStructuredText | bsd-3-clause | spantaleev/sms-sender | restructuredtext | ## Code Before:
SMS sender
==========
A library for sending SMS messages through various service providers (gateways).
The currently supported gateways are:
- `Nexmo <http://nexmo.com/>`_
- `BulkSms <http://bulksms.com/>`_
- `ProSms.eu <http://pro-sms.eu/>`_
Usage
-----
Example::
<?php
use Devture\Comp... |
44e062dd5f302c5eed66e2d54858e1b8f78b745b | src/data.py | src/data.py | import csv
import datetime
class Row(dict):
def __init__(self, *args, **kwargs):
super(Row, self).__init__(*args, **kwargs)
self._start_date = None
self._end_date = None
def _cast_date(self, s):
if not s:
return None
return datetime.datetime.strptime(s, '%... | import csv
import datetime
class Row(dict):
def __init__(self, *args, **kwargs):
super(Row, self).__init__(*args, **kwargs)
self._start_date = None
self._end_date = None
def _cast_date(self, s):
if not s:
return None
return datetime.datetime.strptime(s, '%... | Add site number and application type to properties. For better filtering of new and old biz. | Add site number and application type to properties. For better filtering of new and old biz.
| Python | unlicense | datascopeanalytics/chicago-new-business,datascopeanalytics/chicago-new-business | python | ## Code Before:
import csv
import datetime
class Row(dict):
def __init__(self, *args, **kwargs):
super(Row, self).__init__(*args, **kwargs)
self._start_date = None
self._end_date = None
def _cast_date(self, s):
if not s:
return None
return datetime.datetim... |
0de1054fa5565661179195ddc23b9bed0e401687 | .travis.yml | .travis.yml | language: minimal
sudo: required
env:
matrix:
- OS_VERSION=6 OSG_VERSION=3.4
- OS_VERSION=7 OSG_VERSION=3.4
services:
- docker
before_install:
- sudo docker pull centos:centos${OS_VERSION}
script:
# Run tests in Container
- sudo docker run --rm=true -v `pwd`:/osg-configure:rw centos:centos${OS_VERSION} /... | language: minimal
sudo: required
env:
matrix:
- OS_VERSION=7 OSG_VERSION=3.5
services:
- docker
before_install:
- sudo docker pull centos:centos${OS_VERSION}
script:
# Run tests in Container
- sudo docker run --rm=true -v `pwd`:/osg-configure:rw centos:centos${OS_VERSION} /bin/bash /osg-configure/tests/tes... | Drop el6 from CI and use 3.5 | Drop el6 from CI and use 3.5
| YAML | apache-2.0 | matyasselmeci/osg-configure,opensciencegrid/osg-configure,opensciencegrid/osg-configure,matyasselmeci/osg-configure | yaml | ## Code Before:
language: minimal
sudo: required
env:
matrix:
- OS_VERSION=6 OSG_VERSION=3.4
- OS_VERSION=7 OSG_VERSION=3.4
services:
- docker
before_install:
- sudo docker pull centos:centos${OS_VERSION}
script:
# Run tests in Container
- sudo docker run --rm=true -v `pwd`:/osg-configure:rw centos:cento... |
36356df84615ef4d29638a437c74765e5aeb7219 | docs/Powered-by-Mesos.md | docs/Powered-by-Mesos.md | Organizations using Mesos:
* [Airbnb](http://www.airbnb.com)
* [Categorize](http://categorize.co)
* [CloudPhysics](http://cloudphysics.com)
* [Conviva](http://www.conviva.com)
* [MediaCrossing](http://www.mediacrossing.com)
* [Sharethrough](http://www.sharethrough.com)
* [Twitter](http://www.twitter.com)
* [UCSF](http... | Organizations using Mesos:
* [Airbnb](http://www.airbnb.com)
* [Categorize](http://categorize.co)
* [CloudPhysics](http://cloudphysics.com)
* [Conviva](http://www.conviva.com)
* [iQIYI](http://www.iqiyi.com/)
* [MediaCrossing](http://www.mediacrossing.com)
* [Sharethrough](http://www.sharethrough.com)
* [Twitter](http... | Add iQIYI to the Powered by Mesos list. | Add iQIYI to the Powered by Mesos list.
| Markdown | apache-2.0 | Gilbert88/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,chhsia0/mesos,neilconway/mesos,verizonlabs/mesos,zmalik/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,asamerh4/mesos,abudnik/mesos,dforsyth/mesos,Gilbert88/mesos,kaysoky/mesos,dforsyth/mesos,andschwa/mesos,dforsyth/mesos,zmalik/mesos,Aman-Jain-14/customized... | markdown | ## Code Before:
Organizations using Mesos:
* [Airbnb](http://www.airbnb.com)
* [Categorize](http://categorize.co)
* [CloudPhysics](http://cloudphysics.com)
* [Conviva](http://www.conviva.com)
* [MediaCrossing](http://www.mediacrossing.com)
* [Sharethrough](http://www.sharethrough.com)
* [Twitter](http://www.twitter.co... |
743ac57c0d62e01b9a8ad3481792271d91a0dcce | .travis.yml | .travis.yml | language: elixir
env:
- NODE_VERSION="6.10.2"
before_install:
- mix local.rebar --force
- mix local.hex --force
- nvm install $NODE_VERSION
install:
- mix deps.get
- npm install
elixir:
- 1.6.3
matrix:
include:
- elixir: 1.6
- elixir: 1.5
- elixir: 1.4
- elixir: 1.3
- elixir: 1.2
| language: elixir
env:
- NODE_VERSION="6.10.2"
before_install:
- mix local.rebar --force
- mix local.hex --force
- nvm install $NODE_VERSION
install:
- mix deps.get
- npm install
elixir:
- 1.6.3
matrix:
include:
- elixir: 1.6
- elixir: 1.5
- elixir: 1.4
- elixir: 1.3
| Remove Elixir v1.2 from tests | Remove Elixir v1.2 from tests
| YAML | mit | geolessel/react-phoenix | yaml | ## Code Before:
language: elixir
env:
- NODE_VERSION="6.10.2"
before_install:
- mix local.rebar --force
- mix local.hex --force
- nvm install $NODE_VERSION
install:
- mix deps.get
- npm install
elixir:
- 1.6.3
matrix:
include:
- elixir: 1.6
- elixir: 1.5
- elixir: 1.4
- elixir: 1.3
... |
b27471e3ae289e4b3e97302ff7a5e9cc4ace59e8 | src/Result.js | src/Result.js | 'use strict'
var chalk = require('chalk')
var deepEqual = require('deep-equal')
var indent = require('./indent')
var os = require('os')
const CHECK = '\u2713'
const CROSS = '\u2717'
const PASS_COLOR = 'green'
const FAIL_COLOR = 'red'
module.exports = class Result {
constructor (runnable, options) {
options = o... | 'use strict'
var chalk = require('chalk')
var deepEqual = require('deep-equal')
var indent = require('./indent')
var os = require('os')
const CHECK = '✓'
const CROSS = '✗'
const PASS_COLOR = 'green'
const FAIL_COLOR = 'red'
module.exports = class Result {
constructor (runnable, options) {
options = options || ... | Use unicode special characters directly in source | Use unicode special characters directly in source
| JavaScript | isc | nickmccurdy/purespec | javascript | ## Code Before:
'use strict'
var chalk = require('chalk')
var deepEqual = require('deep-equal')
var indent = require('./indent')
var os = require('os')
const CHECK = '\u2713'
const CROSS = '\u2717'
const PASS_COLOR = 'green'
const FAIL_COLOR = 'red'
module.exports = class Result {
constructor (runnable, options) {... |
6607c4271f7de0dfaafb2ff6eec2fe4360a1e051 | app/concerns/action_controller/cors_protection.rb | app/concerns/action_controller/cors_protection.rb | module ActionController::CORSProtection
extend ActiveSupport::Concern
included do
before_filter :allow_cors
after_filter :set_cors
end
def set_cors
if $settings[:api][:v2][:cors].include?(request.env['HTTP_ORIGIN'])
headers["Access-Control-Allow-Origin"] = request.env['HTTP_ORIGIN']
... | module ActionController::CORSProtection
extend ActiveSupport::Concern
included do
before_filter :allow_cors
after_filter :set_cors
end
def set_cors
if $settings[:api][:v2][:cors].include?(request.env['HTTP_ORIGIN'])
headers["Access-Control-Allow-Origin"] = request.env['HTTP_ORIGIN']
... | Fix core for PUT & PATCH | Fix core for PUT & PATCH
| Ruby | mit | cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web,cloudsdaleapp/cloudsdale-web | ruby | ## Code Before:
module ActionController::CORSProtection
extend ActiveSupport::Concern
included do
before_filter :allow_cors
after_filter :set_cors
end
def set_cors
if $settings[:api][:v2][:cors].include?(request.env['HTTP_ORIGIN'])
headers["Access-Control-Allow-Origin"] = request.env['HTTP... |
b63c4008cffdc5b919c0b7c43c8f1487541ccd51 | haval-algorithm/src/test/java/com/m4gik/util/UtilTest.java | haval-algorithm/src/test/java/com/m4gik/util/UtilTest.java | package com.m4gik.util;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
... | package com.m4gik.util;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
... | Create TDD test for Util class. | Create TDD test for Util class.
| Java | mit | M4GiK/tosi-projects,M4GiK/tosi-projects | java | ## Code Before:
package com.m4gik.util;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.notNullValue;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners... |
f092f68b5df40e7915d838650db7c9fa147cce18 | lib/seedData/index.js | lib/seedData/index.js | var path = require( 'path' )
, fs = require( 'fs' )
, fileNames = [ 'seedData' ]
, packageJson = require( path.resolve( __dirname + '/../../' ) + '/package.json' )
, seedData = require( path.resolve( path.join( __dirname, '..', '..', 'schema', 'seedData.json' ) ) );
packageJson.bundledDepe... | var path = require('path')
, fs = require('fs')
, packageJson = require(path.resolve(__dirname + '/../../') + '/package.json')
, seedData = {};
function loadSeedDataFile(filePath) {
var data = require(filePath);
Object.keys(data).forEach(function(key) {
if (!!seedData[key]) {
see... | Order of seedData now places the main schema json after all other modules plus refactoring | fix(seedData): Order of seedData now places the main schema json after all other modules plus refactoring
| JavaScript | mit | CleverStack/node-seed,modulexcite/node-seed | javascript | ## Code Before:
var path = require( 'path' )
, fs = require( 'fs' )
, fileNames = [ 'seedData' ]
, packageJson = require( path.resolve( __dirname + '/../../' ) + '/package.json' )
, seedData = require( path.resolve( path.join( __dirname, '..', '..', 'schema', 'seedData.json' ) ) );
package... |
8ea720226093944aa22e14a5fe58d52487e05a47 | view/map.css | view/map.css | .counties {
fill: none;
pointer-events: none;
}
.states {
fill: none;
stroke: none;
pointer-events: all;
}
.states.active {
fill: #c37500;
fill-opacity: 0.4;
}
.state-borders {
fill: none;
stroke: #000;
stroke-width: 0.5px;
stroke-linejoin: round;
}
.background {
pointer-events: all;
fill:... | .counties {
fill: none;
pointer-events: none;
}
.states {
fill: none;
stroke: none;
pointer-events: all;
}
.states.active {
fill: #c37500;
fill-opacity: 0.4;
}
.state-borders {
fill: none;
stroke: #000;
stroke-width: 0.5px;
stroke-linejoin: round;
}
.background {
pointer-events: all;
fill:... | Increase font size for legend title. | Increase font size for legend title.
| CSS | mit | nubs/chicken-dinner,nubs/chicken-dinner | css | ## Code Before:
.counties {
fill: none;
pointer-events: none;
}
.states {
fill: none;
stroke: none;
pointer-events: all;
}
.states.active {
fill: #c37500;
fill-opacity: 0.4;
}
.state-borders {
fill: none;
stroke: #000;
stroke-width: 0.5px;
stroke-linejoin: round;
}
.background {
pointer-even... |
9438b2bf5681b8edba3777749fd47dc90ed24a20 | ansible/roles/prechecks/tasks/service_checks.yml | ansible/roles/prechecks/tasks/service_checks.yml | ---
- name: Checking that libvirt is not running
stat: path=/var/run/libvirt/libvirt-sock
register: result
failed_when: result.stat.exists
when: inventory_hostname in groups['compute']
- name: Checking Docker version
command: docker version
register: result
failed_when: result | failed
or ... | ---
- name: Checking that libvirt is not running
stat: path=/var/run/libvirt/libvirt-sock
register: result
failed_when: result.stat.exists
when: inventory_hostname in groups['compute']
- name: Checking Docker version
command: docker version
register: result
failed_when: result | failed
or ... | Add a precheck for MountFlags=shared | Add a precheck for MountFlags=shared
In order to avoid the neutron-dhcp-agent container from
failing, you need to change 'MountFlags' to 'shared' in
/var/lib/systemd/system/docker.serivce. Add a precheck
so that this issue will not happen as often.
Closes-bug: #1546681
Change-Id: I339b5e93e870534fe16c6610f299ca789e5... | YAML | apache-2.0 | negronjl/kolla,coolsvap/kolla,toby82/kolla,coolsvap/kolla,coolsvap/kolla,intel-onp/kolla,dardelean/kolla-ansible,tonyli71/kolla,nihilifer/kolla,negronjl/kolla,openstack/kolla,mandre/kolla,stackforge/kolla,rahulunair/kolla,mandre/kolla,stackforge/kolla,dardelean/kolla-ansible,nihilifer/kolla,mrangana/kolla,openstack/kol... | yaml | ## Code Before:
---
- name: Checking that libvirt is not running
stat: path=/var/run/libvirt/libvirt-sock
register: result
failed_when: result.stat.exists
when: inventory_hostname in groups['compute']
- name: Checking Docker version
command: docker version
register: result
failed_when: result | failed
... |
cba39ca9fe3dc10ad9adcdd000f002271db86adc | test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll | test/Transforms/CorrelatedExprs/2002-09-23-PHIUpdateBug.ll | ; RUN: as < %s | opt -cee
implementation
declare void %foo(int)
void %test(int %A, bool %C) {
br bool %C, label %bb3, label %bb1
bb1: ;[#uses=0]
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
br bool %cond212, label %bb2, label %bb3
bb2: ... | ; RUN: as < %s | opt -cee
implementation
declare void %foo(int)
void %test(int %A, bool %C) {
br bool %C, label %bb0, label %bb1
bb0:
br label %bb3
Unreachable:
br label %bb2
bb1: ;[#uses=0]
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
br bool %cond... | Fix testcase to accurately expose bug | Fix testcase to accurately expose bug
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3890 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,ll... | llvm | ## Code Before:
; RUN: as < %s | opt -cee
implementation
declare void %foo(int)
void %test(int %A, bool %C) {
br bool %C, label %bb3, label %bb1
bb1: ;[#uses=0]
%cond212 = setgt int %A, 9 ; <bool> [#uses=1]
br bool %cond212, label %bb2, label %bb3
bb2... |
c48839d551073b6159b2b4e3b47a08b67ee2b4bb | bootstrap/vagrant/util.sh | bootstrap/vagrant/util.sh | APOLLO_ROOT=$(dirname "${BASH_SOURCE}")/../..
verify_prereqs() {
if [[ "$(which vagrant)" == "" ]]; then
echo -e "${color_red}Can't find vagrant in PATH, please fix and retry.${color_norm}"
exit 1
fi
}
apollo_launch() {
vagrant up --provision
open_urls
}
apollo_down() {
vagrant destroy -f
}
| APOLLO_ROOT=$(dirname "${BASH_SOURCE}")/../..
verify_prereqs() {
if [[ "$(which vagrant)" == "" ]]; then
echo -e "${color_red}Can't find vagrant in PATH, please fix and retry.${color_norm}"
exit 1
fi
}
apollo_launch() {
install_contributed_roles
vagrant up --provision
open_urls
}
apollo_down() {
... | Install galaxy roles for vagrant. | Install galaxy roles for vagrant.
| Shell | mit | enxebre/Apollo,Capgemini/Apollo,Capgemini/Apollo,enxebre/Apollo,Capgemini/Apollo | shell | ## Code Before:
APOLLO_ROOT=$(dirname "${BASH_SOURCE}")/../..
verify_prereqs() {
if [[ "$(which vagrant)" == "" ]]; then
echo -e "${color_red}Can't find vagrant in PATH, please fix and retry.${color_norm}"
exit 1
fi
}
apollo_launch() {
vagrant up --provision
open_urls
}
apollo_down() {
vagrant dest... |
f5cdb43607f9894f915e266b634a88e3577cbe05 | bin/gh.js | bin/gh.js |
/*
* Copyright 2013-2015, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Eduardo Lundgren <edu@rdo.io>
*/
'use strict';
var path = require('path'),
fs = require('fs'),
logger = require('../lib/logger'),
pkg = require... |
/*
* Copyright 2013-2015, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Eduardo Lundgren <edu@rdo.io>
*/
'use strict';
var path = require('path'),
fs = require('fs'),
logger = require('../lib/logger'),
pkg = require... | Fix linting issue. Source formatting. | Fix linting issue. Source formatting.
| JavaScript | bsd-3-clause | oouyang/gh,tomzx/gh,henvic/gh,modulexcite/gh,TomzxForks/gh,tomzx/gh,dustinryerson/gh,oouyang/gh,henvic/gh,modulexcite/gh,TomzxForks/gh,dustinryerson/gh | javascript | ## Code Before:
/*
* Copyright 2013-2015, All Rights Reserved.
*
* Code licensed under the BSD License:
* https://github.com/node-gh/gh/blob/master/LICENSE.md
*
* @author Eduardo Lundgren <edu@rdo.io>
*/
'use strict';
var path = require('path'),
fs = require('fs'),
logger = require('../lib/logger'),
... |
a4dfa18e930d26ad09a0137839be04eef349d3fb | crawler/src/util.spec.ts | crawler/src/util.spec.ts | import 'mocha'
import { expect } from 'chai'
import { parsePrice } from '../src/util'
describe('util functions', () => {
it('should parse price', () => {
const testInput = ['5', '25', '1.2', '1,2', '-12,25€', '-12,25 €', '$5.5', '1.256.000', '1,213.12', '.25', ',0025']
const result = testInput.map(val => pa... | import 'mocha'
import { expect } from 'chai'
import { parsePrice } from '../src/util'
describe('util functions', () => {
it('should parse price', () => {
const testInput = ['5', '25', '1.2', '1,2', '-12,25€', '-12,25 €', '144,50 € ', '$5.5', '1.256.000', '1,213.12', '.25', ',0025']
const result = testInput.... | Add price case to util.ts test | Add price case to util.ts test
| TypeScript | mit | davidglezz/tfg,davidglezz/tfg,davidglezz/tfg,davidglezz/tfg | typescript | ## Code Before:
import 'mocha'
import { expect } from 'chai'
import { parsePrice } from '../src/util'
describe('util functions', () => {
it('should parse price', () => {
const testInput = ['5', '25', '1.2', '1,2', '-12,25€', '-12,25 €', '$5.5', '1.256.000', '1,213.12', '.25', ',0025']
const result = testInp... |
b37e29af4a737587988192b29bc996e95666eff7 | client/includes/header.js | client/includes/header.js | Template.header.helpers({
displayRegister: function () {
if (Meteor.user().profile) {return "none";}
}
})
Template.heading.helpers({
heading: function () {
return pageTitle;
}
}) | Template.header.helpers({
displayRegister: function () {
if (Meteor.user().profile) {return "none";}
}
});
| Fix error causing degraded performance | Fix error causing degraded performance
| JavaScript | agpl-3.0 | gazhayes/Popvote-HK,gazhayes/Popvote-HK | javascript | ## Code Before:
Template.header.helpers({
displayRegister: function () {
if (Meteor.user().profile) {return "none";}
}
})
Template.heading.helpers({
heading: function () {
return pageTitle;
}
})
## Instruction:
Fix error causing degraded performance
## Code After:
Template.header.helpe... |
2cceb69cc81d9746aefedcb8a99b640818faaa38 | modules/load-dir-to-db-basex.xquery | modules/load-dir-to-db-basex.xquery | (: =====================================================
Load DITA map and dependencies to BaseX
Author: W. Eliot Kimber
===================================================== :)
(: import module namespace db="http://basex.org/modules/db"; :)
declare variable $db external;
(: The directory load from:... | (: =====================================================
Load DITA map and dependencies to BaseX
Author: W. Eliot Kimber
===================================================== :)
(: import module namespace db="http://basex.org/modules/db"; :)
declare variable $db external;
(: The directory load from:... | Use replace rather than add to avoid duplicate files | Use replace rather than add to avoid duplicate files
| XQuery | apache-2.0 | dita-for-small-teams/dita-for-small-teams,dita-for-small-teams/dita-for-small-teams | xquery | ## Code Before:
(: =====================================================
Load DITA map and dependencies to BaseX
Author: W. Eliot Kimber
===================================================== :)
(: import module namespace db="http://basex.org/modules/db"; :)
declare variable $db external;
(: The dire... |
3cd54dd17dbff8843f9fc98e750ad907986d6666 | org.metaborg.util/src/main/java/org/metaborg/util/iterators/CompoundIterator.java | org.metaborg.util/src/main/java/org/metaborg/util/iterators/CompoundIterator.java | package org.metaborg.util.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Queue;
import com.google.common.collect.Queues;
public class CompoundIterator<T> implements Iterator<T> {
private final Queue<? extends Iterator<T>> iterators;
public CompoundIterator(I... | package org.metaborg.util.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import com.google.common.collect.Iterators;
public class CompoundIterator<T> implements Iterator<T> {
private final Iterator<? extends Iterator<T>> iterators;
private Iterator<T> iterator = Iterators.empt... | Fix compound iterator for case where empty iterators appear in the list. | Fix compound iterator for case where empty iterators appear in the list.
| Java | apache-2.0 | metaborg/mb-exec,metaborg/mb-exec,metaborg/mb-exec | java | ## Code Before:
package org.metaborg.util.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.Queue;
import com.google.common.collect.Queues;
public class CompoundIterator<T> implements Iterator<T> {
private final Queue<? extends Iterator<T>> iterators;
public Co... |
4813b9aa3651eb8eb4206b7622cefb38ee935528 | .travis.yml | .travis.yml | language: python
python:
- "3.5"
- "3.6"
branches:
- master
- readme_bages
install:
- pip install -r requirements.txt
- pip install codecov
script:
- python3 -m pytest tests --cov app --cov-report html
- coverage run -m pytest tests --cov app --cov-report html
after_success:
- codecov
| language: python
python:
- "3.5"
- "3.6"
install:
- pip install -r requirements.txt
- pip install codecov
script:
- python3 -m pytest tests --cov app --cov-report html
- coverage run -m pytest tests --cov app --cov-report html
after_success:
- codecov
| Delete branch info from Travis config | Delete branch info from Travis config | YAML | mit | Stark-Mountain/meetup-facebook-bot,Stark-Mountain/meetup-facebook-bot | yaml | ## Code Before:
language: python
python:
- "3.5"
- "3.6"
branches:
- master
- readme_bages
install:
- pip install -r requirements.txt
- pip install codecov
script:
- python3 -m pytest tests --cov app --cov-report html
- coverage run -m pytest tests --cov app --cov-report html
after_success:
- codeco... |
d312d45ea1e672d310c553574b694b6addd49570 | tests/unit/shared/file/SymlinkPharActivatorTest.php | tests/unit/shared/file/SymlinkPharActivatorTest.php | <?php
namespace PharIo\Phive;
use PharIo\FileSystem\Filename;
use PHPUnit\Framework\TestCase;
/**
* @covers \PharIo\Phive\SymlinkPharActivator
*/
class SymlinkPharActivatorTest extends TestCase {
public function setUp() {
$this->deleteTestSymlink();
}
public function tearDown() {
$this... | <?php
namespace PharIo\Phive;
use PharIo\FileSystem\Filename;
use PHPUnit\Framework\TestCase;
/**
* @covers \PharIo\Phive\SymlinkPharActivator
*/
class SymlinkPharActivatorTest extends TestCase {
public function setUp() {
if (0 === stripos(PHP_OS, 'win')) {
$this->markTestSkipped('PHP does ... | Fix unit tests skip symlink tests on windows | Fix unit tests skip symlink tests on windows
| PHP | bsd-3-clause | phar-io/phive | php | ## Code Before:
<?php
namespace PharIo\Phive;
use PharIo\FileSystem\Filename;
use PHPUnit\Framework\TestCase;
/**
* @covers \PharIo\Phive\SymlinkPharActivator
*/
class SymlinkPharActivatorTest extends TestCase {
public function setUp() {
$this->deleteTestSymlink();
}
public function tearDown()... |
34895630fd0f363dc52194676ed4cf93ec0be864 | contrib/dokku_client.sh | contrib/dokku_client.sh |
if [[ ! -z $DOKKU_HOST ]]; then
function dokku {
appname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null)
if [[ "$?" != "0" ]]; then
donotshift="YES"
fi
if [[ "$1" = "create" ]]; then
appname=$(echo "print(elfs.GenName())" | lua -l elfs)
if git remote... | set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
if [[ ! -z $DOKKU_HOST ]]; then
function dokku {
appname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null)
if [[ "$?" != "0" ]]; then
donotshift="YES"
fi
if [[ "$1" = "create" ]]; then
appname=$(echo "print(e... | Add DOKKU_TRACE support to turn on command tracing | Add DOKKU_TRACE support to turn on command tracing
| Shell | mit | econya/dokku,ertrzyiks/dokku,klodoo/dokku,basicer/dokku,pmvieira/dokku,experimental-platform/dokku,leonardodino/dokku,mmerickel/dokku,fmoliveira/dokku,Cactusbone/dokku,sebastianscatularo/dokku,davidsiefert/dokku,stepri/dokku,vlipco/dokku,cjblomqvist/dokku,AnselZhangGit/dokku,omeid/dokku,Evlos/dokku,alexquick/dokku,econ... | shell | ## Code Before:
if [[ ! -z $DOKKU_HOST ]]; then
function dokku {
appname=$(git remote -v 2>/dev/null | grep dokku | head -n 1 | cut -f1 -d' ' | cut -f2 -d':' 2>/dev/null)
if [[ "$?" != "0" ]]; then
donotshift="YES"
fi
if [[ "$1" = "create" ]]; then
appname=$(echo "print(elfs.GenName())" | lua -l elfs)
... |
f52c8cc3938567a24ac6ea0a807654aa73caa871 | pages/views.py | pages/views.py | from pages.models import Page, Language, Content
from pages.utils import auto_render
from django.contrib.admin.views.decorators import staff_member_required
from django import forms
from django.http import Http404
import settings
@auto_render
def details(request, page_id=None):
template = None
lang = Language.... | from pages.models import Page, Language, Content
from pages.utils import auto_render
from django.contrib.admin.views.decorators import staff_member_required
from django import forms
from django.http import Http404
import settings
@auto_render
def details(request, page_id=None):
template = None
lang = Language.... | Fix a bug with an empty database | Fix a bug with an empty database
git-svn-id: 54fea250f97f2a4e12c6f7a610b8f07cb4c107b4@138 439a9e5f-3f3e-0410-bc46-71226ad0111b
| Python | bsd-3-clause | pombredanne/django-page-cms-1,oliciv/django-page-cms,akaihola/django-page-cms,pombredanne/django-page-cms-1,akaihola/django-page-cms,remik/django-page-cms,pombredanne/django-page-cms-1,batiste/django-page-cms,oliciv/django-page-cms,remik/django-page-cms,batiste/django-page-cms,oliciv/django-page-cms,batiste/django-page... | python | ## Code Before:
from pages.models import Page, Language, Content
from pages.utils import auto_render
from django.contrib.admin.views.decorators import staff_member_required
from django import forms
from django.http import Http404
import settings
@auto_render
def details(request, page_id=None):
template = None
... |
c4c84d0d2589866bebe6208717e5d019f32703a7 | src/components/comments/Comment.sass | src/components/comments/Comment.sass | .Comments
position: relative
.Comments > .SVGIcon
position: absolute
top: rem(22)
left: 0
.CommentsLink
+sanserif
margin-left: rem(60)
color: #aaa
border-bottom: 1px solid #aaa
line-height: rem(10)
.CommentUsername
transition: color $speed
color: #aaa
.no-touch .CommentHeader .PostHeaderLink:ho... | .Comments
position: relative
.Comments > .SVGIcon
position: absolute
top: rem(22)
left: 0
.CommentsLink
+sanserif
margin-left: rem(60)
color: #aaa
border-bottom: 1px solid #aaa
line-height: rem(10)
.CommentUsername
transition: color $speed
color: #aaa
.no-touch .CommentHeader .PostHeaderLink:ho... | Fix padding on comment tools | Fix padding on comment tools
| Sass | mit | ello/webapp,ello/webapp,ello/webapp | sass | ## Code Before:
.Comments
position: relative
.Comments > .SVGIcon
position: absolute
top: rem(22)
left: 0
.CommentsLink
+sanserif
margin-left: rem(60)
color: #aaa
border-bottom: 1px solid #aaa
line-height: rem(10)
.CommentUsername
transition: color $speed
color: #aaa
.no-touch .CommentHeader .P... |
03153bc0671b5b0c8292f902c6a5f0a792a383b3 | code/jobs/CheckComposerUpdatesJob.php | code/jobs/CheckComposerUpdatesJob.php | <?php
/**
* Composer Update checker job. Runs the check as a queuedjob.
*
* @author Peter Thaleikis
* @license MIT
*/
class CheckComposerUpdatesJob extends AbstractQueuedJob implements QueuedJob {
/**
* The task to run
*
* @var BuildTask
*/
protected $task;
/**
* define the title
*
* @return stri... | <?php
/**
* Composer Update checker job. Runs the check as a queuedjob.
*
* @author Peter Thaleikis
* @license MIT
*/
class CheckComposerUpdatesJob extends AbstractQueuedJob implements QueuedJob {
/**
* The task to run
*
* @var BuildTask
*/
protected $task;
/**
* define the title
*
* @return stri... | Implement the job better - minor bugfix | Implement the job better - minor bugfix
| PHP | mit | spekulatius/silverstripe-composer-update-checker | php | ## Code Before:
<?php
/**
* Composer Update checker job. Runs the check as a queuedjob.
*
* @author Peter Thaleikis
* @license MIT
*/
class CheckComposerUpdatesJob extends AbstractQueuedJob implements QueuedJob {
/**
* The task to run
*
* @var BuildTask
*/
protected $task;
/**
* define the title
*
... |
e08d27b016895b0cd200729169c918b152b038cc | src/kaptan.ts | src/kaptan.ts | import { EventEmitter } from 'events';
import { Logger } from './util';
import { ServiceConstructor, ServiceContainer } from './service';
export class Kaptan extends EventEmitter {
public readonly logger: Logger;
public readonly services: ServiceContainer;
constructor(label: string = 'kaptan') {
super();
... | import { EventEmitter } from 'events';
import { Logger } from './util';
import { Service, ServiceConstructor, ServiceContainer } from './service';
export class Kaptan extends EventEmitter {
public readonly logger: Logger;
public readonly services: ServiceContainer;
constructor(label: string = 'kaptan') {
s... | Add duplicate service to the services instead of the original one | Add duplicate service to the services instead of the original one
| TypeScript | mit | ibrahimduran/node-kaptan | typescript | ## Code Before:
import { EventEmitter } from 'events';
import { Logger } from './util';
import { ServiceConstructor, ServiceContainer } from './service';
export class Kaptan extends EventEmitter {
public readonly logger: Logger;
public readonly services: ServiceContainer;
constructor(label: string = 'kaptan') ... |
10f73f0cc4cebd1e7f67f6942185433203378634 | README.md | README.md | Jerky
================
[](https://travis-ci.org/sethyanow/jerky)
[](https://codeclimate.com/repos/5410b8bd6956803886002739/feed)
[](https://travis-ci.org/sethyanow/jerky)
[](https://codeclimate.com/repos/5410b8bd6956803886002739/feed)
[](https://travis-ci.org/sethyanow/jerky)
[](https://codeclimate.com/repos/5410b8bd6956803886002739/fe... |
d5e9da483bc5875165f6960017844efa7ed4d404 | spec/system/haproxy_spec.rb | spec/system/haproxy_spec.rb | require 'spec_helper'
require 'httparty'
RSpec.describe "haproxy" do
let(:management_uri) { 'http://10.244.16.3:15672' }
[0, 1].each do |job_index|
context "when the job rmq/#{job_index} is down" do
before(:all) do
bosh_director.stop('rmq', job_index)
end
after(:all) do
bo... | require 'spec_helper'
require 'httparty'
RSpec.describe "haproxy" do
let(:management_uri) { "http://#{environment.bosh_manifest.job('haproxy').static_ips.first}:15672" }
[0, 1].each do |job_index|
context "when the job rmq/#{job_index} is down" do
before(:all) do
bosh_director.stop('rmq', job_... | Read haproxy static_ips from manifest in test | Read haproxy static_ips from manifest in test
[#148579027]
Signed-off-by: Diego Lemos <48d75b1e8d05d722a97d5c3ce49024e6a466bebe@pivotal.io>
| Ruby | apache-2.0 | pivotal-cf/cf-rabbitmq-release,pivotal-cf/cf-rabbitmq-release,pivotal-cf/cf-rabbitmq-release,pivotal-cf/cf-rabbitmq-release | ruby | ## Code Before:
require 'spec_helper'
require 'httparty'
RSpec.describe "haproxy" do
let(:management_uri) { 'http://10.244.16.3:15672' }
[0, 1].each do |job_index|
context "when the job rmq/#{job_index} is down" do
before(:all) do
bosh_director.stop('rmq', job_index)
end
after(:al... |
90274dafca573d6c672625a53c46cf6ab2a5fec3 | test/CMakeLists.txt | test/CMakeLists.txt | add_library(catch2 OBJECT catch2/catch2-main.cpp)
include_directories (${CMAKE_SOURCE_DIR}/include/pomerol)
# Pomerol tests
set (tests
HamiltonianTest
GF1siteTest
GF2siteTest
GF4siteTest
AndersonTest
AndersonComplexTest
Anderson2PGFTest
Vertex4Test
SusceptibilityTest
)
foreach (test ${tests})
set(test_src ${test... | add_library(catch2 OBJECT catch2/catch2-main.cpp)
target_include_directories(catch2 PRIVATE ${MPI_CXX_INCLUDE_PATH})
include_directories (${CMAKE_SOURCE_DIR}/include/pomerol)
# Pomerol tests
set (tests
HamiltonianTest
GF1siteTest
GF2siteTest
GF4siteTest
AndersonTest
AndersonComplexTest
Anderson2PGFTest
Vertex4Test
Su... | Add missing `target_include_directories()` to `catch2` target | [test] Add missing `target_include_directories()` to `catch2` target
| Text | mpl-2.0 | aeantipov/pomerol,aeantipov/pomerol,aeantipov/pomerol | text | ## Code Before:
add_library(catch2 OBJECT catch2/catch2-main.cpp)
include_directories (${CMAKE_SOURCE_DIR}/include/pomerol)
# Pomerol tests
set (tests
HamiltonianTest
GF1siteTest
GF2siteTest
GF4siteTest
AndersonTest
AndersonComplexTest
Anderson2PGFTest
Vertex4Test
SusceptibilityTest
)
foreach (test ${tests})
set... |
67ae89345e5479bb76b8cc7a0c309c03ca088721 | .golangci.yml | .golangci.yml | run:
timeout: 10m
linters-settings:
goimports:
local-prefixes: vitess.io/vitess
linters:
disable-all: true
enable:
# Defaults
- deadcode
# - errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- varcheck
# Extras
- gofmt
- ... | run:
timeout: 10m
linters-settings:
goimports:
local-prefixes: vitess.io/vitess
linters:
disable-all: true
enable:
# Defaults
- deadcode
# - errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- varcheck
# Extras
- gofmt
- ... | Exclude protoc-gen-go generated files from the linter goimports check | Exclude protoc-gen-go generated files from the linter goimports check
Signed-off-by: Andrew Mason <8a240ff75aa1467ba5eba4db0c8200b61262547e@slack-corp.com>
| YAML | apache-2.0 | tinyspeck/vitess,vitessio/vitess,vitessio/vitess,mahak/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,mahak/vitess,mahak/vitess,vitessio/vitess,tinyspeck/vitess,tinyspeck/vitess,mahak/vitess,tinyspeck/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,tinyspeck/vitess,vitessio/vitess,tinyspeck/vitess,tinyspeck/vites... | yaml | ## Code Before:
run:
timeout: 10m
linters-settings:
goimports:
local-prefixes: vitess.io/vitess
linters:
disable-all: true
enable:
# Defaults
- deadcode
# - errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- varcheck
# Extras
... |
a1d0a75ba9739af79711bb9438dc7e5d53cf0d92 | README.md | README.md | iOS.MF
==============
An iOS optimised theme for iPhone, iPad and iPod Touch.
This is a very lightweight theme with only a limited set of pages available and theming applied, but which provides a good user experience for interacting with a the core functionality of SMF.
This has been used with various versions of SM... | iOS.MF
==============
An iOS optimised theme for iPhone, iPad and iPod Touch.
This is a very lightweight theme with only a limited set of pages available and theming applied, but which provides a good user experience for interacting with a the core functionality of SMF.
This has been used with various versions of SM... | Add to-do list to readme | Add to-do list to readme | Markdown | mit | filmstarr/iOS.MF,filmstarr/iOS.MF | markdown | ## Code Before:
iOS.MF
==============
An iOS optimised theme for iPhone, iPad and iPod Touch.
This is a very lightweight theme with only a limited set of pages available and theming applied, but which provides a good user experience for interacting with a the core functionality of SMF.
This has been used with variou... |
84898c684f9abcbf4d88efe64b0de1a06ae4db56 | .travis.yml | .travis.yml | dist: xenial
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
- "pip install pytest-cov coveralls pyparsing==2.3.1"
- "pip install -e .[test]"
script:
- python -m pytest --cov snuggs --cov-report term-missing
after_success:
- coveralls
deploy:
on:
tags: true
condition: "$TRAVIS_PYTHON_... | dist: xenial
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
- "pip install pytest-cov coveralls pyparsing~=2.0"
- "pip install -e .[test]"
script:
- python -m pytest --cov snuggs --cov-report term-missing
after_success:
- coveralls
deploy:
on:
tags: true
condition: "$TRAVIS_PYTHON_VE... | Use token to upload, update pyparsing | Use token to upload, update pyparsing
| YAML | mit | mapbox/snuggs | yaml | ## Code Before:
dist: xenial
language: python
python:
- "2.7"
- "3.6"
- "3.7"
install:
- "pip install pytest-cov coveralls pyparsing==2.3.1"
- "pip install -e .[test]"
script:
- python -m pytest --cov snuggs --cov-report term-missing
after_success:
- coveralls
deploy:
on:
tags: true
condition: ... |
6449899e67646ca113f8dcb20bdf5060ceef86e3 | ptrhost.go | ptrhost.go | package main
import (
"fmt"
"net"
"os"
flags "github.com/jessevdk/go-flags"
)
const version = "1.0.0"
var opts struct {
Version bool `short:"v" long:"version" description:"Show version"`
}
func main() {
parser := flags.NewParser(&opts, flags.Default)
parser.Usage = "HOSTNAME [OPTIONS]"
args, _ := parser.Pa... | package main
import (
"fmt"
"net"
"os"
flags "github.com/jessevdk/go-flags"
)
const version = "1.0.0"
var opts struct {
Version bool `short:"v" long:"version" description:"Show version"`
}
func main() {
parser := flags.NewParser(&opts, flags.Default)
parser.Usage = "HOSTNAME [OPTIONS]"
args, _ := parser.Pa... | Fix crash when none resolved hostname | Fix crash when none resolved hostname
| Go | mit | itochan/ptrhost | go | ## Code Before:
package main
import (
"fmt"
"net"
"os"
flags "github.com/jessevdk/go-flags"
)
const version = "1.0.0"
var opts struct {
Version bool `short:"v" long:"version" description:"Show version"`
}
func main() {
parser := flags.NewParser(&opts, flags.Default)
parser.Usage = "HOSTNAME [OPTIONS]"
args... |
2aef104da6bf6ce98619fe5bac5718533e2e7530 | yunity/utils/tests/misc.py | yunity/utils/tests/misc.py | from importlib import import_module
from json import dumps as dump_json
from json import loads as load_json
def json_stringify(data):
return dump_json(data, sort_keys=True, separators=(',', ':')).encode("utf-8") if data else None
def content_json(response):
return load_json(response.content.decode("utf-8"))... | from importlib import import_module
from json import dumps as dump_json
from json import loads as load_json
def json_stringify(data):
return dump_json(data, sort_keys=True, separators=(',', ':')).encode("utf-8") if data else None
def content_json(response):
try:
return load_json(response.content.dec... | Improve error on invalid JSON response content | Improve error on invalid JSON response content
with @NerdyProjects
| Python | agpl-3.0 | yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/yunity-core,yunity/foodsaving-backend | python | ## Code Before:
from importlib import import_module
from json import dumps as dump_json
from json import loads as load_json
def json_stringify(data):
return dump_json(data, sort_keys=True, separators=(',', ':')).encode("utf-8") if data else None
def content_json(response):
return load_json(response.content.... |
f7c35786ae89bf59193e4dbcc3ad9ac351fa880b | .github/workflows/build.yml | .github/workflows/build.yml | name: Lint, Build and Run
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: ESLint
uses: gimenete/eslint-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHU... | name: Lint, Build and Run
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: ESLint
uses: gimenete/eslint-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHU... | Add accessibility test to GitHub Action | Add accessibility test to GitHub Action
| YAML | agpl-3.0 | techx/quill,techx/quill | yaml | ## Code Before:
name: Lint, Build and Run
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: ESLint
uses: gimenete/eslint-action@master
env:
GITHUB_TOKEN: $... |
56fe9db9cdf303b6ea87336917d3250aeb1fb699 | requirements-dev.txt | requirements-dev.txt | -r requirements.txt
alabaster==0.7.7
Babel==2.2.0
boto3==1.2.3
botocore==1.3.21
bumpversion==0.5.3
coverage==4.0.3
docutils==0.12
flake8==2.5.1
futures==3.0.4
Jinja2==2.8
jmespath==0.9.0
MarkupSafe==0.23
mccabe==0.3.1
nose==1.3.7
pep8==1.7.0
pyflakes==1.0.0
Pygments==2.1
python-dateutil==2.4.2
python-lambda-local==0.1... | -r requirements.txt
alabaster==0.7.7
Babel==2.2.0
boto3==1.2.3
botocore==1.3.21
bumpversion==0.5.3
coverage==4.0.3
docutils==0.12
flake8==2.5.1
funcsigs==0.4
futures==3.0.4
Jinja2==2.8
jmespath==0.9.0
MarkupSafe==0.23
mccabe==0.3.1
mock==1.3.0
nose==1.3.7
pbr==1.8.1
pep8==1.7.0
pyflakes==1.0.0
Pygments==2.1
python-dat... | Add mock + friends as dev requirements | Add mock + friends as dev requirements
| Text | mit | marvinpinto/irc-hooky,marvinpinto/irc-hooky | text | ## Code Before:
-r requirements.txt
alabaster==0.7.7
Babel==2.2.0
boto3==1.2.3
botocore==1.3.21
bumpversion==0.5.3
coverage==4.0.3
docutils==0.12
flake8==2.5.1
futures==3.0.4
Jinja2==2.8
jmespath==0.9.0
MarkupSafe==0.23
mccabe==0.3.1
nose==1.3.7
pep8==1.7.0
pyflakes==1.0.0
Pygments==2.1
python-dateutil==2.4.2
python-l... |
211bab7b6206c1eae81dabbc2823f249a19ec0a7 | applications/calendar/src/app/components/layout/AuthSidebar.js | applications/calendar/src/app/components/layout/AuthSidebar.js | import React from 'react';
import { useModals, NavMenu } from 'react-components';
import { c } from 'ttag';
import EventModal from '../modals/EventModal';
import MiniCalendar from '../MiniCalendar';
const AuthSidebar = () => {
const { createModal } = useModals();
const handleSelect = () => {};
const list ... | import React from 'react';
import { useModals, NavMenu } from 'react-components';
import { c } from 'ttag';
import moment from 'moment';
import EventModal from '../modals/EventModal';
import MiniCalendar from '../MiniCalendar';
const AuthSidebar = () => {
const { createModal } = useModals();
const handleSelec... | Add prop for mini calendar | Add prop for mini calendar
| JavaScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | javascript | ## Code Before:
import React from 'react';
import { useModals, NavMenu } from 'react-components';
import { c } from 'ttag';
import EventModal from '../modals/EventModal';
import MiniCalendar from '../MiniCalendar';
const AuthSidebar = () => {
const { createModal } = useModals();
const handleSelect = () => {};
... |
d5588c14fc517a0a5d85d09ded16e19addd42537 | lib/userbin/configuration.rb | lib/userbin/configuration.rb | module Userbin
class Configuration
attr_accessor :app_id
attr_accessor :api_secret
attr_accessor :user_model
attr_accessor :restricted_path
end
end
| module Userbin
class Configuration
attr_accessor :app_id
attr_accessor :api_secret
attr_accessor :user_model
attr_accessor :restricted_path
def initialize
self.app_id = ENV["USERBIN_APP_ID"]
self.api_secret = ENV["USERBIN_API_SECRET"]
end
end
end
| Set default credentials based on ENV | Set default credentials based on ENV
| Ruby | mit | givey/castle-ruby,castle/castle-ruby,castle/castle-ruby,cloud66/castle-ruby | ruby | ## Code Before:
module Userbin
class Configuration
attr_accessor :app_id
attr_accessor :api_secret
attr_accessor :user_model
attr_accessor :restricted_path
end
end
## Instruction:
Set default credentials based on ENV
## Code After:
module Userbin
class Configuration
attr_accessor :app_id
... |
cb371b4b931ac425428676b645a8813ba2be485c | lib/resque/tasks.rb | lib/resque/tasks.rb |
namespace :resque do
task :setup
desc "Start a Resque worker"
task :work => :setup do
require 'resque'
queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split(',')
begin
worker = Resque::Worker.new(*queues)
worker.verbose = ENV['LOGGING'] || ENV['VERBOSE']
worker.very_verbose = ENV['... |
namespace :resque do
task :setup
desc "Start a Resque worker"
task :work => [ :preload, :setup ] do
require 'resque'
queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split(',')
begin
worker = Resque::Worker.new(*queues)
worker.verbose = ENV['LOGGING'] || ENV['VERBOSE']
worker.very_v... | Use RAILS_ROOT in preload task | Use RAILS_ROOT in preload task
| Ruby | mit | tylerdooling/resque,resque/resque,m0dd3r/resque,fmitech/resque,lukeasrodgers/resque,kangkot/resque,paran0ids0ul/resque,begriffs/resque,delectable/resque,Shopify/resque,github/resque,sufery/resque,igorjancic/resque,redsquirrel/resque,ktheory/resque,stvp/resque,rutikasb/resque,CloudVLab/resque,bhighley/resque,coupa/resqu... | ruby | ## Code Before:
namespace :resque do
task :setup
desc "Start a Resque worker"
task :work => :setup do
require 'resque'
queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split(',')
begin
worker = Resque::Worker.new(*queues)
worker.verbose = ENV['LOGGING'] || ENV['VERBOSE']
worker.very... |
d5b22dfcf0b85f25181c31e520dc878a9fed65e8 | .travis.yml | .travis.yml | language: ruby
sudo: false
compiler:
- clang
- gcc
before_install:
- sudo apt-get -y install python-software-properties
- sudo add-apt-repository -y ppa:mnunberg/cmake
- sudo apt-get update
- sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake
# LibCouchbase
- sudo wget -O/et... | language: ruby
sudo: false
compiler:
- clang
- gcc
before_install:
- sudo apt-get -y install python-software-properties
- sudo add-apt-repository -y ppa:mnunberg/cmake
- sudo apt-get update
- sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake
# LibCouchbase
- sudo wget -O/et... | Support 2.2.x, 2.1.x, 2.0.0, 1.9.3 | Support 2.2.x, 2.1.x, 2.0.0, 1.9.3
| YAML | mit | korczis/jetel,korczis/jetel,korczis/jetel | yaml | ## Code Before:
language: ruby
sudo: false
compiler:
- clang
- gcc
before_install:
- sudo apt-get -y install python-software-properties
- sudo add-apt-repository -y ppa:mnunberg/cmake
- sudo apt-get update
- sudo apt-get -y install libgtest-dev libssl-dev libev-dev libevent-dev cmake
# LibCouchbase
-... |
7d0b51e497b130385527d3de80f2c2dd15335c50 | src/client/app/soundcloud/soundcloud.service.ts | src/client/app/soundcloud/soundcloud.service.ts | import { Injectable } from '@angular/core';
import { Http, URLSearchParams } from '@angular/http';
@Injectable()
export class SoundcloudService {
public basePath: string = 'https://api.soundcloud.com/tracks';
private _clientId: string = '8159b4b99151c48d6aaf6770853bfd7a';
constructor(private _http: Http) {
}
... | import { Injectable } from '@angular/core';
import { Http, URLSearchParams } from '@angular/http';
@Injectable()
export class SoundcloudService {
public basePath: string = 'https://api.soundcloud.com/tracks';
private _clientId: string = '8159b4b99151c48d6aaf6770853bfd7a';
constructor(private _http: Http) {
}
... | Set search limit to 200 | Set search limit to 200
| TypeScript | mit | JavierPDev/SounderProject,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderRadio,JavierPDev/SounderProject,JavierPDev/SounderProject | typescript | ## Code Before:
import { Injectable } from '@angular/core';
import { Http, URLSearchParams } from '@angular/http';
@Injectable()
export class SoundcloudService {
public basePath: string = 'https://api.soundcloud.com/tracks';
private _clientId: string = '8159b4b99151c48d6aaf6770853bfd7a';
constructor(private _ht... |
cda041fc33b1aa7ecfbdaac55226d9bec5def135 | prow/oss/cluster/monitoring/secrets/alertmanager-prow_secret.yaml | prow/oss/cluster/monitoring/secrets/alertmanager-prow_secret.yaml | apiVersion: v1
kind: Secret
metadata:
name: alertmanager-prow
namespace: prow-monitoring
stringData:
alertmanager.yaml: |
global:
resolve_timeout: 5m
smtp_smarthost: 'smtp.gmail.com:587'
smtp_auth_username: ''
smtp_auth_identity: ''
smtp_auth_password: '{{ smtp_app_password }}'
... | apiVersion: v1
kind: Secret
metadata:
name: alertmanager-prow
namespace: prow-monitoring
stringData:
alertmanager.yaml: |
global:
resolve_timeout: 5m
smtp_smarthost: 'smtp.gmail.com:587'
smtp_auth_username: '{{ smtp_app_username }}'
smtp_auth_identity: '{{ smtp_app_username }}'
s... | Add a no op receiver as default alert receiver | Add a no op receiver as default alert receiver
| YAML | apache-2.0 | GoogleCloudPlatform/oss-test-infra,GoogleCloudPlatform/oss-test-infra | yaml | ## Code Before:
apiVersion: v1
kind: Secret
metadata:
name: alertmanager-prow
namespace: prow-monitoring
stringData:
alertmanager.yaml: |
global:
resolve_timeout: 5m
smtp_smarthost: 'smtp.gmail.com:587'
smtp_auth_username: ''
smtp_auth_identity: ''
smtp_auth_password: '{{ smtp_ap... |
979bd68ff6e7fd07a636acbeb6e6b856bacbb92e | source/_data/categories.yml | source/_data/categories.yml | news:
en:
name: News
slug: news
category: news
es:
name: Noticias
slug: noticias
category: noticias
| book:
en:
name: Books
slug: book
category: book
es:
name: Libros
slug: libro
category: libro
| Replace news category with book category in data | Replace news category with book category in data
Now the book category is known to the category generator.
| YAML | mit | ahaasler/hexo-theme-colos-multilingual-demo,ahaasler/hexo-theme-colos-demo,ahaasler/hexo-theme-colos-multilingual-demo | yaml | ## Code Before:
news:
en:
name: News
slug: news
category: news
es:
name: Noticias
slug: noticias
category: noticias
## Instruction:
Replace news category with book category in data
Now the book category is known to the category generator.
## Code After:
book:
en:
name: Books
slu... |
f340a959555928e17c040d3e189f5e6abe31dd87 | .travis.yml | .travis.yml | language: php
sudo: false
matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
dist: trusty
allow_failures:
- php: hhvm
install: travis_retry composer update --no-interaction
script: vendor/bin/phpunit
before_deploy: bin/package -v... | language: php
sudo: false
matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
dist: trusty
allow_failures:
- php: hhvm
install: travis_retry composer update --no-interaction
script: vendor/bin/phpunit --verbose
before_deploy: bin/... | Enable verbose mode on phpunit on travos | Enable verbose mode on phpunit on travos | YAML | mit | bobthecow/psysh,bobthecow/psysh | yaml | ## Code Before:
language: php
sudo: false
matrix:
include:
- php: 5.3
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: hhvm
dist: trusty
allow_failures:
- php: hhvm
install: travis_retry composer update --no-interaction
script: vendor/bin/phpunit
before_deploy... |
2a55ddc68ea2eae2fd5fb9e04e4d28762a47b44d | lib/knife-solo/berkshelf.rb | lib/knife-solo/berkshelf.rb | require 'digest/sha1'
require 'fileutils'
require 'knife-solo/cookbook_manager'
require 'knife-solo/tools'
module KnifeSolo
class Berkshelf
include CookbookManager
def self.gem_libraries
%w[berkshelf]
end
def self.conf_file_name
'Berksfile'
end
def install!
path = berkshe... | require 'digest/sha1'
require 'fileutils'
require 'knife-solo/cookbook_manager'
require 'knife-solo/tools'
module KnifeSolo
class Berkshelf
include CookbookManager
def self.gem_libraries
%w[berkshelf]
end
def self.conf_file_name
'Berksfile'
end
def install!
path = berkshe... | Update source location for Berkshelf 3.0 | Update source location for Berkshelf 3.0
| Ruby | mit | a2ikm/knife-solo,analog-analytics/knife-solo,matschaffer/knife-solo,analog-analytics/knife-solo,leonid-shevtsov/knife-solo,analog-analytics/knife-solo,leonid-shevtsov/knife-solo,coletivoEITA/knife-solo,matschaffer/knife-solo,chadzilla2080/knife-solo,leonid-shevtsov/knife-solo,a2ikm/knife-solo,coletivoEITA/knife-solo,ma... | ruby | ## Code Before:
require 'digest/sha1'
require 'fileutils'
require 'knife-solo/cookbook_manager'
require 'knife-solo/tools'
module KnifeSolo
class Berkshelf
include CookbookManager
def self.gem_libraries
%w[berkshelf]
end
def self.conf_file_name
'Berksfile'
end
def install!
... |
6c931091299fb5fef12f02f1e5647cb05ed10427 | .travis.yml | .travis.yml | os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
- gfortran-8
homebrew:
packages:
- gnu-tar
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: osx
osx_image: xcode9.4
env:
- MODE=build
dist: xenial
sudo: required
latex: true
l... | os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
- gfortran-8
homebrew:
packages:
- gnu-tar
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: osx
osx_image: xcode9.4
env:
- MODE=build
latex: false
dist: xenial
sudo: requi... | Revert "Maybe need latex for os/x now?" | Revert "Maybe need latex for os/x now?"
This reverts commit 661d41ff60857a32fba196efe0b334e1a9a2e968.
| YAML | apache-2.0 | jpritikin/OpenMx,jpritikin/OpenMx,jpritikin/OpenMx,jpritikin/OpenMx,jpritikin/OpenMx,jpritikin/OpenMx | yaml | ## Code Before:
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
- gfortran-8
homebrew:
packages:
- gnu-tar
global:
- MAKEFLAGS="-j 2"
matrix:
include:
- os: osx
osx_image: xcode9.4
env:
- MODE=build
dist: xenial
sudo: requir... |
8f52ba8336a4c49732d47eb6f2a586e4639f19bc | Extension/YamlExtension.php | Extension/YamlExtension.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\Twig\Extension;
use Symfony\Component\Yaml\Dumper as Yam... | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\Twig\Extension;
use Symfony\Component\Yaml\Dumper as Yam... | Add Support for boolean as to string into yaml extension | Add Support for boolean as to string into yaml extension
| PHP | mit | symfony/twig-bridge,symfony/TwigBridge | php | ## Code Before:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bridge\Twig\Extension;
use Symfony\Component\Ya... |
426e1767fc1dabfef58a52d476cac6315c2d78cb | src/util/analytics.js | src/util/analytics.js | import Piwik from 'piwik-react-router'
/**
* @typedef {Object} EventTrackInfo
* @property {string} category The event category ('Search', 'Blacklist', etc.).
* @property {string} action The event action ('Add Entry', etc.).
* @property {string} [name] The optional event name (user input - other custom info).
* @p... | import Piwik from 'piwik-react-router'
/**
* @typedef {Object} EventTrackInfo
* @property {string} category The event category ('Search', 'Blacklist', etc.).
* @property {string} action The event action ('Add Entry', etc.).
* @property {string} [name] The optional event name (user input - other custom info).
* @p... | Set up runtime JS error tracking | Set up runtime JS error tracking
- this client lib supports it with `trackErrors` option. Seems to work alright giving the line the error occurred at + message
| JavaScript | mit | WorldBrain/WebMemex,WorldBrain/WebMemex | javascript | ## Code Before:
import Piwik from 'piwik-react-router'
/**
* @typedef {Object} EventTrackInfo
* @property {string} category The event category ('Search', 'Blacklist', etc.).
* @property {string} action The event action ('Add Entry', etc.).
* @property {string} [name] The optional event name (user input - other cus... |
32d8ff6e69cceff29b66ce93afaa2f6e6372204c | src/main/java/io/mkremins/whydah/interpreter/Scope.java | src/main/java/io/mkremins/whydah/interpreter/Scope.java | package io.mkremins.whydah.interpreter;
import io.mkremins.whydah.ast.Expression;
import io.mkremins.whydah.ast.ExpressionUtils;
import java.util.HashMap;
import java.util.Map;
public class Scope {
private final Map<String, Expression> vars;
private final Scope parent;
public Scope(final Scope parent) {
vars ... | package io.mkremins.whydah.interpreter;
import io.mkremins.whydah.ast.Expression;
import io.mkremins.whydah.ast.ExpressionUtils;
import java.util.HashMap;
import java.util.Map;
public class Scope {
private final Map<String, Expression> vars;
private final Scope parent;
public Scope(final Scope parent) {
vars ... | Make project Java 6 compliant | Make project Java 6 compliant
| Java | mit | mkremins/whydah | java | ## Code Before:
package io.mkremins.whydah.interpreter;
import io.mkremins.whydah.ast.Expression;
import io.mkremins.whydah.ast.ExpressionUtils;
import java.util.HashMap;
import java.util.Map;
public class Scope {
private final Map<String, Expression> vars;
private final Scope parent;
public Scope(final Scope p... |
108992af62c393f931e2ebf1fe7443cbfdac7229 | .travis.yml | .travis.yml | ---
sudo: false
language: ruby
bundler_args: --without acceptance_testing metatools
script:
- bundle exec rake release_checks
- bundle exec rake mdl
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.9
env: PUPP... | ---
sudo: false
language: ruby
bundler_args: --without acceptance_testing metatools
script:
- bundle exec rake release_checks
- bundle exec rake mdl
matrix:
fast_finish: true
include:
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm:... | Drop CI testing on Ruby 1.9 | Drop CI testing on Ruby 1.9
| YAML | mit | leoarnold/puppet-cups,leoarnold/puppet-cups | yaml | ## Code Before:
---
sudo: false
language: ruby
bundler_args: --without acceptance_testing metatools
script:
- bundle exec rake release_checks
- bundle exec rake mdl
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1... |
b61042c8b905f6c689fabadc15c130cf58dbb6e0 | src/test/scala/org/hashids/CheckHashids.scala | src/test/scala/org/hashids/CheckHashids.scala | package org.hashids
import org.hashids.syntax._
import org.scalacheck._
import org.specs2._
case class ZeroOrPosLong(value: Long)
class CheckHashids extends org.specs2.Specification with org.specs2.ScalaCheck {
import CheckHashids.arbitraryZeroOrPosLong
def is = {
"List of random zero or positive longs shou... | package org.hashids
import org.hashids.syntax._
import org.scalacheck._
import org.specs2._
case class ZeroOrPosLong(value: Long)
class CheckHashids extends org.specs2.Specification with org.specs2.ScalaCheck {
import CheckHashids._
def is = {
"List of random zero or positive longs should encode then decode... | Move non-specification code into companion object. | Move non-specification code into companion object.
| Scala | mit | newhoggy/hashids-scala,pico-works/pico-hashids | scala | ## Code Before:
package org.hashids
import org.hashids.syntax._
import org.scalacheck._
import org.specs2._
case class ZeroOrPosLong(value: Long)
class CheckHashids extends org.specs2.Specification with org.specs2.ScalaCheck {
import CheckHashids.arbitraryZeroOrPosLong
def is = {
"List of random zero or pos... |
9cd54ca34eee54d3cbe357147f2f81c6021bc606 | controllers/widget.js | controllers/widget.js | var args = _.extend({
duration: 2000,
animationDuration: 250,
message: '',
title: Ti.App.name,
elasticity: 0.5,
pushForce: 30,
usePhysicsEngine: true
}, arguments[0] || {});
var That = null;
exports.show = function(opt) {
if (_.isObject(opt)) _.extend(args, opt);
if (_.isString(opt)) _.extend(args, { message... | var args = _.extend({
duration: 2000,
animationDuration: 250,
message: '',
title: Ti.App.name,
elasticity: 0.5,
pushForce: 30,
usePhysicsEngine: true
}, arguments[0] || {});
var That = null;
exports.show = function(opt) {
if (_.isObject(opt)) _.extend(args, opt);
if (_.isString(opt)) _.extend(args, { message... | Allow update of notification text. | Allow update of notification text.
Allows you to update the message in the notification.
I wanted this feature to allow me to show loading percentage in the notification when downloading or uploading data. | JavaScript | mit | titanium-forks/CaffeinaLab.com.caffeinalab.titanium.notifications,CaffeinaLab/Ti.Notifications,DouglasHennrich/Ti.Notifications | javascript | ## Code Before:
var args = _.extend({
duration: 2000,
animationDuration: 250,
message: '',
title: Ti.App.name,
elasticity: 0.5,
pushForce: 30,
usePhysicsEngine: true
}, arguments[0] || {});
var That = null;
exports.show = function(opt) {
if (_.isObject(opt)) _.extend(args, opt);
if (_.isString(opt)) _.extend... |
a8b9a8e22f3b5fb047ae4b9537322f761e531e0a | generate-combined.sh | generate-combined.sh | cat \
dygraph-layout.js \
dygraph-canvas.js \
dygraph.js \
dygraph-utils.js \
dygraph-gviz.js \
dygraph-interaction-model.js \
dygraph-range-selector.js \
dygraph-tickers.js \
rgbcolor/rgbcolor.js \
strftime/strftime-min.js \
plugins/base.js \
plugins/legend.js \
plugins/install.js \
| perl -ne 'print unless m,REMOVE_F... | cat \
dygraph-layout.js \
dygraph-canvas.js \
dygraph.js \
dygraph-utils.js \
dygraph-gviz.js \
dygraph-interaction-model.js \
dygraph-range-selector.js \
dygraph-tickers.js \
rgbcolor/rgbcolor.js \
strftime/strftime-min.js \
plugins/base.js \
plugins/legend.js \
plugins/install.js \
| perl -ne 'print unless m,REMOVE_F... | Add @license tag to dygraph-combined.js | Add @license tag to dygraph-combined.js
| Shell | mit | timeu/dygraphs,timeu/dygraphs,davidmsibley/dygraphs,mantyr/dygraphs,klausw/dygraphs,Akiyah/dygraphs,Yong-Lee/dygraphs,petechap/dygraphs,grantadesign/dygraphs,klausw/dygraphs,kbaggott/dygraphs,pshevtsov/dygraphs,panuhorsmalahti/dygraphs,mcanthony/dygraphs,danvk/dygraphs,mcanthony/dygraphs,Akiyah/dygraphs,petechap/dygrap... | shell | ## Code Before:
cat \
dygraph-layout.js \
dygraph-canvas.js \
dygraph.js \
dygraph-utils.js \
dygraph-gviz.js \
dygraph-interaction-model.js \
dygraph-range-selector.js \
dygraph-tickers.js \
rgbcolor/rgbcolor.js \
strftime/strftime-min.js \
plugins/base.js \
plugins/legend.js \
plugins/install.js \
| perl -ne 'print u... |
1b44f860e812ef7e26f5ce0658467b2d89beffc4 | css/main.css | css/main.css | .message_list {
overflow-y: scroll;
max-height: 50%;
}
.chat-input {
width: 90%;
}
/* I have no idea if this is the best way to handle the issues with float:left in navbars, or if 30px is a good value */
.tabset {
min-height: 30px;
}
ul.tab-list {
list-style: none;
}
ul.tab-list li {
display: block;
float: l... | .message_list {
overflow-y: scroll;
max-height: 50%;
white-space: pre-wrap;
line-height: 0.9em;
}
.chat-input {
width: 90%;
}
/* I have no idea if this is the best way to handle the issues with float:left in navbars, or if 30px is a good value */
.tabset {
min-height: 30px;
}
ul.tab-list {
list-style: none;
}... | Use `pre-wrap` rendering to make ASCII art work | Use `pre-wrap` rendering to make ASCII art work
| CSS | mit | n00bish/hackmud_chat_web,ethankaminski/hackmud_chat_web,n00bish/hackmud_chat_web,ethankaminski/hackmud_chat_web,DrizzlyBear/hackmud_chat_web,DrizzlyBear/hackmud_chat_web | css | ## Code Before:
.message_list {
overflow-y: scroll;
max-height: 50%;
}
.chat-input {
width: 90%;
}
/* I have no idea if this is the best way to handle the issues with float:left in navbars, or if 30px is a good value */
.tabset {
min-height: 30px;
}
ul.tab-list {
list-style: none;
}
ul.tab-list li {
display: ... |
c80f1fbd432a4bd7d10084a62f9965523dd9c613 | .travis.yml | .travis.yml | before_script: apt-get install -y libusb-dev
script: cd usbpush && make
language: c
compiler:
- clang
- gcc
os:
- linux
| before_install:
- apt-get install -y libusb-dev
script: cd usbpush && make
language: c
compiler:
- clang
- gcc
os:
- linux
| Bring installation with apt-get to before_install stage. | Bring installation with apt-get to before_install stage.
| YAML | bsd-2-clause | wkoszek/usbpush | yaml | ## Code Before:
before_script: apt-get install -y libusb-dev
script: cd usbpush && make
language: c
compiler:
- clang
- gcc
os:
- linux
## Instruction:
Bring installation with apt-get to before_install stage.
## Code After:
before_install:
- apt-get install -y libusb-dev
script: cd usb... |
58f2ab3b617ac8bdeadbe766b75745cbd449882c | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/nteract
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if ... | version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/nteract
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if ... | Use pip install directly in CircleCI build | Use pip install directly in CircleCI build
| YAML | bsd-3-clause | nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition | yaml | ## Code Before:
version: 2
jobs:
build:
docker:
- image: circleci/node:10
working_directory: ~/nteract
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
# fallback to using the ... |
903f2504a00501b592e0c99dbdfa5e177638aea1 | tasks/git_shell.yml | tasks/git_shell.yml |
- set_fact: git_home=/srv/git
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- file: name={{ git_home }}/git-shell-commands state=directory
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
with_items:
... |
- set_fact: git_home=/srv/git
- name: Create user {{ git_username }}
user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- name: Create git-shell-commands directory
file: name={{ git_home }}/git-shell-commands state=directory
- name: Copy co... | Add name to the various command, for ansible 2.0 compatbility | Add name to the various command, for ansible 2.0 compatbility
| YAML | mit | mscherer/ansible-role-ansible_bastion,OSAS/ansible-role-ansible_bastion,OSAS/ansible-role-ansible_bastion,mscherer/ansible-role-ansible_bastion | yaml | ## Code Before:
- set_fact: git_home=/srv/git
- user: name={{ git_username }} shell=/usr/bin/git-shell home={{ git_home }} group={{ ansible_admin_group | default(omit) }}
- file: name={{ git_home }}/git-shell-commands state=directory
- copy: dest={{ git_home }}/git-shell-commands/{{ item }} src={{ item }} mode=0755
... |
59219da0cfa9463b41553d1dd096c662f001ab98 | README.textile | README.textile | h1. InvisionBridge
A Rails plugin to allow Authlogic to use an Invision Power Board database's user credentials.
h2. Credits
* Chris Herring - "connection_ninja":http://github.com/cherring/connection_ninja
Copyright (c) 2009 Robert Speicher, released under the MIT license | h1. InvisionBridge
A Rails plugin to allow Authlogic to use an Invision Power Board database's user credentials.
h2. Credits
Copyright (c) 2009 Robert Speicher, released under the MIT license | Remove a credit, since we went another way. | Remove a credit, since we went another way. | Textile | mit | tsigo/invision_bridge | textile | ## Code Before:
h1. InvisionBridge
A Rails plugin to allow Authlogic to use an Invision Power Board database's user credentials.
h2. Credits
* Chris Herring - "connection_ninja":http://github.com/cherring/connection_ninja
Copyright (c) 2009 Robert Speicher, released under the MIT license
## Instruction:
Remove a cr... |
62b7bad2a5fb5f1de53a54ffeaad104aa5d8c4b6 | package.json | package.json | {
"name": "monaca-components",
"version": "1.0.0",
"description": "Monaca Shared Components",
"main": "Gruntfile.js",
"scripts": {
"start": "grunt server",
"build": "./node_modules/.bin/grunt",
"test": "echo \"Add Tests\""
},
"repository": {
"type": "git",
"url": "git+https://github.co... | {
"name": "monaca-components",
"version": "1.0.0",
"description": "Monaca Shared Components",
"main": "Gruntfile.js",
"scripts": {
"start": "./node_modules/.bin/grunt server",
"build": "./node_modules/.bin/grunt",
"test": "echo \"Add Tests\""
},
"repository": {
"type": "git",
"url": "g... | Make npm start command work for non-global grunt-cli | Make npm start command work for non-global grunt-cli
| JSON | apache-2.0 | erisu/cdn.monaca.io | json | ## Code Before:
{
"name": "monaca-components",
"version": "1.0.0",
"description": "Monaca Shared Components",
"main": "Gruntfile.js",
"scripts": {
"start": "grunt server",
"build": "./node_modules/.bin/grunt",
"test": "echo \"Add Tests\""
},
"repository": {
"type": "git",
"url": "git+h... |
aa1788fe13192790591e68d27326cbe0e983fdc0 | src/icon.js | src/icon.js | /**
* brightwheel
*
* Copyright © 2016 Allen Smith <loranallensmith@github.com>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/** @jsx etch.dom */
import etch from 'etch';
import classNames from ... | /**
* brightwheel
*
* Copyright © 2016 Allen Smith <loranallensmith@github.com>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/** @jsx etch.dom */
import etch from 'etch';
import classNames from ... | Implement Icon.update() for ComponentWidget fix | Implement Icon.update() for ComponentWidget fix
| JavaScript | mit | loranallensmith/brightwheel | javascript | ## Code Before:
/**
* brightwheel
*
* Copyright © 2016 Allen Smith <loranallensmith@github.com>. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/** @jsx etch.dom */
import etch from 'etch';
import ... |
39e9562a4ee3cf702ac467dd07704b92ea9ae808 | _posts/2014-09-22-using-the-new-daysSinceModified-parameter.html.markdown | _posts/2014-09-22-using-the-new-daysSinceModified-parameter.html.markdown | ---
title: Using the new daysSinceModified search parameter
date: 2014-09-22 00:00 UTC
tags:
layout: post
---
Due to popular demand, we have introduced a new parameter which can be used to filter records modified within X number of days. The new daysSinceModified parameter works for both a day value as well as a date ... | ---
title: Using the new daysSinceModified search parameter
date: 2014-09-22 00:00 UTC
tags:
layout: post
---
Due to popular demand, we have introduced a new parameter which can be used to filter records modified within X number of days. If a user appends daysSinceModified=X to the url where X is a number, the API wil... | Remove information about the date range | Remove information about the date range
| Markdown | unlicense | YOTOV-LIMITED/developers,YOTOV-LIMITED/developers,YOTOV-LIMITED/developers | markdown | ## Code Before:
---
title: Using the new daysSinceModified search parameter
date: 2014-09-22 00:00 UTC
tags:
layout: post
---
Due to popular demand, we have introduced a new parameter which can be used to filter records modified within X number of days. The new daysSinceModified parameter works for both a day value as... |
5f3ce497c57680cd00409b03817d16e58c2e2e18 | README.md | README.md | go-oledb
========
OLEDB for Go language
| go-oledb
========
OLEDB for Go language
I'm not going to continue with this: it makes more sense to use ADO, and mattn has already
done this: see https://github.com/mattn/go-adodb.
| Update readme, not going to continue with this for now | Update readme, not going to continue with this for now
| Markdown | mit | jjeffery/go-oledb | markdown | ## Code Before:
go-oledb
========
OLEDB for Go language
## Instruction:
Update readme, not going to continue with this for now
## Code After:
go-oledb
========
OLEDB for Go language
I'm not going to continue with this: it makes more sense to use ADO, and mattn has already
done this: see https://github.com/mattn/go... |
2d0b5c965999cddb97618faf6e1093d162bc5fdc | _posts/2016-07-04-gsc-projects.md | _posts/2016-07-04-gsc-projects.md | ---
layout: post
title: Google summer of codes projects
tags:
- Coding
---
Here is a list of all the google summer of code prjects I was a mentor for.
* Implement a Map/Reduce Framework (2016)
[Map/Reduce](http://en.wikipedia.org/wiki/MapReduce) frameworks are getting more and more popular for big data processing (fo... | ---
layout: post
title: Google summer of codes projects
tags:
- Coding
---
Here is a list of all the google summer of code prjects I was a mentor for.
* Implement a Map/Reduce Framework (2016)
[Map/Reduce](http://en.wikipedia.org/wiki/MapReduce) frameworks are getting more and more popular for big data processing (fo... | Add updates to the gsc projects | Add updates to the gsc projects
| Markdown | mit | diehlpk/diehlpk.github.io,diehlpk/diehlpk.github.io | markdown | ## Code Before:
---
layout: post
title: Google summer of codes projects
tags:
- Coding
---
Here is a list of all the google summer of code prjects I was a mentor for.
* Implement a Map/Reduce Framework (2016)
[Map/Reduce](http://en.wikipedia.org/wiki/MapReduce) frameworks are getting more and more popular for big dat... |
fb19192f80d283f23da32403e73a129238031bc9 | circle.yml | circle.yml | deployment:
production:
branch: master
commands:
- ssh -l openfisca legislation.openfisca.fr "cd legislation-explorer; ./deploy_prod.sh"
| dependencies:
cache_directories:
- "~/cache"
pre:
# Only create directory if not already present (--parents option).
- mkdir --parents ~/cache
post:
# Only downloads if not already present (--no-clobber option)
- cd ~/cache && wget --no-clobber http://selenium-release.storage.googleapis.com/3.... | Install selenium standalone server in CI | Install selenium standalone server in CI
| YAML | agpl-3.0 | openfisca/legislation-explorer | yaml | ## Code Before:
deployment:
production:
branch: master
commands:
- ssh -l openfisca legislation.openfisca.fr "cd legislation-explorer; ./deploy_prod.sh"
## Instruction:
Install selenium standalone server in CI
## Code After:
dependencies:
cache_directories:
- "~/cache"
pre:
# Only create d... |
cbd2778d71cce9870b40c4c090f765ef6ab69230 | .travis.yml | .travis.yml | sudo: false
language: python
cache:
directories:
- $HOME/gcloud/
env:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/python-docs-samples.json
PYTHONPATH=${HOME}/gcloud/google-cloud-sdk/platform/google_appengine
before_install:
- openssl aes-256-cbc -K $encrypted_2b... | sudo: false
language: python
cache:
directories:
- $HOME/gcloud/
env:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/python-docs-samples.json
PYTHONPATH=${HOME}/gcloud/google-cloud-sdk/platform/google_appengine
before_install:
- openssl aes-256-cbc -K $encrypted_2b... | Add Project To Travis File | Add Project To Travis File
| YAML | apache-2.0 | waprin/appengine-vm-fortunespeak-python | yaml | ## Code Before:
sudo: false
language: python
cache:
directories:
- $HOME/gcloud/
env:
- PATH=$PATH:$HOME/gcloud/google-cloud-sdk/bin GOOGLE_APPLICATION_CREDENTIALS=$TRAVIS_BUILD_DIR/python-docs-samples.json
PYTHONPATH=${HOME}/gcloud/google-cloud-sdk/platform/google_appengine
before_install:
- openssl aes-256-cbc ... |
58a341e8c0018219fd2884d4f6cdc0805f25fa6c | vim/vim.symlink/config/05-terminal.vim | vim/vim.symlink/config/05-terminal.vim | set background=dark
colorscheme solarized
" textwidth < 81 please
set colorcolumn=81
" Medium Menlo
set guifont=Consolas:h16
| set background=dark
colorscheme solarized
" textwidth < 81 please
set colorcolumn=81
" Medium Consolas for Powerline
set guifont=Consolas\ for\ Powerline:h16
| Use Consolas for Powerline in Vim | Use Consolas for Powerline in Vim
| VimL | mit | jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles,jcf/ansible-dotfiles | viml | ## Code Before:
set background=dark
colorscheme solarized
" textwidth < 81 please
set colorcolumn=81
" Medium Menlo
set guifont=Consolas:h16
## Instruction:
Use Consolas for Powerline in Vim
## Code After:
set background=dark
colorscheme solarized
" textwidth < 81 please
set colorcolumn=81
" Medium Consolas for P... |
cd70eec47c3696c4713e5f9cf14fc25ebe62f42c | package.json | package.json | {
"name": "serverless-image-resizer",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"deploy": "serverless deploy function -f imageResizer",
"deploy:service": "serverless deploy",
"invoke": "serverless invoke -f imageResizer",
"logs": "serverless logs -f imageResizer -... | {
"name": "serverless-image-resizer",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"deploy": "serverless deploy",
"deploy:function": "serverless deploy function -f imageResizer",
"invoke": "serverless invoke -f imageResizer",
"logs": "serverless logs -f imageResizer ... | Change npm script. `deploy:service` -> `deploy:function` | Change npm script. `deploy:service` -> `deploy:function`
| JSON | mit | mgi166/serverless-image-resizer | json | ## Code Before:
{
"name": "serverless-image-resizer",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"deploy": "serverless deploy function -f imageResizer",
"deploy:service": "serverless deploy",
"invoke": "serverless invoke -f imageResizer",
"logs": "serverless logs -... |
c13d35dfff211ac3cfdf6874d1a4fb7631fedeb6 | .travis.yml | .travis.yml | language: python
python:
- "2.7"
addons:
apt:
packages:
- oracle-java7-installer
env:
- DEPLOY=true PULL_REQUEST=$TRAVIS_PULL_REQUEST SCM_BRANCH=$TRAVIS_BRANCH
install:
- pip install html5validator
- npm install -g jshint
- npm install -g recess
- npm install -g http-server
- npm install -g node
... | language: python
python:
- "2.7"
env:
- DEPLOY=true PULL_REQUEST=$TRAVIS_PULL_REQUEST SCM_BRANCH=$TRAVIS_BRANCH
install:
- pip install html5validator==0.1.14
- npm install -g jshint
- npm install -g recess
- npm install -g http-server
- npm install -g node
- npm install -g phantomjs
- npm install -g pa... | Set an old HTML5 validator version | Set an old HTML5 validator version
| YAML | mit | Bernardo-MG/docs-bootstrap-template,Bernardo-MG/docs-bootstrap-template | yaml | ## Code Before:
language: python
python:
- "2.7"
addons:
apt:
packages:
- oracle-java7-installer
env:
- DEPLOY=true PULL_REQUEST=$TRAVIS_PULL_REQUEST SCM_BRANCH=$TRAVIS_BRANCH
install:
- pip install html5validator
- npm install -g jshint
- npm install -g recess
- npm install -g http-server
- npm i... |
9b8af4eb531f5e2dd41430b4787d44e6d1ac80b2 | Instanssi/main2013/templates/main2013/index.html | Instanssi/main2013/templates/main2013/index.html | {% extends "main2013/base.html" %}
{% load blog_tags %}
{% block head %}
{{ block.super }}
{% endblock %}
{% block jquery %}
{{ block.super }}
{% endblock %}
{% block content %}
{{ block.super }}
<h1>Blogi</h1>
{% render_blog 1 %}
{% render_blog_rss_tag 1 %}
{% endblock %} | {% extends "main2013/base.html" %}
{% load blog_tags %}
{% block head %}
{{ block.super }}
{% endblock %}
{% block jquery %}
{{ block.super }}
{% endblock %}
{% block content %}
{{ block.super }}
<h1>Blogi</h1>
{% render_blog event_id %}
{% render_blog_rss_tag event_id %}
{% endblock %} | Switch frontpage to use event_id instead of raw event number. | main2013: Switch frontpage to use event_id instead of raw event number.
| HTML | mit | Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org,Instanssi/Instanssi.org | html | ## Code Before:
{% extends "main2013/base.html" %}
{% load blog_tags %}
{% block head %}
{{ block.super }}
{% endblock %}
{% block jquery %}
{{ block.super }}
{% endblock %}
{% block content %}
{{ block.super }}
<h1>Blogi</h1>
{% render_blog 1 %}
{% render_blog_rss_tag 1 %}
{% endblock %}
## Instruction:
main2013: ... |
e9dddcd43a0543832c6a7a32e845367827876d9c | app/controllers/uploads_controller.rb | app/controllers/uploads_controller.rb | class UploadsController < ApplicationController
before_action :authenticate_user!
def new
@upload = Upload.new(user_id: current_user.id, user_type: "User").tap(&:save)
end
def create
@upload = Upload.new(upload_params)
if @upload.save
redirect_to @upload, notice: 'Document was successfully ... | class UploadsController < ApplicationController
before_action :authenticate_user!
def new
@upload = Upload.new(user_id: current_user.id, user_type: "User").tap(&:save)
end
def create
@upload = Upload.new(upload_params)
if @upload.save
redirect_to :back, notice: 'File was successfully upload... | Fix redirect error when uploading document | issue-206: Fix redirect error when uploading document
* app/controllers/uploads_controller.rb: Fix redirect and add
appropriate flash message based on the save result.
| Ruby | mit | on-site/Grantzilla,on-site/Grantzilla,on-site/Grantzilla | ruby | ## Code Before:
class UploadsController < ApplicationController
before_action :authenticate_user!
def new
@upload = Upload.new(user_id: current_user.id, user_type: "User").tap(&:save)
end
def create
@upload = Upload.new(upload_params)
if @upload.save
redirect_to @upload, notice: 'Document w... |
37879f7d312deb8fa3c09f7353420a1735597ed4 | lib/pdf/invoice.rb | lib/pdf/invoice.rb | require 'render_anywhere'
module PDF
class Invoice
include RenderAnywhere
def initialize(order)
@order = order
end
def generate
write_html
convert_html_to_pdf
end
def write_html
File.open(html_filename, 'w') { |f| f.write(html) }
end
def convert_html_to_pdf... | require 'render_anywhere'
module PDF
class Invoice
include RenderAnywhere
def initialize(order)
@order = order
end
def generate
write_html
convert_html_to_pdf
end
def write_html
File.open(html_filename, 'w') { |f| f.write(html) }
end
def convert_html_to_pdf... | Use custom view resolvers in PDF | Use custom view resolvers in PDF
| Ruby | mit | ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey | ruby | ## Code Before:
require 'render_anywhere'
module PDF
class Invoice
include RenderAnywhere
def initialize(order)
@order = order
end
def generate
write_html
convert_html_to_pdf
end
def write_html
File.open(html_filename, 'w') { |f| f.write(html) }
end
def con... |
faf77acc7ddb6a5e2bc198fcfec129f83d2a7678 | plotly/tests/test_core/test_file/test_file.py | plotly/tests/test_core/test_file/test_file.py |
from nose.tools import raises
from nose import with_setup
import random
import string
import requests
import plotly.plotly as py
import plotly.tools as tls
from plotly.exceptions import PlotlyRequestError
def _random_filename():
random_chars = [random.choice(string.ascii_uppercase) for _ in range(5)]
uniqu... | import random
import string
from unittest import TestCase
import plotly.plotly as py
from plotly.exceptions import PlotlyRequestError
class FolderAPITestCase(TestCase):
def setUp(self):
py.sign_in('PythonTest', '9v9f20pext')
def _random_filename(self):
random_chars = [random.choice(string.a... | Fix failing test and refact to TestCase. | Fix failing test and refact to TestCase. | Python | mit | ee-in/python-api,plotly/plotly.py,plotly/python-api,ee-in/python-api,plotly/python-api,plotly/python-api,plotly/plotly.py,plotly/plotly.py,ee-in/python-api | python | ## Code Before:
from nose.tools import raises
from nose import with_setup
import random
import string
import requests
import plotly.plotly as py
import plotly.tools as tls
from plotly.exceptions import PlotlyRequestError
def _random_filename():
random_chars = [random.choice(string.ascii_uppercase) for _ in ran... |
bc20e8d01dc154d45f9dfc8f2b610d415a40f253 | broadbean/__init__.py | broadbean/__init__.py |
from . import ripasso
from .element import Element
from .segment import Segment
from .sequence import Sequence
from .blueprint import BluePrint
from .tools import makeVaryingSequence, repeatAndVarySequence
from .broadbean import PulseAtoms
|
from . import ripasso
from .element import Element
from .sequence import Sequence
from .blueprint import BluePrint
from .tools import makeVaryingSequence, repeatAndVarySequence
from .broadbean import PulseAtoms
| Remove import of version 1.0 feature | Remove import of version 1.0 feature
| Python | mit | WilliamHPNielsen/broadbean | python | ## Code Before:
from . import ripasso
from .element import Element
from .segment import Segment
from .sequence import Sequence
from .blueprint import BluePrint
from .tools import makeVaryingSequence, repeatAndVarySequence
from .broadbean import PulseAtoms
## Instruction:
Remove import of version 1.0 feature
## Code ... |
1ce9d232e290c32f2c3e851617a89966f0e3eb87 | lib/templatetags/baseurl.py | lib/templatetags/baseurl.py | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isabs(url):
... | Change bs4 html parser to html.parser | Change bs4 html parser to html.parser
This is to fix wrapping with <html> tags.
| Python | mit | peterkuma/tjrapid,peterkuma/tjrapid,peterkuma/tjrapid | python | ## Code Before:
import re
from bs4 import BeautifulSoup
from django import template
register = template.Library()
@register.filter(is_safe=True)
def baseurl(html, base):
if not base.endswith('/'):
base += '/'
absurl = re.compile(r'\s*[a-zA-Z][a-zA-Z0-9\+\.\-]*:') # Starts with scheme:.
def isab... |
e890bbc882c11d41aec396a3820ae84ad94df568 | createproject.sh | createproject.sh | src=$(git rev-parse --show-toplevel) || {
echo "try running the script from within html5-boilerplate directories." >&2
exit 1
}
[[ -d $src ]] || {
echo "fatal: could not determine html5-boilerplate's root directory." >&2
echo "try updating git." >&2
exit 1
}
# get a name for new project
while [[ -z $name ]]
... | src=$(git rev-parse --show-toplevel) || {
echo "try running the script from within html5-boilerplate directories." >&2
exit 1
}
[[ -d $src ]] || {
echo "fatal: could not determine html5-boilerplate's root directory." >&2
echo "try updating git." >&2
exit 1
}
if [ $# -eq 1 ]
then
# get a name for new proj... | Handle absolute directories for "name" and optionally take name as command line argument. | Handle absolute directories for "name" and optionally take name as command line argument.
| Shell | mit | mklabs/node-build-script,mklabs/node-build-script | shell | ## Code Before:
src=$(git rev-parse --show-toplevel) || {
echo "try running the script from within html5-boilerplate directories." >&2
exit 1
}
[[ -d $src ]] || {
echo "fatal: could not determine html5-boilerplate's root directory." >&2
echo "try updating git." >&2
exit 1
}
# get a name for new project
while... |
a342d04b51de6c132337ddc479b57e65cca27ffa | app/views/users/_form.html.haml | app/views/users/_form.html.haml | = simple_form_for @user, html: { class: 'form-horizontal', id: 'user_form' } do |f|
= f.input :name
= f.input :email
= f.input :profile, input_html: { rows: 5, class: 'span6' }
%hr
= f.simple_fields_for :preference do |preference_form|
= preference_form.input :languages, as: :select, collection: %w(englis... | = simple_form_for @user, html: { class: 'form-horizontal', id: 'user_form' } do |f|
= f.input :name
= f.input :email
= f.input :profile, input_html: { rows: 5, class: 'span6' }
%hr
= f.simple_fields_for :preference do |preference_form|
= preference_form.input :languages, as: :select, collection: %w(englis... | Update to data: { disable_with: 'Text' } style | Update to data: { disable_with: 'Text' } style
| Haml | mit | dddaisuke/quoty,dddaisuke/quoty,kinopyo/quoty,kinopyo/quoty,dddaisuke/quoty | haml | ## Code Before:
= simple_form_for @user, html: { class: 'form-horizontal', id: 'user_form' } do |f|
= f.input :name
= f.input :email
= f.input :profile, input_html: { rows: 5, class: 'span6' }
%hr
= f.simple_fields_for :preference do |preference_form|
= preference_form.input :languages, as: :select, colle... |
970e5334cf4932ee7fa705c7b2f9c5d43749353c | src/CrawlLogger.java | src/CrawlLogger.java | package src;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class CrawlLogger {
static private FileHandler fileTxt;
static private SimpleFormatter formatterTxt;
static public void... | package src;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class Crawl... | Change in the name of the log file | Change in the name of the log file
| Java | mit | joausaga/ideascalecrawler | java | ## Code Before:
package src;
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class CrawlLogger {
static private FileHandler fileTxt;
static private SimpleFormatter formatterTxt;
st... |
635f492f575027b9eeea352c9e85eb3f28abfc67 | startup.sh | startup.sh |
ipython trust /import/ipython_galaxy_notebook.ipynb
/monitor_traffic.sh &
ipython notebook --no-browser
|
uid=`stat --printf %u /import`
gid=`stat --printf %g /import`
if [[ $uid != '1450' ]] && [[ $gid != '1450' ]]; then
groupadd -r galaxy -g $gid && \
useradd -u $uid -r -g galaxy -d /home/ipython -c "IPython user" galaxy && \
chown galaxy:galaxy /home/ipython -R
su galaxy -c 'ipython trust /import/ipyt... | Change permission and user if this container is not started from within the Galaxy Docker container. | Change permission and user if this container is not started from within the Galaxy Docker container.
| Shell | mit | bgruening/docker-jupyter-notebook,bgruening/docker-jupyter-notebook,bgruening/docker-jupyter-notebook,bgruening/docker-ipython-notebook,bgruening/docker-ipython-notebook,bgruening/docker-ipython-notebook | shell | ## Code Before:
ipython trust /import/ipython_galaxy_notebook.ipynb
/monitor_traffic.sh &
ipython notebook --no-browser
## Instruction:
Change permission and user if this container is not started from within the Galaxy Docker container.
## Code After:
uid=`stat --printf %u /import`
gid=`stat --printf %g /import`
i... |
0168687fb0b9e599e5bf1f25627006531624d114 | tests/docker.js | tests/docker.js | var assert = require("assert");
var spawn = require('child_process').spawn;
describe('Start docker container', function () {
it('should show M2 preamble', function (done) {
// ssh localhost
var docker = "docker";
var process = spawn(docker, ["run", "fhinkel/macaulay2", "M2"]);
var... | var assert = require("assert");
var spawn = require('child_process').spawn;
describe('Start docker container', function () {
it('should show M2 preamble', function (done) {
// ssh localhost
var docker = "docker";
var process = spawn(docker, ["run", "fhinkel/macaulay2", "M2"]);
var... | Fix test to wait for output | Fix test to wait for output
| JavaScript | mit | fhinkel/InteractiveShell,antonleykin/InteractiveShell,antonleykin/InteractiveShell,antonleykin/InteractiveShell,fhinkel/InteractiveShell,fhinkel/InteractiveShell,fhinkel/InteractiveShell | javascript | ## Code Before:
var assert = require("assert");
var spawn = require('child_process').spawn;
describe('Start docker container', function () {
it('should show M2 preamble', function (done) {
// ssh localhost
var docker = "docker";
var process = spawn(docker, ["run", "fhinkel/macaulay2", "M2... |
49fdc12d5e70ebe881497ab28a6422588991693e | .travis.yml | .travis.yml | language: "ruby"
rvm:
- "1.9.3"
- "2.0"
- "2.1"
- "2.2"
- "2.3"
- "jruby"
| language: "ruby"
rvm:
- "1.9.3"
- "2.0"
- "2.1"
- "2.2"
- "jruby"
before_install:
- gem update --system
- bundle clean --force || exit 0
| Delete older versions of gems | Delete older versions of gems
| YAML | mit | chiku/simple_validation | yaml | ## Code Before:
language: "ruby"
rvm:
- "1.9.3"
- "2.0"
- "2.1"
- "2.2"
- "2.3"
- "jruby"
## Instruction:
Delete older versions of gems
## Code After:
language: "ruby"
rvm:
- "1.9.3"
- "2.0"
- "2.1"
- "2.2"
- "jruby"
before_install:
- gem update --system
- bundle clean --force || exit 0
|
6a24763e68182d68f5bbb30ce93193582d4ba302 | test/bundle_false/package.json | test/bundle_false/package.json | {
"name": "bundle-false",
"main": "main",
"dependencies": {
"jqueryt": "2.2.0"
},
"system": {
"directories": {
"lib": "src"
},
"meta": {
"bar": "foo",
"foobar": {
"foo": "bar"
},
"jqueryt": {
"foo": "bar"
}
},
"envs": {
"window-... | {
"name": "bundle-false",
"main": "main",
"version": "1.0.0",
"dependencies": {
"jqueryt": "2.2.0"
},
"system": {
"directories": {
"lib": "src"
},
"meta": {
"bar": "foo",
"foobar": {
"foo": "bar"
},
"jqueryt": {
"foo": "bar"
}
},
"e... | Include a version for bundle-false | Include a version for bundle-false
| JSON | mit | stealjs/steal-tools,stealjs/steal-tools | json | ## Code Before:
{
"name": "bundle-false",
"main": "main",
"dependencies": {
"jqueryt": "2.2.0"
},
"system": {
"directories": {
"lib": "src"
},
"meta": {
"bar": "foo",
"foobar": {
"foo": "bar"
},
"jqueryt": {
"foo": "bar"
}
},
"envs": ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.