commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6b83ab382453ff622aba1b550982cdc11229e209 | lib/config/custom-routes.rb | lib/config/custom-routes.rb |
Rails.application.routes.draw do
# Additional help pages
match '/help/help_out' => 'help#help_out', :as => 'help_help_out'
match '/help/right_to_know' => 'help#right_to_know', :as => 'help_right_to_know'
# redirect the blog page to blog.asktheeu.org
match '/blog/' => redirect('http://blog.asktheeu.org/')
en... |
Rails.application.routes.draw do
# Additional help pages
match '/help/help_out' => 'help#help_out',
:as => 'help_help_out',
:via => :get
match '/help/right_to_know' => 'help#right_to_know',
:as => 'help_right_to_know',
:via => :get
# redirect the blog page to blog.asktheeu.org
match '/blog/'... | Fix broken routes so application can now boot | Fix broken routes so application can now boot
| Ruby | mit | mysociety/asktheeu-theme,mysociety/asktheeu-theme | ruby | ## Code Before:
Rails.application.routes.draw do
# Additional help pages
match '/help/help_out' => 'help#help_out', :as => 'help_help_out'
match '/help/right_to_know' => 'help#right_to_know', :as => 'help_right_to_know'
# redirect the blog page to blog.asktheeu.org
match '/blog/' => redirect('http://blog.as... |
Rails.application.routes.draw do
# Additional help pages
- match '/help/help_out' => 'help#help_out', :as => 'help_help_out'
? -----------------------
+ match '/help/help_out' => 'help#help_out',
+ :as => 'help_help_out',
+ :via => :get
- match '/help/... | 12 | 1.333333 | 9 | 3 |
d5c5ac23a25503a28ba9eb442649ad8339833d66 | src/themes/default/empty-pane-menu.scss | src/themes/default/empty-pane-menu.scss | /**
* Copyright 2017 Simon Edwards <simon@simonzone.com>
*/
@import "bootstrap/variables";
:host(:focus) {
outline: 0px solid transparent;
}
#ID_EMPTY_PANE_MENU {
font-family: $font-family-base;
font-size: $input-font-size;
line-height: $line-height-base;
color: $text-color;
background-color: $dropdow... | /**
* Copyright 2017 Simon Edwards <simon@simonzone.com>
*/
@import "bootstrap/variables";
:host(:focus) {
outline: 0px solid transparent;
}
#ID_EMPTY_PANE_MENU {
font-family: $font-family-base;
font-size: $input-font-size;
line-height: $line-height-base;
color: $text-color;
background-color: $dropdow... | Make the empty pane menu shrink when needed | Make the empty pane menu shrink when needed
| SCSS | mit | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | scss | ## Code Before:
/**
* Copyright 2017 Simon Edwards <simon@simonzone.com>
*/
@import "bootstrap/variables";
:host(:focus) {
outline: 0px solid transparent;
}
#ID_EMPTY_PANE_MENU {
font-family: $font-family-base;
font-size: $input-font-size;
line-height: $line-height-base;
color: $text-color;
background... | /**
* Copyright 2017 Simon Edwards <simon@simonzone.com>
*/
@import "bootstrap/variables";
:host(:focus) {
outline: 0px solid transparent;
}
#ID_EMPTY_PANE_MENU {
font-family: $font-family-base;
font-size: $input-font-size;
line-height: $line-height-base;
color: $text-color;... | 8 | 0.210526 | 5 | 3 |
b22014db7a5b437de7def5461b3bd1f4d5090800 | test/cookbooks/test/recipes/source.rb | test/cookbooks/test/recipes/source.rb | apt_update
node.default['php']['install_method'] = 'source'
node.default['php']['pear'] = '/usr/local/bin/pear'
include_recipe 'php'
| apt_update
node.default['php']['install_method'] = 'source'
node.default['php']['pear'] = '/usr/local/bin/pear'
node.default['php']['url'] = 'https://ftp.osuosl.org/pub/php/' # the default site blocks github actions boxes
include_recipe 'php'
| Use a different mirror in testing since GH Actions is blocked | Use a different mirror in testing since GH Actions is blocked
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
| Ruby | apache-2.0 | opscode-cookbooks/php,chef-cookbooks/php,chef-cookbooks/php,opscode-cookbooks/php | ruby | ## Code Before:
apt_update
node.default['php']['install_method'] = 'source'
node.default['php']['pear'] = '/usr/local/bin/pear'
include_recipe 'php'
## Instruction:
Use a different mirror in testing since GH Actions is blocked
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
## Code Afte... | apt_update
node.default['php']['install_method'] = 'source'
node.default['php']['pear'] = '/usr/local/bin/pear'
+ node.default['php']['url'] = 'https://ftp.osuosl.org/pub/php/' # the default site blocks github actions boxes
include_recipe 'php' | 1 | 0.166667 | 1 | 0 |
8453ed1c076bda52161ddd792ee8dd81df5790e3 | src/core/Routine.pm | src/core/Routine.pm | my class Routine {
method of() { self.signature.returns }
method returns() { self.signature.returns }
method rw() { $!rw }
method assuming($r: *@curried_pos, *%curried_named) {
return sub CURRIED (*@pos, *%named) {
$r(|@curried_pos, |@pos, |%curried_named, |%named)
}
... | my class Routine {
method of() { self.signature.returns }
method returns() { self.signature.returns }
method rw() { $!rw }
method assuming($r: *@curried_pos, *%curried_named) {
return sub CURRIED (*@pos, *%named) {
$r(|@curried_pos, |@pos, |%curried_named, |%named)
}
... | Add a way to get a set of matching candidates for a multi. | Add a way to get a set of matching candidates for a multi.
| Perl | artistic-2.0 | azawawi/rakudo,sjn/rakudo,MasterDuke17/rakudo,ungrim97/rakudo,sergot/rakudo,labster/rakudo,nbrown/rakudo,Leont/rakudo,labster/rakudo,MasterDuke17/rakudo,paultcochrane/rakudo,Gnouc/rakudo,tony-o/rakudo,tony-o/deb-rakudodaily,LLFourn/rakudo,dankogai/rakudo,skids/rakudo,raydiak/rakudo,b2gills/rakudo,zhuomingliang/rakudo,u... | perl | ## Code Before:
my class Routine {
method of() { self.signature.returns }
method returns() { self.signature.returns }
method rw() { $!rw }
method assuming($r: *@curried_pos, *%curried_named) {
return sub CURRIED (*@pos, *%named) {
$r(|@curried_pos, |@pos, |%curried_named, |%name... | my class Routine {
method of() { self.signature.returns }
method returns() { self.signature.returns }
method rw() { $!rw }
method assuming($r: *@curried_pos, *%curried_named) {
return sub CURRIED (*@pos, *%named) {
$r(|@curried_pos, |@pos, |%curried_named, |%name... | 10 | 0.47619 | 10 | 0 |
21d3b22482e48e1c2654c256fec667788d2729fb | .expeditor/coverage.pipeline.yml | .expeditor/coverage.pipeline.yml | ---
steps:
- label: coverage
commands:
- bundle install --jobs=7 --retry=3 --without tools integration
- bundle exec rake test:default
expeditor:
executor:
docker:
image: ruby:2.6-stretch
| ---
steps:
- label: coverage
commands:
- /workdir/.expeditor/buildkite/coverage.sh
expeditor:
executor:
docker:
image: ruby:2.6-stretch
| Use our coverage.sh rather than embedded commands | Use our coverage.sh rather than embedded commands
Signed-off-by: Miah Johnson <722873f9fa963292e0213e095373c87c1070cd81@chia-pet.org>
| YAML | apache-2.0 | chef/train,chef/train | yaml | ## Code Before:
---
steps:
- label: coverage
commands:
- bundle install --jobs=7 --retry=3 --without tools integration
- bundle exec rake test:default
expeditor:
executor:
docker:
image: ruby:2.6-stretch
## Instruction:
Use our coverage.sh rather than embedded commands
S... | ---
steps:
- label: coverage
commands:
+ - /workdir/.expeditor/buildkite/coverage.sh
- - bundle install --jobs=7 --retry=3 --without tools integration
- - bundle exec rake test:default
expeditor:
executor:
docker:
image: ruby:2.6-stretch | 3 | 0.272727 | 1 | 2 |
584f59f11680ae9528e897202aeb21cbab130157 | .travis.yml | .travis.yml | language: go
dist: trusty
go:
- 1.5
- 1.6.2
install:
- # WAV loading
- go get github.com/youpy/go-riff
- # SOX bindings
- sudo apt-get install -y libsox-dev
- go get github.com/krig/go-sox
- # Testing
- go get github.com/stretchr/testify/assert
- go get github.com/stretchr/testify/mock
- # Loggi... | language: go
dist: trusty
go:
- 1.5
- 1.6.2
- 1.11
install:
- # WAV loading
- go get github.com/youpy/go-riff
- # SOX bindings
- sudo apt-get install -y libsox-dev
- go get github.com/krig/go-sox
- # Testing
- go get github.com/stretchr/testify/assert
- go get github.com/stretchr/testify/mock... | Add testing to Travis CI | Add testing to Travis CI
| YAML | mit | outrightmental/go-atomix,go-ontomix/ontomix,go-mix/mix | yaml | ## Code Before:
language: go
dist: trusty
go:
- 1.5
- 1.6.2
install:
- # WAV loading
- go get github.com/youpy/go-riff
- # SOX bindings
- sudo apt-get install -y libsox-dev
- go get github.com/krig/go-sox
- # Testing
- go get github.com/stretchr/testify/assert
- go get github.com/stretchr/testify/... | language: go
dist: trusty
go:
- 1.5
- 1.6.2
+ - 1.11
install:
- - # WAV loading
+ - # WAV loading
? +
- go get github.com/youpy/go-riff
- - # SOX bindings
+ - # SOX bindings
? +
- sudo apt-get install -y libsox-dev
- go get github.com/krig/go-sox
- - # Testing
+ ... | 11 | 0.578947 | 7 | 4 |
a26869c4442ef6e9b2c7f82818666ccf8a718608 | spec/models/section_spec.rb | spec/models/section_spec.rb | require 'spec_helper'
describe Section do
describe 'associations' do
describe 'chapters' do
it 'does not include HiddenGoodsNomenclatures' do
pending
end
end
end
end
| require 'spec_helper'
describe Section do
describe 'associations' do
describe 'chapters' do
let!(:chapter) { create(:chapter, :with_section) }
it 'does not include HiddenGoodsNomenclatures' do
section = chapter.section
create(:hidden_goods_nomenclature, goods_nomenclature_item_id: ch... | Fix pending spec for section.chapters with hidden codes | Fix pending spec for section.chapters with hidden codes
| Ruby | mit | bitzesty/trade-tariff-backend,alphagov/trade-tariff-backend,bitzesty/trade-tariff-backend,leftees/trade-tariff-backend,bitzesty/trade-tariff-backend,alphagov/trade-tariff-backend,alphagov/trade-tariff-backend,leftees/trade-tariff-backend,leftees/trade-tariff-backend | ruby | ## Code Before:
require 'spec_helper'
describe Section do
describe 'associations' do
describe 'chapters' do
it 'does not include HiddenGoodsNomenclatures' do
pending
end
end
end
end
## Instruction:
Fix pending spec for section.chapters with hidden codes
## Code After:
require 'spec_he... | require 'spec_helper'
describe Section do
describe 'associations' do
describe 'chapters' do
+ let!(:chapter) { create(:chapter, :with_section) }
+
it 'does not include HiddenGoodsNomenclatures' do
- pending
+ section = chapter.section
+ create(:hidden_goods_nomenc... | 7 | 0.636364 | 6 | 1 |
f3efd7bf27100e5419242a8d69caa84d8250f099 | roles/base.json | roles/base.json | {
"name": "base",
"description": "Drop The Bass",
"run_list": [
"recipe[chef-client]",
"recipe[dns::client]",
"recipe[hostname]",
"recipe[filer]",
"recipe[ntp]",
"recipe[openssh]",
"recipe[sudo]",
"recipe[timezone-ii]",
"recipe[users::sysadmins]"
],
"default_attributes": {
... | {
"name": "base",
"description": "Drop The Bass",
"run_list": [
"recipe[chef-client]",
"recipe[chef-client::config]",
"recipe[dns::client]",
"recipe[hostname]",
"recipe[filer]",
"recipe[ntp]",
"recipe[openssh]",
"recipe[sudo]",
"recipe[timezone-ii]",
"recipe[users::sysadmin... | Verify peer ssl when chef converges | Verify peer ssl when chef converges
| JSON | apache-2.0 | skingry/chef,skingry/chef,skingry/media-server,skingry/chef,skingry/media-server,skingry/media-server | json | ## Code Before:
{
"name": "base",
"description": "Drop The Bass",
"run_list": [
"recipe[chef-client]",
"recipe[dns::client]",
"recipe[hostname]",
"recipe[filer]",
"recipe[ntp]",
"recipe[openssh]",
"recipe[sudo]",
"recipe[timezone-ii]",
"recipe[users::sysadmins]"
],
"default... | {
"name": "base",
"description": "Drop The Bass",
"run_list": [
"recipe[chef-client]",
+ "recipe[chef-client::config]",
"recipe[dns::client]",
"recipe[hostname]",
"recipe[filer]",
"recipe[ntp]",
"recipe[openssh]",
"recipe[sudo]",
"recipe[timezone-ii]",
... | 1 | 0.02439 | 1 | 0 |
af07b626d44e5d46c428f710ac6431918f2a70e7 | lib/SwiftDemangle/CMakeLists.txt | lib/SwiftDemangle/CMakeLists.txt | add_swift_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp
LINK_LIBRARIES swiftBasic)
swift_install_in_component(compiler
TARGETS swiftDemangle
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
# Create a compatibility symlink.
swift_create_... | add_swift_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp
LINK_LIBRARIES swiftBasic)
swift_install_in_component(compiler
TARGETS swiftDemangle
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
| Remove creating compatability symlink in swiftDemangle | Remove creating compatability symlink in swiftDemangle
| Text | apache-2.0 | gribozavr/swift,gmilos/swift,ahoppen/swift,jopamer/swift,tjw/swift,gmilos/swift,gregomni/swift,uasys/swift,glessard/swift,austinzheng/swift,codestergit/swift,tinysun212/swift-windows,atrick/swift,gribozavr/swift,jmgc/swift,karwa/swift,practicalswift/swift,karwa/swift,airspeedswift/swift,austinzheng/swift,felix91gr/swif... | text | ## Code Before:
add_swift_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp
LINK_LIBRARIES swiftBasic)
swift_install_in_component(compiler
TARGETS swiftDemangle
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
# Create a compatibility symlink... | add_swift_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp
LINK_LIBRARIES swiftBasic)
swift_install_in_component(compiler
TARGETS swiftDemangle
LIBRARY DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
ARCHIVE DESTINATION "lib${LLVM_LIBDIR_SUFFIX}")
-
- # Create a compatibility s... | 13 | 0.590909 | 0 | 13 |
24d0c3e7822165e860132d5bcdc1e9c2ed9d9a2e | initializers/trailing-history.js | initializers/trailing-history.js | /*global Ember */
var trailingHistory = Ember.HistoryLocation.extend({
setURL: function (path) {
var state = this.getState();
path = this.formatURL(path);
path = path.replace(/\/?$/, '/');
if (state && state.path !== path) {
this.pushState(path);
}
}
});
va... | /*global Ember */
var trailingHistory = Ember.HistoryLocation.extend({
formatURL: function () {
return this._super.apply(this, arguments).replace(/\/?$/, '/');
}
});
var registerTrailingLocationHistory = {
name: 'registerTrailingLocationHistory',
initialize: function (container, application) ... | Fix trailing slashes output app-wide | Fix trailing slashes output app-wide
closes #2963, closes #2964
- override Ember's `HistoryLocation.formatURL`
- remove overridden `HistoryLocation.setURL`
| JavaScript | mit | dbalders/Ghost-Admin,kevinansfield/Ghost-Admin,acburdine/Ghost-Admin,acburdine/Ghost-Admin,JohnONolan/Ghost-Admin,airycanon/Ghost-Admin,JohnONolan/Ghost-Admin,dbalders/Ghost-Admin,TryGhost/Ghost-Admin,kevinansfield/Ghost-Admin,TryGhost/Ghost-Admin,airycanon/Ghost-Admin | javascript | ## Code Before:
/*global Ember */
var trailingHistory = Ember.HistoryLocation.extend({
setURL: function (path) {
var state = this.getState();
path = this.formatURL(path);
path = path.replace(/\/?$/, '/');
if (state && state.path !== path) {
this.pushState(path);
... | /*global Ember */
var trailingHistory = Ember.HistoryLocation.extend({
- setURL: function (path) {
? ^^ ----
+ formatURL: function () {
? ^^^^^
+ return this._super.apply(this, arguments).replace(/\/?$/, '/');
- var state = this.getState();
- path = this.f... | 10 | 0.434783 | 2 | 8 |
bc629e6085c16c23968a1b3aad41f2bd19013209 | src/S203.NewRelic.NeuronEsb.Plugin/config/plugin.template.json | src/S203.NewRelic.NeuronEsb.Plugin/config/plugin.template.json | {
"agents": [
{
"_comment": "This is an example of how you would monitor a Neuron ESB instance. Duplicate this section if you have multiple servers.",
"name": "Neuron ESB",
"host": "localhost",
"port": 51002,
"instance": "DEFAULT"
}
]
} | {
"agents": [
{
"_comment": "This is an example of how you would monitor a Neuron ESB instance. Duplicate this section if you have multiple servers.",
"name": "localhost",
"host": "localhost",
"port": 51002,
"instance": "DEFAULT"
}
]
} | Update to make the plugin.json setup clearer | Update to make the plugin.json setup clearer
| JSON | mit | 203sol/newrelic-neuronesb-plugin | json | ## Code Before:
{
"agents": [
{
"_comment": "This is an example of how you would monitor a Neuron ESB instance. Duplicate this section if you have multiple servers.",
"name": "Neuron ESB",
"host": "localhost",
"port": 51002,
"instance": "DEFAULT"
}
]
}
## Instruction:
Update t... | {
"agents": [
{
"_comment": "This is an example of how you would monitor a Neuron ESB instance. Duplicate this section if you have multiple servers.",
- "name": "Neuron ESB",
+ "name": "localhost",
"host": "localhost",
"port": 51002,
"instance": "DEFAULT"
}... | 2 | 0.181818 | 1 | 1 |
ca8f41dbc466ee7a98c27569a1de0c1ff776836c | .build_scripts/ecs-task-definition-fargate.json | .build_scripts/ecs-task-definition-fargate.json | {
"family": "openaq-fetch-fargate",
"taskRoleArn": "arn:aws:iam::470049585876:role/uploadsS3",
"containerDefinitions": [
{
"name": "openaq-fetch",
"image": "flasher/openaq-fetch",
"command": [
"npm",
"start"
],
... | {
"family": "openaq-fetch-fargate",
"taskRoleArn": "arn:aws:iam::470049585876:role/uploadsS3",
"containerDefinitions": [
{
"name": "openaq-fetch",
"image": "flasher/openaq-fetch",
"command": [
"./index.sh"
],
"logConfigurati... | Increase fargate size - develop | Increase fargate size - develop
| JSON | mit | openaq/openaq-fetch,openaq/openaq-fetch | json | ## Code Before:
{
"family": "openaq-fetch-fargate",
"taskRoleArn": "arn:aws:iam::470049585876:role/uploadsS3",
"containerDefinitions": [
{
"name": "openaq-fetch",
"image": "flasher/openaq-fetch",
"command": [
"npm",
"start"
... | {
"family": "openaq-fetch-fargate",
"taskRoleArn": "arn:aws:iam::470049585876:role/uploadsS3",
"containerDefinitions": [
{
"name": "openaq-fetch",
"image": "flasher/openaq-fetch",
"command": [
- "npm",
? ^^ -
+ ... | 7 | 0.233333 | 3 | 4 |
2acc0c6241c22e38b520494a76d9167933c71b17 | requirements.txt | requirements.txt | molo.core==6.10.2
molo.commenting==6.3.0
molo.yourwords==6.4.1
molo.yourtips==6.0.1
molo.servicedirectory==6.1.13
molo.surveys==6.9.9
molo.pwa==6.2.0
elasticsearch==1.7.0
django-modelcluster<4.0,>=3.1
psycopg2
gunicorn
django_compressor==2.2
celery<4.0
django-google-analytics-app==4.3.3
Unidecode==0.04.16
django-secret... | molo.core==6.10.2
molo.commenting==6.3.0
molo.yourwords==6.4.1
molo.yourtips==6.0.1
molo.servicedirectory==6.1.13
molo.surveys==6.9.9
molo.pwa==6.2.0
elasticsearch==1.7.0
django-modelcluster<4.0,>=3.1
psycopg2
gunicorn
django_compressor==2.2
celery<4.0
django-google-analytics-app==4.3.3
Unidecode==0.04.16
django-secret... | Upgrade Django storage to 1.6.6 | Upgrade Django storage to 1.6.6
Upgrade Django storage to 1.6.6 in order to fix the issues with both S3Boto3Storage and GoogleCloudStorage | Text | bsd-2-clause | praekelt/molo-tuneme,praekelt/molo-tuneme,praekelt/molo-tuneme,praekelt/molo-tuneme | text | ## Code Before:
molo.core==6.10.2
molo.commenting==6.3.0
molo.yourwords==6.4.1
molo.yourtips==6.0.1
molo.servicedirectory==6.1.13
molo.surveys==6.9.9
molo.pwa==6.2.0
elasticsearch==1.7.0
django-modelcluster<4.0,>=3.1
psycopg2
gunicorn
django_compressor==2.2
celery<4.0
django-google-analytics-app==4.3.3
Unidecode==0.04.... | molo.core==6.10.2
molo.commenting==6.3.0
molo.yourwords==6.4.1
molo.yourtips==6.0.1
molo.servicedirectory==6.1.13
molo.surveys==6.9.9
molo.pwa==6.2.0
elasticsearch==1.7.0
django-modelcluster<4.0,>=3.1
psycopg2
gunicorn
django_compressor==2.2
celery<4.0
django-google-analytics-app==4.3.3
Un... | 3 | 0.130435 | 2 | 1 |
1320373c99541658f50bde97291fb849a18200a6 | README.md | README.md |
Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.
## Running local environment
To run local environment, please install [docker-compose](https://pypi.python.org/pypi/docker-compose) and then do:
```
cd contrib/docker-compose
docker-compose up
``` |
Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.
## Running local environment
To run local environment, please install [docker-compose](https://pypi.python.org/pypi/docker-compose)
at least in 1.8.0 version. If your Linux distribution is providing an older version, ... | Add information about docker-compose min version | docs: Add information about docker-compose min version
| Markdown | apache-2.0 | Mirantis/virtlet,vefimova/virtlet,nhlfr/virtlet,nhlfr/virtlet,vefimova/virtlet,vefimova/virtlet,Mirantis/virtlet,nhlfr/virtlet,nhlfr/virtlet,vefimova/virtlet | markdown | ## Code Before:
Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.
## Running local environment
To run local environment, please install [docker-compose](https://pypi.python.org/pypi/docker-compose) and then do:
```
cd contrib/docker-compose
docker-compose up
```
## ... |
Virtlet is a Kubernetes runtime server which allows you to run VM workloads, based on QCOW2 images.
## Running local environment
- To run local environment, please install [docker-compose](https://pypi.python.org/pypi/docker-compose) and then do:
? ... | 12 | 1.090909 | 11 | 1 |
5e7b67e55f4b987753e5e3c632ae6fd4d4cf254f | messaging-client-databus/src/main/java/com/inmobi/messaging/consumer/databus/DatabusConsumerConfig.java | messaging-client-databus/src/main/java/com/inmobi/messaging/consumer/databus/DatabusConsumerConfig.java | package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.size";
public stat... | package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.size";
public stat... | Fix typo in Config name | Fix typo in Config name
| Java | apache-2.0 | rajubairishetti/pintail,InMobi/pintail,rajubairishetti/pintail,sreedishps/pintail,sreedishps/pintail,InMobi/pintail | java | ## Code Before:
package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.size... | package com.inmobi.messaging.consumer.databus;
import com.inmobi.databus.FSCheckpointProvider;
/**
* Configuration properties and their default values for {@link DatabusConsumer}
*/
public interface DatabusConsumerConfig {
public static final String queueSizeConfig = "databus.consumer.buffer.... | 5 | 0.16129 | 5 | 0 |
46726c4ffa45cfa6a42f46f28326afe2dd834ce9 | stylesheets/src/navbar.less | stylesheets/src/navbar.less | .above;
.bkg(#EEE);
.dock-top(fixed, 48px);
.pad(4px);
.user-select-none;
border-bottom: 2px solid @lightGrey;
.logo {
.dock-left(absolute, 48px);
.img-logo;
.no-outline;
margin: 4px;
&:hover, &:focus {
-webkit-filter: brightness(110%);
... | .above;
.bkg(#EEE);
.dock-top(fixed, 48px);
.pad(4px);
.user-select-none;
border-bottom: 2px solid @lightGrey;
.logo {
.dock-left(absolute, 40px);
.img-logo-glyph;
.no-outline;
margin: 8px;
&:hover, &:focus {
-webkit-filter: brightness(11... | Use a more compact SVG glyph-style version of the logo. | Use a more compact SVG glyph-style version of the logo.
| Less | agpl-3.0 | CamiloMM/Noumena,CamiloMM/Noumena,CamiloMM/Noumena | less | ## Code Before:
.above;
.bkg(#EEE);
.dock-top(fixed, 48px);
.pad(4px);
.user-select-none;
border-bottom: 2px solid @lightGrey;
.logo {
.dock-left(absolute, 48px);
.img-logo;
.no-outline;
margin: 4px;
&:hover, &:focus {
-webkit-filter: bri... | .above;
.bkg(#EEE);
.dock-top(fixed, 48px);
.pad(4px);
.user-select-none;
border-bottom: 2px solid @lightGrey;
.logo {
- .dock-left(absolute, 48px);
? ^
+ .dock-left(absolute, 40px);
? ^
- ... | 24 | 0.888889 | 21 | 3 |
58ea8a277bb765a744cc1e954fe1b76fc3f8036a | examples/responses.pl | examples/responses.pl | use Mojolicious::Lite;
get '/res1' => sub {
my $c = shift;
$c->render(data => 'Hello World!');
};
get '/res2' => sub {
my $c = shift;
$c->write('Hello ');
$c->write('World!');
$c->write('');
};
get '/res3' => sub {
my $c = shift;
$c->write_chunk('Hello ');
$c->write_chunk('World!');
$c->write_chu... | use Mojolicious::Lite;
get '/res1' => sub {
my $c = shift;
$c->render(data => 'Hello World!');
};
get '/res2' => sub {
my $c = shift;
$c->write('Hello ');
$c->write('World!');
$c->write('');
};
get '/res3' => sub {
my $c = shift;
$c->write_chunk('Hello ');
$c->write_chunk('World!');
$c->write_chu... | Add another way to trigger rendering to the example app | Add another way to trigger rendering to the example app
| Perl | artistic-2.0 | kberov/mojo,polettix/mojo,kraih/mojo,kiwiroy/mojo,s1037989/mojo,s1037989/mojo,lindleyw/mojo | perl | ## Code Before:
use Mojolicious::Lite;
get '/res1' => sub {
my $c = shift;
$c->render(data => 'Hello World!');
};
get '/res2' => sub {
my $c = shift;
$c->write('Hello ');
$c->write('World!');
$c->write('');
};
get '/res3' => sub {
my $c = shift;
$c->write_chunk('Hello ');
$c->write_chunk('World!');... | use Mojolicious::Lite;
get '/res1' => sub {
my $c = shift;
$c->render(data => 'Hello World!');
};
get '/res2' => sub {
my $c = shift;
$c->write('Hello ');
$c->write('World!');
$c->write('');
};
get '/res3' => sub {
my $c = shift;
$c->write_chunk('Hello ');
$c->wr... | 4 | 0.148148 | 4 | 0 |
d540b376389b6e6c61c6fbe5912d182c2b9867b4 | app/assets/stylesheets/application.sass | app/assets/stylesheets/application.sass | // Library
@import normalize
@import foundation/foundation_and_overrides
@import jquery-ui/core
@import jquery-ui/menu
@import jquery-ui/theme
@import jquery-ui/autocomplete
@import font-awesome
@import mapbox
@import outdatedbrowser/outdatedBrowser
@import vex
@import vex-theme-plain
@import magnific-popup
@import f... | // Library
@import normalize
@import foundation/foundation_and_overrides
@import jquery-ui/core
@import jquery-ui/menu
@import jquery-ui/theme
@import jquery-ui/autocomplete
@import font-awesome
@import mapbox
@import outdatedbrowser/outdatedBrowser
@import vex
@import vex-theme-plain
@import magnific-popup
@import f... | Fix bug with missing mediaelement style in production | Fix bug with missing mediaelement style in production
| Sass | mit | lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter,lr-agenceweb/rails-starter | sass | ## Code Before:
// Library
@import normalize
@import foundation/foundation_and_overrides
@import jquery-ui/core
@import jquery-ui/menu
@import jquery-ui/theme
@import jquery-ui/autocomplete
@import font-awesome
@import mapbox
@import outdatedbrowser/outdatedBrowser
@import vex
@import vex-theme-plain
@import magnific... | // Library
@import normalize
@import foundation/foundation_and_overrides
@import jquery-ui/core
@import jquery-ui/menu
@import jquery-ui/theme
@import jquery-ui/autocomplete
@import font-awesome
@import mapbox
@import outdatedbrowser/outdatedBrowser
@import vex
@import vex-theme-plain
@i... | 2 | 0.031746 | 1 | 1 |
677239f3d9996d7f5ee701aa5d903a01ec0e2f6b | js/README.md | js/README.md |
The squares on the grid are numbered from 0 to 8, left to right, top to bottom:
012
345
678
This allows the squares to be accessed easily in an array.
The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respectively. Each ob... |
The squares on the grid are numbered from 0 to 8, left to right, top to bottom:
012
345
678
This allows the squares to be accessed easily in an array.
The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respectively. Each ob... | Add comment about corrected version | Add comment about corrected version
| Markdown | mpl-2.0 | tpenguinltg/tic-tac-toe,tpenguinltg/tic-tac-toe | markdown | ## Code Before:
The squares on the grid are numbered from 0 to 8, left to right, top to bottom:
012
345
678
This allows the squares to be accessed easily in an array.
The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respe... |
The squares on the grid are numbered from 0 to 8, left to right, top to bottom:
012
345
678
This allows the squares to be accessed easily in an array.
The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, r... | 2 | 0.166667 | 1 | 1 |
a8dc6903bbeb207b63fcde2f318501d27052ec07 | js/background.js | js/background.js | chrome.tabs.onCreated.addListener(function(tab) {
console.log("Tab Created", tab);
});
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
console.log("Tab changed: #" + tabId, changeInfo, tab );
});
chrome.browserAction.onClicked.addListener(function() {
console.log("Browser action clicked!");
})... | chrome.tabs.onCreated.addListener(function(tab) {
console.log("Tab Created", tab);
});
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
console.log("Tab changed: #" + tabId, changeInfo, tab );
});
chrome.storage.sync.get(null, function(items) {
console.log("All items in synced storage", items )... | Set of generic functions to test the chrome.* APIs | Set of generic functions to test the chrome.* APIs
| JavaScript | bsd-3-clause | rex/BANTP | javascript | ## Code Before:
chrome.tabs.onCreated.addListener(function(tab) {
console.log("Tab Created", tab);
});
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
console.log("Tab changed: #" + tabId, changeInfo, tab );
});
chrome.browserAction.onClicked.addListener(function() {
console.log("Browser actio... | chrome.tabs.onCreated.addListener(function(tab) {
console.log("Tab Created", tab);
});
chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {
console.log("Tab changed: #" + tabId, changeInfo, tab );
});
- chrome.browserAction.onClicked.addListener(function() {
- console.log("Browser a... | 24 | 2.181818 | 22 | 2 |
edb093979ffd6a0fe8494b1bb6d8715f5f2d15cf | src/site/adminBundle/Resources/config/security.yml | src/site/adminBundle/Resources/config/security.yml | security:
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
main:
pattern: .*
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
always_use_default_target_path: true
... | security:
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
main:
pattern: .*
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
always_use_default_target_path: true
... | Update Firewall for reservation coté client | Update Firewall for reservation coté client
| YAML | mit | kh3dr0n/projetphp,kh3dr0n/projetphp | yaml | ## Code Before:
security:
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
main:
pattern: .*
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
always_use_default_targ... | security:
providers:
fos_userbundle:
id: fos_user.user_provider.username
firewalls:
main:
pattern: .*
form_login:
provider: fos_userbundle
csrf_provider: form.csrf_provider
always_use_defaul... | 5 | 0.185185 | 5 | 0 |
7cdd6ffc4bfd9f86d28923b534e34cd942e0d93a | html-template-element/README.md | html-template-element/README.md |
The HTML `<template>` element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.
Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does p... |
The HTML `<template>` element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.
Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does p... | Add apple proposal to template | Add apple proposal to template
| Markdown | mit | devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi,snuggs/snuggsi,snuggs/snuggsi,devpunks/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi | markdown | ## Code Before:
The HTML `<template>` element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.
Think of a template as a content fragment that is being stored for subsequent use in the document. While t... |
The HTML `<template>` element is a mechanism for holding client-side content that is not to be rendered when a page is loaded but may subsequently be instantiated during runtime using JavaScript.
Think of a template as a content fragment that is being stored for subsequent use in the document. While the parse... | 5 | 0.714286 | 5 | 0 |
897e10a81e3495c7749977a51cc4b82602f9ba03 | tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts | tests/cases/fourslash/jsxExpressionFollowedByIdentifier.ts | /// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
////const a = <div>{<div />/*1*/x/*2*/}</div>
goTo.marker('1');
verify.getSyntacticDiagnostics([{
code: 1005,
message: "'}' expected.",
range: {
fileName: test.mark... | /// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
////const a = <div>{<div />[|x|]}</div>
const range = test.ranges()[0];
verify.getSyntacticDiagnostics([{
code: 1005,
message: "'}' expected.",
range,
}]);
verify.quick... | Use range instead of two markers | Use range instead of two markers
| TypeScript | apache-2.0 | alexeagle/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,alexeagle/TypeScript,RyanCavan... | typescript | ## Code Before:
/// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
////const a = <div>{<div />/*1*/x/*2*/}</div>
goTo.marker('1');
verify.getSyntacticDiagnostics([{
code: 1005,
message: "'}' expected.",
range: {
fil... | /// <reference path="fourslash.ts" />
//@Filename: jsxExpressionFollowedByIdentifier.tsx
////declare var React: any;
////declare var x: string;
- ////const a = <div>{<div />/*1*/x/*2*/}</div>
? ^^^^^ ^^^^^
+ ////const a = <div>{<div />[|x|]}</div>
? ^^ ^... | 12 | 0.666667 | 4 | 8 |
a0874d7b1cebd4f0e42de5658ddd599e4b50467d | beam/verbs.go | beam/verbs.go | package beam
type Verb uint32
const (
Ack Verb = iota
Attach
Connect
Error
File
Get
Log
Ls
Set
Spawn
Start
Stop
Watch
)
| package beam
type Verb uint32
const (
Ack Verb = iota
Attach
Connect
Error
File
Get
Log
Ls
Set
Spawn
Start
Stop
Watch
)
func (v Verb) String() string {
switch v {
case Ack:
return "Ack"
case Attach:
return "Attach"
case Connect:
return "Connect"
case Error:
return "Error"
case File:
retu... | Add string representation of verb enum | Add string representation of verb enum
Docker-DCO-1.1-Signed-off-by: Ben Firshman <ben@firshman.co.uk> (github: bfirsh)
| Go | apache-2.0 | BSWANG/denverdino.github.io,jimmyxian/swarm,kyhavlov/swarm,rancher/swarm,bdwill/docker.github.io,mrjana/swarm,gdevillele/docker.github.io,johnstep/docker.github.io,marsmensch/swarm,EderRoger/swarm,NunoEdgarGub1/swarm,docker/docker.github.io,denverdino/docker.github.io,aluzzardi/swarm,rancher/swarm,vieux/swarm,pdevine/s... | go | ## Code Before:
package beam
type Verb uint32
const (
Ack Verb = iota
Attach
Connect
Error
File
Get
Log
Ls
Set
Spawn
Start
Stop
Watch
)
## Instruction:
Add string representation of verb enum
Docker-DCO-1.1-Signed-off-by: Ben Firshman <ben@firshman.co.uk> (github: bfirsh)
## Code After:
package beam
t... | package beam
type Verb uint32
const (
Ack Verb = iota
Attach
Connect
Error
File
Get
Log
Ls
Set
Spawn
Start
Stop
Watch
)
+
+ func (v Verb) String() string {
+ switch v {
+ case Ack:
+ return "Ack"
+ case Attach:
+ return "Attach"
+ case Connect:
+ return "C... | 32 | 1.684211 | 32 | 0 |
6a0b3721254477ab987c6f80e684af1c21e7162a | raven-log4j/src/test/resources/log4j-test.properties | raven-log4j/src/test/resources/log4j-test.properties | log4j.rootLogger=ALL, ConsoleAppender, SentryAppender
log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleAppender.layout=org.apache.log4j.SimpleLayout
| log4j.rootLogger=ALL, ConsoleAppender
log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleAppender.layout=org.apache.log4j.SimpleLayout
| Disable the SentryAppender during log4j tests | Disable the SentryAppender during log4j tests
| INI | bsd-3-clause | reki2000/raven-java6,buckett/raven-java,littleyang/raven-java,reki2000/raven-java6,galmeida/raven-java,buckett/raven-java,galmeida/raven-java,littleyang/raven-java | ini | ## Code Before:
log4j.rootLogger=ALL, ConsoleAppender, SentryAppender
log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleAppender.layout=org.apache.log4j.SimpleLayout
## Instruction:
Disable the SentryAppender during log4j tests
## Code After:
log4j.rootLogger=ALL, ConsoleAppender... | - log4j.rootLogger=ALL, ConsoleAppender, SentryAppender
? ----------------
+ log4j.rootLogger=ALL, ConsoleAppender
log4j.appender.ConsoleAppender=org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleAppender.layout=org.apache.log4j.SimpleLayout | 2 | 0.4 | 1 | 1 |
42a7731927e6bdf94b44bb8e65dc364e623712e2 | README.md | README.md | respoke-android
===============
| respoke-android
===============
Building the WebRTC libaries
============================
Unlike iOS, the WebRTC libraries for Android can ONLY be built on Linux. It WILL NOT work on Mac OS X. If, like me, you are only working with a Mac then one easy-ish approach is to create an Ubuntu virtual machine and perform ... | Add WebRTC library build instructions part 1. | Add WebRTC library build instructions part 1.
| Markdown | mit | respoke/sample-respoke-android,respoke/sample-respoke-android | markdown | ## Code Before:
respoke-android
===============
## Instruction:
Add WebRTC library build instructions part 1.
## Code After:
respoke-android
===============
Building the WebRTC libaries
============================
Unlike iOS, the WebRTC libraries for Android can ONLY be built on Linux. It WILL NOT work on Mac OS... | respoke-android
===============
+
+
+
+ Building the WebRTC libaries
+ ============================
+
+ Unlike iOS, the WebRTC libraries for Android can ONLY be built on Linux. It WILL NOT work on Mac OS X. If, like me, you are only working with a Mac then one easy-ish approach is to create an Ubuntu virtual ma... | 78 | 39 | 78 | 0 |
5ee63adc067196a31d510eea7efd6eb2a15bcc08 | src/Control/Monad/State/Trans.purs | src/Control/Monad/State/Trans.purs | module Control.Monad.State.Trans where
import Prelude
import Control.Monad.Trans
type StateData s a = { state :: s, value :: a }
data StateT s m a = StateT (s -> m (StateData s a))
instance monadStateT :: (Monad m) => Monad (StateT s m) where
return a = StateT \s -> return { state: s, value: a }
(>>=) (StateT x... | module Control.Monad.State.Trans where
import Prelude
import Control.Monad.Trans
type StateData s a = { state :: s, value :: a }
data StateT s m a = StateT (s -> m (StateData s a))
instance monadStateT :: (Monad m) => Monad (StateT s m) where
return a = StateT \s -> return { state: s, value: a }
(>>=) (StateT x... | Add additional state running functions | Add additional state running functions
| PureScript | bsd-3-clause | purescript/purescript-transformers,lvicentesanchez/purescript-transformers | purescript | ## Code Before:
module Control.Monad.State.Trans where
import Prelude
import Control.Monad.Trans
type StateData s a = { state :: s, value :: a }
data StateT s m a = StateT (s -> m (StateData s a))
instance monadStateT :: (Monad m) => Monad (StateT s m) where
return a = StateT \s -> return { state: s, value: a }
... | module Control.Monad.State.Trans where
import Prelude
import Control.Monad.Trans
type StateData s a = { state :: s, value :: a }
data StateT s m a = StateT (s -> m (StateData s a))
instance monadStateT :: (Monad m) => Monad (StateT s m) where
return a = StateT \s -> return { state: s, value:... | 11 | 0.44 | 10 | 1 |
ed83b7945fd2fd30d5f969e05381b60878e499a5 | .github/workflows/main.yml | .github/workflows/main.yml | name: CI
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
she... | name: CI
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install needed software
run: ./github/scripts/Install.ps1
shell: pwsh
- name: Build PSFzf-Binary
run: ./github/scripts/Build.ps1
shell: pwsh
- name: Run tests
... | Add install, build, and tests steps | Add install, build, and tests steps | YAML | mit | kelleyma49/PSFzf,kelleyma49/PSFzf | yaml | ## Code Before:
name: CI
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your pr... | name: CI
on: [push]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
+ - name: Install needed software
+ run: ./github/scripts/Install.ps1
- - name: Run a one-line script
- run: echo Hello, world!
- - name: Run a multi-line script... | 17 | 0.944444 | 11 | 6 |
708c42dc096eea4bf6c7b5928913fb02ba67582c | package.sh | package.sh |
cd ..
echo "Compressing file..."
tar Jcf hackclock_2.1.0.orig.tar.xz hack-clock/
cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us
|
rm home/pi/hack-clock/run_clock.py
rm home/pi/hack-clock/blocks_clock.xml
rm home/pi/hack-clock/backups/*
cd ..
echo "Compressing file..."
tar Jcf hackclock_2.1.0.orig.tar.xz hack-clock/
cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us
| Remove old files before packaging | Remove old files before packaging
| Shell | apache-2.0 | deckerego/hack-clock,deckerego/hack-clock,deckerego/hack-clock | shell | ## Code Before:
cd ..
echo "Compressing file..."
tar Jcf hackclock_2.1.0.orig.tar.xz hack-clock/
cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us
## Instruction:
Remove old files before packaging
## Code After:
rm home/pi/hack-clock/run_clock.py
rm home/pi/hack-clock/blocks_clock.xml
rm home/pi/hack-clock/backup... | +
+ rm home/pi/hack-clock/run_clock.py
+ rm home/pi/hack-clock/blocks_clock.xml
+ rm home/pi/hack-clock/backups/*
cd ..
echo "Compressing file..."
tar Jcf hackclock_2.1.0.orig.tar.xz hack-clock/
cd hack-clock
dpkg-buildpackage -rfakeroot -uc -us | 4 | 0.571429 | 4 | 0 |
b592437817d9a0dbd9697a06b4497d49f3854c5d | .travis.yml | .travis.yml | ---
language: node_js
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
sudo: false
node_js:
- "stable"
- "7.1.0"
- "7.0.0"
- "6.9.1"
- "6.5"
- "6.4"
- "6.3"
- "5.12"
- "4.4"
- "4.3.2"
cache:
bundler: true
directories:
- node_modules... | ---
language: node_js
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
sudo: false
node_js:
- "stable"
- "7.1.0"
- "7.0.0"
- "6.9.1"
- "6.5"
- "6.4"
- "6.3"
- "5.12"
cache:
bundler: true
directories:
- node_modules # NPM packages
instal... | Remove old node versions from Travis test | Remove old node versions from Travis test
| YAML | apache-2.0 | pboyd04/CSDLParser | yaml | ## Code Before:
---
language: node_js
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
sudo: false
node_js:
- "stable"
- "7.1.0"
- "7.0.0"
- "6.9.1"
- "6.5"
- "6.4"
- "6.3"
- "5.12"
- "4.4"
- "4.3.2"
cache:
bundler: true
directories:
... | ---
language: node_js
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
sudo: false
node_js:
- "stable"
- "7.1.0"
- "7.0.0"
- "6.9.1"
- "6.5"
- "6.4"
- "6.3"
- "5.12"
- - "4.4"
- - "4.3.2"
cache:
... | 2 | 0.064516 | 0 | 2 |
bf00464461b2cc6b77ad4050a1df1de2bb629e31 | src/js/lib/SvgUtil.js | src/js/lib/SvgUtil.js | /**
* Copyright: (c) 2016-2017 Max Klein
* License: MIT
*/
define(function () {
var NS = 'http://www.w3.org/2000/svg';
function createSvgElement(name) {
return document.createElementNS(NS, name);
}
return {
createElement: createSvgElement
};
});
| /**
* Copyright: (c) 2016-2017 Max Klein
* License: MIT
*/
define(function () {
var NS = 'http://www.w3.org/2000/svg';
function createSvg() {
return document.createElementNS(NS, 'svg');
}
function createSvgElement(name) {
return document.createElementNS(NS, name);
}
return {
createSvg: createSvg,
c... | Add method for creating SVGs | Add method for creating SVGs
| JavaScript | mpl-2.0 | maxkl/LogicSimulator,maxkl/LogicSimulator | javascript | ## Code Before:
/**
* Copyright: (c) 2016-2017 Max Klein
* License: MIT
*/
define(function () {
var NS = 'http://www.w3.org/2000/svg';
function createSvgElement(name) {
return document.createElementNS(NS, name);
}
return {
createElement: createSvgElement
};
});
## Instruction:
Add method for creating SV... | /**
* Copyright: (c) 2016-2017 Max Klein
* License: MIT
*/
define(function () {
var NS = 'http://www.w3.org/2000/svg';
+ function createSvg() {
+ return document.createElementNS(NS, 'svg');
+ }
+
function createSvgElement(name) {
return document.createElementNS(NS, name);
}
re... | 5 | 0.3125 | 5 | 0 |
7ae29a6e4755769639a08057d166cabdd48c9426 | lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb | lib/generators/redactor/templates/base/carrierwave/uploaders/redactor_rails_document_uploader.rb | class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
include RedactorRails::Backend::CarrierWave
storage :fog
def store_dir
"system/redactor_assets/documents/#{model.id}"
end
def extension_white_list
RedactorRails.document_file_types
end
end
| class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
include RedactorRails::Backend::CarrierWave
# storage :fog
storage :file
def store_dir
"system/redactor_assets/documents/#{model.id}"
end
def extension_white_list
RedactorRails.document_file_types
end
end
| Make :file the default storage with reminder that :fog is available | Make :file the default storage with reminder that :fog is available
| Ruby | mit | rikkeisoft/redactor-rails,dmsilaev/redactor-rails,SammyLin/redactor-rails,lawrrn/redactor,StarWar/redactor-rails,sergio1990/redactor-rails,AF83/redactor-rails,rikkeisoft/redactor-rails,lawrrn/redactor-paperclip,meliborn/redactor-rails,hnq90/redactor-rails,catarse/redactor-rails,liqites/redactor-rails,kyan/redactor-rail... | ruby | ## Code Before:
class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
include RedactorRails::Backend::CarrierWave
storage :fog
def store_dir
"system/redactor_assets/documents/#{model.id}"
end
def extension_white_list
RedactorRails.document_file_types
end
end
## Instruction:
Make :fil... | class RedactorRailsDocumentUploader < CarrierWave::Uploader::Base
include RedactorRails::Backend::CarrierWave
- storage :fog
+ # storage :fog
? ++
+ storage :file
def store_dir
"system/redactor_assets/documents/#{model.id}"
end
def extension_white_list
RedactorRails.docume... | 3 | 0.230769 | 2 | 1 |
7f652c4e4441ef9e0c148948232075aed410db80 | README.md | README.md |
Web Extension for handling groups of tabs persisted as bookmarks.
[](https://travis-ci.org/hupf/tabmarks)
## Known issues
* Only tested with Firefox.
* No i18n support (currently english only)
* Changes to the persisted bookmarks will not yet be... |
Web Extension for handling groups of tabs persisted as bookmarks.
[](https://travis-ci.org/hupf/tabmarks)
## Known issues
* Switching to a group loads all tabs (which is slow and clutters browser history), see #9
* No ability to rename, move or ... | Update know issues in readme | Update know issues in readme
| Markdown | mit | hupf/tabmarks,hupf/tabmarks | markdown | ## Code Before:
Web Extension for handling groups of tabs persisted as bookmarks.
[](https://travis-ci.org/hupf/tabmarks)
## Known issues
* Only tested with Firefox.
* No i18n support (currently english only)
* Changes to the persisted bookmarks... |
Web Extension for handling groups of tabs persisted as bookmarks.
[](https://travis-ci.org/hupf/tabmarks)
## Known issues
- * Only tested with Firefox.
+ * Switching to a group loads all tabs (which is slow and clutters browser h... | 5 | 0.113636 | 3 | 2 |
9b830eddf653b88247755d47fcf3811c3488236b | assets/stylesheets/grayscale-sass-ink.scss | assets/stylesheets/grayscale-sass-ink.scss | /* Equivalent to main.scss */
/* Vendor imports */
//@import "bootstrap-sprockets";
@import "bootstrap";
@import "hover";
/* App imports */
@import "variables";
@import "grayscale";
| /* Equivalent to main.scss */
$fa-font-path: "../grayscale-sass-ink/bower_components/font-awesome/fonts";
$icon-font-path: "../grayscale-sass-ink/bower_components/fonts/bootstrap";
/* Vendor imports */
//@import "bootstrap-sprockets";
@import "bootstrap";
@import "hover";
@import "font-awesome";
/* App ... | Set scss font paths import font-awesome | Set scss font paths
import font-awesome
| SCSS | mit | dougbeal/grayscale-sass-ink,dougbeal/grayscale-sass-ink | scss | ## Code Before:
/* Equivalent to main.scss */
/* Vendor imports */
//@import "bootstrap-sprockets";
@import "bootstrap";
@import "hover";
/* App imports */
@import "variables";
@import "grayscale";
## Instruction:
Set scss font paths
import font-awesome
## Code After:
/* Equivalent to main.scss */
$fa-font-path:... | /* Equivalent to main.scss */
+ $fa-font-path: "../grayscale-sass-ink/bower_components/font-awesome/fonts";
+ $icon-font-path: "../grayscale-sass-ink/bower_components/fonts/bootstrap";
/* Vendor imports */
//@import "bootstrap-sprockets";
@import "bootstrap";
@import "hover";
+ @import "font-... | 3 | 0.3 | 3 | 0 |
2b46b7eb34a2383c62f51b4cd6cb365f769f588d | app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java | app/src/main/java/com/ibm/mil/smartringer/RingerAdjusterService.java | package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
private static final... | package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
public RingerAdjust... | Remove unnecessary string constants from service | Remove unnecessary string constants from service
| Java | apache-2.0 | jpetitto/android-smart-ringer | java | ## Code Before:
package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
priv... | package com.ibm.mil.smartringer;
import android.app.IntentService;
import android.content.Intent;
import android.media.AudioManager;
import android.util.Log;
public class RingerAdjusterService extends IntentService {
private static final String TAG = RingerAdjusterService.class.getName();
- ... | 2 | 0.058824 | 0 | 2 |
c3a92d10ad1c1c9e50be895a53a0c5deaf061dc2 | src/config/constants.js | src/config/constants.js | import axios from 'axios';
export const liveRootUrl = 'https://bolg-app.herokuapp.com/posts/';
export const states = {
LOADING: 0,
EDITING: 1,
SAVED: 2,
ERROR: 3,
EDITING_OFFLINE: 4,
SAVED_OFFLINE: 5,
PUBLISHED: 6,
};
export const mapsAPIKey = 'AIzaSyBADvjevyMmDkHb_xjjh3FOltkO2Oa8iAQ';
export function... | export const liveRootUrl = 'https://bolg-app.herokuapp.com/posts/';
export const states = {
LOADING: 0,
EDITING: 1,
SAVED: 2,
ERROR: 3,
EDITING_OFFLINE: 4,
SAVED_OFFLINE: 5,
PUBLISHED: 6,
};
export const mapsAPIKey = 'AIzaSyBADvjevyMmDkHb_xjjh3FOltkO2Oa8iAQ';
export const sizes = [
{
width: 2560,... | Remove axios and unused function | Remove axios and unused function
| JavaScript | mit | tuelsch/bolg,tuelsch/bolg | javascript | ## Code Before:
import axios from 'axios';
export const liveRootUrl = 'https://bolg-app.herokuapp.com/posts/';
export const states = {
LOADING: 0,
EDITING: 1,
SAVED: 2,
ERROR: 3,
EDITING_OFFLINE: 4,
SAVED_OFFLINE: 5,
PUBLISHED: 6,
};
export const mapsAPIKey = 'AIzaSyBADvjevyMmDkHb_xjjh3FOltkO2Oa8iAQ';
... | - import axios from 'axios';
-
export const liveRootUrl = 'https://bolg-app.herokuapp.com/posts/';
export const states = {
LOADING: 0,
EDITING: 1,
SAVED: 2,
ERROR: 3,
EDITING_OFFLINE: 4,
SAVED_OFFLINE: 5,
PUBLISHED: 6,
};
export const mapsAPIKey = 'AIzaSyBADvjevyMmDkHb_xjjh3FO... | 6 | 0.130435 | 0 | 6 |
959a26521a1e19552854df47439703d3a73f2a1e | src/brreg.lisp | src/brreg.lisp | (in-package :brreg)
(push (cons "application" "json") drakma:*text-content-types*)
(defun get-jsonhash (orgnummer)
(when (and (every #'digit-char-p orgnummer)
(= (length orgnummer) 9))
(multiple-value-bind (response status)
(drakma:http-request
(format nil "http://data.brreg.no/en... | (in-package :brreg)
(push (cons "application" "json") drakma:*text-content-types*)
(defun get-jsonhash (orgnummer)
(when (and (every #'digit-char-p orgnummer)
(= (length orgnummer) 9))
(multiple-value-bind (response status)
(drakma:http-request
(format nil "http://data.brreg.no/en... | Return NIL for all error situations. | Return NIL for all error situations.
| Common Lisp | mit | torhenrik/cl-brreg | common-lisp | ## Code Before:
(in-package :brreg)
(push (cons "application" "json") drakma:*text-content-types*)
(defun get-jsonhash (orgnummer)
(when (and (every #'digit-char-p orgnummer)
(= (length orgnummer) 9))
(multiple-value-bind (response status)
(drakma:http-request
(format nil "http://... | (in-package :brreg)
(push (cons "application" "json") drakma:*text-content-types*)
(defun get-jsonhash (orgnummer)
(when (and (every #'digit-char-p orgnummer)
(= (length orgnummer) 9))
(multiple-value-bind (response status)
(drakma:http-request
(format nil "h... | 9 | 0.25 | 6 | 3 |
5d301587d92c73edfd8ded5e8110fe91cde19820 | lib/dav/resource/children.rb | lib/dav/resource/children.rb | module DAV
class Children < Struct.new(:parent)
include DAV
attr_reader :uris
SEPARATOR = "\n"
def initialize(parent)
super parent
load_paths
end
def store
return unless changed?
unless @uris.empty?
relation_storage.set parent.id, @uris.join(SEPARATOR)
... | require 'set'
module DAV
class Children < Struct.new(:parent)
include DAV
attr_reader :uris
SEPARATOR = "\n"
def initialize(parent)
super parent
load_paths
end
def store
return unless changed?
unless @uris.empty?
relation_storage.set parent.id, @uris.to_a.j... | Use a set instead of simple array. | Use a set instead of simple array.
| Ruby | mit | fork/sinatra-webdav | ruby | ## Code Before:
module DAV
class Children < Struct.new(:parent)
include DAV
attr_reader :uris
SEPARATOR = "\n"
def initialize(parent)
super parent
load_paths
end
def store
return unless changed?
unless @uris.empty?
relation_storage.set parent.id, @uris.join(... | + require 'set'
+
module DAV
class Children < Struct.new(:parent)
include DAV
attr_reader :uris
SEPARATOR = "\n"
def initialize(parent)
super parent
load_paths
end
def store
return unless changed?
unless @uris.empty?
- relati... | 8 | 0.123077 | 5 | 3 |
f330bf82d7eea8de20924aeecdab7343a602e999 | core/string/unpack/z_spec.rb | core/string/unpack/z_spec.rb | require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/string'
require_relative 'shared/taint'
describe "String#unpack with format 'Z'" do
it_behaves_like :string_unpack_basic, 'Z'
it_behaves_like :string_unpack_no_platform, 'Z'
it_... | require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/string'
require_relative 'shared/taint'
describe "String#unpack with format 'Z'" do
it_behaves_like :string_unpack_basic, 'Z'
it_behaves_like :string_unpack_no_platform, 'Z'
it_... | Add specs for consuming null byte. | Add specs for consuming null byte.
| Ruby | mit | ruby/spec,ruby/spec,ruby/spec | ruby | ## Code Before:
require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/string'
require_relative 'shared/taint'
describe "String#unpack with format 'Z'" do
it_behaves_like :string_unpack_basic, 'Z'
it_behaves_like :string_unpack_no_pla... | require_relative '../../../spec_helper'
require_relative '../fixtures/classes'
require_relative 'shared/basic'
require_relative 'shared/string'
require_relative 'shared/taint'
describe "String#unpack with format 'Z'" do
it_behaves_like :string_unpack_basic, 'Z'
it_behaves_like :string_unpack_no_p... | 5 | 0.227273 | 5 | 0 |
418dd74f2d89129e03fdbde232e1a846b607c190 | src/Ilios/WebBundle/Controller/IndexController.php | src/Ilios/WebBundle/Controller/IndexController.php | <?php
namespace Ilios\WebBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Ilios\CliBundle\Command\UpdateFrontendCommand;
use Ilios\WebBundle\Service\WebIndexFromJson;
class IndexController extends Controller
{
public function indexAc... | <?php
namespace Ilios\WebBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Ilios\CliBundle\Command\UpdateFrontendCommand;
use Ilios\WebBundle\Service\WebIndexFromJson;
class IndexController extends Controller
{
public function indexAc... | Improve exception message when fronted not found | Improve exception message when fronted not found
| PHP | mit | justinchu17/ilios,dartajax/ilios,justinchu17/ilios,stopfstedt/ilios,ilios/ilios,ilios/ilios,dartajax/ilios,Trott/ilios,justinchu17/ilios,justinchu17/ilios,stopfstedt/ilios,Trott/ilios,thecoolestguy/ilios,thecoolestguy/ilios | php | ## Code Before:
<?php
namespace Ilios\WebBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Ilios\CliBundle\Command\UpdateFrontendCommand;
use Ilios\WebBundle\Service\WebIndexFromJson;
class IndexController extends Controller
{
public ... | <?php
namespace Ilios\WebBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Ilios\CliBundle\Command\UpdateFrontendCommand;
use Ilios\WebBundle\Service\WebIndexFromJson;
class IndexController extends Controller
{
... | 2 | 0.060606 | 1 | 1 |
33592a1379945be6be713124acb7bbc43f033f5f | app/BookingStrategyTimeslot.php | app/BookingStrategyTimeslot.php | <?php
namespace App;
use App\Appointment;
use App\Business;
use Carbon\Carbon;
class BookingStrategyTimeslot implements BookingStrategyInterface
{
public function makeReservation(Business $business, $data)
{
$data['business_id'] = $business->id;
$appointment = new Appointment($data);
... | <?php
namespace App;
use App\Appointment;
use App\Business;
use Carbon\Carbon;
class BookingStrategyTimeslot implements BookingStrategyInterface
{
public function makeReservation(User $issuer, Business $business, $data)
{
$data['business_id'] = $business->id;
$appointment = new Appointment($d... | Fix function parameters to comply interface | Fix function parameters to comply interface
| PHP | agpl-3.0 | alariva/timegrid,timegridio/timegrid,alariva/timegrid,alariva/timegrid,timegridio/timegrid,alariva/timegrid,timegridio/timegrid | php | ## Code Before:
<?php
namespace App;
use App\Appointment;
use App\Business;
use Carbon\Carbon;
class BookingStrategyTimeslot implements BookingStrategyInterface
{
public function makeReservation(Business $business, $data)
{
$data['business_id'] = $business->id;
$appointment = new Appointment(... | <?php
namespace App;
use App\Appointment;
use App\Business;
use Carbon\Carbon;
class BookingStrategyTimeslot implements BookingStrategyInterface
{
- public function makeReservation(Business $business, $data)
+ public function makeReservation(User $issuer, Business $business, $data)
? ... | 2 | 0.117647 | 1 | 1 |
fc5274159d15d61c08ebf4cdfb1200b2f438b772 | .travis.yml | .travis.yml | sudo: required
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.11.2
language: python
python:
- '3.6'
before_install:
# See https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
install:
- sudo docker --version
- sudo docker-compose --version
jobs:
include:
- stage: test
... | sudo: required
services:
- docker
language: python
python:
- '3.6'
before_install:
# See https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
install:
- sudo docker --version
- sudo docker-compose --version
jobs:
include:
- stage: test
- script: ./helper ci test_suite
... | Remove unused lines in Travis CI config file | Remove unused lines in Travis CI config file
| YAML | mit | uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers | yaml | ## Code Before:
sudo: required
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.11.2
language: python
python:
- '3.6'
before_install:
# See https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
install:
- sudo docker --version
- sudo docker-compose --version
jobs:
include:
... | sudo: required
services:
- docker
- env:
- - DOCKER_COMPOSE_VERSION=1.11.2
language: python
python:
- '3.6'
before_install:
# See https://github.com/travis-ci/travis-ci/issues/7940
- sudo rm -f /etc/boto.cfg
install:
- sudo docker --version
- sudo docker-compose --version
jobs:
... | 6 | 0.181818 | 0 | 6 |
b40e492bd27e83350c2ca1982d5cca0e3ba21bc6 | config/initializers/panopticon_api_credentials.rb | config/initializers/panopticon_api_credentials.rb |
PANOPTICON_API_CREDENTIALS = {
bearer_token: "developmentapicredentials",
}
|
PANOPTICON_API_CREDENTIALS = {
bearer_token: ENV.fetch("PANOPTICON_BEARER_TOKEN", "developmentapicredentials"),
}
| Configure Panopticon API using env var | Configure Panopticon API using env var
| Ruby | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | ruby | ## Code Before:
PANOPTICON_API_CREDENTIALS = {
bearer_token: "developmentapicredentials",
}
## Instruction:
Configure Panopticon API using env var
## Code After:
PANOPTICON_API_CREDENTIALS = {
bearer_token: ENV.fetch("PANOPTICON_BEARER_TOKEN", "developmentapicredentials"),
}
|
PANOPTICON_API_CREDENTIALS = {
- bearer_token: "developmentapicredentials",
+ bearer_token: ENV.fetch("PANOPTICON_BEARER_TOKEN", "developmentapicredentials"),
} | 2 | 0.5 | 1 | 1 |
4687878df61d13455f89f62c623f693765fb573b | .travis.yml | .travis.yml | language: node_js
node_js:
- "node"
cache:
yarn: true
directories:
- node_modules
install:
- yarn global add sequelize-cli
# - npm install sequelize-cli -g
- sequelize db:migrate
- sequelize db:seed --seed 20161204173948-default-admin
script:
- yarn test
# - npm test
| language: node_js
node_js:
- "node"
cache:
yarn: true
directories:
- node_modules
install:
# - yarn global add sequelize-cli
- npm install sequelize-cli
before_script:
- sequelize db:migrate
- sequelize db:seed --seed 20161204173948-default-admin
script:
# - yarn test
- npm test
| Move migration to before_script section. | Move migration to before_script section.
| YAML | mit | Calvin-Huang/LiveAPIExplore-Server,Calvin-Huang/LiveAPIExplore-Server | yaml | ## Code Before:
language: node_js
node_js:
- "node"
cache:
yarn: true
directories:
- node_modules
install:
- yarn global add sequelize-cli
# - npm install sequelize-cli -g
- sequelize db:migrate
- sequelize db:seed --seed 20161204173948-default-admin
script:
- yarn test
# - npm test
## Instructio... | language: node_js
node_js:
- "node"
cache:
yarn: true
directories:
- node_modules
install:
- - yarn global add sequelize-cli
+ # - yarn global add sequelize-cli
? ++
- # - npm install sequelize-cli -g
? -- ---
+ - npm install sequelize-cli
+ before_script... | 9 | 0.6 | 5 | 4 |
4f69a011c2373e47789b045ee2ccb9b5237676d3 | package.json | package.json | {
"name": "angular-client-side-auth",
"version": "0.0.1",
"dependencies": {
"express": "*",
"jade": "*",
"passport": "*",
"passport-local": "*",
"underscore": "*",
"validator": "~1.1.1"
},
"subdomain": "angular-client-side-auth",
"scripts": {
"start": "server.js"
},
"engines"... | {
"name": "angular-client-side-auth",
"version": "0.0.1",
"dependencies": {
"express": "*",
"jade": "*",
"passport": "*",
"passport-local": "*",
"underscore": "*",
"validator": "~1.1.1",
"passport-twitter": "~0.1.4",
"passport-facebook": "~0.1.5"
},
"subdomain": "angular-client... | Add passport-facebook dependency, and move passport-twitter from devDependencies section. | Add passport-facebook dependency, and move passport-twitter from devDependencies section.
| JSON | mit | time4tigger/angular-client-side-auth,loiclacombe/angular-client-side-auth,mishavp2001/args,loiclacombe/angular-client-side-auth,fnakstad/angular-client-side-auth,time4tigger/angular-client-side-auth,fnakstad/angular-client-side-auth,loiclacombe/angular-client-side-auth,mishavp2001/args,time4tigger/angular-client-side-a... | json | ## Code Before:
{
"name": "angular-client-side-auth",
"version": "0.0.1",
"dependencies": {
"express": "*",
"jade": "*",
"passport": "*",
"passport-local": "*",
"underscore": "*",
"validator": "~1.1.1"
},
"subdomain": "angular-client-side-auth",
"scripts": {
"start": "server.js"
... | {
"name": "angular-client-side-auth",
"version": "0.0.1",
"dependencies": {
"express": "*",
"jade": "*",
"passport": "*",
"passport-local": "*",
"underscore": "*",
- "validator": "~1.1.1"
+ "validator": "~1.1.1",
? +
+ "passport-twitter":... | 7 | 0.318182 | 3 | 4 |
296c5d1999f820fb8e143c2d528e0a85bab33f69 | web/static/gm_pr.css | web/static/gm_pr.css | footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
table {
width: 100%;
}
.label {
padding: 2px;
border-radius: 4px;
font-weight: bold;
font-size :12px;
text-transform: uppercase;
}
.feedback_ok {
color: green;
}
.feedback_ko {
color: red;
}
td.alignleft, th.... | /*
Copyright 2015 Genymobile
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | Add copyright to CSS file | Add copyright to CSS file
| CSS | apache-2.0 | Genymobile/gm_pr,Genymobile/gm_pr | css | ## Code Before:
footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
}
table {
width: 100%;
}
.label {
padding: 2px;
border-radius: 4px;
font-weight: bold;
font-size :12px;
text-transform: uppercase;
}
.feedback_ok {
color: green;
}
.feedback_ko {
color: red;
}
t... | + /*
+ Copyright 2015 Genymobile
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in wr... | 16 | 0.571429 | 16 | 0 |
530966b8effadfa3e026118240ce21709fc4c843 | chrome/browser/sync/glue/chrome_report_unrecoverable_error.cc | chrome/browser/sync/glue/chrome_report_unrecoverable_error.cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "base/rand_util.h"
#include "build/build_config.h"
#if defined(OS_W... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "base/rand_util.h"
#include "chrome/common/chrome_constants.h"
#incl... | Support unrecoverable error uploading on non-win platforms | [Sync] Support unrecoverable error uploading on non-win platforms
We now use chrome/common/dump_without_crashing.h, and only upload on canary/
dev builds.
BUG=127429
Review URL: https://codereview.chromium.org/80963003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@236623 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | anirudhSK/chromium,hgl888/chromium-crosswalk-efl,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,patrickm/chromium.src,ltilve/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,jaruba/chromium.src,bright-sparks/chromium-spacewalk,crosswalk-project/chromium-crosswalk... | c++ | ## Code Before:
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "base/rand_util.h"
#include "build/build_config.h"
... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h"
#include "base/rand_util.h"
- #include "build/build_config.h"
-... | 29 | 0.690476 | 10 | 19 |
4c04979de66cf5d0858ff00002ef40df196ccd05 | serfnode/build/handler/handler.py | serfnode/build/handler/handler.py | import os
from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
from my_handler import MyHandler
except ImportError:
print "Could not import user's handler."
print "Defaulting to dummy handler."
MyHandler = BaseHandler
if __name__ == '__main__':
handler = SerfHandlerP... | import os
from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
from my_handler import MyHandler
except ImportError:
MyHandler = BaseHandler
if __name__ == '__main__':
handler = SerfHandlerProxy()
role = os.environ.get('ROLE') or 'no_role'
handler.register(role, MyHan... | Remove prints that interfere with json output | Remove prints that interfere with json output | Python | mit | waltermoreira/serfnode,waltermoreira/serfnode,waltermoreira/serfnode | python | ## Code Before:
import os
from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
from my_handler import MyHandler
except ImportError:
print "Could not import user's handler."
print "Defaulting to dummy handler."
MyHandler = BaseHandler
if __name__ == '__main__':
handle... | import os
from serf_master import SerfHandlerProxy
from base_handler import BaseHandler
try:
from my_handler import MyHandler
except ImportError:
- print "Could not import user's handler."
- print "Defaulting to dummy handler."
MyHandler = BaseHandler
if __name__ == '__main__':
... | 2 | 0.117647 | 0 | 2 |
aac11aae27b02c3f27f96585cc4b415f995559ff | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode7.3
before_install:
- gem install xcpretty -N --no-ri --no-rdoc
script:
- set -o pipefail
- xcodebuild clean test -workspace Example/AirRivet.xcworkspace -scheme AirRivet-Example -destination "platform=iOS Simulator,name=iPhone 6 Plus" -enableCodeCoverage YES | xcpret... | language: objective-c
osx_image: xcode7.3
before_install:
- gem install xcpretty -N --no-ri --no-rdoc
script:
- set -o pipefail
- xcodebuild clean test -workspace Example/AirRivet.xcworkspace -scheme AirRivet-Example -destination "platform=iOS Simulator,name=iPhone 6 Plus" -enableCodeCoverage YES | xcpret... | Add the on tag command. | Add the on tag command.
| YAML | mit | icapps/swiftGenericWebService,icapps/ios-air-rivet,icapps/ios-faro,icapps/ios-faro,icapps/ios-faro,icapps/ios-faro,icapps/ios-air-rivet,icapps/ios-air-rivet,icapps/ios-air-rivet,icapps/ios-air-rivet | yaml | ## Code Before:
language: objective-c
osx_image: xcode7.3
before_install:
- gem install xcpretty -N --no-ri --no-rdoc
script:
- set -o pipefail
- xcodebuild clean test -workspace Example/AirRivet.xcworkspace -scheme AirRivet-Example -destination "platform=iOS Simulator,name=iPhone 6 Plus" -enableCodeCover... | language: objective-c
osx_image: xcode7.3
before_install:
- gem install xcpretty -N --no-ri --no-rdoc
script:
- set -o pipefail
- xcodebuild clean test -workspace Example/AirRivet.xcworkspace -scheme AirRivet-Example -destination "platform=iOS Simulator,name=iPhone 6 Plus" -enableCodeCov... | 2 | 0.142857 | 2 | 0 |
cf60f5feee54a92af54a66605176d061d3051c58 | spec/fabricators/upload_fabricator.rb | spec/fabricators/upload_fabricator.rb | Fabricator(:upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
original_filename "logo.png"
filesize 1234
width 100
height 200
url "/uploads/default/1/1234567890123456.png"
end
Fabricator(:subfolder_upload, from: :upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
origina... | Fabricator(:upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
original_filename "logo.png"
filesize 1234
width 100
height 200
url "/uploads/default/1/1234567890123456.png"
end
Fabricator(:attachment, from: :upload) do
id 42
user
original_filename "archive.zip"
filesize 1234
url ... | Revert "Adds upload fabricator for subfolder image upload" | Revert "Adds upload fabricator for subfolder image upload"
This reverts commit b619bd2782d6d24f0cd93e22c50a74f8a27b8fda.
| Ruby | mit | natefinch/discourse,natefinch/discourse | ruby | ## Code Before:
Fabricator(:upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
original_filename "logo.png"
filesize 1234
width 100
height 200
url "/uploads/default/1/1234567890123456.png"
end
Fabricator(:subfolder_upload, from: :upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd494... | Fabricator(:upload) do
- user
- sha1 "e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98"
- original_filename "logo.png"
- filesize 1234
- width 100
- height 200
- url "/uploads/default/1/1234567890123456.png"
- end
-
- Fabricator(:subfolder_upload, from: :upload) do
user
sha1 "e9d71f5ee7c92d6dc9e92ffda... | 10 | 0.37037 | 0 | 10 |
dd9f11f36668717ee349b357b2f32a7a52e38863 | pagerduty_events_api/pagerduty_incident.py | pagerduty_events_api/pagerduty_incident.py | from pagerduty_events_api.pagerduty_rest_client import PagerdutyRestClient
class PagerdutyIncident:
def __init__(self, service_key, incident_key):
self.__service_key = service_key
self.__incident_key = incident_key
def get_service_key(self):
return self.__service_key
def get_inci... | from pagerduty_events_api.pagerduty_rest_client import PagerdutyRestClient
class PagerdutyIncident:
def __init__(self, service_key, incident_key):
self.__service_key = service_key
self.__incident_key = incident_key
def get_service_key(self):
return self.__service_key
def get_inci... | Remove code duplication from PD Incident class. | Remove code duplication from PD Incident class.
| Python | mit | BlasiusVonSzerencsi/pagerduty-events-api | python | ## Code Before:
from pagerduty_events_api.pagerduty_rest_client import PagerdutyRestClient
class PagerdutyIncident:
def __init__(self, service_key, incident_key):
self.__service_key = service_key
self.__incident_key = incident_key
def get_service_key(self):
return self.__service_key
... | from pagerduty_events_api.pagerduty_rest_client import PagerdutyRestClient
class PagerdutyIncident:
def __init__(self, service_key, incident_key):
self.__service_key = service_key
self.__incident_key = incident_key
def get_service_key(self):
return self.__service_k... | 15 | 0.555556 | 7 | 8 |
a2906df7672ca06e622294cc65cd96b2ddba0373 | lib/redch/gateway.rb | lib/redch/gateway.rb | require 'redch/producer'
module Redch
class Gateway
def initialize(api_key, interval)
@routing_key = "sensor.samples"
@api_key = api_key
@interval = interval
end
def send_samples(&generate_value)
begin
AMQP.start("amqp://guest:guest@dev.rabbitmq.com") do |connection,... | require 'redch/producer'
module Redch
class Gateway
def initialize(api_key, interval)
@routing_key = "sensor.samples"
@api_key = api_key
@interval = interval
end
def send_samples(&generate_value)
begin
AMQP.start(settings) do |connection, open_ok|
# Conn... | Handle AMQP url with an ENV | Handle AMQP url with an ENV
| Ruby | apache-2.0 | sauloperez/redch,sauloperez/redch | ruby | ## Code Before:
require 'redch/producer'
module Redch
class Gateway
def initialize(api_key, interval)
@routing_key = "sensor.samples"
@api_key = api_key
@interval = interval
end
def send_samples(&generate_value)
begin
AMQP.start("amqp://guest:guest@dev.rabbitmq.com")... | require 'redch/producer'
module Redch
class Gateway
def initialize(api_key, interval)
@routing_key = "sensor.samples"
@api_key = api_key
@interval = interval
end
def send_samples(&generate_value)
begin
- AMQP.start("amqp://guest:guest@dev.ra... | 11 | 0.297297 | 10 | 1 |
83420a2ae3ceea6187b9f8fda642c01d039ac042 | spec/scanny/checks/input_filtering_check_spec.rb | spec/scanny/checks/input_filtering_check_spec.rb | require "spec_helper"
module Scanny::Checks
describe InputFilteringCheck do
before do
@runner = Scanny::Runner.new(InputFilteringCheck.new)
@message = "Possible injection vulnerabilities"
@issue = issue(:low, @message, 20)
end
it "reports \"logger(params[:password])\" correctly" do
... | require "spec_helper"
module Scanny::Checks
describe InputFilteringCheck do
before do
@runner = Scanny::Runner.new(InputFilteringCheck.new)
@message = "Possible injection vulnerabilities"
@issue = issue(:low, @message, 20)
end
it "reports \"logger(params[:password])\" correctly" do
... | Add spec for special string sequence | Add spec for special string sequence
| Ruby | mit | openSUSE/scanny | ruby | ## Code Before:
require "spec_helper"
module Scanny::Checks
describe InputFilteringCheck do
before do
@runner = Scanny::Runner.new(InputFilteringCheck.new)
@message = "Possible injection vulnerabilities"
@issue = issue(:low, @message, 20)
end
it "reports \"logger(params[:password])\" ... | require "spec_helper"
module Scanny::Checks
describe InputFilteringCheck do
before do
@runner = Scanny::Runner.new(InputFilteringCheck.new)
@message = "Possible injection vulnerabilities"
@issue = issue(:low, @message, 20)
end
it "reports \"logger(params[:passwor... | 4 | 0.266667 | 4 | 0 |
ff0ae66ee16bc3ac07cb88ddacb52ffa41779757 | tests/test_func.py | tests/test_func.py | from .utils import assert_eval
def test_simple_func():
assert_eval('(def @a $a 8) (@a)', 1, 8)
def test_simple_func_args():
assert_eval(
'(def @a $a $a)'
'(@a 1)'
'(@a 2)'
'(@a 5)',
1,
1,
2,
5)
def test_func_args_overwrite_globals():
asse... | from .utils import assert_eval
def test_simple_func():
assert_eval('(def @a $a 8) (@a)', 1, 8)
def test_simple_func_args():
assert_eval(
'(def @a $a $a)'
'(@a 1)'
'(@a 2)'
'(@a 5)',
1,
1,
2,
5)
def test_func_args_overwrite_globals():
asse... | Add some more function tests. | Add some more function tests.
| Python | bsd-3-clause | sapir/tinywhat,sapir/tinywhat,sapir/tinywhat | python | ## Code Before:
from .utils import assert_eval
def test_simple_func():
assert_eval('(def @a $a 8) (@a)', 1, 8)
def test_simple_func_args():
assert_eval(
'(def @a $a $a)'
'(@a 1)'
'(@a 2)'
'(@a 5)',
1,
1,
2,
5)
def test_func_args_overwrite_glo... | from .utils import assert_eval
def test_simple_func():
assert_eval('(def @a $a 8) (@a)', 1, 8)
def test_simple_func_args():
assert_eval(
'(def @a $a $a)'
'(@a 1)'
'(@a 2)'
'(@a 5)',
1,
1,
2,
5)
def test... | 20 | 0.434783 | 20 | 0 |
a07df4bdb0692fc289d2b89e8e1a634bddb5153d | app/assets/javascripts/osem-tickets.js | app/assets/javascripts/osem-tickets.js | function update_price($this){
var id = $this.data('id');
// Calculate price for row
var value = $this.val();
var price = $('#price_' + id).text();
$('#total_row_' + id).text(value * price);
// Calculate total price
var total = 0;
$('.total_row').each(function( index ) {
total +... | function update_price($this){
var id = $this.data('id');
// Calculate price for row
var value = $this.val();
var price = $('#price_' + id).text();
$('#total_row_' + id).text((value * price).toFixed(2));
// Calculate total price
var total = 0;
$('.total_row').each(function( index ) {
... | Fix decimal numbers limit to 2 | Fix decimal numbers limit to 2
while calculating the row total, javascript was called and on some quantity, a number with a big decimal part was appearing.In this PR it is fixed
Fixes https://github.com/opensuse/osem/issues/1709
| JavaScript | mit | hennevogel/osem,rishabhptr/osem,rishabhptr/osem,openSUSE/osem,kormoc/osem,hennevogel/osem,differentreality/osem,hennevogel/osem,namangupta01/osem,differentreality/osem,kormoc/osem,AndrewKvalheim/osem,bear454/osem,AndrewKvalheim/osem,SeaGL/osem,bear454/osem,bear454/osem,differentreality/osem,openSUSE/osem,kormoc/osem,op... | javascript | ## Code Before:
function update_price($this){
var id = $this.data('id');
// Calculate price for row
var value = $this.val();
var price = $('#price_' + id).text();
$('#total_row_' + id).text(value * price);
// Calculate total price
var total = 0;
$('.total_row').each(function( index ) {... | function update_price($this){
var id = $this.data('id');
// Calculate price for row
var value = $this.val();
var price = $('#price_' + id).text();
- $('#total_row_' + id).text(value * price);
+ $('#total_row_' + id).text((value * price).toFixed(2));
? ... | 2 | 0.071429 | 1 | 1 |
0e6f679f940736ff78efbe66d27bb2b8a181990f | src/main/java/net/wizardsoflua/lua/module/print/PrintRedirector.java | src/main/java/net/wizardsoflua/lua/module/print/PrintRedirector.java | package net.wizardsoflua.lua.module.print;
import java.io.IOException;
import java.io.OutputStream;
import net.sandius.rembulan.Table;
import net.sandius.rembulan.lib.BasicLib;
import net.sandius.rembulan.runtime.LuaFunction;
public class PrintRedirector {
public interface Context {
public void send(String me... | package net.wizardsoflua.lua.module.print;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import net.sandius.rembulan.Table;
import net.sandius.rembulan.lib.BasicLib;
import net.sandius.rembulan.runtime.LuaFunction;
public class PrintRedirector {
public interface Context ... | Remove use of the deprecated method ByteArrayOutputStream.toString() | Remove use of the deprecated method ByteArrayOutputStream.toString()
| Java | apache-2.0 | mkarneim/luamod | java | ## Code Before:
package net.wizardsoflua.lua.module.print;
import java.io.IOException;
import java.io.OutputStream;
import net.sandius.rembulan.Table;
import net.sandius.rembulan.lib.BasicLib;
import net.sandius.rembulan.runtime.LuaFunction;
public class PrintRedirector {
public interface Context {
public voi... | package net.wizardsoflua.lua.module.print;
import java.io.IOException;
import java.io.OutputStream;
-
+ import java.nio.charset.Charset;
import net.sandius.rembulan.Table;
import net.sandius.rembulan.lib.BasicLib;
import net.sandius.rembulan.runtime.LuaFunction;
public class PrintRedirector {
... | 4 | 0.088889 | 2 | 2 |
3c32c2a446036dab674e76d6dad038b6e298bd22 | app/controllers/registrationController.js | app/controllers/registrationController.js | core.controller('RegistrationController', function ($controller, $location, $scope, $timeout, AlertService, RestApi) {
angular.extend(this, $controller('AbstractController', {$scope: $scope}));
$scope.registration = {
email: '',
token: ''
};
AlertService.create('auth/register');
Alert... | core.controller('RegistrationController', function ($controller, $location, $scope, $timeout, AlertService, RestApi) {
angular.extend(this, $controller('AbstractController', {$scope: $scope}));
$scope.registration = {
email: '',
token: ''
};
AlertService.create('auth/register');
Alert... | Add success alert indicating registration began and to verify email. | Add success alert indicating registration began and to verify email.
| JavaScript | mit | TAMULib/Weaver-UI-Core,TAMULib/Weaver-UI-Core | javascript | ## Code Before:
core.controller('RegistrationController', function ($controller, $location, $scope, $timeout, AlertService, RestApi) {
angular.extend(this, $controller('AbstractController', {$scope: $scope}));
$scope.registration = {
email: '',
token: ''
};
AlertService.create('auth/regis... | core.controller('RegistrationController', function ($controller, $location, $scope, $timeout, AlertService, RestApi) {
angular.extend(this, $controller('AbstractController', {$scope: $scope}));
$scope.registration = {
email: '',
token: ''
};
AlertService.create('auth/r... | 5 | 0.106383 | 5 | 0 |
bebf2b5aaa9d7a5071b01cc075dd218c29a64034 | .travis.yml | .travis.yml | language: go
go:
- 1.7
- master
sudo: false
install:
- go get -v github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3
- glide install
| language: go
go:
- 1.7
- master
sudo: false
install:
- go get -v github.com/Masterminds/glide
- pushd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3 && popd
- glide install
| Return back to original directory | Return back to original directory
| YAML | mit | gotgenes/getignore,gotgenes/getignore | yaml | ## Code Before:
language: go
go:
- 1.7
- master
sudo: false
install:
- go get -v github.com/Masterminds/glide
- cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3
- glide install
## Instruction:
Return back to original directory
## Code After:
language: go
go:
- 1.7
- master
s... | language: go
go:
- 1.7
- master
sudo: false
install:
- go get -v github.com/Masterminds/glide
- - cd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3
? ^
+ - pushd $GOPATH/src/github.com/Masterminds/glide && git checkout tags/v0.12.3 && popd
? ^^^^ ... | 2 | 0.166667 | 1 | 1 |
2afc03a084cf736cc76f629a45a720c3c44eb27d | pkgs/applications/misc/hello/default.nix | pkgs/applications/misc/hello/default.nix | { lib
, stdenv
, fetchurl
, nixos
, testers
, hello
}:
stdenv.mkDerivation rec {
pname = "hello";
version = "2.12";
src = fetchurl {
url = "mirror://gnu/hello/${pname}-${version}.tar.gz";
sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
};
doCheck = true;
passthru.tests = {
v... | { lib
, runCommand
, stdenv
, fetchurl
, nixos
, testers
, hello
}:
stdenv.mkDerivation (self: {
pname = "hello";
version = "2.12";
src = fetchurl {
url = "mirror://gnu/hello/${self.pname}-${self.version}.tar.gz";
sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
};
doCheck = true;
... | Define a passthru test via new mkDerivation self arg | hello: Define a passthru test via new mkDerivation self arg
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ lib
, stdenv
, fetchurl
, nixos
, testers
, hello
}:
stdenv.mkDerivation rec {
pname = "hello";
version = "2.12";
src = fetchurl {
url = "mirror://gnu/hello/${pname}-${version}.tar.gz";
sha256 = "1ayhp9v4m4rdhjmnl2bq3cibrbqqkgjbl3s7yk2nhlh8vj3ay16g";
};
doCheck = true;
passthru... | { lib
+ , runCommand
, stdenv
, fetchurl
, nixos
, testers
, hello
}:
- stdenv.mkDerivation rec {
? ^ ^
+ stdenv.mkDerivation (self: {
? ^^ ^^^
pname = "hello";
version = "2.12";
src = fetchurl {
- url = "mirror://gnu/hello/${pname}-${version... | 16 | 0.380952 | 12 | 4 |
4be53761875922cc8d27e54363624cd1ae34bc16 | app/containers/Main/index.js | app/containers/Main/index.js | import React, { Component, PropTypes } from 'react';
import fetchData from '../../actions/fetchData';
import Toast from '../../components/Toast';
import Modals from '../Modals';
import types from '../../utils/types';
import SocketEvents from '../../utils/socketEvents';
import './Main.scss';
import MainNav from '../Mai... | import React, { Component, PropTypes } from 'react';
import fetchData from '../../actions/fetchData';
import Toast from '../../components/Toast';
import Modals from '../Modals';
import types from '../../utils/types';
import SocketEvents from '../../utils/socketEvents';
import './Main.scss';
import MainNav from '../Mai... | Check for isFetching with .some | :wrench: Check for isFetching with .some
| JavaScript | mit | JasonEtco/flintcms,JasonEtco/flintcms | javascript | ## Code Before:
import React, { Component, PropTypes } from 'react';
import fetchData from '../../actions/fetchData';
import Toast from '../../components/Toast';
import Modals from '../Modals';
import types from '../../utils/types';
import SocketEvents from '../../utils/socketEvents';
import './Main.scss';
import Main... | import React, { Component, PropTypes } from 'react';
import fetchData from '../../actions/fetchData';
import Toast from '../../components/Toast';
import Modals from '../Modals';
import types from '../../utils/types';
import SocketEvents from '../../utils/socketEvents';
import './Main.scss';
import Ma... | 8 | 0.142857 | 2 | 6 |
f739a7605b738b85ba32436825b44f0059b83f45 | test/test_cpuid.c | test/test_cpuid.c |
void test_GetVendorName_should_ReturnGenuineIntel(void) {
char expected[20] = "GenuineIntel";
char actual[20];
get_vendor_name(actual);
TEST_ASSERT_EQUAL_STRING(expected, actual);
}
void test_GetVendorSignature_should_asdf(void) {
uint32_t exp_ebx = 0x756e6547; // translates to "Genu"
uint32_t exp_ecx... |
void test_GetVendorName_should_ReturnGenuineIntel(void) {
char expected[20] = "GenuineIntel";
char actual[20];
get_vendor_name(actual);
TEST_ASSERT_EQUAL_STRING(expected, actual);
}
void test_GetVendorSignature_should_ReturnCorrectCpuIdValues(void) {
uint32_t exp_ebx = 0x756e6547; // translates to "Genu... | Change method-name to something more appropriate | Change method-name to something more appropriate
| C | bsd-2-clause | sosy-lab/power-gadget_benchexec,sosy-lab/power-gadget_benchexec | c | ## Code Before:
void test_GetVendorName_should_ReturnGenuineIntel(void) {
char expected[20] = "GenuineIntel";
char actual[20];
get_vendor_name(actual);
TEST_ASSERT_EQUAL_STRING(expected, actual);
}
void test_GetVendorSignature_should_asdf(void) {
uint32_t exp_ebx = 0x756e6547; // translates to "Genu"
... |
void test_GetVendorName_should_ReturnGenuineIntel(void) {
char expected[20] = "GenuineIntel";
char actual[20];
get_vendor_name(actual);
TEST_ASSERT_EQUAL_STRING(expected, actual);
}
- void test_GetVendorSignature_should_asdf(void) {
? --
+ void te... | 2 | 0.0625 | 1 | 1 |
f7f126e9bd900229aa04e9bf83da0ed8130b0d0f | environment/stage1/member.lisp | environment/stage1/member.lisp | ;;;;; TRE environment
;;;;; Copyright (c) 2005-2006,2008,2010 Sven Klose <pixel@copei.de>
(if (not (eq t *BUILTIN-MEMBER*))
(progn
(defun %member-r (elm lst)
(if lst
(if (equal elm (car lst))
lst
(%member-r elm (cdr lst)))))
(defun member (elm &rest lsts)
(or (%membe... | ;;;;; TRE environment
;;;;; Copyright (c) 2005-2006,2008,2010-2011 Sven Klose <pixel@copei.de>
(if (not (eq t *BUILTIN-MEMBER*))
(progn
(defun %member-r (elm lst)
(if lst
(if (equal elm (car lst))
lst
(%member-r elm (cdr lst)))))
(defun member (elm &rest lsts)
(or (%... | Return the cell, not the element. | Return the cell, not the element.
| Common Lisp | mit | SvenMichaelKlose/tre,SvenMichaelKlose/tre,SvenMichaelKlose/tre | common-lisp | ## Code Before:
;;;;; TRE environment
;;;;; Copyright (c) 2005-2006,2008,2010 Sven Klose <pixel@copei.de>
(if (not (eq t *BUILTIN-MEMBER*))
(progn
(defun %member-r (elm lst)
(if lst
(if (equal elm (car lst))
lst
(%member-r elm (cdr lst)))))
(defun member (elm &rest lsts)
... | ;;;;; TRE environment
- ;;;;; Copyright (c) 2005-2006,2008,2010 Sven Klose <pixel@copei.de>
+ ;;;;; Copyright (c) 2005-2006,2008,2010-2011 Sven Klose <pixel@copei.de>
? +++++
(if (not (eq t *BUILTIN-MEMBER*))
(progn
(defun %member-r (elm lst)
(if lst
... | 4 | 0.1 | 2 | 2 |
75da8eb05f42e59cdcb944a12e42a0c1eeb936c1 | upgrade/includes/311to320.sql | upgrade/includes/311to320.sql | UPDATE `settings` SET `cmumversion`='3.2.0', `dbversion`='3.2.0' WHERE `id`=1;
ALTER TABLE `groups` ADD `enabled` tinyint(1) NULL DEFAULT '1' AFTER `comment`;
ALTER TABLE `settings` DROP `dbversion`;
ALTER TABLE `settings` ADD `autoupdcheck` TINYINT(1) NULL AFTER `soonexpusrorder`;
UPDATE `settings` SET `autoupdcheck`=... | UPDATE `settings` SET `cmumversion`='3.2.0', `dbversion`='3.2.0' WHERE `id`=1;
ALTER TABLE `groups` ADD `enabled` tinyint(1) NULL DEFAULT '1' AFTER `comment`;
ALTER TABLE `settings` DROP `dbversion`;
ALTER TABLE `settings` ADD `autoupdcheck` TINYINT(1) NULL AFTER `soonexpusrorder`;
UPDATE `settings` SET `autoupdcheck`=... | Truncate activity log table before altering it | Truncate activity log table before altering it
| SQL | mit | dukereborn/cmum,dukereborn/cmum | sql | ## Code Before:
UPDATE `settings` SET `cmumversion`='3.2.0', `dbversion`='3.2.0' WHERE `id`=1;
ALTER TABLE `groups` ADD `enabled` tinyint(1) NULL DEFAULT '1' AFTER `comment`;
ALTER TABLE `settings` DROP `dbversion`;
ALTER TABLE `settings` ADD `autoupdcheck` TINYINT(1) NULL AFTER `soonexpusrorder`;
UPDATE `settings` SET... | UPDATE `settings` SET `cmumversion`='3.2.0', `dbversion`='3.2.0' WHERE `id`=1;
ALTER TABLE `groups` ADD `enabled` tinyint(1) NULL DEFAULT '1' AFTER `comment`;
ALTER TABLE `settings` DROP `dbversion`;
ALTER TABLE `settings` ADD `autoupdcheck` TINYINT(1) NULL AFTER `soonexpusrorder`;
UPDATE `settings` SET `auto... | 2 | 0.181818 | 1 | 1 |
20829f036d7b54b15e3d748bad8923a00ff0313e | app/views/posts/show.html.haml | app/views/posts/show.html.haml | - if @pages.respond_to?(:total_pages)
- content_for(:rel_next_prev_link_tags) { rel_next_prev_link_tags(@pages) }
- content_for(:canonical_tag) do
%link{rel: :canonical, href: url_for(all: true, only_path: false)}
- breadcrumb :post, @post
- set_meta_tags title: @post.title
%article
%h1= @post.title
= raw ... | - if @pages.respond_to?(:total_pages)
- content_for(:rel_next_prev_link_tags) { rel_next_prev_link_tags(@pages) }
- content_for(:canonical_tag) do
%link{rel: :canonical, href: url_for(all: true, only_path: false)}
- breadcrumb :post, @post
- set_meta_tags title: @post.title, description: @post.body
%article
... | Set meta description to post.body | Set meta description to post.body
| Haml | mit | bm-sms/daimon-news,bm-sms/daimon-news,bm-sms/daimon-news | haml | ## Code Before:
- if @pages.respond_to?(:total_pages)
- content_for(:rel_next_prev_link_tags) { rel_next_prev_link_tags(@pages) }
- content_for(:canonical_tag) do
%link{rel: :canonical, href: url_for(all: true, only_path: false)}
- breadcrumb :post, @post
- set_meta_tags title: @post.title
%article
%h1= @pos... | - if @pages.respond_to?(:total_pages)
- content_for(:rel_next_prev_link_tags) { rel_next_prev_link_tags(@pages) }
- content_for(:canonical_tag) do
%link{rel: :canonical, href: url_for(all: true, only_path: false)}
- breadcrumb :post, @post
- - set_meta_tags title: @post.title
+ - set_meta_tags title: ... | 2 | 0.095238 | 1 | 1 |
09143f762ffa1f97dee2b69c878dd2061ab7e0aa | surelog/meta.yaml | surelog/meta.yaml | {% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('-v','.') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}
package:
name: surelog
version: {{ version }}
source:
git_url: https://github.com/alainmarcel/Surelog
git_rev: master
build:
number: {{ environ.get('DATE_NUM') }}
... | {% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('-v','.') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}
package:
name: surelog
version: {{ version }}
source:
git_url: https://github.com/alainmarcel/Surelog
git_rev: master
build:
number: {{ environ.get('DATE_NUM') }}
... | Make sure gperftools are available at runtime. | Make sure gperftools are available at runtime.
Signed-off-by: Henner Zeller <259ad50fabbfd39355f36ecd6c0afca541ea66ef@acm.org>
| YAML | apache-2.0 | SymbiFlow/conda-packages,SymbiFlow/conda-packages | yaml | ## Code Before:
{% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('-v','.') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}
package:
name: surelog
version: {{ version }}
source:
git_url: https://github.com/alainmarcel/Surelog
git_rev: master
build:
number: {{ environ.get('... | {% set version = '%s_%04i_%s'|format(GIT_DESCRIBE_TAG|replace('-v','.') or '0.X', GIT_DESCRIBE_NUMBER|int, GIT_DESCRIBE_HASH or 'gUNKNOWN') %}
package:
name: surelog
version: {{ version }}
source:
git_url: https://github.com/alainmarcel/Surelog
git_rev: master
build:
number: {{ environ... | 1 | 0.025641 | 1 | 0 |
03701d57af1c5c3093134d30e37a03fb140317de | _includes/footer.html | _includes/footer.html | <footer class="site-footer">
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss... | <footer class="site-footer">
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss... | Move the Google Analytics code to CloudFlare | Move the Google Analytics code to CloudFlare
Lets see if this feature works!
| HTML | mit | SalvatoreT/monkeynumber,SalvatoreT/monkeynumber | html | ## Code Before:
<footer class="site-footer">
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OV... | <footer class="site-footer">
<!-- Latest compiled and minified JavaScript -->
<script src="https://code.jquery.com/jquery-2.1.4.min.js"crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3... | 9 | 0.642857 | 0 | 9 |
b3972a05472f510278dbd5d94e95bde4ae14e6cc | packages/vulcan-admin/lib/modules/fragments.js | packages/vulcan-admin/lib/modules/fragments.js | import { registerFragment } from 'meteor/vulcan:lib';
// ------------------------------ Vote ------------------------------ //
// note: fragment used by default on the UsersProfile fragment
registerFragment(`
fragment UsersAdmin on User {
_id
username
createdAt
isAdmin
displayName
email
... | import { registerFragment } from 'meteor/vulcan:lib';
// ------------------------------ Vote ------------------------------ //
// note: fragment used by default on the UsersProfile fragment
registerFragment(`
fragment UsersAdmin on User {
_id
username
createdAt
isAdmin
displayName
email
... | Add pageUrl and pagePath to user fragment; | Add pageUrl and pagePath to user fragment;
| JavaScript | mit | VulcanJS/Vulcan,VulcanJS/Vulcan | javascript | ## Code Before:
import { registerFragment } from 'meteor/vulcan:lib';
// ------------------------------ Vote ------------------------------ //
// note: fragment used by default on the UsersProfile fragment
registerFragment(`
fragment UsersAdmin on User {
_id
username
createdAt
isAdmin
displayNam... | import { registerFragment } from 'meteor/vulcan:lib';
// ------------------------------ Vote ------------------------------ //
// note: fragment used by default on the UsersProfile fragment
registerFragment(`
fragment UsersAdmin on User {
_id
username
createdAt
isAdmin
di... | 2 | 0.1 | 2 | 0 |
509c1679e22666385b44b8dd20236bcf31034fcb | .travis.yml | .travis.yml | sudo: false
language: rust
rust:
- nightly
- beta
- stable
- 1.9.0
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo build -- --no-default-features &&
travis-cargo test... | sudo: false
language: rust
rust:
- nightly
- beta
- stable
- 1.9.0
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo test -- --no-default-features &&
travis-cargo test &&
travis-cargo test -- --all-features &&
r... | Test optional dependencies on Travis | Test optional dependencies on Travis
| YAML | apache-2.0 | tomprogrammer/rust-ascii | yaml | ## Code Before:
sudo: false
language: rust
rust:
- nightly
- beta
- stable
- 1.9.0
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
travis-cargo build &&
travis-cargo test &&
travis-cargo build -- --no-default-features &&
t... | sudo: false
language: rust
rust:
- nightly
- beta
- stable
- 1.9.0
before_script:
- |
pip install 'travis-cargo<0.2' --user &&
export PATH=$HOME/.local/bin:$PATH
script:
- |
- travis-cargo build &&
+ travis-cargo test -- --no-default-features &&
travi... | 8 | 0.228571 | 5 | 3 |
894c5b360f1451d20b5ac4f74d3185509c249a56 | lib/dogma/rules.ex | lib/dogma/rules.ex | defmodule Dogma.Rules do
@moduledoc """
Responsible for running of the appropriate rule set on a given set of scripts
with the appropriate configuration.
"""
alias Dogma.Formatter
alias Dogma.Script
@default_rule_set Dogma.RuleSet.All
@doc """
Runs the rules in the current rule set on the given scr... | defmodule Dogma.Rules do
@moduledoc """
Responsible for running of the appropriate rule set on a given set of scripts
with the appropriate configuration.
"""
alias Dogma.Formatter
alias Dogma.Script
@default_rule_set Dogma.RuleSet.All
@doc """
Runs the rules in the current rule set on the given scr... | Test files in parallel using Task.async | Test files in parallel using Task.async
| Elixir | mit | linearregression/dogma,eksperimental/dogma,meadsteve/dogma,knewter/dogma,henrik/dogma,rrrene/dogma,simonewebdesign/dogma,jacknoble/dogma,timbuchwaldt/dogma,aerosol/dogma,5thWall/dogma | elixir | ## Code Before:
defmodule Dogma.Rules do
@moduledoc """
Responsible for running of the appropriate rule set on a given set of scripts
with the appropriate configuration.
"""
alias Dogma.Formatter
alias Dogma.Script
@default_rule_set Dogma.RuleSet.All
@doc """
Runs the rules in the current rule set ... | defmodule Dogma.Rules do
@moduledoc """
Responsible for running of the appropriate rule set on a given set of scripts
with the appropriate configuration.
"""
alias Dogma.Formatter
alias Dogma.Script
@default_rule_set Dogma.RuleSet.All
@doc """
Runs the rules in the current... | 5 | 0.128205 | 3 | 2 |
1118e43ba564bb499452bfc498deba6edc380cd3 | lib/hets/prove_caller.rb | lib/hets/prove_caller.rb | module Hets
class ProveCaller < ActionCaller
CMD = 'prove'
METHOD = :post
COMMAND_LIST = %w(auto)
PROVE_OPTIONS = {format: 'json', include: 'true'}
def call(iri, options = {})
escaped_iri = Rack::Utils.escape_path(iri)
arguments = [escaped_iri, *COMMAND_LIST]
api_uri = build_ap... | module Hets
class ProveCaller < ActionCaller
CMD = 'prove'
METHOD = :post
COMMAND_LIST = %w(auto)
PROVE_OPTIONS = {format: 'json', include: 'true'}
def call(iri, options = {})
escaped_iri = Rack::Utils.escape_path(iri)
arguments = [escaped_iri, *COMMAND_LIST]
api_uri = build_ap... | Add hets error handling to ProveCaller. | Add hets error handling to ProveCaller.
| Ruby | agpl-3.0 | ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub,ontohub/ontohub | ruby | ## Code Before:
module Hets
class ProveCaller < ActionCaller
CMD = 'prove'
METHOD = :post
COMMAND_LIST = %w(auto)
PROVE_OPTIONS = {format: 'json', include: 'true'}
def call(iri, options = {})
escaped_iri = Rack::Utils.escape_path(iri)
arguments = [escaped_iri, *COMMAND_LIST]
ap... | module Hets
class ProveCaller < ActionCaller
CMD = 'prove'
METHOD = :post
COMMAND_LIST = %w(auto)
PROVE_OPTIONS = {format: 'json', include: 'true'}
def call(iri, options = {})
escaped_iri = Rack::Utils.escape_path(iri)
arguments = [escaped_iri, *COMMAND_LIST]
... | 2 | 0.125 | 2 | 0 |
103e19c090be59482d6f3518d70da2adc3676cf3 | README.md | README.md | Abungo
======
Simple chat app made with Socket.IO and node.js
|
Simple chat app made with node.js and Socket.IO.
## Simple and anonymous
The server doesn't store any information about the users or keep logs. It simply relays the data from one client to the rest.
## Responsive layout
The Abungo client is minimally designed and adapts to different screen sizes.
![Abungo on a PC... | Add screenshots and installation instructions | Add screenshots and installation instructions | Markdown | mit | z-------------/Abungo,z-------------/Abungo | markdown | ## Code Before:
Abungo
======
Simple chat app made with Socket.IO and node.js
## Instruction:
Add screenshots and installation instructions
## Code After:
Simple chat app made with node.js and Socket.IO.
## Simple and anonymous
The server doesn't store any information about the users or keep logs. It simply relays... | - Abungo
- ======
- Simple chat app made with Socket.IO and node.js
? --------- --
+ Simple chat app made with node.js and Socket.IO.
? ++++++++++++
+
+ ## Simple and anonymous
+
+ The server doesn't store any information about the users or keep logs. ... | 31 | 7.75 | 28 | 3 |
422520dac8a7204007e439ccc780593f36a63e1a | unittests/CodeGen/CMakeLists.txt | unittests/CodeGen/CMakeLists.txt | set(LLVM_LINK_COMPONENTS
AsmPrinter
Support
)
set(CodeGenSources
DIEHashTest.cpp
LowLevelTypeTest.cpp
)
add_llvm_unittest(CodeGenTests
${CodeGenSources}
)
add_subdirectory(GlobalISel)
| set(LLVM_LINK_COMPONENTS
AsmPrinter
CodeGen
Core
Support
)
set(CodeGenSources
DIEHashTest.cpp
LowLevelTypeTest.cpp
)
add_llvm_unittest(CodeGenTests
${CodeGenSources}
)
add_subdirectory(GlobalISel)
| Add missing link components to r277160 unittest. NFC. | [GlobalISel] Add missing link components to r277160 unittest. NFC.
It broke a shared builder:
http://lab.llvm.org:8011/builders/llvm-mips-linux/builds/17320
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@277201 91177308-0d34-0410-b5e6-96231b3b80d8
| Text | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llv... | text | ## Code Before:
set(LLVM_LINK_COMPONENTS
AsmPrinter
Support
)
set(CodeGenSources
DIEHashTest.cpp
LowLevelTypeTest.cpp
)
add_llvm_unittest(CodeGenTests
${CodeGenSources}
)
add_subdirectory(GlobalISel)
## Instruction:
[GlobalISel] Add missing link components to r277160 unittest. NFC.
It broke a share... | set(LLVM_LINK_COMPONENTS
AsmPrinter
+ CodeGen
+ Core
Support
)
set(CodeGenSources
DIEHashTest.cpp
LowLevelTypeTest.cpp
)
add_llvm_unittest(CodeGenTests
${CodeGenSources}
)
add_subdirectory(GlobalISel) | 2 | 0.133333 | 2 | 0 |
d2d11af057bee0af852a20f5a126bb4bb47bcc22 | app/controllers/clubs_controller.rb | app/controllers/clubs_controller.rb | class ClubsController < ApplicationController
before_filter :authenticate_user!
def edit
@club = Club.find params[:id]
authorize! :manage, @club
end
end
| class ClubsController < ApplicationController
respond_to :html, :json
before_filter :authenticate_user!
before_filter :get_club
def edit
authorize! :update, @club
end
def update
authorize! :update, @club
@club.update_attributes params[:club]
respond_with_bip @club
end
private
de... | Update ClubsController for Update Action | Update ClubsController for Update Action
Update the ClubsController to include the update action, as well as
provide some refactoring to eliminate code duplication.
| Ruby | mit | jekhokie/IfSimply,jekhokie/IfSimply,jekhokie/IfSimply | ruby | ## Code Before:
class ClubsController < ApplicationController
before_filter :authenticate_user!
def edit
@club = Club.find params[:id]
authorize! :manage, @club
end
end
## Instruction:
Update ClubsController for Update Action
Update the ClubsController to include the update action, as well as
provide ... | class ClubsController < ApplicationController
+ respond_to :html, :json
+
before_filter :authenticate_user!
+ before_filter :get_club
def edit
+ authorize! :update, @club
+ end
+
+ def update
+ authorize! :update, @club
+
+ @club.update_attributes params[:club]
+
+ respond_with_... | 19 | 2.111111 | 17 | 2 |
049be953ee24dc0ab6ffd8ab266ecc51b43d746f | tests/utils.php | tests/utils.php | <?php
function create_callable($type, $mode)
{
switch ($type) {
case 'method':
return [new TestClass(), 'method'.camelize($mode)];
case 'static_method':
return ['TestClass', 'staticMethod'.camelize($mode)];
case 'invoked_method':
return (new ReflectionC... | <?php
function create_callable($type, $mode)
{
switch ($type) {
case 'method':
return [new TestClass(), 'method'.camelize($mode)];
case 'static_method':
return ['TestClass', 'staticMethod'.camelize($mode)];
case 'invoked_method':
return (new ReflectionC... | Throw an exception on an unsupported callable type | Throw an exception on an unsupported callable type
| PHP | mit | rybakit/arguments-resolver | php | ## Code Before:
<?php
function create_callable($type, $mode)
{
switch ($type) {
case 'method':
return [new TestClass(), 'method'.camelize($mode)];
case 'static_method':
return ['TestClass', 'staticMethod'.camelize($mode)];
case 'invoked_method':
return ... | <?php
function create_callable($type, $mode)
{
switch ($type) {
case 'method':
return [new TestClass(), 'method'.camelize($mode)];
case 'static_method':
return ['TestClass', 'staticMethod'.camelize($mode)];
case 'invoked_method':
... | 2 | 0.076923 | 2 | 0 |
65a89bc9d43ce0d83c54da58bc18b7b5ae54405e | deploy-to-web.sh | deploy-to-web.sh | scp build/ NYoShWorkbench-129.1-1.0\ EAP1-linux.tar.gz
| find build/artifacts/NYoShWorkbenchDistribution/ -name NYoShWorkbench-\*|xargs -I{} scp {} campagnelab.org:/www/files/
| Update deploy to web script | Update deploy to web script
| Shell | apache-2.0 | CampagneLaboratory/NYoSh,CampagneLaboratory/NYoSh | shell | ## Code Before:
scp build/ NYoShWorkbench-129.1-1.0\ EAP1-linux.tar.gz
## Instruction:
Update deploy to web script
## Code After:
find build/artifacts/NYoShWorkbenchDistribution/ -name NYoShWorkbench-\*|xargs -I{} scp {} campagnelab.org:/www/files/
| - scp build/ NYoShWorkbench-129.1-1.0\ EAP1-linux.tar.gz
+ find build/artifacts/NYoShWorkbenchDistribution/ -name NYoShWorkbench-\*|xargs -I{} scp {} campagnelab.org:/www/files/
+ | 3 | 3 | 2 | 1 |
553176ae405b490e059a57d5fcc939e6e44f99d1 | src/System/Taffybar/Widget/Decorators.hs | src/System/Taffybar/Widget/Decorators.hs | {-# LANGUAGE OverloadedStrings #-}
module System.Taffybar.Widget.Decorators where
import Control.Monad.IO.Class
import qualified GI.Gtk as Gtk
import System.Taffybar.Widget.Util
-- | Wrap a widget with two container boxes. The inner box will have the class
-- "inner-pad", and the outer box will ha... | {-# LANGUAGE OverloadedStrings #-}
module System.Taffybar.Widget.Decorators where
import Control.Monad.IO.Class
import qualified GI.Gtk as Gtk
import System.Taffybar.Widget.Util
-- | Wrap a widget with two container boxes. The inner box will have the class
-- "inner-pad", and the outer box will ha... | Use box new for outerBox | Use box new for outerBox
| Haskell | bsd-3-clause | teleshoes/taffybar | haskell | ## Code Before:
{-# LANGUAGE OverloadedStrings #-}
module System.Taffybar.Widget.Decorators where
import Control.Monad.IO.Class
import qualified GI.Gtk as Gtk
import System.Taffybar.Widget.Util
-- | Wrap a widget with two container boxes. The inner box will have the class
-- "inner-pad", and the o... | {-# LANGUAGE OverloadedStrings #-}
module System.Taffybar.Widget.Decorators where
import Control.Monad.IO.Class
import qualified GI.Gtk as Gtk
import System.Taffybar.Widget.Util
-- | Wrap a widget with two container boxes. The inner box will have the class
-- "inner-pad", and the... | 2 | 0.064516 | 1 | 1 |
a8db50b51deed874853b72d08037b2232eda060c | module/geb-core/src/test/groovy/geb/interaction/InteractionsSupportSpec.groovy | module/geb-core/src/test/groovy/geb/interaction/InteractionsSupportSpec.groovy | package geb.interaction
import geb.test.CrossBrowser
import geb.test.GebSpecWithServer
@CrossBrowser
class InteractionsSupportSpec extends GebSpecWithServer {
def "navigators are unpacked in interact block"() {
given:
html {
body {
input(id: 'first-input', value: '')
input(id: 'second-input', value: ... | package geb.interaction
import geb.test.CrossBrowser
import geb.test.GebSpecWithServer
@CrossBrowser
class InteractionsSupportSpec extends GebSpecWithServer {
def setup() {
html {
body {
input(id: 'first-input', value: '')
input(id: 'second-input', value: '')
}
}
}
def "navigators are unpacked ... | Test unpacking defined content in an interact {} block. | Test unpacking defined content in an interact {} block.
| Groovy | apache-2.0 | kgeis/geb,onBass-naga/geb,pierre-hilt/geb,ntotomanov-taulia/geb,pierre-hilt/geb,madmas/geb,ntotomanov-taulia/geb,madmas/geb,kgeis/geb,geb/geb,madmas/geb,geb/geb,pierre-hilt/geb,menonvarun/geb,kgeis/geb,onBass-naga/geb,menonvarun/geb,menonvarun/geb | groovy | ## Code Before:
package geb.interaction
import geb.test.CrossBrowser
import geb.test.GebSpecWithServer
@CrossBrowser
class InteractionsSupportSpec extends GebSpecWithServer {
def "navigators are unpacked in interact block"() {
given:
html {
body {
input(id: 'first-input', value: '')
input(id: 'second... | package geb.interaction
import geb.test.CrossBrowser
import geb.test.GebSpecWithServer
@CrossBrowser
class InteractionsSupportSpec extends GebSpecWithServer {
+ def setup() {
- def "navigators are unpacked in interact block"() {
- given:
html {
body {
input(id: 'first-input', value... | 32 | 0.888889 | 28 | 4 |
c238807ccfe423e7e47831ef5d6fa598b245266f | src/components/controls/transmission-lines.js | src/components/controls/transmission-lines.js | import React from "react";
import { connect } from "react-redux";
import { withTranslation } from "react-i18next";
import Toggle from "./toggle";
import { controlsWidth } from "../../util/globals";
import { TOGGLE_TRANSMISSION_LINES } from "../../actions/types";
import { SidebarSubtitle } from "./styles";
@connect((s... | import React from "react";
import { connect } from "react-redux";
import { withTranslation } from "react-i18next";
import Toggle from "./toggle";
import { controlsWidth } from "../../util/globals";
import { TOGGLE_TRANSMISSION_LINES } from "../../actions/types";
@connect((state) => {
return {
showTransmissionLi... | Remove unnecessary byline in sidebar | Remove unnecessary byline in sidebar | JavaScript | agpl-3.0 | nextstrain/auspice,nextstrain/auspice,nextstrain/auspice | javascript | ## Code Before:
import React from "react";
import { connect } from "react-redux";
import { withTranslation } from "react-i18next";
import Toggle from "./toggle";
import { controlsWidth } from "../../util/globals";
import { TOGGLE_TRANSMISSION_LINES } from "../../actions/types";
import { SidebarSubtitle } from "./style... | import React from "react";
import { connect } from "react-redux";
import { withTranslation } from "react-i18next";
import Toggle from "./toggle";
import { controlsWidth } from "../../util/globals";
import { TOGGLE_TRANSMISSION_LINES } from "../../actions/types";
- import { SidebarSubtitle } from "./style... | 26 | 0.684211 | 10 | 16 |
e441fbcc5fdf0af0460d7b8ac210af3d96546287 | .travis.yml | .travis.yml | language: c
env:
- SMVERSION=1.5
- SMVERSION=1.6
- SMVERSION=1.7
before_install:
- sudo apt-get update
- sudo apt-get install gcc-multilib
- sudo apt-get install lynx
before_script:
- SMPATTERN="http:.*sourcemod-.*-linux.*"
- SMURL="http://www.sourcemod.net/smdrop/$SMVERSION/"
- S... | language: c
env:
- SMVERSION=1.5
- SMVERSION=1.6
- SMVERSION=1.7
matrix:
fast_finish: true
allow_failures:
- env: SMVERSION=1.7
before_install:
- sudo apt-get update
- sudo apt-get install gcc-multilib
- sudo apt-get install lynx
before_script:
- SMPATTERN="http:.*sourcem... | Allow failures for sourcemod 1.7 build | Allow failures for sourcemod 1.7 build
| YAML | mit | CrimsonTautology/sm_jetpack_plus | yaml | ## Code Before:
language: c
env:
- SMVERSION=1.5
- SMVERSION=1.6
- SMVERSION=1.7
before_install:
- sudo apt-get update
- sudo apt-get install gcc-multilib
- sudo apt-get install lynx
before_script:
- SMPATTERN="http:.*sourcemod-.*-linux.*"
- SMURL="http://www.sourcemod.net/smdrop/$SMV... | language: c
env:
- SMVERSION=1.5
- SMVERSION=1.6
- SMVERSION=1.7
+
+ matrix:
+ fast_finish: true
+ allow_failures:
+ - env: SMVERSION=1.7
before_install:
- sudo apt-get update
- sudo apt-get install gcc-multilib
- sudo apt-get install lynx
before_scr... | 5 | 0.166667 | 5 | 0 |
939270e96f367881eb1447a537ad6fb4fa09866a | setup.sql | setup.sql | CREATE DATABASE IF NOT EXISTS event_detection;
USE event_detection;
CREATE TABLE IF NOT EXISTS sources (
id varchar(255), reliability double,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS feeds (
id varchar(255), source varchar(255), url blob, scrapers blob, lastseen blob default NULL,
primary key (id),
foreign... | CREATE DATABASE IF NOT EXISTS event_detection;
USE event_detection;
CREATE TABLE IF NOT EXISTS sources (
id varchar(255), reliability double,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS feeds (
id varchar(255), source varchar(255), url blob, scrapers blob, lastseen blob default NULL,
primary key (id),
foreign... | Remove an invalid uniqueness constraint. | Remove an invalid uniqueness constraint.
| SQL | mit | beallej/event-detection,beallej/event-detection,beallej/event-detection,beallej/event-detection,beallej/event-detection | sql | ## Code Before:
CREATE DATABASE IF NOT EXISTS event_detection;
USE event_detection;
CREATE TABLE IF NOT EXISTS sources (
id varchar(255), reliability double,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS feeds (
id varchar(255), source varchar(255), url blob, scrapers blob, lastseen blob default NULL,
primary ke... | CREATE DATABASE IF NOT EXISTS event_detection;
USE event_detection;
CREATE TABLE IF NOT EXISTS sources (
id varchar(255), reliability double,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS feeds (
id varchar(255), source varchar(255), url blob, scrapers blob, lastseen blob default NULL,
prim... | 3 | 0.15 | 1 | 2 |
113972c8a483db75c66fc5e4ce42b132da3ff20c | .travis.yml | .travis.yml | language: python
os: linux
dist: xenial
matrix:
include:
- env: NOXSESSION=docs
- env: NOXSESSION=lint
- python: 3.6
env: NOXSESSION=test-3.6
- python: 3.7
env: NOXSESSION=test-3.7
- python: 3.8
env: NOXSESSION=test-3.8
install: pip install nox
script: nox
| language: python
os: linux
dist: xenial
python: 3.8
matrix:
include:
- env: NOXSESSION=docs
- env: NOXSESSION=lint
- python: 3.6
env: NOXSESSION=test-3.6
- python: 3.7
env: NOXSESSION=test-3.7
- python: 3.8
env: NOXSESSION=test-3.8
install: pip install nox
script: nox
| Use Python 3.8 on Travis CI | Use Python 3.8 on Travis CI
| YAML | mit | GaretJax/sphinx-autobuild | yaml | ## Code Before:
language: python
os: linux
dist: xenial
matrix:
include:
- env: NOXSESSION=docs
- env: NOXSESSION=lint
- python: 3.6
env: NOXSESSION=test-3.6
- python: 3.7
env: NOXSESSION=test-3.7
- python: 3.8
env: NOXSESSION=test-3.8
install: pip install nox
script: nox
## I... | language: python
os: linux
dist: xenial
+ python: 3.8
matrix:
include:
- env: NOXSESSION=docs
- env: NOXSESSION=lint
- python: 3.6
env: NOXSESSION=test-3.6
- python: 3.7
env: NOXSESSION=test-3.7
- python: 3.8
env: NOXSESSION=test-3.8
install: pip... | 1 | 0.058824 | 1 | 0 |
0470b9384b211a1d04bd6cbdfb84994b057676a2 | lib/cenit/redis.rb | lib/cenit/redis.rb | require 'redis'
module Cenit
module Redis
class << self
def client?
!client.nil?
end
def client
unless instance_variable_defined?(:@redis_client)
client = ::Redis.new
client =
begin
client.ping
puts 'Redis connection ... | require 'redis'
module Cenit
module Redis
class << self
def client?
!client.nil?
end
def client
unless instance_variable_defined?(:@redis_client)
client = ::Redis.new(host: ENV["REDIS_HOST"], port: 6379, db: 15)
client =
begin
clie... | Add support for config Redis conection | Add support for config Redis conection
| Ruby | mit | macarci/cenit,cenit-io/cenit,cenit-io/cenit,macarci/cenit,cenit-io/cenit,cenit-io/cenit,macarci/cenit | ruby | ## Code Before:
require 'redis'
module Cenit
module Redis
class << self
def client?
!client.nil?
end
def client
unless instance_variable_defined?(:@redis_client)
client = ::Redis.new
client =
begin
client.ping
puts 'R... | require 'redis'
module Cenit
module Redis
class << self
def client?
!client.nil?
end
def client
unless instance_variable_defined?(:@redis_client)
- client = ::Redis.new
+ client = ::Redis.new(host: ENV["REDIS_HOST"], port: 6379, db: ... | 2 | 0.04878 | 1 | 1 |
30c559586a3cf11333f78ca5a40afb4334410653 | templates/index.html | templates/index.html | <!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Time Tracker</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="timer container">
<p>Work Timer</p>
<a href="" class="st... | <!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Time Tracker</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="timer container">
<p>Work Timer</p>
<a href="" class="st... | Revert permissions tweak, try to fix crashing on svg import | Revert permissions tweak, try to fix crashing on svg import
| HTML | mit | williamleuschner/TimeTracker,williamleuschner/TimeTracker | html | ## Code Before:
<!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Time Tracker</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="timer container">
<p>Work Timer</p>
<a h... | <!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Time Tracker</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="timer container">
<p>Work Timer</p>
... | 6 | 0.206897 | 3 | 3 |
6cc866b6537f0f5c0e172dfffba9db7427132b49 | README.md | README.md | Patronage 2015 Augmented Szczecin iOS client.
| Patronage 2015 Augmented Szczecin iOS client.
# Arrangements
- Use at least Xcode 6.3 (currently Beta) with Swift 1.2.
- Work with gitflow workflow.
# Extras
- [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)
- [5 Useful Tips For A Better Commit Message](https://robot... | Add basic arrangements and some additional links. | Add basic arrangements and some additional links. | Markdown | apache-2.0 | blstream/AugmentedSzczecin_iOS,blstream/AugmentedSzczecin_iOS,blstream/AugmentedSzczecin_iOS,blstream/AugmentedSzczecin_iOS | markdown | ## Code Before:
Patronage 2015 Augmented Szczecin iOS client.
## Instruction:
Add basic arrangements and some additional links.
## Code After:
Patronage 2015 Augmented Szczecin iOS client.
# Arrangements
- Use at least Xcode 6.3 (currently Beta) with Swift 1.2.
- Work with gitflow workflow.
# Extras
- [Gitflow Wor... | Patronage 2015 Augmented Szczecin iOS client.
+
+
+ # Arrangements
+ - Use at least Xcode 6.3 (currently Beta) with Swift 1.2.
+ - Work with gitflow workflow.
+
+
+ # Extras
+ - [Gitflow Workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)
+ - [5 Useful Tips For A Better Commit ... | 11 | 11 | 11 | 0 |
98d0339ce921950ca38fcd1004d3ff951e71920f | package.json | package.json | {
"private": true,
"author": "Mason Browne <mason@massivelyfun.com> (http://massivelyfun.com/people/maseb)",
"name": "mf-tools",
"description": "Build and test tools.",
"version": "0.0.3",
"homepage": "http://massivelyfun.com/projects/mf-tools",
"repository": {
"type": "git",
"url": "git://github.... | {
"private": true,
"author": "Mason Browne <mason@massivelyfun.com> (http://massivelyfun.com/people/maseb)",
"name": "mf-tools",
"description": "Build and test tools.",
"version": "0.0.4",
"homepage": "http://massivelyfun.com/projects/mf-tools",
"repository": {
"type": "git",
"url": "git://github.... | Move dev deps into main deps, as they're required by someone pulling this lib in. Bump version. | Move dev deps into main deps, as they're required by someone pulling this lib in. Bump version.
| JSON | mit | massivelyfun/mf-tools | json | ## Code Before:
{
"private": true,
"author": "Mason Browne <mason@massivelyfun.com> (http://massivelyfun.com/people/maseb)",
"name": "mf-tools",
"description": "Build and test tools.",
"version": "0.0.3",
"homepage": "http://massivelyfun.com/projects/mf-tools",
"repository": {
"type": "git",
"url"... | {
"private": true,
"author": "Mason Browne <mason@massivelyfun.com> (http://massivelyfun.com/people/maseb)",
"name": "mf-tools",
"description": "Build and test tools.",
- "version": "0.0.3",
? ^
+ "version": "0.0.4",
? ^
"homepage": "http://massivelyfun.co... | 13 | 0.464286 | 6 | 7 |
9ebaafef796f97941be812e371d58e8ba10321f5 | README.md | README.md | A trello in Genropy
| A Trello in Genropy
Checkout the live demo at [genrello.mkshid.me](genrello.mkshid.me)
- username: demo
- password: demo
| Add like to the demo and creditials | Add like to the demo and creditials
| Markdown | mit | mkshid/genrello,mkshid/genrello,mkshid/genrello | markdown | ## Code Before:
A trello in Genropy
## Instruction:
Add like to the demo and creditials
## Code After:
A Trello in Genropy
Checkout the live demo at [genrello.mkshid.me](genrello.mkshid.me)
- username: demo
- password: demo
| - A trello in Genropy
? ^
+ A Trello in Genropy
? ^
+
+ Checkout the live demo at [genrello.mkshid.me](genrello.mkshid.me)
+
+ - username: demo
+ - password: demo | 7 | 7 | 6 | 1 |
88af3a6c21c93988548b5933552200898caff830 | pkgs/applications/radio/qradiolink/default.nix | pkgs/applications/radio/qradiolink/default.nix | { stdenv, fetchFromGitHub, alsaLib, boost
, qt4, libpulseaudio, codec2, libconfig
, gnuradio, gr-osmosdr, gsm
, libopus, libjpeg, protobuf, qwt, speex
} :
let
version = "0.5.2";
in stdenv.mkDerivation {
pname = "qradiolink";
inherit version;
src = fetchFromGitHub {
owner = "kantooon";
repo = "qradiol... | { stdenv, fetchFromGitHub, alsaLib, boost
, qt4, libpulseaudio, codec2, libconfig
, gnuradio, gr-osmosdr, gsm
, libopus, libjpeg, protobuf, qwt, speex
} :
let
version = "0.5.0";
in stdenv.mkDerivation {
pname = "qradiolink";
inherit version;
src = fetchFromGitHub {
owner = "kantooon";
repo = "qradiol... | Revert "qradiolink: 0.5.0 -> 0.5.2" | Revert "qradiolink: 0.5.0 -> 0.5.2"
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ stdenv, fetchFromGitHub, alsaLib, boost
, qt4, libpulseaudio, codec2, libconfig
, gnuradio, gr-osmosdr, gsm
, libopus, libjpeg, protobuf, qwt, speex
} :
let
version = "0.5.2";
in stdenv.mkDerivation {
pname = "qradiolink";
inherit version;
src = fetchFromGitHub {
owner = "kantooon";
... | { stdenv, fetchFromGitHub, alsaLib, boost
, qt4, libpulseaudio, codec2, libconfig
, gnuradio, gr-osmosdr, gsm
, libopus, libjpeg, protobuf, qwt, speex
} :
let
- version = "0.5.2";
? ^
+ version = "0.5.0";
? ^
in stdenv.mkDerivation {
pname = "qradiolink";
... | 4 | 0.066667 | 2 | 2 |
842ca961a8bd3571c509ff6e0413d1e68c9729ca | RichTextExample/NoteEditorTextViewDelegate.swift | RichTextExample/NoteEditorTextViewDelegate.swift | //
// NoteEditorTextViewDelegate.swift
// RichTextExample
//
// Created by Clay Tinnell on 7/27/15.
// Copyright (c) 2015 Clay Tinnell. All rights reserved.
//
import UIKit
import Foundation
class NoteEditorTextViewDelegate: NSObject {
func characterIsAWordTerminator(text: String) -> Bool {
retur... | //
// NoteEditorTextViewDelegate.swift
// RichTextExample
//
// Created by Clay Tinnell on 7/27/15.
// Copyright (c) 2015 Clay Tinnell. All rights reserved.
//
import UIKit
import Foundation
class NoteEditorTextViewDelegate: NSObject {
}
extension NoteEditorTextViewDelegate : UITextViewDelegate {
f... | Refactor functions into String extension | Refactor functions into String extension
This seems to provide improved readability and usability.
| Swift | mit | ctinnell/RichTextEditorExample | swift | ## Code Before:
//
// NoteEditorTextViewDelegate.swift
// RichTextExample
//
// Created by Clay Tinnell on 7/27/15.
// Copyright (c) 2015 Clay Tinnell. All rights reserved.
//
import UIKit
import Foundation
class NoteEditorTextViewDelegate: NSObject {
func characterIsAWordTerminator(text: String) -> Bool... | //
// NoteEditorTextViewDelegate.swift
// RichTextExample
//
// Created by Clay Tinnell on 7/27/15.
// Copyright (c) 2015 Clay Tinnell. All rights reserved.
//
import UIKit
import Foundation
class NoteEditorTextViewDelegate: NSObject {
- func characterIsAWordTerminator(text: Str... | 41 | 1.078947 | 24 | 17 |
b77e58c2c18c50990375ae46d811600143b3bed8 | tools/lld/TODO.txt | tools/lld/TODO.txt | tools/lld
~~~~~~~~~
Driver
------
lld needs a driver that supports gnu-ld_, ld64_, and link.exe_ arguments. It
would be nice to refactor the argument parsing parts of `Clang's`_ driver support
out to LLVM's Support library.
.. _gnu-ld: http://sourceware.org/binutils/docs-2.22/ld/Options.html#Options
.. _ld64: https... | tools/lld
~~~~~~~~~
Driver
------
lld needs a driver that supports gnu-ld_, ld64_, and link.exe_ arguments. It
would be nice to refactor the argument parsing parts of `Clang's`_ driver support
out to LLVM's Support library.
.. _gnu-ld: http://sourceware.org/binutils/docs-2.22/ld/Options.html#Options
.. _ld64: https... | Add some docs on the type of flags link.exe has that our driver will need to support. | Add some docs on the type of flags link.exe has that our driver will need to support.
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@155861 91177308-0d34-0410-b5e6-96231b3b80d8
| Text | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld | text | ## Code Before:
tools/lld
~~~~~~~~~
Driver
------
lld needs a driver that supports gnu-ld_, ld64_, and link.exe_ arguments. It
would be nice to refactor the argument parsing parts of `Clang's`_ driver support
out to LLVM's Support library.
.. _gnu-ld: http://sourceware.org/binutils/docs-2.22/ld/Options.html#Options... | tools/lld
~~~~~~~~~
Driver
------
lld needs a driver that supports gnu-ld_, ld64_, and link.exe_ arguments. It
would be nice to refactor the argument parsing parts of `Clang's`_ driver support
out to LLVM's Support library.
.. _gnu-ld: http://sourceware.org/binutils/docs-2.22/ld/Options.html#O... | 37 | 2.642857 | 37 | 0 |
7b7605dcc77909afed0141b87ec586a865b5f426 | modes/dired-conf.el | modes/dired-conf.el | ;;; dired-conf.el -- Settings for dired-mode
(eval-when-compile
(require 'dired)
(require 'dired-aux))
(setq dired-listing-switches "-lRA --ignore='.git' --group-directories-first"
dired-auto-revert-buffer t
dired-isearch-filenames t)
| ;;; dired-conf.el -- Settings for dired-mode
(eval-when-compile
(require 'dired)
(require 'dired-aux))
(setq dired-listing-switches "-lRA --ignore='.git' --group-directories-first"
dired-auto-revert-buffer t
dired-isearch-filenames t)
(defun pjones:dired-show-only-matching-files (regexp)
(interactiv... | Add a new dired function to only show files that match a regexp | Add a new dired function to only show files that match a regexp
| Emacs Lisp | bsd-3-clause | pjones/emacsrc | emacs-lisp | ## Code Before:
;;; dired-conf.el -- Settings for dired-mode
(eval-when-compile
(require 'dired)
(require 'dired-aux))
(setq dired-listing-switches "-lRA --ignore='.git' --group-directories-first"
dired-auto-revert-buffer t
dired-isearch-filenames t)
## Instruction:
Add a new dired function to only sh... | ;;; dired-conf.el -- Settings for dired-mode
(eval-when-compile
(require 'dired)
(require 'dired-aux))
(setq dired-listing-switches "-lRA --ignore='.git' --group-directories-first"
dired-auto-revert-buffer t
dired-isearch-filenames t)
+
+ (defun pjones:dired-show-only-matching-files (r... | 12 | 1.5 | 12 | 0 |
9de844864b3e6c732241a68d1871f701232d2733 | celery_janitor/utils.py | celery_janitor/utils.py | import importlib
import urlparse
from celery_janitor import conf
from celery_janitor.exceptions import BackendNotSupportedException
BACKEND_MAPPING = {
'sqs': 'celery_janitor.backends.sqs.SQSBackend'
}
def import_class(path):
path_bits = path.split('.')
class_name = path_bits.pop()
module_path = '.... | import importlib
try:
from urlparse import urlparse
except ImportError: # Python 3.x
from urllib.parse import urlparse
from celery_janitor import conf
from celery_janitor.exceptions import BackendNotSupportedException
BACKEND_MAPPING = {
'sqs': 'celery_janitor.backends.sqs.SQSBackend'
}
def import_cla... | Fix Python 3.4 import error | Fix Python 3.4 import error
| Python | mit | comandrei/celery-janitor | python | ## Code Before:
import importlib
import urlparse
from celery_janitor import conf
from celery_janitor.exceptions import BackendNotSupportedException
BACKEND_MAPPING = {
'sqs': 'celery_janitor.backends.sqs.SQSBackend'
}
def import_class(path):
path_bits = path.split('.')
class_name = path_bits.pop()
... | import importlib
- import urlparse
+ try:
+ from urlparse import urlparse
+ except ImportError: # Python 3.x
+ from urllib.parse import urlparse
from celery_janitor import conf
from celery_janitor.exceptions import BackendNotSupportedException
BACKEND_MAPPING = {
'sqs': 'celery_janitor.b... | 7 | 0.145833 | 5 | 2 |
a90da195fd6163b97c42dc074a7930660fb7a72b | README.md | README.md |
- Node (8+)
- NPM
- [Jekyll](https://jekyllrb.com/docs/installation/)
## Setup
Install node dev packages:
```bash
npm i
```
Initialize lerna:
```bash
npx lerna init
```
## Build
Compile typescript for all packages:
```bash
./scripts/build/cli
```
## Run
Runs the command line app:
```bash
./scripts/run/cli -... |
- Node (8+)
- NPM
- [Jekyll](https://jekyllrb.com/docs/installation/)
## Setup
Install node dev packages:
```bash
npm i
```
Install lerna managed packages:
```bash
npx lerna bootstrap
```
## Build
Compile typescript for all packages:
```bash
./scripts/build/cli
```
## Run
Runs the command line app:
```bash
... | Update readme with proper lerna command | Update readme with proper lerna command
| Markdown | mit | dataform-co/dataform,dataform-co/dataform,dataform-co/dataform,dataform-co/dataform,dataform-co/dataform | markdown | ## Code Before:
- Node (8+)
- NPM
- [Jekyll](https://jekyllrb.com/docs/installation/)
## Setup
Install node dev packages:
```bash
npm i
```
Initialize lerna:
```bash
npx lerna init
```
## Build
Compile typescript for all packages:
```bash
./scripts/build/cli
```
## Run
Runs the command line app:
```bash
./s... |
- Node (8+)
- NPM
- [Jekyll](https://jekyllrb.com/docs/installation/)
## Setup
Install node dev packages:
```bash
npm i
```
- Initialize lerna:
+ Install lerna managed packages:
```bash
- npx lerna init
+ npx lerna bootstrap
```
## Build
Compile typescript for all package... | 4 | 0.060606 | 2 | 2 |
1d660ad431e5b760359535a6563c557ec8490efe | app.yaml | app.yaml | runtime: go
vm: true
api_version: go1
handlers:
- url: /.*
script: _go_app
secure: always | runtime: go
vm: true
api_version: go1
handlers:
- url: /.*
script: _go_app
secure: always
redirect_http_response_code: 301
| Change HTTP -> HTTPS redirect to a 301. | Change HTTP -> HTTPS redirect to a 301.
Apparently 302 is the default: https://cloud.google.com/appengine/docs/go/config/appref#handlers_redirect_http_response_code
Thanks for @ivanr for finding (using hardenize.com).
| YAML | bsd-3-clause | chromium/hstspreload.org,chromium/hstspreload.org,chromium/hstspreload.org,chromium/hstspreload.org | yaml | ## Code Before:
runtime: go
vm: true
api_version: go1
handlers:
- url: /.*
script: _go_app
secure: always
## Instruction:
Change HTTP -> HTTPS redirect to a 301.
Apparently 302 is the default: https://cloud.google.com/appengine/docs/go/config/appref#handlers_redirect_http_response_code
Thanks for @ivanr for findi... | runtime: go
vm: true
api_version: go1
handlers:
- url: /.*
script: _go_app
secure: always
+ redirect_http_response_code: 301 | 1 | 0.125 | 1 | 0 |
73b9d262433290c174cd7decce85f167aae28adb | index.js | index.js | "use strict";
var port = process.env.PORT || 8080;
var file = require("fs").readFileSync;
var glob = require("glob");
var path = require("path");
var rested = require("rested");
var routes = glob.sync("routes/*.js").map(function (e, i, a) {
return require(path.join(__dirname, e));
});
var server = rested.createSer... | "use strict";
var port = process.env.PORT || 8080;
var file = require("fs").readFileSync;
var glob = require("glob");
var path = require("path");
var rested = require("rested");
var routes = glob.sync("routes/*.js").map(function (e, i, a) {
return require(path.join(__dirname, e));
});
var server = rested.createSer... | Add headers common to each request | Add headers common to each request
| JavaScript | bsd-3-clause | munapps/munapps-api | javascript | ## Code Before:
"use strict";
var port = process.env.PORT || 8080;
var file = require("fs").readFileSync;
var glob = require("glob");
var path = require("path");
var rested = require("rested");
var routes = glob.sync("routes/*.js").map(function (e, i, a) {
return require(path.join(__dirname, e));
});
var server = ... | "use strict";
var port = process.env.PORT || 8080;
var file = require("fs").readFileSync;
var glob = require("glob");
var path = require("path");
var rested = require("rested");
var routes = glob.sync("routes/*.js").map(function (e, i, a) {
return require(path.join(__dirname, e));
});
v... | 6 | 0.26087 | 6 | 0 |
6eefc0acf6e7ffeaa9e22bd4c7929e75128f636d | README.md | README.md | Library for interacting with pCloud's API. Uses pCloud's own binary protocol.
|
An official type-safe networking client for [ pCloud's API][docs] binary protocol by pCloud AG.
## Requirements
- Java 7.0+
- Android 2.3+ (API9+)
## Documentation
The pCloud API and binary protocol documentation can be found [here][docs].
[site]: https://www.pcloud.com/
[docs]: https://docs.pcloud.com/
| Update the readme file with something more meaningful | (docs): Update the readme file with something more meaningful
| Markdown | apache-2.0 | pCloud/pcloud-networking-java | markdown | ## Code Before:
Library for interacting with pCloud's API. Uses pCloud's own binary protocol.
## Instruction:
(docs): Update the readme file with something more meaningful
## Code After:
An official type-safe networking client for [ pCloud's API][docs] binary protocol by pCloud AG.
## Requirements
- Java 7.0+
- An... | - Library for interacting with pCloud's API. Uses pCloud's own binary protocol.
+
+ An official type-safe networking client for [ pCloud's API][docs] binary protocol by pCloud AG.
+
+ ## Requirements
+
+ - Java 7.0+
+ - Android 2.3+ (API9+)
+
+ ## Documentation
+
+ The pCloud API and binary protocol documentation ... | 17 | 17 | 16 | 1 |
8377ed36990acb2eae2b1a4775f00688ab4490ea | tests/performance.c | tests/performance.c | int test_performance() {
asic_t *device = asic_init(TI83p);
struct timespec start, stop;
unsigned long long t;
int i;
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->cpu, 1);
}
clock_gettime(CLOCK_MONOTONIC_RAW, &stop);
t ... | int test_performance() {
asic_t *device = asic_init(TI83p);
clock_t start, stop;
int i;
start = clock();
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->cpu, 1);
}
stop = clock();
double time = (double)(stop - start) / (CLOCKS_PER_SEC / 1000);
double mHz = 1000.0 / ... | Switch to more common timing functions | Switch to more common timing functions
| C | mit | KnightOS/z80e,KnightOS/z80e | c | ## Code Before:
int test_performance() {
asic_t *device = asic_init(TI83p);
struct timespec start, stop;
unsigned long long t;
int i;
clock_gettime(CLOCK_MONOTONIC_RAW, &start);
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->cpu, 1);
}
clock_gettime(CLOCK_MONOTONIC_RAW... | int test_performance() {
asic_t *device = asic_init(TI83p);
+ clock_t start, stop;
- struct timespec start, stop;
- unsigned long long t;
int i;
- clock_gettime(CLOCK_MONOTONIC_RAW, &start);
+ start = clock();
for (i = 0; i < 1000000; i++) {
i -= cpu_execute(device->... | 13 | 0.722222 | 6 | 7 |
0e8f6d4d134854eb38e89ba60d9ff9e591f2ce81 | graphql/types/comment-input.js | graphql/types/comment-input.js | import {
GraphQLInputObjectType,
GraphQLString,
GraphQLID,
GraphQLNonNull
} from 'graphql';
export default new GraphQLInputObjectType({
name: 'CommentInput',
fields: {
_id: {
type: new GraphQLNonNull(GraphQLID)
},
postId: {
type: new GraphQLNonNull(GraphQLID)
},
text: {
... | import {
GraphQLInputObjectType,
GraphQLString,
GraphQLID,
GraphQLNonNull
} from 'graphql';
export default new GraphQLInputObjectType({
name: 'CommentInput',
fields: {
postId: {
type: new GraphQLNonNull(GraphQLID)
},
text: {
type: new GraphQLNonNull(GraphQLString)
}
}
});
| Remove ID in CommentInput type | Remove ID in CommentInput type
| JavaScript | mit | maxpou/graphql-nodejs-mongodb | javascript | ## Code Before:
import {
GraphQLInputObjectType,
GraphQLString,
GraphQLID,
GraphQLNonNull
} from 'graphql';
export default new GraphQLInputObjectType({
name: 'CommentInput',
fields: {
_id: {
type: new GraphQLNonNull(GraphQLID)
},
postId: {
type: new GraphQLNonNull(GraphQLID)
},
... | import {
GraphQLInputObjectType,
GraphQLString,
GraphQLID,
GraphQLNonNull
} from 'graphql';
export default new GraphQLInputObjectType({
name: 'CommentInput',
fields: {
- _id: {
- type: new GraphQLNonNull(GraphQLID)
- },
postId: {
type: new GraphQLNonNull(Grap... | 3 | 0.142857 | 0 | 3 |
4c656fa459751c968fc8aed6194ebc1a0fe0dc01 | lib/psd/layer/info/sheet_color.rb | lib/psd/layer/info/sheet_color.rb | require 'psd/layer_info'
class PSD
class SheetColor < LayerInfo
def self.should_parse?(key)
key == 'lclr'
end
def parse
@data = [
@file.read_short,
@file.read_short,
@file.read_short,
@file.read_short
]
end
end
end | require 'psd/layer_info'
class PSD
# This is the color label for a group/layer. Not sure why Adobe
# refers to it as the "Sheet Color".
class SheetColor < LayerInfo
def self.should_parse?(key)
key == 'lclr'
end
COLORS = [
:no_color,
:red,
:orange,
:yellow,
:green,... | Make it easy to get label color | Make it easy to get label color
| Ruby | mit | layervault/psd.rb | ruby | ## Code Before:
require 'psd/layer_info'
class PSD
class SheetColor < LayerInfo
def self.should_parse?(key)
key == 'lclr'
end
def parse
@data = [
@file.read_short,
@file.read_short,
@file.read_short,
@file.read_short
]
end
end
end
## Instruction:
M... | require 'psd/layer_info'
class PSD
+ # This is the color label for a group/layer. Not sure why Adobe
+ # refers to it as the "Sheet Color".
class SheetColor < LayerInfo
def self.should_parse?(key)
key == 'lclr'
end
+ COLORS = [
+ :no_color,
+ :red,
+ :orange,
... | 18 | 1 | 18 | 0 |
b97f50bc64ae57ac60b882a9281813c701adc325 | src/main/java/Main.java | src/main/java/Main.java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
printTitle();
titleWait();
System.out.println("You wake up on a beach.");
}
private static void printTitle() {
String banner = "___________ .__ ___________ __ \n"... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
printTitle();
titleWait();
System.out.println("You wake up on a beach.");
}
private static void printTitle() {
String banner = "___________ .__ ___________ __ \n"... | Add new line print to clearScreen() | Add new line print to clearScreen()
| Java | mit | MarkNBroadhead/EpicText | java | ## Code Before:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
printTitle();
titleWait();
System.out.println("You wake up on a beach.");
}
private static void printTitle() {
String banner = "___________ .__ ___________ ... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
printTitle();
titleWait();
System.out.println("You wake up on a beach.");
}
private static void printTitle() {
String banner = "___________ .__ _________... | 2 | 0.064516 | 1 | 1 |
b971b3bedef799cfc044cf2712eb952acf83f812 | CONTRIBUTING.md | CONTRIBUTING.md | `Hello, dear developer`
We will be happy to see your Pull Request!
Actually, we don't want to limit you, so just write clean & good code with tests and everything will be okay :smile:
| `Hello, dear developer`
We will be happy to see your Pull Request!
Actually, we don't want to limit you, so just write clean & good code with tests and everything will be okay :smile:
####Building project:
To build and test the project you need to connect emulator or device and then execute:
```bash
sh ci/ci.sh
# fr... | Add info about building project | Add info about building project | Markdown | apache-2.0 | zayass/storio,adamin1990/storio,murugespandian/storio,inigo0178/storio,ysnows/storio,zayass/storio,0359xiaodong/storio,sylsi/storio,ysnows/storio,gostik/tweets-key-value,geralt-encore/storio,WeRockStar/storio,geralt-encore/storio,awesome-niu/storio,TonyTangAndroid/storio,adamin1990/storio,geralt-encore/storio,hai-nguye... | markdown | ## Code Before:
`Hello, dear developer`
We will be happy to see your Pull Request!
Actually, we don't want to limit you, so just write clean & good code with tests and everything will be okay :smile:
## Instruction:
Add info about building project
## Code After:
`Hello, dear developer`
We will be happy to see your P... | `Hello, dear developer`
-
We will be happy to see your Pull Request!
Actually, we don't want to limit you, so just write clean & good code with tests and everything will be okay :smile:
+
+ ####Building project:
+
+ To build and test the project you need to connect emulator or device and then execute:
+ ```... | 9 | 1.8 | 8 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.